OAI/SetTheory/PartitionConsistency/Algebra/ProbeMargins.lean
46 declarations, 0 contain sorry, 0 declared as axioms
Probe extension: construction and preservation of real margins
- structure
OAI.PartitionConsistency.ProbeAlgebra.HeightIntervalsline 14Source documentation
Numerical intervals for the first-letter blocks. These inequalities are constructed from the old margin below, rather than supplied for the extension.
structure HeightIntervals {M : Type u} {S : Type v} [LeftCancelMonoid M] [IsConical M] (A : Alphabet M S) (H : HeightCost (LeftDivOrder M)) where … - def
OAI.PartitionConsistency.ProbeAlgebra.Path.letterIdealline 36Source documentation
The old first-letter divisors are a bounded ideal of the old monoid.
def letterIdeal (s : P.Letters) : ConeIdeal (α := LeftDivOrder M) (P.target s) where …
- def
OAI.PartitionConsistency.ProbeAlgebra.Path.letterFloorline 49Source documentation
The supremum of the heights of all old divisors of a new letter.
noncomputable def letterFloor (s : P.Letters) : ℝ := …
- theorem
OAI.PartitionConsistency.ProbeAlgebra.Path.letter_heights_bddline 52 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Path.height_le_letterFloorline 58 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Path.letterFloor_posline 62 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Path.letterFloor_leline 65 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Path.letter_inside_costline 72Source documentation
Joining two old divisors inside the letter ideal provides the bound needed for missed divisors below an old-to-new comparison.
theorem letter_inside_cost (hM : HasConditionalJoins (LeftDivOrder M)) {s : P.Letters} {x d : M} (hx : P.InCone x s) (hd : P.InCone d s) (hdx : ¬ d ∣ x) : H.cost d ≤ P.letterFloor H s - H.height x := by … - theorem
OAI.PartitionConsistency.ProbeAlgebra.Path.target_outside_costline 88Source documentation
The height not yet used by the letter ideal controls every divisor of its target outside that ideal. The bound is uniform over the ideal.
theorem target_outside_cost {s : P.Letters} {d : M} (hd : d ∣ P.target s) (hdP : ¬ P.InCone d s) : H.cost d ≤ H.height (P.target s) - P.letterFloor H s := by … - theorem
OAI.PartitionConsistency.ProbeAlgebra.Path.target_lt_exitline 106Source documentation
The target is strictly below the exit: no right cancellation is used.
theorem target_lt_exit (s : P.Letters) : @LT.lt (LeftDivOrder M) _ (P.target s) (P.exit e s) := by … - theorem
OAI.PartitionConsistency.ProbeAlgebra.Path.exists_letter_intervalline 117Source documentation
The source's two strict interval inequalities, with a single bound for all the old outside costs.
theorem exists_letter_interval (s : P.Letters) : ∃ u δ K : ℝ, 0 < δ ∧ P.letterFloor H s + δ < u ∧ 0 ≤ K ∧ u + δ + K < H.height (P.exit e s) ∧ ∀ d : M, d ∣ P.exit e s → ¬ P.InCone d s → H.cost d ≤ K := by … - def
OAI.PartitionConsistency.ProbeAlgebra.Path.heightIntervalsline 144Source documentation
Intervals for all the new letters of this actual probe extension.
noncomputable def heightIntervals (hM : HasConditionalJoins (LeftDivOrder M)) : HeightIntervals (P.alphabet he) H := by …Mentions: OAI.PartitionConsistency.ProbeAlgebra.HeightIntervals
- def
OAI.PartitionConsistency.ProbeAlgebra.Word.OldMinimumline 172Source documentation
A least old cone containing a word's old right multiples. It is used only to choose a cost cap; the gate theorem proves its existence when needed.
def OldMinimum (w : Word A b) (g : M) : Prop := …
- theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.OldMinimum.uniqueline 175 - def
OAI.PartitionConsistency.ProbeAlgebra.Word.gateCapline 183Source documentation
The cap is the cost of the actual least old right multiple, never that of an arbitrarily larger old multiple (costs need not be monotone).
noncomputable def gateCap (w : Word A b) : ℝ := …
- theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.gateCap_posline 186 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.gateCap_le_oneline 193 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.gateCap_eqline 200 - def
OAI.PartitionConsistency.ProbeAlgebra.Word.rawHeightline 210Source documentation
Recursive heights on literal irreducibles; the same formula is harmless on unreduced strings.
noncomputable def rawHeight : Raw M S → ℝ | .old x => H.height x | .cons s w => V.offset s + V.scale s * rawHeight w /-- The recursive cost makes both the suffix scale and the old gate's cost available simultaneously. -/
Mentions: OAI.PartitionConsistency.ProbeAlgebra.Raw, OAI.PartitionConsistency.ProbeAlgebra.Word.old, OAI.PartitionConsistency.ProbeAlgebra.Word.cons, OAI.PartitionConsistency.ProbeAlgebra.Word.cost
- def
OAI.PartitionConsistency.ProbeAlgebra.Word.rawCostline 216Source documentation
The recursive cost makes both the suffix scale and the old gate's cost available simultaneously.
noncomputable def rawCost : (w : Raw M S) → w.reduced A b → ℝ | .old x, _ => H.cost x | .cons s w, hw => min (V.scale s * rawCost w hw.1) (gateCap A b H ⟨.cons s w, hw⟩)
Mentions: OAI.PartitionConsistency.ProbeAlgebra.Raw, OAI.PartitionConsistency.ProbeAlgebra.Word.old, OAI.PartitionConsistency.ProbeAlgebra.Word.cons, OAI.PartitionConsistency.ProbeAlgebra.Word.gateCap
- def
OAI.PartitionConsistency.ProbeAlgebra.Word.heightline 220 - def
OAI.PartitionConsistency.ProbeAlgebra.Word.costline 221 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.height_oldline 223 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.height_consline 224 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.cost_oldline 226 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.cost_consline 227 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.scale_lt_oneline 231 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.height_boundsline 239 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.cost_boundsline 257 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.cost_le_scaleline 268 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.cost_le_gateline 277Source documentation
Every new word's cost is at most that of its specific old gate.
theorem cost_le_gate {w : Word A b} {s : S} {g : M} (hw : head A b w = some s) (hg : Gate A b w s g) : cost A b H V w ≤ H.cost g := by …Mentions: OAI.PartitionConsistency.ProbeAlgebra.Word, OAI.PartitionConsistency.ProbeAlgebra.Word.head, OAI.PartitionConsistency.ProbeAlgebra.Word.Gate, OAI.PartitionConsistency.ProbeAlgebra.Word.cost
- theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.cost_old_factorline 285Source documentation
Any divisor of an old element has a cost-dominating old divisor with exactly the same old-multiple profile.
theorem cost_old_factor (hOld : OldIntersections A b) {w : Word A b} {y : M} (hwy : w ∣ old A b y) : ∃ g : M, OldMinimum A b w g ∧ w ∣ old A b g ∧ g ∣ y ∧ cost A b H V w ≤ H.cost g := by …Mentions: OAI.PartitionConsistency.ProbeAlgebra.Word.OldIntersections, OAI.PartitionConsistency.ProbeAlgebra.Word, OAI.PartitionConsistency.ProbeAlgebra.Word.old, OAI.PartitionConsistency.ProbeAlgebra.Word.OldMinimum, OAI.PartitionConsistency.ProbeAlgebra.Word.cost
- theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.cost_other_block_factorline 299Source documentation
The cost of an outside-block divisor is controlled by an old member of that block's letter ideal.
theorem cost_other_block_factor (hOld : OldIntersections A b) {w z : Word A b} {s : S} (hw : head A b w ≠ some s) (hz : head A b z = some s) (hwz : w ∣ z) : ∃ g : M, w ∣ old A b g ∧ old A b g ∣ z ∧ cost A b H V w ≤ H.cost g := by …Mentions: OAI.PartitionConsistency.ProbeAlgebra.Word.OldIntersections, OAI.PartitionConsistency.ProbeAlgebra.Word, OAI.PartitionConsistency.ProbeAlgebra.Word.head, OAI.PartitionConsistency.ProbeAlgebra.Word.old, OAI.PartitionConsistency.ProbeAlgebra.Word.cost
- theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.uniform_margin_oldline 326Source documentation
For old comparisons, gates dominate every new missed cost.
theorem uniform_margin_old {x y : LeftDivOrder M} (hxy : x < y) : UniformMargin (α := LeftDivOrder (Word A b)) (height A b H V) (cost A b H V) …Mentions: OAI.PartitionConsistency.ProbeAlgebra.Word, OAI.PartitionConsistency.ProbeAlgebra.Word.height, OAI.PartitionConsistency.ProbeAlgebra.Word.cost
- theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.uniform_margin_old_newline 343Source documentation
Margins from an old element into a new first-letter block: outside costs use the letter-ideal floor, inside costs use the suffix scale.
theorem uniform_margin_old_new {x : M} {w : Word A b} {s : S} (hw : head A b w = some s) (hxw : old A b x ∣ w) : UniformMargin (α := LeftDivOrder (Word A b)) (height A b H V) (cost A b H V) …Mentions: OAI.PartitionConsistency.ProbeAlgebra.Word, OAI.PartitionConsistency.ProbeAlgebra.Word.head, OAI.PartitionConsistency.ProbeAlgebra.Word.old, OAI.PartitionConsistency.ProbeAlgebra.Word.height, OAI.PartitionConsistency.ProbeAlgebra.Word.cost
- theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.uniform_margin_new_oldline 371Source documentation
Margins from a new first-letter block to an old multiple. The old gate bounds all costs without presuming that costs are monotone.
theorem uniform_margin_new_old (hb : b ≠ 1) {w : Word A b} {s : S} {y : M} (hw : head A b w = some s) (hwy : w ∣ old A b y) : UniformMargin (α := LeftDivOrder (Word A b)) (height A b H V) (cost A b H V) …Mentions: OAI.PartitionConsistency.ProbeAlgebra.Word, OAI.PartitionConsistency.ProbeAlgebra.Word.head, OAI.PartitionConsistency.ProbeAlgebra.Word.old, OAI.PartitionConsistency.ProbeAlgebra.Word.height, OAI.PartitionConsistency.ProbeAlgebra.Word.cost
- theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.cons_dvd_cons_iffline 406Source documentation
Comparisons within one block are precisely suffix comparisons.
theorem cons_dvd_cons_iff (hb : b ≠ 1) (s : S) (Y Z : Word A b) (hY hZ) : cons A b s Y hY ∣ cons A b s Z hZ ↔ Y ∣ Z := by …Mentions: OAI.PartitionConsistency.ProbeAlgebra.Word, OAI.PartitionConsistency.ProbeAlgebra.Word.cons
- theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.uniform_margin_same_headline 415Source documentation
The uniform margin in one block is the suffix margin multiplied by its positive scale. All other-block divisors divide both endpoints.
theorem uniform_margin_same_head (hb : b ≠ 1) (s : S) (Y Z : Word A b) (hY hZ) (hmargin : UniformMargin (α := LeftDivOrder (Word A b)) … - theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.new_ne_oldline 442Source documentation
Old elements and elements of a first-letter block are distinct.
theorem new_ne_old {w : Word A b} {s : S} (hw : head A b w = some s) (x : M) : w ≠ old A b x := by …Mentions: OAI.PartitionConsistency.ProbeAlgebra.Word, OAI.PartitionConsistency.ProbeAlgebra.Word.head, OAI.PartitionConsistency.ProbeAlgebra.Word.old
- theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.uniform_marginline 450Source documentation
Structural induction checks every strict comparison of irreducible words, using an intervening old gate precisely for different new blocks.
theorem uniform_margin (hb : b ≠ 1) (z : Word A b) : ∀ w : Word A b, @LT.lt (LeftDivOrder (Word A b)) _ w z → UniformMargin (α := LeftDivOrder (Word A b)) (height A b H V) (cost A b H V) w z := by …Mentions: OAI.PartitionConsistency.ProbeAlgebra.Word, OAI.PartitionConsistency.ProbeAlgebra.Word.height, OAI.PartitionConsistency.ProbeAlgebra.Word.cost
- def
OAI.PartitionConsistency.ProbeAlgebra.Word.heightCostline 494Source documentation
Extending height and cost data on the actual probe normal forms.
noncomputable def heightCost (hb : b ≠ 1) : HeightCost (LeftDivOrder (Word A b)) where …
- theorem
OAI.PartitionConsistency.ProbeAlgebra.Word.old_cost_supremumline 515Source documentation
New divisors need not have old costs equal to theirs. Nevertheless, the cost-dominating old gates preserve exactly each old missed-cost supremum.
theorem old_cost_supremum (x y : LeftDivOrder M) : sSup (cost A b H V '' {d : LeftDivOrder (Word A b) | d ≤ old A b y ∧ ¬ d ≤ old A b x}) = sSup (H.cost '' {d : LeftDivOrder M | d ≤ y ∧ ¬ d ≤ x}) := by …Mentions: OAI.PartitionConsistency.ProbeAlgebra.Word.cost, OAI.PartitionConsistency.ProbeAlgebra.Word, OAI.PartitionConsistency.ProbeAlgebra.Word.old
- def
OAI.PartitionConsistency.ProbeAlgebra.Path.extensionHeightCostline 573Source documentation
Source
lem:mono-probe-heights: admissible heights and costs on the actual indexed probe extension, constructed by its normal forms and gates.noncomputable def extensionHeightCost : HeightCost (LeftDivOrder (P.Extension he b)) := …
- theorem
OAI.PartitionConsistency.ProbeAlgebra.Path.extensionHeightCost_height_oldline 576 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Path.extensionHeightCost_cost_oldline 579 - theorem
OAI.PartitionConsistency.ProbeAlgebra.Path.extension_old_cost_supremumline 584Source documentation
The exact supremum conservativity needed at limit stages of the tower, including the case where the set of missed divisors is empty.
theorem extension_old_cost_supremum (x y : LeftDivOrder M) : sSup ((P.extensionHeightCost he b hb H hM).cost '' {d : LeftDivOrder (P.Extension he b) | d ≤ Word.old (P.alphabet he) b y ∧ ¬ d ≤ Word.old (P.alphabet he) b x}) = sSup (H.cost '' {d : LeftDivOrder M | d ≤ y ∧ ¬ d ≤ x}) := …