Open Kha opened 11 months ago
@leodemoura Is it safe to separate an elabBinders
into nested invocations of elabBinder
? I believe so because the only effect is that universeConstraintsCheckpoint
is run multiple times. In that case I'm happy to implement the small fix.
From https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Notation.20introduces.20sorry/near/390699774:
The issue is here: https://github.com/leanprover/lean4/blob/e9d60e143a8b1ee06be1f201f78068250a2b8949/src/Lean/Elab/Command.lean#L442-L449 We first elaborate all section variables as binders and then register them as such but that is wrong if one section variable references another via a notation, which is where
sectionFVars
is needed. We should elaborate and add them tosectionFVars
one by one.