CellML Specification: Three Questions About Release 2.0.1
Context
The
CellML 2.0 specification
is written by the CellML editors on GitHub. Every file in my
conformance corpus
sits in one of three folders: valid,
invalid or unclear. Usually the rule
decides the folder. Three times, I wasn't sure how to read it,
so I asked.
The Three Questions
1. An example that disagrees with its rule
Rule 1.3.3.2 lets a basic real number string begin with a plus
sign, and an early issue, #33, settled that the plus sign
belongs in. But an informative example for the
math element lists this as not valid:
<cn cellml:units="dimensionless">+4.0</cn> <!-- The plus sign indicator is not permitted except in e-notation exponents. -->
It's a close cousin of the examples I noted in my real numbers work. The question is whether this one should move to the valid examples.
2. How deep does rule 2.12.2 reach?
Rule 2.12.2 says each element child of a math
element must have a name listed in Table 2.1. Read literally,
it says nothing about an element deeper inside, such as
<approx/> inside an apply.
approx is Content MathML 2.0, but it isn't in
Table 2.1. libCellML and libOpenCOR both report such a file. Is
the rule meant to cover every element inside
math? An open issue, #335, comes close to this.
3. A connection with no map_variables
Rule 2.15.5 says a connection element MAY contain
one or more map_variables element children, so a
connection with none looks valid. CellML 1.1 asked for at least
one, and so did an earlier draft, quoted in #62. libCellML
reports it. Is a connection with no map_variables
meant to be valid?
My Contribution
Issue #367 asks the three questions together, with the exact source file of the example, the existing issues that come close, and an offer to split them into separate issues if that suits the editors better.
Process
- I checked every rule and quote against the specification's own source on GitHub, not only the published pages.
- I searched the existing issues first. None asks these questions, and the three that come close are named.
- Each tool message was checked again on the same day, with libCellML 0.7.2 and libOpenCOR 1.20261029.0.
What's Next
For each question, the corpus has a small file that follows my current reading. Once the editors answer, I'll move each file to match. If the text is right as it stands for the connection, the tools' outcomes become findings of their own.
Reflection
A specification is read by people and by tools. When an example and a rule disagree, two careful readers can both be right and still reach different answers. Asking is quicker and kinder than guessing, and the corpus is built to follow the answer, whichever way it goes.