2014-08-25 02:58:48 +00:00
|
|
|
import logic
|
2014-09-03 23:00:38 +00:00
|
|
|
open eq_ops
|
2014-07-26 17:36:21 +00:00
|
|
|
|
|
|
|
inductive nat : Type :=
|
2014-08-22 22:46:10 +00:00
|
|
|
zero : nat,
|
|
|
|
succ : nat → nat
|
2014-07-26 17:36:21 +00:00
|
|
|
|
|
|
|
definition add (x y : nat) : nat := nat_rec x (λn r, succ r) y
|
|
|
|
infixl `+`:65 := add
|
|
|
|
definition mul (n m : nat) := nat_rec zero (fun m x, x + n) m
|
|
|
|
infixl `*`:75 := mul
|
|
|
|
|
|
|
|
axiom mul_zero_right (n : nat) : n * zero = zero
|
|
|
|
|
|
|
|
variable P : nat → Prop
|
|
|
|
|
|
|
|
print "==========================="
|
|
|
|
theorem tst (n : nat) (H : P (n * zero)) : P zero
|
2014-08-20 22:49:44 +00:00
|
|
|
:= subst (mul_zero_right _) H
|