lean4-htt/tests/lean/run/12215.lean
Wojciech Różowski a966a192b7
fix: unification issue in proofs generated by Lean.Meta.MkIffOfInductiveProp (#12219)
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
2026-02-02 10:37:44 +00:00

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