lean4-htt/tests/lean/run/1171.lean
Leonardo de Moura b22192eee1 fix(library/equations_compiler/elim_match): fixes #1171
We should not use value-transition (based on if-then-else) when there
are dependencies.
2016-10-31 17:42:39 +08:00

7 lines
145 B
Text

inductive foo : nat → Type
| f1 : foo 1
| fn : Pi (n : nat), foo n
def rig : Pi (n : nat), foo n → bool
| 1 foo.f1 := tt
| _ _ := ff