lean4-htt/tests/lean/interactive/rwElabConst.lean.expected.out
JovanGerb d69a8eff3f
fix: deduplicate elaboration of constant argument to rw (#8232)
This PR fixes elaboration of constants in the `rewrite` tactic.
previously, `rw [eq_self]` would elaborate `eq_self` twice, and add it
to the infotree twice. This would lead to the "Expected type" being
delaborated with an unknown universe metavariable.

I added a test to show this error during delaboration of the "Expected
type".

This was reported on Zulip as a panic message during delaboration:
[#mathlib4 > Crash in `sup`/`inf` /
`max`/`min`
delaborators](https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/Crash.20in.20.60sup.60.2F.60inf.60.20.2F.20.60max.60.2F.60min.60.20delaborators/with/515946714)
2025-05-15 11:33:10 +00:00

5 lines
249 B
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:///rwElabConst.lean"},
"position": {"line": 18, "character": 12}}
{"range":
{"start": {"line": 18, "character": 10}, "end": {"line": 18, "character": 17}},
"goal": "⊢ ∀ {α : Sort ?u} (a : α), (a = a) = True"}