2014-07-07 22:40:32 +00:00
|
|
|
import logic
|
|
|
|
|
|
|
|
namespace N1
|
2015-04-22 02:33:21 +00:00
|
|
|
section
|
|
|
|
section
|
2014-10-02 23:20:52 +00:00
|
|
|
parameter 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
|
2015-04-22 02:33:21 +00:00
|
|
|
section
|
2014-07-07 22:40:32 +00:00
|
|
|
parameter A : Type
|
|
|
|
inductive list : Type :=
|
2015-02-26 01:00: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
|