lean4-htt/old_tests/tests/lean/run/cases_term.lean
2018-04-10 12:56:55 -07:00

10 lines
225 B
Text

example (f : nat → nat) (p : nat → Prop)
(h₁ : ∀ x, f (nat.succ x) = 1)
(h₂ : ¬ p 0)
(a : nat)
(h₃ : p (f a)) : f (f a) = 1 :=
begin
cases f a,
contradiction,
apply h₁
end