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)
5 lines
249 B
Text
5 lines
249 B
Text
{"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"}
|