2014-07-07 19:59:57 +00:00
|
|
|
import logic
|
|
|
|
|
|
|
|
namespace N1
|
|
|
|
variable num : Type.{1}
|
|
|
|
variable foo : num → num → num
|
2014-08-07 23:59:08 +00:00
|
|
|
end N1
|
2014-07-07 19:59:57 +00:00
|
|
|
|
|
|
|
namespace N2
|
|
|
|
variable val : Type.{1}
|
|
|
|
variable foo : val → val → val
|
2014-08-07 23:59:08 +00:00
|
|
|
end N2
|
2014-07-07 19:59:57 +00:00
|
|
|
|
2014-09-03 23:00:38 +00:00
|
|
|
open N2
|
|
|
|
open N1
|
2014-07-07 19:59:57 +00:00
|
|
|
variables a b : num
|
|
|
|
print raw foo a b
|
2014-09-03 23:00:38 +00:00
|
|
|
open N2
|
2014-07-07 19:59:57 +00:00
|
|
|
print raw foo a b
|
2014-09-03 23:00:38 +00:00
|
|
|
open N1
|
2014-07-07 19:59:57 +00:00
|
|
|
print raw foo a b
|
2014-09-03 23:00:38 +00:00
|
|
|
open N1
|
2014-07-07 19:59:57 +00:00
|
|
|
print raw foo a b
|
2014-09-03 23:00:38 +00:00
|
|
|
open N2
|
2014-07-07 19:59:57 +00:00
|
|
|
print raw foo a b
|