2014-07-07 15:40:32 -07:00
|
|
|
import logic
|
|
|
|
|
|
|
|
namespace N1
|
2015-04-21 19:33:21 -07:00
|
|
|
section
|
|
|
|
section
|
2014-10-02 16:20:52 -07:00
|
|
|
parameter A : Type
|
2014-07-22 09:43:18 -07:00
|
|
|
definition foo (a : A) : Prop := true
|
2014-07-07 15:40:32 -07:00
|
|
|
check foo
|
|
|
|
end
|
|
|
|
check foo
|
|
|
|
end
|
|
|
|
check foo
|
2014-08-07 16:59:08 -07:00
|
|
|
end N1
|
2014-07-07 15:40:32 -07:00
|
|
|
check N1.foo
|
|
|
|
|
|
|
|
namespace N2
|
2015-04-21 19:33:21 -07:00
|
|
|
section
|
2014-07-07 15:40:32 -07:00
|
|
|
parameter A : Type
|
|
|
|
inductive list : Type :=
|
2015-02-25 17:00:10 -08:00
|
|
|
| nil {} : list
|
|
|
|
| cons : A → list → list
|
2014-07-07 15:40:32 -07:00
|
|
|
check list
|
|
|
|
end
|
|
|
|
check list
|
2014-08-07 16:59:08 -07:00
|
|
|
end N2
|
2014-07-07 15:40:32 -07:00
|
|
|
check N2.list
|