lean4-htt/tests/lean/run/1335.lean
2017-03-07 19:45:00 -08:00

18 lines
627 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