Specification: ZZRingElem (OSCAR v1.6-v1.8)
Profiles: OSCAR v1.6, OSCAR v1.7, OSCAR v1.8
Other versions: ZZRingElem (OSCAR v1.0-v1.5)
From OSCAR v1.6 onward, elements of ZZ are encoded as parametric typed
values that make the ambient ring explicit.
Encoding rules
- Use a typed
_typeobject withname: "ZZRingElem". - Record the ambient ring in
_type.params, typically as{"_type": "ZZRing"}. - Store the value under
dataas a decimal string.
Canonical Example Payload
The following payload is taken directly from the current rosetta-stone corpus.
{
"_ns": {"Oscar": ["https://github.com/oscar-system/Oscar.jl", "1.7.0"]},
"_type": {"name": "ZZRingElem", "params": {"_type": "ZZRing"}},
"data": "42"
}
Documented Profiles in This Corpus
This table records the profile/version pairs currently represented by the rosetta-stone examples for this data type. Add new rows as new systems or encoding revisions are documented.
| Profile | Version | Example | Root type |
|---|---|---|---|
| Oscar | 1.6.0 |
Integer in ZZ | ZZRingElem |
| Oscar | 1.7.0 |
Integer in ZZ | ZZRingElem |