2015-04-22 02:33:21 +00:00
|
|
|
section
|
2015-10-14 01:35:16 +00:00
|
|
|
check (1:nat) + 2
|
|
|
|
check add
|
2015-02-11 19:02:59 +00:00
|
|
|
end
|
|
|
|
|
2015-04-22 02:33:21 +00:00
|
|
|
section
|
2015-02-11 19:02:59 +00:00
|
|
|
variable a : nat
|
|
|
|
check a + a
|
|
|
|
check add a a
|
2015-10-14 01:35:16 +00:00
|
|
|
check a + 1
|
2015-02-11 19:02:59 +00:00
|
|
|
end
|
|
|
|
|
2015-04-22 02:33:21 +00:00
|
|
|
section
|
2015-12-28 18:30:23 +00:00
|
|
|
open - [class] nat
|
2015-02-11 19:02:59 +00:00
|
|
|
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-22 02:33:21 +00:00
|
|
|
section
|
2015-12-28 18:30:23 +00:00
|
|
|
open - [class] [decl] nat
|
2015-02-11 19:02:59 +00:00
|
|
|
variable a : nat
|
|
|
|
check a + a
|
|
|
|
check a + 1
|
|
|
|
definition foo2 : inhabited nat :=
|
|
|
|
_ -- Error inhabited instances was not loaded
|
|
|
|
end
|
|
|
|
|
2015-04-22 02:33:21 +00:00
|
|
|
section
|
2015-12-28 18:30:23 +00:00
|
|
|
open [class] nat
|
2015-02-11 19:02:59 +00:00
|
|
|
definition foo3 : inhabited nat :=
|
|
|
|
_
|
|
|
|
|
|
|
|
variable a : nat
|
2015-10-14 01:35:16 +00:00
|
|
|
check a + a
|
2015-02-11 19:02:59 +00:00
|
|
|
end
|