2014-07-07 22:40:32 +00:00
|
|
|
import logic
|
|
|
|
|
|
|
|
namespace N1
|
|
|
|
section
|
|
|
|
section
|
|
|
|
variable A : Type
|
2014-07-22 16:43:18 +00:00
|
|
|
definition foo (a : A) : Prop := true
|
2014-07-07 22:40:32 +00:00
|
|
|
check foo
|
|
|
|
end
|
|
|
|
check foo
|
|
|
|
end
|
|
|
|
check foo
|
2014-08-07 23:59:08 +00:00
|
|
|
end N1
|
2014-07-07 22:40:32 +00:00
|
|
|
check N1.foo
|
|
|
|
|
|
|
|
namespace N2
|
|
|
|
section
|
|
|
|
parameter A : Type
|
|
|
|
inductive list : Type :=
|
2014-08-22 22:46:10 +00:00
|
|
|
nil {} : list,
|
|
|
|
cons : A → list → list
|
2014-07-07 22:40:32 +00:00
|
|
|
check list
|
|
|
|
end
|
|
|
|
check list
|
2014-08-07 23:59:08 +00:00
|
|
|
end N2
|
2014-07-07 22:40:32 +00:00
|
|
|
check N2.list
|