2015-04-21 19:33:21 -07:00
|
|
|
section
|
2015-10-13 18:35:16 -07:00
|
|
|
check (1:nat) + 2
|
|
|
|
check add
|
2015-02-11 11:02:59 -08:00
|
|
|
end
|
|
|
|
|
2015-04-21 19:33:21 -07:00
|
|
|
section
|
2015-02-11 11:02:59 -08:00
|
|
|
variable a : nat
|
|
|
|
check a + a
|
|
|
|
check add a a
|
2015-10-13 18:35:16 -07:00
|
|
|
check a + 1
|
2015-02-11 11:02:59 -08:00
|
|
|
end
|
|
|
|
|
2015-04-21 19:33:21 -07:00
|
|
|
section
|
2015-02-11 11:02:59 -08:00
|
|
|
open - [classes] nat
|
|
|
|
variable a : nat
|
|
|
|
check a + a
|
|
|
|
check add a a
|
|
|
|
check a + 1
|
|
|
|
definition foo1 : inhabited nat :=
|
|
|
|
_ -- Error inhabited instances was not loaded
|
|
|
|
end
|
|
|
|
|
2015-04-21 19:33:21 -07:00
|
|
|
section
|
2015-02-11 11:02:59 -08:00
|
|
|
open - [classes] [decls] nat
|
|
|
|
variable a : nat
|
|
|
|
check a + a
|
|
|
|
check a + 1
|
|
|
|
definition foo2 : inhabited nat :=
|
|
|
|
_ -- Error inhabited instances was not loaded
|
|
|
|
end
|
|
|
|
|
2015-04-21 19:33:21 -07:00
|
|
|
section
|
2015-02-11 11:02:59 -08:00
|
|
|
open [classes] nat
|
|
|
|
definition foo3 : inhabited nat :=
|
|
|
|
_
|
|
|
|
|
|
|
|
variable a : nat
|
2015-10-13 18:35:16 -07:00
|
|
|
check a + a
|
2015-02-11 11:02:59 -08:00
|
|
|
end
|