This PR fixes a unification issue that appeared in `Lean.Meta.MkIffOfInductiveProp` machinery that was upstreamed from Mathlib. Inside of `toInductive`, wrong free variables were passed, which made it impossible to perform a unification in certain cases. Closes #12215
13 lines
342 B
Text
13 lines
342 B
Text
set_option trace.Meta.MkIffOfInductiveProp true
|
|
|
|
namespace test1
|
|
coinductive Foo : {n : Nat} → Fin n → Prop
|
|
| succ {m : Nat} (x : Fin (m + 1)) : Foo x
|
|
| one (x : Fin 1) : Foo x
|
|
end test1
|
|
|
|
namespace test2
|
|
coinductive Foo : (n : Nat) → Fin n → Prop
|
|
| succ {m : Nat} (x : Fin (m + 1)) : Foo (m+1) x
|
|
| one (x : Fin 1) : Foo 1 x
|
|
end test2
|