2014-01-08 20:34:55 +00:00
|
|
|
universe M >= 1
|
|
|
|
universe U >= M + 1
|
|
|
|
definition TypeM := (Type M)
|
2014-01-07 01:14:07 +00:00
|
|
|
universe Z ≥ M+3
|
|
|
|
(*
|
|
|
|
local env = get_environment()
|
|
|
|
assert(env:get_universe_distance("Z", "M") == 3)
|
|
|
|
assert(not env:get_universe_distance("Z", "U"))
|
|
|
|
*)
|
|
|
|
|
|
|
|
scope
|
|
|
|
universe Z ≥ U + 10
|
|
|
|
(*
|
|
|
|
local env = get_environment()
|
|
|
|
assert(env:get_universe_distance("Z", "U") == 10)
|
|
|
|
assert(env:get_universe_distance("Z", "M") ==
|
|
|
|
env:get_universe_distance("Z", "U") +
|
|
|
|
env:get_universe_distance("U", "M"))
|
|
|
|
*)
|
2014-01-09 16:33:52 +00:00
|
|
|
pop_scope
|
2014-01-07 01:14:07 +00:00
|
|
|
|
|
|
|
(*
|
|
|
|
local env = get_environment()
|
|
|
|
assert(env:get_universe_distance("Z", "M") == 3)
|
|
|
|
assert(not env:get_universe_distance("Z", "U"))
|
|
|
|
*)
|
|
|
|
|
|
|
|
universe Z1 ≥ U + 1073741824.
|
|
|
|
universe Z2 ≥ Z1 + 1073741824.
|
|
|
|
|
|
|
|
universe U1
|
|
|
|
universe U2 ≥ U1 + 1
|
|
|
|
universe U3 ≥ U1 + 1
|
|
|
|
universe U4 ≥ U2 + 1
|
|
|
|
universe U4 ≥ U3 + 3
|
|
|
|
(*
|
|
|
|
local env = get_environment()
|
|
|
|
assert(env:get_universe_distance("U4", "U1") == 4)
|
|
|
|
assert(env:get_universe_distance("U4", "U3") == 3)
|
|
|
|
assert(env:get_universe_distance("U4", "U2") == 1)
|
|
|
|
*)
|
|
|
|
universe U1 ≥ U4.
|