Specification: Matroids
Profiles: OSCAR v1.2, OSCAR v1.3, OSCAR v1.4, OSCAR v1.5, OSCAR v1.6, OSCAR v1.7, OSCAR v1.8
Matroid is currently documented in the OSCAR v1.7 profile through the rosetta-stone corpus. This page records the present encoding shape and should be read as a profile-specific type description.
Encoding Notes
- Set
_typeto"Matroid"when this type appears at the root of a serialized object. - Interpret the payload under
dataaccording to the active namespace and profile version. - Follow the linked examples for the currently documented payload shape and referenced ambient objects.
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": "Matroid",
"data": {
"matroid": {
"BASES": [
[1, 5, 6],
[2, 5, 6],
[3, 5, 6],
[4, 5, 6],
[0, 4, 6],
[2, 4, 6],
[3, 4, 6],
[0, 3, 6],
[1, 3, 6],
[0, 2, 6],
[1, 2, 6],
[0, 1, 6],
[0, 4, 5],
[1, 4, 5],
[3, 4, 5],
[0, 3, 5],
[2, 3, 5],
[0, 2, 5],
[1, 2, 5],
[0, 1, 5],
[1, 3, 4],
[2, 3, 4],
[0, 2, 4],
[1, 2, 4],
[0, 1, 4],
[0, 2, 3],
[1, 2, 3],
[0, 1, 3]
],
"_type": "matroid::Matroid",
"_ns": {"polymake": ["https://polymake.org", "4.15"]},
"N_ELEMENTS": 7
},
"groundset": ["1", "2", "3", "4", "5", "6", "7"],
"gs2num": {"5": "5", "4": "4", "6": "6", "7": "7", "2": "2", "3": "3", "1": "1"}
}
}
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.2.2 |
Fano matroid | Matroid |
| Oscar | 1.2.2 |
Uniform matroid | Matroid |
| Oscar | 1.3.1 |
Fano matroid | Matroid |
| Oscar | 1.3.1 |
Uniform matroid | Matroid |
| Oscar | 1.4.1 |
Fano matroid | Matroid |
| Oscar | 1.4.1 |
Uniform matroid | Matroid |
| Oscar | 1.5.1 |
Fano matroid | Matroid |
| Oscar | 1.5.1 |
Uniform matroid | Matroid |
| Oscar | 1.6.0 |
Fano matroid | Matroid |
| Oscar | 1.6.0 |
Uniform matroid | Matroid |
| Oscar | 1.7.0 |
Fano matroid | Matroid |
| Oscar | 1.7.0 |
Uniform matroid | Matroid |