lean4-htt/tests/lean/interactive/4078.lean.expected.out
Joachim Breitner 82401938cf
fix: hovers on binders with metavariables (#4192)
this fixes #4078. It is an alternative fix to the one in #4137,
suggested
by @kmill.

Incidentially, it makes the unused variable linter better. My theory is
that
if we don’t reset the info when backtracking, the binder shows up more
than
once in the info tree, and then it is considered “used”, although there
are
just multiple binders.
2024-05-21 10:34:58 +00:00

42 lines
2.3 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{"textDocument": {"uri": "file:///4078.lean"},
"position": {"line": 0, "character": 20}}
{"range":
{"start": {"line": 0, "character": 20}, "end": {"line": 0, "character": 21}},
"contents": {"value": "```lean\nα : Type u_1\n```", "kind": "markdown"}}
{"textDocument": {"uri": "file:///4078.lean"},
"position": {"line": 3, "character": 16}}
{"range":
{"start": {"line": 3, "character": 16}, "end": {"line": 3, "character": 17}},
"contents": {"value": "```lean\nα : Type u_1\n```", "kind": "markdown"}}
{"textDocument": {"uri": "file:///4078.lean"},
"position": {"line": 6, "character": 16}}
{"range":
{"start": {"line": 6, "character": 14}, "end": {"line": 6, "character": 30}},
"contents":
{"value":
"```lean\nType (u_1 + 1)\n```\n***\nThe dependent arrow. `(x : α) → β` is equivalent to `∀ x : α, β`, but we usually\nreserve the latter for propositions. Also written as `Π x : α, β` (the \"Pi-type\")\nin the literature. ",
"kind": "markdown"}}
{"textDocument": {"uri": "file:///4078.lean"},
"position": {"line": 9, "character": 16}}
{"range":
{"start": {"line": 9, "character": 14}, "end": {"line": 9, "character": 33}},
"contents":
{"value":
"```lean\nType (u_1 + 1)\n```\n***\nThe dependent arrow. `(x : α) → β` is equivalent to `∀ x : α, β`, but we usually\nreserve the latter for propositions. Also written as `Π x : α, β` (the \"Pi-type\")\nin the literature. ",
"kind": "markdown"}}
{"textDocument": {"uri": "file:///4078.lean"},
"position": {"line": 12, "character": 16}}
{"range":
{"start": {"line": 12, "character": 14}, "end": {"line": 12, "character": 35}},
"contents":
{"value":
"```lean\nType (u_1 + 1)\n```\n***\nThe dependent arrow. `(x : α) → β` is equivalent to `∀ x : α, β`, but we usually\nreserve the latter for propositions. Also written as `Π x : α, β` (the \"Pi-type\")\nin the literature. ",
"kind": "markdown"}}
{"textDocument": {"uri": "file:///4078.lean"},
"position": {"line": 15, "character": 16}}
{"range":
{"start": {"line": 15, "character": 14}, "end": {"line": 15, "character": 35}},
"contents":
{"value":
"```lean\nType 1\n```\n***\nThe dependent arrow. `(x : α) → β` is equivalent to `∀ x : α, β`, but we usually\nreserve the latter for propositions. Also written as `Π x : α, β` (the \"Pi-type\")\nin the literature. ",
"kind": "markdown"}}