IdealCompression
Abstract
Priority-forest interval structure and counting.
Definition 1.1 (CodeClosed).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.CodeClosed (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
A subset is CodeClosed when it contains every index between the parent code val(t v) and each of its members v.
Definition 1.2 (IntervalForest / supportParent).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.supportParent (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The chosen parent is extracted from the existence of a parent for each support member; the displayed value projection passes that member to the forest parent function.
Theorem 1.3 (IntervalForest / supportParent_spec).
Proof. Machine-checked in Lean as D5/S3/Combinatorics/PriorityLattice/IdealCompression.supportParent_spec (✓ std3). ∎
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The quantified statement holds for every parameter satisfying its displayed hypotheses.
Definition 1.4 (IntervalForest / firstNeeded).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.firstNeeded (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
firstNeeded has value val(supportParent P v) + 1; increasing parents place this label within Fin (n + 1).
Definition 1.5 (IntervalForest / firstIndex).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.firstIndex (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
firstIndex sends i to the index, under Finset.orderIsoOfFin, of firstNeeded P applied to the support label at index i.
Definition 1.6 (IntervalForest / compressCode).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.compressCode (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
compressCode sends i to the finite code with value val(firstIndex P h i). The bound on firstIndex makes this value an element of Fin (val(i) + 1).
Definition 1.7 (IntervalForest / idealCodeOrderIso).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.idealCodeOrderIso (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The isomorphism sends a subforest to the occupied child indices in the increasing enumeration of the host support. Closed subsets preserve the interval-component condition.
Theorem 1.8 (pi_one_card).
Proof. Machine-checked in Lean as D5/S3/Combinatorics/PriorityLattice/IdealCompression.pi_one_card (✓ std3). ∎
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The quantified statement holds for every parameter satisfying its displayed hypotheses.
Theorem 1.9 (pi_two_card).
Proof. Machine-checked in Lean as D5/S3/Combinatorics/PriorityLattice/IdealCompression.pi_two_card (✓ std3). ∎
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The quantified statement holds for every parameter satisfying its displayed hypotheses.
Definition 1.10 (SmallIdealCodes / t1).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.t1 (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The defining expression is fun _ => 0.
Definition 1.11 (SmallIdealCodes / t20).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.t20 (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The defining expression is fun _ => 0.
Definition 1.12 (SmallIdealCodes / t21).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.t21 (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
t21 is the dependent identity code: val(t21 i) = val(i).
Definition 1.13 (SmallIdealCodes / t3).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.t3 (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
t3 has value 0 at index 0, value val(a) at index 1, and value val(b) at index 2.
Theorem 1.14 (SmallIdealCodes / code_one).
Proof. Machine-checked in Lean as D5/S3/Combinatorics/PriorityLattice/IdealCompression.code_one (✓ std3). ∎
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The quantified statement holds for every parameter satisfying its displayed hypotheses.
Theorem 1.15 (SmallIdealCodes / code_two).
Proof. Machine-checked in Lean as D5/S3/Combinatorics/PriorityLattice/IdealCompression.code_two (✓ std3). ∎
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The quantified statement holds for every parameter satisfying its displayed hypotheses.
Theorem 1.16 (SmallIdealCodes / code_three).
Proof. Machine-checked in Lean as D5/S3/Combinatorics/PriorityLattice/IdealCompression.code_three (✓ std3). ∎
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The quantified statement holds for every parameter satisfying its displayed hypotheses.
Theorem 1.17 (SmallIdealCodes / card_two_iff).
Proof. Machine-checked in Lean as D5/S3/Combinatorics/PriorityLattice/IdealCompression.card_two_iff (✓ std3). ∎
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The quantified statement holds for every parameter satisfying its displayed hypotheses.
Theorem 1.18 (SmallIdealCodes / card_three_iff).
Proof. Machine-checked in Lean as D5/S3/Combinatorics/PriorityLattice/IdealCompression.card_three_iff (✓ std3). ∎
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The quantified statement holds for every parameter satisfying its displayed hypotheses.
Definition 1.19 (SmallIdealCodes / twoTripleModelsIso).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.twoTripleModelsIso (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The isomorphism takes the image of each subset under the cycle sending 0 to 1, 1 to 2, and 2 to 0.
Definition 1.20 (SmallIdealCodes / pi0CodeOrderIso).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.pi0CodeOrderIso (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The displayed finite map is an order isomorphism from WithTop (IntervalForest 0) to the closed-subset carrier of t1.
Definition 1.21 (SmallIdealCodes / pi1CodeOrderIso).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.pi1CodeOrderIso (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The displayed finite map is an order isomorphism from WithTop (IntervalForest 1) to the closed-subset carrier of t20.
Definition 1.22 (SmallIdealCodes / pi2CodeOrderIso).
Formalization. D5/S3/Combinatorics/PriorityLattice/IdealCompression.pi2CodeOrderIso (✓ std3).
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The displayed finite map is an order isomorphism from WithTop (IntervalForest 2) to the closed-subset carrier of t3 0 2.
Theorem 1.23 (IntervalForest / compressCode_self_iff).
Proof. Machine-checked in Lean as D5/S3/Combinatorics/PriorityLattice/IdealCompression.compressCode_self_iff (✓ std3). ∎
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The quantified statement holds for every parameter satisfying its displayed hypotheses.
Theorem 1.24 (IntervalForest / support_adjacent_of_needed).
Proof. Machine-checked in Lean as D5/S3/Combinatorics/PriorityLattice/IdealCompression.support_adjacent_of_needed (✓ std3). ∎
Source. Repository-derived.
Acknowledgement. Adrián Lillo and Mercedes Rosas (2026). The Priority Lattice. DOI: 10.48550/arXiv.2603.28905. URL: https://arxiv.org/abs/2603.28905v1.
Commentary.
The quantified statement holds for every parameter satisfying its displayed hypotheses.
References
- Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.CodeClosed - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.card_three_iff - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.card_two_iff - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.code_one - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.code_three - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.code_two - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.compressCode - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.compressCode_self_iff - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.firstIndex - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.firstNeeded - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.idealCodeOrderIso - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.pi0CodeOrderIso - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.pi1CodeOrderIso - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.pi2CodeOrderIso - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.pi_one_card - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.pi_two_card - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.supportParent - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.supportParent_spec - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.support_adjacent_of_needed - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.t1 - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.t20 - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.t21 - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.t3 - Truth anchor:
D5/S3/Combinatorics/PriorityLattice/IdealCompression.twoTripleModelsIso - Dependency: D5/S3/Combinatorics/PriorityLattice/ForestCovers