lean4-htt/tests/lean/run/induction_tactic_delta.lean
Leonardo de Moura d3c340a30c feat(library/init/meta): improve induction tactic interface
It uses .rec recursor when it is not specified
2017-02-17 10:58:51 -08:00

15 lines
351 B
Text

open tactic
-- This test makes sure that [foo'] is not unfolded in the major premise,
-- since [foo'] is the type of the major premise of the provided recursor.
inductive foo (n : nat)
| mk : foo
definition foo' := @foo 0
definition foo'.rec := @foo.rec
example : Pi (x : foo'), x = x :=
by do x ← intro `x,
induction x,
reflexivity