4946f55290
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
26 lines
416 B
Text
26 lines
416 B
Text
import logic
|
|
|
|
constant nat : Type.{1}
|
|
constant int : Type.{1}
|
|
|
|
constant nat_add : nat → nat → nat
|
|
infixl `+`:65 := nat_add
|
|
|
|
constant int_add : int → int → int
|
|
infixl `+`:65 := int_add
|
|
|
|
constant of_nat : nat → int
|
|
coercion of_nat
|
|
|
|
constants a b : nat
|
|
constants i j : int
|
|
|
|
definition c1 := a + b
|
|
|
|
theorem T1 : c1 = nat_add a b :=
|
|
eq.refl _
|
|
|
|
definition c2 := i + j
|
|
|
|
theorem T2 : c2 = int_add i j :=
|
|
eq.refl _
|