Absolute URIs behave unexpectedly for me in MMT surface syntax. In some places, I get unbound token: http and ill-formed constant reference errors while at other places they work fine. See the (non-exhaustive) list below.
When do absolute URIs work? When do they not? How can I fix this?
The following don't work, i.e. generate the errors mentioned above:
include declarations in theories:
theory test = include http://cds.omdoc.org/urtheories?LF ❙ ❚rule directives in theories:
theory test = rule scala://api.mmt.kwarc.info?SomeClass ❙ ❚URIs in terms:
namespace http://example.com ❚ theory test = someFunction ❙ someConstant ❙ c = someFunction http://example.com?test?someConstant ❙ ❚
The following work:
namespace directives:
namespace http://cds.omdoc.org/urtheories ❚fixmeta directives at document level:
fixmeta http://cds.omdoc.org/urtheories?LF ❚rule directives at document level:
rule scala://parser.api.mmt.kwarc.info?MMTURILexer ❚