2014-07-07 15:40:32 -07:00
|
|
|
import logic
|
|
|
|
|
|
|
|
namespace N1
|
2014-10-09 07:13:06 -07:00
|
|
|
context
|
|
|
|
context
|
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
|
2014-10-09 07:13:06 -07:00
|
|
|
context
|
2014-07-07 15:40:32 -07:00
|
|
|
parameter A : Type
|
|
|
|
inductive list : Type :=
|
2014-08-22 15:46:10 -07: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
|