lean4-htt/tests/lean/run/1335.lean
2017-01-25 16:05:23 -08:00

18 lines
615 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import standard
namespace int
private lemma sub_nat_nat_elim (m n : ) (P : → Prop)
(hp : ∀i n, P (n + i) n (of_nat i))
(hn : ∀i m, P m (m + i + 1) (-[1+ i])) :
P m n (sub_nat_nat m n) :=
sorry
inductive rel_int_nat_nat : × → Prop
| pos : ∀m p, rel_int_nat_nat (of_nat p) (m + p, m)
| neg : ∀m n, rel_int_nat_nat (neg_succ_of_nat n) (m, m + n)
lemma rel_sub_nat_nat {a b : } : rel_int_nat_nat (sub_nat_nat a b) (a, b) :=
/- The next statement kills lean -/
sub_nat_nat_elim a b (λ(a b : ) (i : ), rel_int_nat_nat i (a, b)) sorry sorry
end int