lean4-htt/tests/lean/run/generalizeMany.lean
Leonardo de Moura ad3b0b4a2c feat: nary generalize tactic
This commit also fixes a bug when using multiple targets with the
`induction` and `cases` tactics.
2021-08-30 16:31:39 -07:00

13 lines
320 B
Text

def Fin.succ (v : Fin n) : Fin n.succ :=
match v with
| ⟨v, h⟩ => ⟨v+1, Nat.succ_lt_succ h⟩
set_option pp.analyze false
example (p : (n : Nat) → Fin n → Prop)
(n : Nat)
(v : Fin n)
: p n.succ v.succ := by
generalize h₁ : n.succ = n', h₂ : v.succ = v'
traceState
admit