Documentation

LeanPool.TrilinearHilbertTransform.Auto.Sec122DecreasingColorsHistoricalMasks

Section 12.2: Decreasing colors and historical masks #

This file was automatically generated by Claude.

Formalization of blueprint Section 12, "Curvature localization" (sec:localization), subsection 2, "Decreasing colors and historical masks" (lines 1712-1795) of blueprint/formalization_blueprint.tex.

structure TrilinearHT.Auto.ColorSetup (V : Type u_1) :
Type u_1

The data of the coloring (blueprint lines 1714-1728): graph distances, the parameters d₀, b₁, b₂ and the primary and high delay arrays (one per round), with values in [0, d₀].

  • dist : DepthDistance V

    Depth-dependent distance used to compare chart labels.

  • d0 : ℕ

    Number of coloring rounds and bound for each delay value.

  • b1 : ℕ

    Distance scale dividing graph distances in the primary score.

  • b2 : ℕ

    Distance scale dividing graph distances in the high score.

  • Dp : Fin self.d0 → V → ℕ

    Primary delay assigned to each label in each round.

  • Dh : Fin self.d0 → V → ℕ

    High delay assigned to each label in each round.

  • Dp_le (ρ : Fin self.d0) (v : V) : self.Dp ρ v ≤ self.d0
  • Dh_le (ρ : Fin self.d0) (v : V) : self.Dh ρ v ≤ self.d0
Instances For
    noncomputable def TrilinearHT.Auto.ColorSetup.psc {V : Type u_1} (K : ColorSetup V) (s : ℤ) (ρ : Fin K.d0) (v z : V) :

    The primary score D_z - ⌊d_s(z,v)/b₁⌋ of z at the center v (distance quotients capped at d₀ + 6, which does not affect top scores or gaps).

    Equations
    Instances For
      noncomputable def TrilinearHT.Auto.ColorSetup.roundSig {V : Type u_1} {n : ℕ} (X : Finset V) (sc : Fin n → V → ℤ) :
      Fin n → (V → Prop) × ℤ

      The signature of a family of rounds: the winner predicates and the top scores.

      Equations
      Instances For
        noncomputable def TrilinearHT.Auto.ColorSetup.sigData {V : Type u_1} {n : ℕ} (σ : Fin n → (V → Prop) × ℤ) :

        The first marked round, its winner and its top score.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem TrilinearHT.Auto.ColorSetup.sigData_spec {V : Type u_1} {n : ℕ} {X : Finset V} {sc : Fin n → V → ℤ} {ρ : Fin n} {z : V} {g : ℤ} (h : sigData (roundSig X sc) = some (ρ, z, g)) :
          RoundWinner X (sc ρ) z ∧ g = roundTop X (sc ρ) ∧ ∀ ρ' < ρ, ¬RoundMarked X (sc ρ')
          theorem TrilinearHT.Auto.ColorSetup.sigData_none {V : Type u_1} {n : ℕ} {X : Finset V} {sc : Fin n → V → ℤ} (h : sigData (roundSig X sc) = none) (ρ : Fin n) :
          ¬RoundMarked X (sc ρ)
          noncomputable def TrilinearHT.Auto.ColorSetup.prim {V : Type u_1} (K : ColorSetup V) (A : AdmState V) (v : V) :

          The primary data (round, winner z, top score g) of the center v at a state.

          Equations
          Instances For
            noncomputable def TrilinearHT.Auto.ColorSetup.prof {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (z : V) (W : Finset V) (a : V) (s' : ℤ) :

            The rival profile f_a(s') = max_{w ∈ W∖{z}} (b₁ D_w - d_{s'}(w,a)) (-∞ when empty or at infinite distance).

            Equations
            Instances For
              noncomputable def TrilinearHT.Auto.ColorSetup.Tl {V : Type u_1} (K : ColorSetup V) (g : ℤ) (l : ℕ) :

              The lower clipping level T_l = (g - 3) b₁ + l b₁/(2 d₀).

              Equations
              Instances For
                noncomputable def TrilinearHT.Auto.ColorSetup.Ul {V : Type u_1} (K : ColorSetup V) (g : ℤ) :

                The upper clipping level U = (g - 2) b₁.

                Equations
                Instances For
                  noncomputable def TrilinearHT.Auto.ColorSetup.Rl {V : Type u_1} (K : ColorSetup V) (l : ℕ) :

                  The ball radius R_l = 10 l (d₀ + 1) b₂.

                  Equations
                  Instances For
                    noncomputable def TrilinearHT.Auto.ColorSetup.lowMet {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) (l : ℕ) (a b : V) :

                    The fixed pseudometric d^{(l)}(a,b) = sup_{s'} |C_l(f_a(s')) - C_l(f_b(s'))| of a context.

                    Equations
                    Instances For
                      noncomputable def TrilinearHT.Auto.ColorSetup.ballVec {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W X : Finset V) (v : V) (l : ℕ) :

                      The floor logarithms of the sizes of the balls B_{d^{(l)}}(v, R_l) on the present list.

                      Equations
                      Instances For
                        noncomputable def TrilinearHT.Auto.ColorSetup.ballSel {V : Type u_1} (K : ColorSetup V) (vec : ℕ → ℕ) :

                        The least 1 ≤ l < d₀ whose two consecutive balls have the same floor logarithm, and that common value n (placeholder (0,0) on failure).

                        Equations
                        Instances For
                          noncomputable def TrilinearHT.Auto.ColorSetup.hsc {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) (l : ℕ) (v : V) (ρ' : Fin K.d0) (a : V) :

                          The high score E_a - ⌊d^{(l+1)}(a,v)/b₂⌋ (capped at d₀ + 6).

                          Equations
                          Instances For
                            noncomputable def TrilinearHT.Auto.ColorSetup.colorData {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (A : AdmState V) (v : V) :

                            The complete color data at a state: primary data, cohort level, ball selection and high data (winners included).

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              theorem TrilinearHT.Auto.sum_toNat_mono_eq {ι : Type u_1} (s : Finset ι) (f g : ι → ℤ) (h0 : ∀ i ∈ s, 0 ≤ f i) (hle : ∀ i ∈ s, f i ≤ g i) :
                              ∑ i ∈ s, (f i).toNat ≤ ∑ i ∈ s, (g i).toNat ∧ (∑ i ∈ s, (f i).toNat = ∑ i ∈ s, (g i).toNat → ∀ i ∈ s, f i = g i)
                              theorem TrilinearHT.Auto.sum_nat_mono_eq {ι : Type u_1} (s : Finset ι) (f g : ι → ℕ) (hle : ∀ i ∈ s, f i ≤ g i) :
                              ∑ i ∈ s, f i ≤ ∑ i ∈ s, g i ∧ (∑ i ∈ s, f i = ∑ i ∈ s, g i → ∀ i ∈ s, f i = g i)
                              theorem TrilinearHT.Auto.ColorSetup.psc_mono {V : Type u_1} (K : ColorSetup V) {s s' : ℤ} (h : s ≤ s') (ρ : Fin K.d0) (v z : V) :
                              K.psc s ρ v z ≤ K.psc s' ρ v z
                              theorem TrilinearHT.Auto.ColorSetup.psc_self {V : Type u_1} (K : ColorSetup V) (s : ℤ) (ρ : Fin K.d0) (v : V) :
                              K.psc s ρ v v = ↑(K.Dp ρ v)
                              theorem TrilinearHT.Auto.ColorSetup.roundSig_congr {V : Type u_1} {n : ℕ} {X X' : Finset V} {sc sc' : Fin n → V → ℤ} (h : ∀ (ρ : Fin n), roundTop X (sc ρ) = roundTop X' (sc' ρ) ∧ ∀ (z : V), RoundWinner X (sc ρ) z ↔ RoundWinner X' (sc' ρ) z) :
                              roundSig X sc = roundSig X' sc'
                              noncomputable def TrilinearHT.Auto.ColorSetup.pot1 {V : Type u_1} (K : ColorSetup V) (A : AdmState V) (v : V) :

                              The first potential: the sum over primary rounds of the round potentials.

                              Equations
                              Instances For
                                theorem TrilinearHT.Auto.ColorSetup.roundPot_psc_nonneg {V : Type u_1} (K : ColorSetup V) (A : AdmState V) {v : V} (hv : v ∈ A.X) (ρ : Fin K.d0) :
                                0 ≤ roundPot A.X (K.psc A.s ρ v)
                                theorem TrilinearHT.Auto.ColorSetup.pot1_mono {V : Type u_1} (K : ColorSetup V) {A A' : AdmState V} (h : A.Le A') {v : V} (hv : v ∈ A.X) :
                                K.pot1 A v ≤ K.pot1 A' v ∧ (K.pot1 A v = K.pot1 A' v → K.prim A v = K.prim A' v)
                                theorem TrilinearHT.Auto.ColorSetup.prim_winner {V : Type u_1} (K : ColorSetup V) {A : AdmState V} {v : V} {ρ : Fin K.d0} {z : V} {g : ℤ} (h : K.prim A v = some (ρ, z, g)) :
                                z ∈ A.X
                                noncomputable def TrilinearHT.Auto.ColorSetup.pot2 {V : Type u_1} (K : ColorSetup V) (A : AdmState V) (v : V) :

                                The second potential: the cohort level.

                                Equations
                                Instances For
                                  theorem TrilinearHT.Auto.ColorSetup.admLevel_mono {V : Type u_1} {A A' : AdmState V} (hA : A.WF) (h : A.Le A') {z : V} (hz : z ∈ A.X) :
                                  theorem TrilinearHT.Auto.ColorSetup.admFrozen_eq {V : Type u_1} {A A' : AdmState V} (hA : A.WF) (hA' : A'.WF) (h : A.Le A') {z : V} (hz : z ∈ A.X) (hl : admLevel A z = admLevel A' z) :
                                  noncomputable def TrilinearHT.Auto.ColorSetup.pot3 {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (A : AdmState V) (v : V) :

                                  The third potential: the total floor-logarithm of the ball sizes.

                                  Equations
                                  Instances For
                                    theorem TrilinearHT.Auto.ColorSetup.ballVec_mono {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) {X X' : Finset V} (h : X ⊆ X') (v : V) (l : ℕ) :
                                    K.ballVec ρ g z W X v l ≤ K.ballVec ρ g z W X' v l
                                    theorem TrilinearHT.Auto.ColorSetup.ballSel_congr {V : Type u_1} (K : ColorSetup V) {vec vec' : ℕ → ℕ} (h : ∀ (l : ℕ), 1 ≤ l → l ≤ K.d0 → vec l = vec' l) :
                                    K.ballSel vec = K.ballSel vec'
                                    noncomputable def TrilinearHT.Auto.ColorSetup.pot4 {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (A : AdmState V) (v : V) :

                                    The fourth potential: the sum over high rounds of the round potentials.

                                    Equations
                                    • One or more equations did not get rendered due to their size.
                                    Instances For
                                      theorem TrilinearHT.Auto.ColorSetup.lowMet_self {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) (l : ℕ) (a : V) :
                                      K.lowMet ρ g z W l a a = 0
                                      theorem TrilinearHT.Auto.ColorSetup.hsc_self {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) (l : ℕ) (v : V) (ρ' : Fin K.d0) :
                                      K.hsc ρ g z W l v ρ' v = ↑(K.Dh ρ' v)
                                      theorem TrilinearHT.Auto.ColorSetup.roundPot_hsc_nonneg {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) (l : ℕ) {X : Finset V} {v : V} (hv : v ∈ X) (ρ' : Fin K.d0) :
                                      0 ≤ roundPot X (K.hsc ρ g z W l v ρ')
                                      theorem TrilinearHT.Auto.lex_step {a a' b b' B : ℕ} (hb : b ≤ B) (h1 : a ≤ a') (h2 : a = a' → b ≤ b') :
                                      a * (B + 1) + b ≤ a' * (B + 1) + b' ∧ (a * (B + 1) + b = a' * (B + 1) + b' → a = a' ∧ b = b')
                                      noncomputable def TrilinearHT.Auto.ColorSetup.potential {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (B₂ B₃ B₄ : ℕ) (A : AdmState V) (v : V) :

                                      The lexicographic potential of the color data, with bounds B₂, B₃, B₄ on the last three coordinates.

                                      Equations
                                      Instances For
                                        theorem TrilinearHT.Auto.ColorSetup.potential_step {V : Type u_1} [DecidableEq V] (K : ColorSetup V) {B₂ B₃ B₄ : ℕ} {A A' : AdmState V} (hA : A.WF) (hA' : A'.WF) (h : A.Le A') {v : V} (hv : v ∈ A.X) (hb : K.pot2 A v ≤ B₂ ∧ K.pot3 A v ≤ B₃ ∧ K.pot4 A v ≤ B₄) :
                                        K.potential B₂ B₃ B₄ A v ≤ K.potential B₂ B₃ B₄ A' v ∧ (K.potential B₂ B₃ B₄ A v = K.potential B₂ B₃ B₄ A' v → K.colorData A v = K.colorData A' v)

                                        One step along a path: the potential does not decrease, and if it stays constant then the complete color data (including both winners) are unchanged.

                                        theorem TrilinearHT.Auto.roundPot_toNat_le {V : Type u_1} {X : Finset V} (hX : X.Nonempty) {sc : V → ℤ} {c : ℤ} (h : ∀ z ∈ X, sc z ≤ c) :
                                        (roundPot X sc).toNat ≤ (2 * c + 1).toNat
                                        theorem TrilinearHT.Auto.ColorSetup.pot1_le {V : Type u_1} (K : ColorSetup V) {A : AdmState V} {v : V} (hv : v ∈ A.X) :
                                        K.pot1 A v ≤ K.d0 * (2 * K.d0 + 1)
                                        theorem TrilinearHT.Auto.ColorSetup.pot2_le {V : Type u_1} (K : ColorSetup V) {A : AdmState V} (hA : A.WF) {Nv : ℕ} (hN : A.X.card ≤ Nv) (v : V) :
                                        K.pot2 A v ≤ Nv.size
                                        theorem TrilinearHT.Auto.ColorSetup.pot3_le {V : Type u_1} [DecidableEq V] (K : ColorSetup V) {A : AdmState V} {Nv : ℕ} (hN : A.X.card ≤ Nv) (v : V) :
                                        K.pot3 A v ≤ K.d0 * flog32 Nv
                                        theorem TrilinearHT.Auto.ColorSetup.pot4_le {V : Type u_1} [DecidableEq V] (K : ColorSetup V) {A : AdmState V} {v : V} (hv : v ∈ A.X) :
                                        K.pot4 A v ≤ K.d0 * (2 * K.d0 + 1)

                                        The maximal value of the potential.

                                        Equations
                                        Instances For
                                          theorem TrilinearHT.Auto.ColorSetup.potential_le {V : Type u_1} [DecidableEq V] (K : ColorSetup V) {A : AdmState V} (hA : A.WF) {Nv : ℕ} (hN : A.X.card ≤ Nv) {v : V} (hv : v ∈ A.X) :
                                          K.potential Nv.size (K.d0 * flog32 Nv) (K.d0 * (2 * K.d0 + 1)) A v < K.potMax Nv
                                          structure TrilinearHT.Auto.AdmTree (V : Type u_1) :
                                          Type (max u_1 (u_2 + 1))

                                          A dyadic tree of cells with admission lists (blueprint §12.1-12.2): parents, heights above a virtual top level (where lists are empty), depths and present lists with admission positions; lists extend along every path.

                                          • Cell : Type u_2

                                            Cell type of the abstract tree of admissible states.

                                          • par : self.Cell → self.Cell

                                            Parent cell in the admissible-state tree.

                                          • ht : self.Cell → ℕ

                                            Natural-number height above the top of the tree.

                                          • ht_par (I : self.Cell) : 0 < self.ht I → self.ht (self.par I) + 1 = self.ht I
                                          • depth : self.Cell → ℤ

                                            Integer depth associated with each tree cell.

                                          • X : self.Cell → Finset V

                                            Finite set of labels present at each tree cell.

                                          • pos : self.Cell → V → ℕ

                                            Position of each label in the finite list at a tree cell.

                                          • X_top (I : self.Cell) : self.ht I = 0 → self.X I = ∅
                                          • le_par (I : self.Cell) : { s := self.depth (self.par I), X := self.X (self.par I), pos := self.pos (self.par I) }.Le { s := self.depth I, X := self.X I, pos := self.pos I }
                                          • wf (I : self.Cell) : { s := self.depth I, X := self.X I, pos := self.pos I }.WF
                                          Instances For
                                            def TrilinearHT.Auto.AdmTree.st {V : Type u_1} (T : AdmTree V) (I : T.Cell) :

                                            The admission state of a cell.

                                            Equations
                                            Instances For
                                              theorem TrilinearHT.Auto.AdmTree.st_wf {V : Type u_1} (T : AdmTree V) (I : T.Cell) :
                                              (T.st I).WF
                                              theorem TrilinearHT.Auto.AdmTree.st_le_par {V : Type u_1} (T : AdmTree V) (I : T.Cell) :
                                              (T.st (T.par I)).Le (T.st I)
                                              noncomputable def TrilinearHT.Auto.ColorSetup.chgN {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) :
                                              ℕ → T.Cell → V → ℕ

                                              The number of changes of the color data of v along the last n ancestors of I.

                                              Equations
                                              Instances For
                                                noncomputable def TrilinearHT.Auto.ColorSetup.changes {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) (I : T.Cell) (v : V) :

                                                The number of changes of the color data of v along the whole ancestor path of I.

                                                Equations
                                                Instances For
                                                  theorem TrilinearHT.Auto.ColorSetup.chgN_eq_zero {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) (n : ℕ) {I : T.Cell} {v : V} (hv : v ∉ T.X I) :
                                                  K.chgN T n I v = 0
                                                  theorem TrilinearHT.Auto.ColorSetup.chgN_le {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {Nv : ℕ} (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) (n : ℕ) {I : T.Cell} {v : V} (hv : v ∈ T.X I) :
                                                  K.chgN T n I v ≤ K.potential Nv.size (K.d0 * flog32 Nv) (K.d0 * (2 * K.d0 + 1)) (T.st I) v

                                                  The number of changes is bounded by the potential.

                                                  theorem TrilinearHT.Auto.radix_step_inj {R a b c d : ℕ} (hb : b < R) (hd : d < R) (h : a * R + b = c * R + d) :
                                                  a = c ∧ b = d
                                                  theorem TrilinearHT.Auto.radix_step_lt {R a b A : ℕ} (ha : a < A) (hb : b < R) :
                                                  a * R + b < A * R

                                                  The code of a round datum, forgetting the winner: 0 on failure, else 1 + ρ + d₀ g.

                                                  Equations
                                                  Instances For

                                                    The color metadata (blueprint line 1728): the primary round and g, the cohort level, l and n, and the high round and g₂; winners are not part of the metadata.

                                                    Equations
                                                    Instances For

                                                      The radix of the metadata encoding.

                                                      Equations
                                                      Instances For
                                                        def TrilinearHT.Auto.ColorSetup.metaCode {V : Type u_1} (K : ColorSetup V) (Nv : ℕ) (c : Option (Fin K.d0 × V × ℤ) × ℕ × (ℕ × ℕ) × Option (Fin K.d0 × V × ℤ)) :

                                                        The metadata encoding.

                                                        Equations
                                                        Instances For
                                                          def TrilinearHT.Auto.ColorSetup.DataOK {V : Type u_1} (K : ColorSetup V) (Nv : ℕ) (c : Option (Fin K.d0 × V × ℤ) × ℕ × (ℕ × ℕ) × Option (Fin K.d0 × V × ℤ)) :

                                                          The admissible range of the color data: top scores in [0, d₀] and bounded indices.

                                                          Equations
                                                          Instances For
                                                            theorem TrilinearHT.Auto.ColorSetup.roundCode_lt {V : Type u_1} (K : ColorSetup V) {Nv : ℕ} {t : Option (Fin K.d0 × V × ℤ)} (h : ∀ u ∈ t, 0 ≤ u.2.2 ∧ u.2.2 ≤ ↑K.d0) :
                                                            K.roundCode t < K.radix Nv
                                                            theorem TrilinearHT.Auto.ColorSetup.roundCode_inj {V : Type u_1} (K : ColorSetup V) {t t' : Option (Fin K.d0 × V × ℤ)} (h : ∀ u ∈ t, 0 ≤ u.2.2 ∧ u.2.2 ≤ ↑K.d0) (h' : ∀ u ∈ t', 0 ≤ u.2.2 ∧ u.2.2 ≤ ↑K.d0) (he : K.roundCode t = K.roundCode t') :
                                                            Option.map (fun (u : Fin K.d0 × V × ℤ) => (u.1, u.2.2)) t = Option.map (fun (u : Fin K.d0 × V × ℤ) => (u.1, u.2.2)) t'
                                                            theorem TrilinearHT.Auto.ColorSetup.metaCode_lt {V : Type u_1} (K : ColorSetup V) {Nv : ℕ} {c : Option (Fin K.d0 × V × ℤ) × ℕ × (ℕ × ℕ) × Option (Fin K.d0 × V × ℤ)} (h : K.DataOK Nv c) :
                                                            K.metaCode Nv c < K.radix Nv ^ 5
                                                            theorem TrilinearHT.Auto.ColorSetup.metaCode_inj {V : Type u_1} (K : ColorSetup V) {Nv : ℕ} {c c' : Option (Fin K.d0 × V × ℤ) × ℕ × (ℕ × ℕ) × Option (Fin K.d0 × V × ℤ)} (h : K.DataOK Nv c) (h' : K.DataOK Nv c') (he : K.metaCode Nv c = K.metaCode Nv c') :
                                                            K.metaKey c = K.metaKey c'
                                                            theorem TrilinearHT.Auto.ColorSetup.roundTop_psc_mem {V : Type u_1} (K : ColorSetup V) {A : AdmState V} {v : V} (hv : v ∈ A.X) (ρ : Fin K.d0) :
                                                            0 ≤ roundTop A.X (K.psc A.s ρ v) ∧ roundTop A.X (K.psc A.s ρ v) ≤ ↑K.d0
                                                            theorem TrilinearHT.Auto.ColorSetup.roundTop_hsc_mem {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) (l : ℕ) {X : Finset V} {v : V} (hv : v ∈ X) (ρ' : Fin K.d0) :
                                                            0 ≤ roundTop X (K.hsc ρ g z W l v ρ') ∧ roundTop X (K.hsc ρ g z W l v ρ') ≤ ↑K.d0
                                                            theorem TrilinearHT.Auto.ColorSetup.ballSel_le {V : Type u_1} (K : ColorSetup V) (vec : ℕ → ℕ) {Nv : ℕ} (hv : ∀ (l : ℕ), vec l ≤ Nv) :
                                                            (K.ballSel vec).1 ≤ K.d0 ∧ (K.ballSel vec).2 ≤ Nv
                                                            theorem TrilinearHT.Auto.ColorSetup.dataOK {V : Type u_1} [DecidableEq V] (K : ColorSetup V) {A : AdmState V} (hA : A.WF) {Nv : ℕ} (hN : A.X.card ≤ Nv) {v : V} (hv : v ∈ A.X) :
                                                            K.DataOK Nv (K.colorData A v)
                                                            theorem TrilinearHT.Auto.ColorSetup.changes_par {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {I : T.Cell} {v : V} (hv : v ∈ T.X I) :
                                                            K.changes T I v = K.changes T (T.par I) v + if v ∈ T.X (T.par I) ∧ K.colorData (T.st (T.par I)) v ≠ K.colorData (T.st I) v then 1 else 0
                                                            theorem TrilinearHT.Auto.ColorSetup.changes_lt {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {Nv : ℕ} (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) {I : T.Cell} {v : V} (hv : v ∈ T.X I) :
                                                            K.changes T I v < K.potMax Nv
                                                            noncomputable def TrilinearHT.Auto.ColorSetup.color {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) (Nv : ℕ) (I : T.Cell) (v : V) :

                                                            The color of v at I (blueprint line 1728): a change counter, decremented at every change of the color data along the path, followed by the encoded metadata.

                                                            Equations
                                                            Instances For

                                                              The number of colors.

                                                              Equations
                                                              Instances For
                                                                theorem TrilinearHT.Auto.ColorSetup.color_mem {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {Nv : ℕ} (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) {I : T.Cell} {v : V} (hv : v ∈ T.X I) :
                                                                1 ≤ K.color T Nv I v ∧ K.color T Nv I v ≤ K.numColors Nv
                                                                theorem TrilinearHT.Auto.ColorSetup.color_anti {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {Nv : ℕ} (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) {I : T.Cell} {v : V} (hv : v ∈ T.X (T.par I)) :
                                                                K.color T Nv I v ≤ K.color T Nv (T.par I) v

                                                                Colors do not increase along a path (blueprint line 1730).

                                                                theorem TrilinearHT.Auto.ColorSetup.metaKey_eq_of_color_eq {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {Nv : ℕ} (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) {I J : T.Cell} {v w : V} (hv : v ∈ T.X I) (hw : w ∈ T.X J) (he : K.color T Nv I v = K.color T Nv J w) :
                                                                K.metaKey (K.colorData (T.st I) v) = K.metaKey (K.colorData (T.st J) w)

                                                                Equal colors have equal metadata (blueprint line 1728).

                                                                Profiles and the context pseudometrics #

                                                                theorem TrilinearHT.Auto.clipW_le_add {T U : ℝ} (hTU : T ≤ U) {x y : WithBot ℤ} {δ : ℕ} (h : x ≤ y + ↑↑δ) :
                                                                clipW T U x ≤ clipW T U y + ↑δ

                                                                Clipping with a shift: x ≤ y + δ gives C(x) ≤ C(y) + δ.

                                                                theorem TrilinearHT.Auto.abs_clipW_sub_le_of {T U : ℝ} (hTU : T ≤ U) {x y : WithBot ℤ} {δ : ℕ} (h1 : x ≤ y + ↑↑δ) (h2 : y ≤ x + ↑↑δ) :
                                                                |clipW T U x - clipW T U y| ≤ ↑δ
                                                                theorem TrilinearHT.Auto.clipW_succ {T T' U : ℝ} (hT : T ≤ T') (hT' : T' ≤ U) (x : WithBot ℤ) :
                                                                clipW T' U x = min U (max T' (clipW T U x))

                                                                Clipping a clipped value again to a smaller range.

                                                                noncomputable def TrilinearHT.Auto.ColorSetup.profTerm {V : Type u_1} (K : ColorSetup V) (ρ : Fin K.d0) (s' : ℤ) (w a : V) :

                                                                One term of a profile.

                                                                Equations
                                                                Instances For
                                                                  theorem TrilinearHT.Auto.ColorSetup.prof_eq {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (z : V) (W : Finset V) (a : V) (s' : ℤ) :
                                                                  K.prof ρ z W a s' = (W.erase z).sup fun (w : V) => K.profTerm ρ s' w a
                                                                  theorem TrilinearHT.Auto.ColorSetup.profTerm_mono {V : Type u_1} (K : ColorSetup V) (ρ : Fin K.d0) {s s' : ℤ} (h : s ≤ s') (w a : V) :
                                                                  K.profTerm ρ s w a ≤ K.profTerm ρ s' w a
                                                                  theorem TrilinearHT.Auto.ColorSetup.prof_mono {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (z : V) (W : Finset V) (a : V) {s s' : ℤ} (h : s ≤ s') :
                                                                  K.prof ρ z W a s ≤ K.prof ρ z W a s'

                                                                  Profiles increase with depth.

                                                                  theorem TrilinearHT.Auto.ColorSetup.profTerm_le_add {V : Type u_1} (K : ColorSetup V) (ρ : Fin K.d0) (s : ℤ) (w a b : V) {δ : ℕ} (hab : K.dist.d s a b = ↑δ) :
                                                                  K.profTerm ρ s w a ≤ K.profTerm ρ s w b + ↑↑δ
                                                                  theorem TrilinearHT.Auto.ColorSetup.prof_le_add {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (z : V) (W : Finset V) (s : ℤ) {a b : V} {δ : ℕ} (hab : K.dist.d s a b = ↑δ) :
                                                                  K.prof ρ z W a s ≤ K.prof ρ z W b s + ↑↑δ

                                                                  Profiles are 1-Lipschitz in the vertex for the graph distance at the same depth.

                                                                  theorem TrilinearHT.Auto.ColorSetup.profTerm_le_prof {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) {z : V} {W : Finset V} {w : V} (hw : w ∈ W) (hwz : w ≠ z) (a : V) (s : ℤ) :
                                                                  K.profTerm ρ s w a ≤ K.prof ρ z W a s
                                                                  noncomputable def TrilinearHT.Auto.ColorSetup.clipDiff {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) (l : ℕ) (a b : V) (s' : ℤ) :

                                                                  The clipped profile difference whose supremum defines the context pseudometric.

                                                                  Equations
                                                                  Instances For
                                                                    theorem TrilinearHT.Auto.ColorSetup.Tl_le_Ul {V : Type u_1} (K : ColorSetup V) (g : ℤ) {l : ℕ} (hl : l ≤ 2 * K.d0) :
                                                                    K.Tl g l ≤ K.Ul g
                                                                    theorem TrilinearHT.Auto.ColorSetup.clipDiff_le {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) {l : ℕ} (hl : l ≤ 2 * K.d0) (a b : V) (s' : ℤ) :
                                                                    K.clipDiff ρ g z W l a b s' ≤ K.Ul g - K.Tl g l
                                                                    theorem TrilinearHT.Auto.ColorSetup.lowMet_eq {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) (l : ℕ) (a b : V) :
                                                                    K.lowMet ρ g z W l a b = ⨆ (s' : ℤ), K.clipDiff ρ g z W l a b s'
                                                                    theorem TrilinearHT.Auto.ColorSetup.clipDiff_le_lowMet {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) {l : ℕ} (hl : l ≤ 2 * K.d0) (a b : V) (s' : ℤ) :
                                                                    K.clipDiff ρ g z W l a b s' ≤ K.lowMet ρ g z W l a b
                                                                    theorem TrilinearHT.Auto.ColorSetup.lowMet_le_of {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) (l : ℕ) (a b : V) {c : ℝ} (h : ∀ (s' : ℤ), K.clipDiff ρ g z W l a b s' ≤ c) :
                                                                    K.lowMet ρ g z W l a b ≤ c
                                                                    theorem TrilinearHT.Auto.ColorSetup.lowMet_nonneg {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) {l : ℕ} (hl : l ≤ 2 * K.d0) (a b : V) :
                                                                    0 ≤ K.lowMet ρ g z W l a b
                                                                    theorem TrilinearHT.Auto.ColorSetup.lowMet_symm {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) (l : ℕ) (a b : V) :
                                                                    K.lowMet ρ g z W l a b = K.lowMet ρ g z W l b a
                                                                    theorem TrilinearHT.Auto.ColorSetup.lowMet_triangle {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) {l : ℕ} (hl : l ≤ 2 * K.d0) (a b c : V) :
                                                                    K.lowMet ρ g z W l a c ≤ K.lowMet ρ g z W l a b + K.lowMet ρ g z W l b c
                                                                    theorem TrilinearHT.Auto.ColorSetup.lowMet_succ_le {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) {l : ℕ} (hl : l + 1 ≤ 2 * K.d0) (a b : V) :
                                                                    K.lowMet ρ g z W (l + 1) a b ≤ K.lowMet ρ g z W l a b

                                                                    The pseudometrics decrease in l (blueprint line 1738).

                                                                    Historical masks (blueprint lines 1748-1771) #

                                                                    def TrilinearHT.Auto.AdmTree.Anc {V : Type u_1} (T : AdmTree V) (I₀ I : T.Cell) :

                                                                    I₀ is an ancestor of I (or I itself).

                                                                    Equations
                                                                    Instances For
                                                                      theorem TrilinearHT.Auto.AdmTree.anc_le {V : Type u_1} (T : AdmTree V) {I₀ I : T.Cell} (h : T.Anc I₀ I) :
                                                                      (T.st I₀).Le (T.st I)
                                                                      theorem TrilinearHT.Auto.AdmTree.anc_refl {V : Type u_1} (T : AdmTree V) (I : T.Cell) :
                                                                      T.Anc I I
                                                                      theorem TrilinearHT.Auto.AdmTree.anc_trans {V : Type u_1} (T : AdmTree V) {I₁ I₂ I₃ : T.Cell} (h₁ : T.Anc I₁ I₂) (h₂ : T.Anc I₂ I₃) :
                                                                      T.Anc I₁ I₃
                                                                      theorem TrilinearHT.Auto.AdmTree.anc_total {V : Type u_1} (T : AdmTree V) {I₁ I₂ I : T.Cell} (h₁ : T.Anc I₁ I) (h₂ : T.Anc I₂ I) :
                                                                      T.Anc I₁ I₂ ∨ T.Anc I₂ I₁

                                                                      Two ancestors of one cell are comparable.

                                                                      structure TrilinearHT.Auto.ColorParams {V : Type u_1} (K : ColorSetup V) (Hmax : ℕ) :

                                                                      The numerical relations of blueprint lines 1714-1717 used by the masks: b₂ = 100 (H_max + 1), b₁ = d₀^{10} b₂ (H_max + 1) and d₀ ≥ 8 (the blueprint has d₀ ≥ 1000 log 2).

                                                                      Instances For
                                                                        theorem TrilinearHT.Auto.ColorSetup.prim_winner_dist {V : Type u_1} (K : ColorSetup V) {A : AdmState V} {v : V} (hv : v ∈ A.X) {ρ : Fin K.d0} {z : V} {g : ℤ} (hc : K.prim A v = some (ρ, z, g)) (hb : 0 < K.b1) :
                                                                        ∃ (k : ℕ), K.dist.d A.s z v = ↑k ∧ (g - 1) * ↑K.b1 < ↑K.b1 * ↑(K.Dp ρ z) - ↑k

                                                                        The winner of a successful primary round is at true score above (g - 1) b₁.

                                                                        theorem TrilinearHT.Auto.ColorSetup.rival_term_le {V : Type u_1} (K : ColorSetup V) {A : AdmState V} {v : V} (hv : v ∈ A.X) {ρ : Fin K.d0} {z : V} {g : ℤ} (hc : K.prim A v = some (ρ, z, g)) {w : V} (hw : w ∈ A.X) (hwz : w ≠ z) {s' : ℤ} (hs : s' ≤ A.s) :
                                                                        K.profTerm ρ s' w v ≤ ↑((g - 5) * ↑K.b1)

                                                                        Rival terms at a successful center are at most (g - 5) b₁ at all earlier depths.

                                                                        theorem TrilinearHT.Auto.ColorSetup.prof_center_le {V : Type u_1} [DecidableEq V] (K : ColorSetup V) {A : AdmState V} {v : V} (hv : v ∈ A.X) {ρ : Fin K.d0} {z : V} {g : ℤ} (hc : K.prim A v = some (ρ, z, g)) {W : Finset V} (hW : W ⊆ A.X) {s' : ℤ} (hs : s' ≤ A.s) :
                                                                        K.prof ρ z W v s' ≤ ↑((g - 5) * ↑K.b1)
                                                                        theorem TrilinearHT.Auto.ColorSetup.clipW_eq_low {T U : ℝ} (hTU : T ≤ U) {x : WithBot ℤ} {c : ℤ} (hx : x ≤ ↑c) (hc : ↑c ≤ T) :
                                                                        clipW T U x = T
                                                                        theorem TrilinearHT.Auto.ColorSetup.Tl_ge {V : Type u_1} (K : ColorSetup V) (g : ℤ) (l : ℕ) :
                                                                        (↑g - 3) * ↑K.b1 ≤ K.Tl g l
                                                                        theorem TrilinearHT.Auto.ColorSetup.lowMet_center_le {V : Type u_1} [DecidableEq V] (K : ColorSetup V) {A : AdmState V} {v : V} (hv : v ∈ A.X) {ρ : Fin K.d0} {z : V} {g : ℤ} (hc : K.prim A v = some (ρ, z, g)) {W : Finset V} (hW : W ⊆ A.X) {l : ℕ} (hl : l ≤ 2 * K.d0) {b : V} {δ : ℕ} (hbv : K.dist.d A.s b v = ↑δ) (hδ : δ ≤ 2 * K.b1) :
                                                                        K.lowMet ρ g z W l b v ≤ ↑δ

                                                                        Blueprint lem:masks, first assertion (pseudometric part): at a successful center, every present vertex within graph distance h ≤ 2 b₁ has context distance at most h for every l ≤ 2 d₀.

                                                                        theorem TrilinearHT.Auto.ColorSetup.colorData_eq_some {V : Type u_1} [DecidableEq V] (K : ColorSetup V) {A : AdmState V} {v : V} {ρ : Fin K.d0} {z : V} {g : ℤ} {m : ℕ} {ls : ℕ × ℕ} {hd : Option (Fin K.d0 × V × ℤ)} (h : K.colorData A v = (some (ρ, z, g), m, ls, hd)) :
                                                                        K.prim A v = some (ρ, z, g) ∧ m = admLevel A z ∧ ls = K.ballSel (K.ballVec ρ g z (admFrozen A z) A.X v) ∧ hd = sigData (roundSig A.X fun (ρ' : Fin K.d0) => K.hsc ρ g z (admFrozen A z) ls.1 v ρ')

                                                                        Unfolding the color data of a successful primary round.

                                                                        theorem TrilinearHT.Auto.ColorSetup.ballSel_spec {V : Type u_1} (K : ColorSetup V) {vec : ℕ → ℕ} {l n : ℕ} (h : K.ballSel vec = (l, n)) (hl : 1 ≤ l) :
                                                                        l < K.d0 ∧ vec l = n ∧ vec (l + 1) = n

                                                                        A successful color datum: both rounds marked and a ball level l ≥ 1 selected.

                                                                        Equations
                                                                        Instances For
                                                                          def TrilinearHT.Auto.ColorSetup.MaskPred {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (c : Option (Fin K.d0 × V × ℤ) × ℕ × (ℕ × ℕ) × Option (Fin K.d0 × V × ℤ)) (W : Finset V) (v₀ : V) (s : ℤ) (b : V) (h : ℕ) :

                                                                          The mask predicate eq:ball-mask for a vertex b at depth s with pad h, relative to a historical central vertex whose (successful) color data are c and whose frozen prefix is W.

                                                                          Equations
                                                                          • One or more equations did not get rendered due to their size.
                                                                          Instances For
                                                                            noncomputable def TrilinearHT.Auto.ColorSetup.grp {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) (Nv : ℕ) (I : T.Cell) (v : V) :

                                                                            The group of a central vertex: its color and complete color data (winners, levels and rounds; the frozen prefix and cohort block are determined by these along a path).

                                                                            Equations
                                                                            Instances For
                                                                              def TrilinearHT.Auto.ColorSetup.mask {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) (Nv : ℕ) (G : ℕ × Option (Fin K.d0 × V × ℤ) × ℕ × (ℕ × ℕ) × Option (Fin K.d0 × V × ℤ)) (h : ℕ) (I : T.Cell) :
                                                                              Set V

                                                                              The mask M_{G,h} at a cell (blueprint eq:ball-mask): present vertices satisfying the mask predicate for some historical central vertex of the group at or above the cell.

                                                                              Equations
                                                                              • One or more equations did not get rendered due to their size.
                                                                              Instances For
                                                                                theorem TrilinearHT.Auto.ColorSetup.Rl_ge_one {V : Type u_1} (K : ColorSetup V) {Hmax : ℕ} (hP : ColorParams K Hmax) {l : ℕ} (hl : 1 ≤ l) :
                                                                                1 ≤ K.Rl l
                                                                                theorem TrilinearHT.Auto.ColorSetup.b1_pos {V : Type u_1} (K : ColorSetup V) {Hmax : ℕ} (hP : ColorParams K Hmax) :
                                                                                0 < K.b1
                                                                                theorem TrilinearHT.Auto.ColorSetup.mem_mask_of_dist {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {Hmax : ℕ} (hP : ColorParams K Hmax) (Nv : ℕ) {I : T.Cell} {v : V} (hv : v ∈ T.X I) (hs : K.Success (K.colorData (T.st I) v)) {b : V} (hb : b ∈ T.X I) {h δ : ℕ} (hbv : K.dist.d (T.depth I) b v = ↑δ) (hδ : δ ≤ h) (hh : h ≤ 2 * K.b1) :
                                                                                b ∈ K.mask T Nv (K.grp T Nv I v) h I

                                                                                Blueprint lem:masks, first assertion: at an actual use centered at v, every present vertex within h graph edges of v lies in M_{G,h}.

                                                                                theorem TrilinearHT.Auto.ColorSetup.prim_top_nonneg {V : Type u_1} (K : ColorSetup V) {A : AdmState V} {v : V} (hv : v ∈ A.X) {ρ : Fin K.d0} {z : V} {g : ℤ} (hp : K.prim A v = some (ρ, z, g)) :
                                                                                0 ≤ g
                                                                                theorem TrilinearHT.Auto.ColorSetup.mask_short_path {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) (Nv : ℕ) {G : ℕ × Option (Fin K.d0 × V × ℤ) × ℕ × (ℕ × ℕ) × Option (Fin K.d0 × V × ℤ)} {ρ : Fin K.d0} {z : V} {g : ℤ} (hG : G.2.1 = some (ρ, z, g)) {h : ℕ} {I : T.Cell} {b : V} (hb : b ∈ K.mask T Nv G h I) :
                                                                                ∃ (k : ℕ), K.dist.d (T.depth I) z b = ↑k ∧ k ≤ (K.d0 + 1) * K.b1 + h

                                                                                Blueprint lem:masks, third assertion: an admitted mask vertex is within graph distance (d₀ + 1) b₁ + H_max of the primary winner (which lemma graph turns into a short path).

                                                                                theorem TrilinearHT.Auto.ColorSetup.mask_mono {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) (Nv : ℕ) {G : ℕ × Option (Fin K.d0 × V × ℤ) × ℕ × (ℕ × ℕ) × Option (Fin K.d0 × V × ℤ)} {h : ℕ} {I J : T.Cell} (hIJ : T.Anc I J) {b : V} (hb : b ∈ K.mask T Nv G h I) :
                                                                                b ∈ K.mask T Nv G h J

                                                                                Masks persist to finer cells (blueprint line 1755: the mask increases inside its cohort).

                                                                                theorem TrilinearHT.Auto.ColorSetup.b2_pos {V : Type u_1} (K : ColorSetup V) {Hmax : ℕ} (hP : ColorParams K Hmax) :
                                                                                0 < K.b2
                                                                                theorem TrilinearHT.Auto.ColorSetup.high_winner_close {V : Type u_1} [DecidableEq V] (K : ColorSetup V) {Hmax : ℕ} (hP : ColorParams K Hmax) {X : Finset V} {v : V} (hv : v ∈ X) {ρ : Fin K.d0} {g : ℤ} {z : V} {W : Finset V} {l : ℕ} {ρ' : Fin K.d0} {a : V} {g₂ : ℤ} (h : sigData (roundSig X fun (ρ' : Fin K.d0) => K.hsc ρ g z W l v ρ') = some (ρ', a, g₂)) (_hl : l + 1 ≤ 2 * K.d0) :
                                                                                K.lowMet ρ g z W (l + 1) a v < (↑K.d0 + 1) * ↑K.b2

                                                                                The high winner is within (d₀ + 1) b₂ of the center in d^{(l+1)}.

                                                                                theorem TrilinearHT.Auto.ColorSetup.Rl_succ {V : Type u_1} (K : ColorSetup V) (l : ℕ) :
                                                                                K.Rl (l + 1) = K.Rl l + 10 * (↑K.d0 + 1) * ↑K.b2
                                                                                theorem TrilinearHT.Auto.ColorSetup.center_close {V : Type u_1} [DecidableEq V] (K : ColorSetup V) {Hmax : ℕ} (hP : ColorParams K Hmax) {A₀ A : AdmState V} (hA₀ : A₀.WF) (hA : A.WF) (hle : A₀.Le A) {v₀ v : V} (hv₀ : v₀ ∈ A₀.X) (hv : v ∈ A.X) (he : K.colorData A₀ v₀ = K.colorData A v) {ρ : Fin K.d0} {z : V} {g : ℤ} {m l n : ℕ} {ρ' : Fin K.d0} {a : V} {g₂ : ℤ} (hc : K.colorData A v = (some (ρ, z, g), m, (l, n), some (ρ', a, g₂))) (hl : 1 ≤ l) :
                                                                                admFrozen A₀ z = admFrozen A z ∧ K.lowMet ρ g z (admFrozen A z) l v₀ v ≤ 2 * K.Rl l

                                                                                The ball comparison of blueprint lines 1762-1763: a historical central vertex v₀ of the group and the current center v are within 2 R_l in d^{(l)}.

                                                                                theorem TrilinearHT.Auto.clipW_eq_of_val {T U : ℝ} (hTU : T ≤ U) {x : WithBot ℤ} (h : ∀ (n : ℤ), x = ↑n → ↑n ≤ T) :
                                                                                clipW T U x = T
                                                                                theorem TrilinearHT.Auto.val_le_of_clipW {T U c : ℝ} {x : WithBot ℤ} (hc : c < U) (h : clipW T U x ≤ c) (n : ℤ) :
                                                                                x = ↑n → ↑n ≤ c
                                                                                theorem TrilinearHT.Auto.ColorSetup.Tl_succ {V : Type u_1} (K : ColorSetup V) (g : ℤ) (l : ℕ) :
                                                                                K.Tl g (l + 1) = K.Tl g l + ↑K.b1 / (2 * ↑K.d0)
                                                                                theorem TrilinearHT.Auto.ColorSetup.pad_gap {V : Type u_1} (K : ColorSetup V) {Hmax : ℕ} (hP : ColorParams K Hmax) {l : ℕ} (hl : l ≤ K.d0) {h : ℕ} (hh : h ≤ Hmax) :
                                                                                10 * K.Rl l * ↑h + 2 * K.Rl l + 1 ≤ ↑K.b1 / (2 * ↑K.d0)

                                                                                The numerical inequalities of blueprint lines 1763-1765: A_h + 1 ≤ T_{l+1} - T_l with A_h = 10 R_l h + 2 R_l.

                                                                                theorem TrilinearHT.Auto.ColorSetup.Tl_le_half {V : Type u_1} (K : ColorSetup V) (g : ℤ) {l : ℕ} (hl : l ≤ K.d0) (hd : 0 < K.d0) :
                                                                                K.Tl g l ≤ (↑g - 5 / 2) * ↑K.b1
                                                                                theorem TrilinearHT.Auto.ColorSetup.grp_colorData {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {Nv : ℕ} {I₀ I : T.Cell} {v₀ v : V} (h : K.grp T Nv I₀ v₀ = K.grp T Nv I v) :
                                                                                K.colorData (T.st I₀) v₀ = K.colorData (T.st I) v

                                                                                The data of a use: the center's successful color data and the common frozen prefix.

                                                                                theorem TrilinearHT.Auto.ColorSetup.mask_unpack {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {Nv : ℕ} {I : T.Cell} {v : V} {ρ : Fin K.d0} {z : V} {g : ℤ} {m l n : ℕ} {ρ' : Fin K.d0} {a : V} {g₂ : ℤ} (hc : K.colorData (T.st I) v = (some (ρ, z, g), m, (l, n), some (ρ', a, g₂))) {h : ℕ} {J : T.Cell} {b : V} (hb : b ∈ K.mask T Nv (K.grp T Nv I v) h J) :
                                                                                ∃ (I₀ : T.Cell), T.Anc I₀ J ∧ ∃ v₀ ∈ T.X I₀, K.colorData (T.st I₀) v₀ = K.colorData (T.st I) v ∧ K.grp T Nv I₀ v₀ = K.grp T Nv I v ∧ (∃ (k : ℕ), K.dist.d (T.depth J) z b = ↑k ∧ (g - 1) * ↑K.b1 - ↑h ≤ ↑K.b1 * ↑(K.Dp ρ z) - ↑k) ∧ K.lowMet ρ g z (admFrozen (T.st I₀) z) (l + 1) b v₀ ≤ ↑h ∧ K.lowMet ρ g z (admFrozen (T.st I₀) z) l b v₀ ≤ 10 * K.Rl l * ↑h

                                                                                Unpacking a mask membership for the group of a successful center.

                                                                                theorem TrilinearHT.Auto.ColorSetup.clip_center_eq {V : Type u_1} [DecidableEq V] (K : ColorSetup V) {A : AdmState V} {v : V} (hv : v ∈ A.X) {ρ : Fin K.d0} {z : V} {g : ℤ} (hp : K.prim A v = some (ρ, z, g)) {l : ℕ} (hl : l ≤ 2 * K.d0) {s' : ℤ} (hs : s' ≤ A.s) :
                                                                                clipW (K.Tl g l) (K.Ul g) (K.prof ρ z (admFrozen A z) v s') = K.Tl g l
                                                                                theorem TrilinearHT.Auto.ColorSetup.rival_bound {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {Hmax : ℕ} (hP : ColorParams K Hmax) (Nv : ℕ) {I : T.Cell} {v : V} (hv : v ∈ T.X I) {ρ : Fin K.d0} {z : V} {g : ℤ} {m l n : ℕ} {ρ' : Fin K.d0} {a : V} {g₂ : ℤ} (hc : K.colorData (T.st I) v = (some (ρ, z, g), m, (l, n), some (ρ', a, g₂))) (hl : 1 ≤ l) {h : ℕ} (hh : h ≤ Hmax) {b : V} (hb : b ∈ K.mask T Nv (K.grp T Nv I v) h I) {s' : ℤ} (hs : s' ≤ T.depth I) (x : ℤ) :
                                                                                K.prof ρ z (admFrozen (T.st I) z) b s' = ↑x → ↑x ≤ K.Tl g l + (10 * K.Rl l * ↑h + 2 * K.Rl l)

                                                                                eq:rival-bound (blueprint lines 1763-1766): at an actual use centered at v, every vertex of the pad-h mask has rival profile at most T_l + A_h, A_h = 10 R_l h + 2 R_l, at all depths up to the use.

                                                                                theorem TrilinearHT.Auto.ColorSetup.mask_neighbor {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {Hmax : ℕ} (hP : ColorParams K Hmax) (Nv : ℕ) {I : T.Cell} {v : V} (hv : v ∈ T.X I) {ρ : Fin K.d0} {z : V} {g : ℤ} {m l n : ℕ} {ρ' : Fin K.d0} {a : V} {g₂ : ℤ} (hc : K.colorData (T.st I) v = (some (ρ, z, g), m, (l, n), some (ρ', a, g₂))) (hl : 1 ≤ l) {h : ℕ} (hh : h < Hmax) {b b' : V} (hb : b ∈ K.mask T Nv (K.grp T Nv I v) h I) (hb' : b' ∈ T.X I) {δ : ℕ} (hbb : K.dist.d (T.depth I) b b' = ↑δ) (hδ : δ ≤ 1) :
                                                                                b' ∈ K.mask T Nv (K.grp T Nv I v) (h + 1) I

                                                                                Blueprint lem:masks, second assertion (neighbor closure): at an actual use, every present neighbor of a vertex of M_{G,h} belongs to M_{G,h+1} when h < H_max.

                                                                                theorem TrilinearHT.Auto.ColorSetup.lowMet_succ_adjacent {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W : Finset V) {l : ℕ} (hl2 : l + 1 ≤ 2 * K.d0) {A : ℝ} (hgap : K.Tl g l + A + 1 ≤ K.Tl g (l + 1)) {b b' : V} {s : ℤ} {δ : ℕ} (hbb : K.dist.d s b b' = ↑δ) (hδ : δ ≤ 1) (hrival : ∀ s'' ≤ s, ∀ (x : ℤ), K.prof ρ z W b' s'' = ↑x → ↑x ≤ K.Tl g l + A) :
                                                                                K.lowMet ρ g z W (l + 1) b b' ≤ ↑δ

                                                                                Two adjacent vertices, one of which has small rival profile up to depth s, are within their graph distance in the high pseudometric d^{(l+1)}.

                                                                                theorem TrilinearHT.Auto.ColorSetup.high_far {V : Type u_1} [DecidableEq V] (K : ColorSetup V) {Hmax : ℕ} (hP : ColorParams K Hmax) {A₁ A₂ : AdmState V} (hle : A₁.Le A₂) {v₁ v₂ : V} (hv₁ : v₁ ∈ A₁.X) (_hv₂ : v₂ ∈ A₂.X) {ρ : Fin K.d0} {g : ℤ} {z : V} {W : Finset V} {l : ℕ} (hl2 : l + 1 ≤ 2 * K.d0) {ρ' : Fin K.d0} {a₁ a₂ : V} {g₂ : ℤ} (h₁ : sigData (roundSig A₁.X fun (ρ' : Fin K.d0) => K.hsc ρ g z W l v₁ ρ') = some (ρ', a₁, g₂)) (h₂ : sigData (roundSig A₂.X fun (ρ' : Fin K.d0) => K.hsc ρ g z W l v₂ ρ') = some (ρ', a₂, g₂)) (hne : a₁ ≠ a₂) :
                                                                                4 * ↑K.b2 < K.lowMet ρ g z W (l + 1) v₁ v₂

                                                                                Distinct high winners of one high round and top score at two comparable historical centers force the centers far apart in d^{(l+1)} (blueprint lines 1770-1771).

                                                                                theorem TrilinearHT.Auto.ColorSetup.admLevel_between {V : Type u_1} {A₀ A A₁ : AdmState V} (hA₀ : A₀.WF) (hA : A.WF) (h₀ : A₀.Le A) (h₁ : A.Le A₁) {z : V} (hz : z ∈ A₀.X) {m : ℕ} (hm₀ : admLevel A₀ z = m) (hm₁ : admLevel A₁ z = m) :
                                                                                admLevel A z = m
                                                                                theorem TrilinearHT.Auto.ColorSetup.mask_separation {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {Hmax : ℕ} (hP : ColorParams K Hmax) (Nv : ℕ) (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) {I J : T.Cell} (hIJ : T.Anc I J) {u₀ : T.Cell} (hu₀ : T.Anc I u₀) {v₁ : V} (hv₁ : v₁ ∈ T.X u₀) (hs₁ : K.Success (K.colorData (T.st u₀) v₁)) {u : T.Cell} (hu : T.Anc J u) {v₂ : V} (hv₂ : v₂ ∈ T.X u) (hs₂ : K.Success (K.colorData (T.st u) v₂)) (hcol : K.color T Nv u₀ v₁ = K.color T Nv u v₂) (hne : K.grp T Nv u₀ v₁ ≠ K.grp T Nv u v₂) {h h' : ℕ} (hh : h ≤ Hmax) (hh' : h' ≤ Hmax) {b b' : V} (hb : b ∈ K.mask T Nv (K.grp T Nv u₀ v₁) h I) (hb' : b' ∈ K.mask T Nv (K.grp T Nv u v₂) h' J) :
                                                                                ¬K.dist.d (T.depth J) b b' ≤ 1

                                                                                Blueprint lem:masks, fourth assertion (separation): for distinct groups of one color, vertices of their pad masks on overlapping usable endpoints I ⊇ J (each with an actual use below it) are at graph distance greater than one at the finer endpoint.

                                                                                Choice of the delays (blueprint lines 1732-1733) #

                                                                                Delays are truncated geometric: P(D = n) = 2^{-(n+1)} for n < d₀ and P(D = d₀) = 2^{-d₀}. A single round is marked with probability at least 1/66 once |X| ≤ 2^{d₀ - 5}: raising the delay of a top scorer by five marks the round, injectively, at a weight cost at most 2^{-5}.

                                                                                noncomputable def TrilinearHT.Auto.geomW (d0 : ℕ) (n : Fin (d0 + 1)) :

                                                                                The truncated geometric weights on {0, …, d₀}.

                                                                                Equations
                                                                                Instances For
                                                                                  theorem TrilinearHT.Auto.geomW_nonneg (d0 : ℕ) (n : Fin (d0 + 1)) :
                                                                                  0 ≤ geomW d0 n
                                                                                  theorem TrilinearHT.Auto.sum_range_half_pow (k d0 : ℕ) :
                                                                                  k ≤ d0 → (∑ n ∈ Finset.range d0, if k ≤ n then (1 / 2) ^ (n + 1) else 0) = (1 / 2) ^ k - (1 / 2) ^ d0
                                                                                  theorem TrilinearHT.Auto.sum_geomW_ge (d0 k : ℕ) (hk : k ≤ d0) :
                                                                                  (∑ n : Fin (d0 + 1), if k ≤ ↑n then geomW d0 n else 0) = (1 / 2) ^ k

                                                                                  The tail P(D ≥ k) = 2^{-k}.

                                                                                  theorem TrilinearHT.Auto.sum_geomW (d0 : ℕ) :
                                                                                  ∑ n : Fin (d0 + 1), geomW d0 n = 1
                                                                                  theorem TrilinearHT.Auto.geomW_add_five {d0 : ℕ} (n : Fin (d0 + 1)) (h : ↑n + 5 ≤ d0) :
                                                                                  (1 / 2) ^ 5 * geomW d0 n ≤ geomW d0 ⟨↑n + 5, ⋯⟩

                                                                                  Raising a delay by five costs at most a factor 2^{-5} in weight.

                                                                                  noncomputable def TrilinearHT.Auto.cfgW {V : Type u_1} [Fintype V] (d0 : ℕ) (D : V → Fin (d0 + 1)) :

                                                                                  The product weight of a delay array.

                                                                                  Equations
                                                                                  Instances For
                                                                                    theorem TrilinearHT.Auto.cfgW_nonneg {V : Type u_1} [Fintype V] (d0 : ℕ) (D : V → Fin (d0 + 1)) :
                                                                                    0 ≤ cfgW d0 D
                                                                                    theorem TrilinearHT.Auto.sum_cfgW {V : Type u_1} [Fintype V] [DecidableEq V] (d0 : ℕ) :
                                                                                    ∑ D : V → Fin (d0 + 1), cfgW d0 D = 1
                                                                                    theorem TrilinearHT.Auto.sum_cfgW_tail {V : Type u_1} [Fintype V] [DecidableEq V] (d0 : ℕ) (z₀ : V) {k : ℕ} (hk : k ≤ d0) :
                                                                                    (∑ D : V → Fin (d0 + 1), if k ≤ ↑(D z₀) then cfgW d0 D else 0) = (1 / 2) ^ k

                                                                                    The marginal tail of one coordinate.

                                                                                    def TrilinearHT.Auto.delayScore {V : Type u_1} {d0 : ℕ} (D : V → Fin (d0 + 1)) (c : V → ℕ) (z : V) :

                                                                                    The score D_z - c_z of a delay array with offsets c.

                                                                                    Equations
                                                                                    Instances For
                                                                                      noncomputable def TrilinearHT.Auto.topScorer {V : Type u_1} {d0 : ℕ} (X : Finset V) (hX : X.Nonempty) (c : V → ℕ) (D : V → Fin (d0 + 1)) :
                                                                                      V

                                                                                      A top scorer of a round.

                                                                                      Equations
                                                                                      Instances For
                                                                                        theorem TrilinearHT.Auto.topScorer_spec {V : Type u_1} {d0 : ℕ} (X : Finset V) (hX : X.Nonempty) (c : V → ℕ) (D : V → Fin (d0 + 1)) :
                                                                                        topScorer X hX c D ∈ X ∧ delayScore D c (topScorer X hX c D) = roundTop X (delayScore D c)
                                                                                        noncomputable def TrilinearHT.Auto.raiseTop {V : Type u_1} [DecidableEq V] {d0 : ℕ} (X : Finset V) (hX : X.Nonempty) (c : V → ℕ) (D : V → Fin (d0 + 1)) :
                                                                                        V → Fin (d0 + 1)

                                                                                        Raising the top scorer's delay by five.

                                                                                        Equations
                                                                                        • One or more equations did not get rendered due to their size.
                                                                                        Instances For
                                                                                          theorem TrilinearHT.Auto.raiseTop_winner {V : Type u_1} [DecidableEq V] {d0 : ℕ} (X : Finset V) (hX : X.Nonempty) (c : V → ℕ) (D : V → Fin (d0 + 1)) (h : ↑(D (topScorer X hX c D)) + 5 ≤ d0) :
                                                                                          RoundWinner X (delayScore (raiseTop X hX c D) c) (topScorer X hX c D)
                                                                                          theorem TrilinearHT.Auto.raiseTop_injOn {V : Type u_1} [DecidableEq V] {d0 : ℕ} (X : Finset V) (hX : X.Nonempty) (c : V → ℕ) :
                                                                                          Set.InjOn (raiseTop X hX c) {D : V → Fin (d0 + 1) | ↑(D (topScorer X hX c D)) + 5 ≤ d0}
                                                                                          theorem TrilinearHT.Auto.cfgW_raiseTop {V : Type u_1} [Fintype V] [DecidableEq V] {d0 : ℕ} (X : Finset V) (hX : X.Nonempty) (c : V → ℕ) (D : V → Fin (d0 + 1)) (h : ↑(D (topScorer X hX c D)) + 5 ≤ d0) :
                                                                                          (1 / 2) ^ 5 * cfgW d0 D ≤ cfgW d0 (raiseTop X hX c D)
                                                                                          theorem TrilinearHT.Auto.round_unmarked_le {V : Type u_1} [Fintype V] [DecidableEq V] {d0 : ℕ} (hd : 5 ≤ d0) (X : Finset V) (hX : X.Nonempty) (c : V → ℕ) (hq : ↑X.card * (1 / 2) ^ (d0 - 4) ≤ 1 / 2) :
                                                                                          (∑ D : V → Fin (d0 + 1), if RoundMarked X (delayScore D c) then 0 else cfgW d0 D) ≤ 65 / 66

                                                                                          Blueprint lines 1732-1733: a single round is marked with probability at least 1/66 when |X| 2^{4 - d₀} ≤ 1/2.

                                                                                          noncomputable def TrilinearHT.Auto.roundsW {V : Type u_1} [Fintype V] (d0 : ℕ) (D : Fin d0 → V → Fin (d0 + 1)) :

                                                                                          The weight of an array of d₀ independent delay arrays.

                                                                                          Equations
                                                                                          Instances For
                                                                                            theorem TrilinearHT.Auto.roundsW_nonneg {V : Type u_1} [Fintype V] (d0 : ℕ) (D : Fin d0 → V → Fin (d0 + 1)) :
                                                                                            0 ≤ roundsW d0 D
                                                                                            theorem TrilinearHT.Auto.sum_roundsW {V : Type u_1} [Fintype V] [DecidableEq V] (d0 : ℕ) :
                                                                                            ∑ D : Fin d0 → V → Fin (d0 + 1), roundsW d0 D = 1
                                                                                            theorem TrilinearHT.Auto.rounds_unmarked_le {V : Type u_1} [Fintype V] [DecidableEq V] {d0 : ℕ} (hd : 5 ≤ d0) (X : Finset V) (hX : X.Nonempty) (c : V → ℕ) (hq : ↑X.card * (1 / 2) ^ (d0 - 4) ≤ 1 / 2) :
                                                                                            (∑ D : Fin d0 → V → Fin (d0 + 1), if ∀ (ρ : Fin d0), ¬RoundMarked X (delayScore (D ρ) c) then roundsW d0 D else 0) ≤ (65 / 66) ^ d0

                                                                                            Independent rounds: all d₀ rounds are unmarked with probability at most (65/66)^{d₀}.

                                                                                            theorem TrilinearHT.Auto.card_image_le_of_potential {ι : Type u_1} {β : Type u_2} [DecidableEq β] {C : Finset ι} (r : ι → ι → Prop) (htot : ∀ I ∈ C, ∀ J ∈ C, r I J ∨ r J I) (φ : ι → ℕ) (f : ι → β) (hdet : ∀ I ∈ C, ∀ J ∈ C, r I J → φ I = φ J → f I = f J) {M : ℕ} (hM : ∀ I ∈ C, φ I ≤ M) :

                                                                                            A finite chain: on a finset totally preordered by r, a function determined by a monotone potential takes at most as many values as the potential.

                                                                                            theorem TrilinearHT.Auto.roundTop_congr {V : Type u_1} {X : Finset V} {sc sc' : V → ℤ} (h : ∀ z ∈ X, sc z = sc' z) :
                                                                                            roundTop X sc = roundTop X sc'
                                                                                            theorem TrilinearHT.Auto.roundWinner_congr {V : Type u_1} {X : Finset V} {sc sc' : V → ℤ} (h : ∀ z ∈ X, sc z = sc' z) (z : V) :
                                                                                            RoundWinner X sc z ↔ RoundWinner X sc' z
                                                                                            theorem TrilinearHT.Auto.roundMarked_congr {V : Type u_1} {X : Finset V} {sc sc' : V → ℤ} (h : ∀ z ∈ X, sc z = sc' z) :
                                                                                            def TrilinearHT.Auto.ColorSetup.ofArrays {V : Type u_1} (dist : DepthDistance V) (d0 b1 b2 : ℕ) (ωp ωh : Fin d0 → V → Fin (d0 + 1)) :

                                                                                            The coloring setup of given primary and high delay arrays.

                                                                                            Equations
                                                                                            • One or more equations did not get rendered due to their size.
                                                                                            Instances For
                                                                                              theorem TrilinearHT.Auto.ColorSetup.ballVec_le_succ {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W X : Finset V) (v : V) {l : ℕ} (hl : l + 1 ≤ 2 * K.d0) :
                                                                                              K.ballVec ρ g z W X v l ≤ K.ballVec ρ g z W X v (l + 1)
                                                                                              theorem TrilinearHT.Auto.ColorSetup.ballSel_pos {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (ρ : Fin K.d0) (g : ℤ) (z : V) (W X : Finset V) (v : V) {Nv : ℕ} (hN : X.card ≤ Nv) (hd : flog32 Nv + 2 ≤ K.d0) :
                                                                                              1 ≤ (K.ballSel (K.ballVec ρ g z W X v)).1

                                                                                              The ball selection succeeds deterministically once d₀ exceeds the floor-log range (blueprint line 1739).

                                                                                              theorem TrilinearHT.Auto.ColorSetup.sigData_eq_none_iff {V : Type u_1} {n : ℕ} {X : Finset V} {sc : Fin n → V → ℤ} :
                                                                                              sigData (roundSig X sc) = none ↔ ∀ (ρ : Fin n), ¬RoundMarked X (sc ρ)
                                                                                              theorem TrilinearHT.Auto.ColorSetup.potential_anc {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {B₂ B₃ B₄ : ℕ} {v : V} (hb : ∀ (I : T.Cell), v ∈ T.X I → K.pot2 (T.st I) v ≤ B₂ ∧ K.pot3 (T.st I) v ≤ B₃ ∧ K.pot4 (T.st I) v ≤ B₄) {I₀ I : T.Cell} (h : T.Anc I₀ I) (hv : v ∈ T.X I₀) :
                                                                                              K.potential B₂ B₃ B₄ (T.st I₀) v ≤ K.potential B₂ B₃ B₄ (T.st I) v ∧ (K.potential B₂ B₃ B₄ (T.st I₀) v = K.potential B₂ B₃ B₄ (T.st I) v → K.colorData (T.st I₀) v = K.colorData (T.st I) v)

                                                                                              The potential is monotone along ancestor chains, and constant potential means constant color data.

                                                                                              noncomputable def TrilinearHT.Auto.ColorSetup.psit {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) (I : T.Cell) (v : V) :
                                                                                              Finset V × (V → ℕ)

                                                                                              The primary situation of a center at a cell: the present list and the capped distance quotients, which determine whether all primary rounds fail.

                                                                                              Equations
                                                                                              Instances For
                                                                                                noncomputable def TrilinearHT.Auto.ColorSetup.ppot {V : Type u_1} (K : ColorSetup V) (T : AdmTree V) (I : T.Cell) (v : V) :

                                                                                                Its monotone potential.

                                                                                                Equations
                                                                                                Instances For
                                                                                                  theorem TrilinearHT.Auto.ColorSetup.ppot_anc {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {I₀ I : T.Cell} (h : T.Anc I₀ I) (v : V) :
                                                                                                  K.ppot T I₀ v ≤ K.ppot T I v ∧ (K.ppot T I₀ v = K.ppot T I v → K.psit T I₀ v = K.psit T I v)
                                                                                                  theorem TrilinearHT.Auto.ColorSetup.ppot_le {V : Type u_1} (K : ColorSetup V) (T : AdmTree V) {Nv : ℕ} (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) (I : T.Cell) (v : V) :
                                                                                                  K.ppot T I v ≤ Nv * (K.d0 + 7)
                                                                                                  theorem TrilinearHT.Auto.ColorSetup.colorData_fst {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (A : AdmState V) (v : V) :
                                                                                                  (K.colorData A v).1 = K.prim A v
                                                                                                  noncomputable def TrilinearHT.Auto.ColorSetup.hOff {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (A : AdmState V) (v a : V) :

                                                                                                  The capped high offsets min(⌊d^{(l+1)}(a,v)/b₂⌋, d₀ + 6) of the selected context.

                                                                                                  Equations
                                                                                                  • One or more equations did not get rendered due to their size.
                                                                                                  Instances For
                                                                                                    noncomputable def TrilinearHT.Auto.ColorSetup.hsit {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) (I : T.Cell) (v : V) :
                                                                                                    Finset V × (V → ℕ)

                                                                                                    The high situation of a center at a cell: the present list and the high offsets.

                                                                                                    Equations
                                                                                                    Instances For
                                                                                                      theorem TrilinearHT.Auto.ColorSetup.hOff_eq {V : Type u_1} [DecidableEq V] (K : ColorSetup V) {A A' : AdmState V} (hA : A.WF) (hA' : A'.WF) (h : A.Le A') {v : V} (he : K.colorData A v = K.colorData A' v) (a : V) :
                                                                                                      K.hOff A v a = K.hOff A' v a
                                                                                                      noncomputable def TrilinearHT.Auto.ColorSetup.hpot {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) (Nv : ℕ) (I : T.Cell) (v : V) :

                                                                                                      The potential of the high situation.

                                                                                                      Equations
                                                                                                      Instances For
                                                                                                        theorem TrilinearHT.Auto.ColorSetup.hpot_anc {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {Nv : ℕ} (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) {I₀ I : T.Cell} (h : T.Anc I₀ I) {v : V} (hv : v ∈ T.X I₀) :
                                                                                                        K.hpot T Nv I₀ v ≤ K.hpot T Nv I v ∧ (K.hpot T Nv I₀ v = K.hpot T Nv I v → K.hsit T I₀ v = K.hsit T I v)
                                                                                                        theorem TrilinearHT.Auto.ColorSetup.hpot_le {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) {Nv : ℕ} (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) (I : T.Cell) {v : V} (hv : v ∈ T.X I) :
                                                                                                        K.hpot T Nv I v ≤ K.potMax Nv * (Nv + 1) + Nv
                                                                                                        theorem TrilinearHT.Auto.ColorSetup.prim_none_iff {V : Type u_1} [DecidableEq V] (T : AdmTree V) {dist : DepthDistance V} {d0 b1 b2 : ℕ} (ωp ωh : Fin d0 → V → Fin (d0 + 1)) (I : T.Cell) (v : V) :
                                                                                                        (ofArrays dist d0 b1 b2 ωp ωh).prim (T.st I) v = none ↔ ∀ (ρ : Fin d0), ¬RoundMarked ((ofArrays dist d0 b1 b2 ωp ωh).psit T I v).1 (delayScore (ωp ρ) ((ofArrays dist d0 b1 b2 ωp ωh).psit T I v).2)

                                                                                                        Primary failure is the failure of all primary rounds at the primary situation.

                                                                                                        theorem TrilinearHT.Auto.ColorSetup.high_none_iff {V : Type u_1} [DecidableEq V] (T : AdmTree V) {dist : DepthDistance V} {d0 b1 b2 : ℕ} (ωp ωh : Fin d0 → V → Fin (d0 + 1)) (I : T.Cell) (v : V) {ρ : Fin d0} {z : V} {g : ℤ} (hp : (ofArrays dist d0 b1 b2 ωp ωh).prim (T.st I) v = some (ρ, z, g)) :
                                                                                                        ((ofArrays dist d0 b1 b2 ωp ωh).colorData (T.st I) v).2.2.2 = none ↔ ∀ (ρ' : Fin d0), ¬RoundMarked ((ofArrays dist d0 b1 b2 ωp ωh).hsit T I v).1 (delayScore (ωh ρ') ((ofArrays dist d0 b1 b2 ωp ωh).hsit T I v).2)

                                                                                                        High failure is the failure of all high rounds at the high situation.

                                                                                                        def TrilinearHT.Auto.ColorSetup.zeroArr {V : Type u_1} (d0 : ℕ) :
                                                                                                        Fin d0 → V → Fin (d0 + 1)

                                                                                                        The all-zero delay array.

                                                                                                        Equations
                                                                                                        Instances For
                                                                                                          theorem TrilinearHT.Auto.ColorSetup.hOff_arrays {V : Type u_1} [DecidableEq V] (dist : DepthDistance V) (d0 b1 b2 : ℕ) (ωp ωh ωh' : Fin d0 → V → Fin (d0 + 1)) (A : AdmState V) (v a : V) :
                                                                                                          (ofArrays dist d0 b1 b2 ωp ωh).hOff A v a = (ofArrays dist d0 b1 b2 ωp ωh').hOff A v a
                                                                                                          theorem TrilinearHT.Auto.ColorSetup.hsit_arrays {V : Type u_1} [DecidableEq V] (T : AdmTree V) (dist : DepthDistance V) (d0 b1 b2 : ℕ) (ωp ωh ωh' : Fin d0 → V → Fin (d0 + 1)) (I : T.Cell) (v : V) :
                                                                                                          (ofArrays dist d0 b1 b2 ωp ωh).hsit T I v = (ofArrays dist d0 b1 b2 ωp ωh').hsit T I v

                                                                                                          High situations do not depend on the high arrays.

                                                                                                          def TrilinearHT.Auto.ColorSetup.FailAt {V : Type u_1} [DecidableEq V] (T : AdmTree V) (dist : DepthDistance V) (d0 b1 b2 : ℕ) (ωp ωh : Fin d0 → V → Fin (d0 + 1)) (I : T.Cell) :

                                                                                                          Some vertex at the cell has unsuccessful color data.

                                                                                                          Equations
                                                                                                          • One or more equations did not get rendered due to their size.
                                                                                                          Instances For
                                                                                                            theorem TrilinearHT.Auto.ColorSetup.fail_cases {V : Type u_1} [DecidableEq V] (T : AdmTree V) {dist : DepthDistance V} {d0 b1 b2 Nv : ℕ} (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) (hd : flog32 Nv + 2 ≤ d0) (ωp ωh : Fin d0 → V → Fin (d0 + 1)) {I : T.Cell} {v : V} (hf : ¬(ofArrays dist d0 b1 b2 ωp ωh).Success ((ofArrays dist d0 b1 b2 ωp ωh).colorData (T.st I) v)) :
                                                                                                            (ofArrays dist d0 b1 b2 ωp ωh).prim (T.st I) v = none ∨ ∃ (t : Fin (ofArrays dist d0 b1 b2 ωp ωh).d0 × V × ℤ), (ofArrays dist d0 b1 b2 ωp ωh).prim (T.st I) v = some t ∧ ((ofArrays dist d0 b1 b2 ωp ωh).colorData (T.st I) v).2.2.2 = none
                                                                                                            theorem TrilinearHT.Auto.ColorSetup.situation_unmarked_le {V : Type u_1} [Fintype V] [DecidableEq V] {d0 Nv : ℕ} (hd5 : 5 ≤ d0) (hq : ↑Nv * (1 / 2) ^ (d0 - 4) ≤ 1 / 2) {σ : Finset V × (V → ℕ)} (hσ : σ.1.Nonempty) (hσN : σ.1.card ≤ Nv) :
                                                                                                            (∑ D : Fin d0 → V → Fin (d0 + 1), if ∀ (ρ : Fin d0), ¬RoundMarked σ.1 (delayScore (D ρ) σ.2) then roundsW d0 D else 0) ≤ (65 / 66) ^ d0
                                                                                                            theorem TrilinearHT.Auto.ColorSetup.card_situations_le {V : Type u_1} [Fintype V] [DecidableEq V] (T : AdmTree V) {C : Finset T.Cell} (htot : ∀ I ∈ C, ∀ J ∈ C, T.Anc I J ∨ T.Anc J I) {Nv : ℕ} (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) (sit : T.Cell → V → Finset V × (V → ℕ)) (pot : T.Cell → V → ℕ) {M : ℕ} (hdet : ∀ (v : V) (I₀ I : T.Cell), T.Anc I₀ I → v ∈ T.X I₀ → pot I₀ v = pot I v → sit I₀ v = sit I v) (hM : ∀ (I : T.Cell), ∀ v ∈ T.X I, pot I v ≤ M) :
                                                                                                            (Finset.image (fun (p : T.Cell × V) => sit p.1 p.2) ({p ∈ C ×ˢ Finset.univ | p.2 ∈ T.X p.1})).card ≤ Nv * (M + 1)

                                                                                                            Counting the situations of the centers along a chain.

                                                                                                            theorem TrilinearHT.Auto.ColorSetup.chain_fail_le {V : Type u_1} [Fintype V] [DecidableEq V] (T : AdmTree V) (dist : DepthDistance V) {d0 : ℕ} (b1 b2 : ℕ) (hd5 : 5 ≤ d0) {Nv : ℕ} (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) (hd : flog32 Nv + 2 ≤ d0) (hq : ↑Nv * (1 / 2) ^ (d0 - 4) ≤ 1 / 2) (C : Finset T.Cell) (htot : ∀ I ∈ C, ∀ J ∈ C, T.Anc I J ∨ T.Anc J I) :
                                                                                                            (∑ ωp : Fin d0 → V → Fin (d0 + 1), ∑ ωh : Fin d0 → V → Fin (d0 + 1), if ∃ I ∈ C, FailAt T dist d0 b1 b2 ωp ωh I then roundsW d0 ωp * roundsW d0 ωh else 0) ≤ (↑Nv * (↑Nv * (↑d0 + 7) + 1) + ↑Nv * (↑((ofArrays dist d0 b1 b2 (zeroArr d0) (zeroArr d0)).potMax Nv) * (↑Nv + 1) + ↑Nv + 1)) * (65 / 66) ^ d0

                                                                                                            The failure probability along one path (blueprint lines 1732-1733): the union bound over the primary situations and, conditionally on the primary arrays, over the high situations.

                                                                                                            theorem TrilinearHT.Auto.ColorSetup.delays_exist {V : Type u_1} [DecidableEq V] (T : AdmTree V) [Finite V] (dist : DepthDistance V) {d0 : ℕ} (b1 b2 : ℕ) (hd5 : 5 ≤ d0) {Nv : ℕ} (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) (hd : flog32 Nv + 2 ≤ d0) (hq : ↑Nv * (1 / 2) ^ (d0 - 4) ≤ 1 / 2) (S : Finset T.Cell) (cellSet : T.Cell → Set ℝ) (hmeas : ∀ (I : T.Cell), MeasurableSet (cellSet I)) {R : Set ℝ} (hRm : MeasurableSet R) (hR : MeasureTheory.volume R ≠ ⊤) (hsub : ∀ I ∈ S, cellSet I ⊆ R) (hnest : ∀ I ∈ S, ∀ J ∈ S, (cellSet I ∩ cellSet J).Nonempty → T.Anc I J ∨ T.Anc J I) :
                                                                                                            ∃ (ωp : Fin d0 → V → Fin (d0 + 1)) (ωh : Fin d0 → V → Fin (d0 + 1)), (MeasureTheory.volume (⋃ I ∈ Finset.filter (FailAt T dist d0 b1 b2 ωp ωh) S, cellSet I)).toReal ≤ (↑Nv * (↑Nv * (↑d0 + 7) + 1) + ↑Nv * (↑((ofArrays dist d0 b1 b2 (zeroArr d0) (zeroArr d0)).potMax Nv) * (↑Nv + 1) + ↑Nv + 1)) * (65 / 66) ^ d0 * (MeasureTheory.volume R).toReal

                                                                                                            Blueprint lines 1732-1734: the delays can be fixed so that the cells carrying a failed marking have total length at most the path failure bound times |R|.

                                                                                                            The coloring parameters (blueprint lines 1714-1717) #

                                                                                                            noncomputable def TrilinearHT.Auto.colorDegree (D : ℕ) :

                                                                                                            The degree d₀ = ⌈1000 log 2D⌉ of the coloring.

                                                                                                            Equations
                                                                                                            Instances For
                                                                                                              theorem TrilinearHT.Auto.colorDegree_bounds {D : ℕ} (hD : 1 ≤ D) :
                                                                                                              1000 * Real.log (2 * ↑D) ≤ ↑(colorDegree D) ∧ ↑(colorDegree D) ≤ 2001 * ↑D
                                                                                                              theorem TrilinearHT.Auto.colorDegree_ge {D : ℕ} (hD : 1 ≤ D) :
                                                                                                              theorem TrilinearHT.Auto.ColorSetup.numColors_le {V : Type u_1} (K : ColorSetup V) {Nv : ℕ} (hs : Nv.size ≤ K.d0) (hf : flog32 Nv ≤ K.d0) (hd : 3 ≤ K.d0) :
                                                                                                              K.numColors Nv ≤ K.d0 ^ 30

                                                                                                              The number of colors is at most d₀^{30} (blueprint line 1716, L = d₀^{30}).

                                                                                                              theorem TrilinearHT.Auto.ColorSetup.potMax_le {V : Type u_1} (K : ColorSetup V) {Nv : ℕ} (hs : Nv.size ≤ K.d0) (hf : flog32 Nv ≤ K.d0) (hd : 2 ≤ K.d0) :
                                                                                                              K.potMax Nv ≤ 36 * K.d0 ^ 7
                                                                                                              theorem TrilinearHT.Auto.pow_65_66_le {D : ℕ} (hD : 1 ≤ D) :
                                                                                                              (65 / 66) ^ colorDegree D ≤ 1 / (2 * ↑D) ^ 15
                                                                                                              noncomputable def TrilinearHT.Auto.failBound {V : Type u_1} (dist : DepthDistance V) (Nv d0 b1 b2 : ℕ) :

                                                                                                              The explicit failure bound of delays_exist.

                                                                                                              Equations
                                                                                                              • One or more equations did not get rendered due to their size.
                                                                                                              Instances For
                                                                                                                theorem TrilinearHT.Auto.failBound_le {V : Type u_1} (dist : DepthDistance V) (b1 b2 : ℕ) {Nv D : ℕ} (hD : 1 ≤ D) (hV : Nv ≤ D) :
                                                                                                                failBound dist Nv (colorDegree D) b1 b2 ≤ 100 * 2001 ^ 7 / ↑D

                                                                                                                The failure bound tends to zero: with d₀ = ⌈1000 log 2D⌉ and at most D vertices it is at most 100 · 2001⁷ / D (blueprint line 1732: the union bound tends to zero as D grows).

                                                                                                                theorem TrilinearHT.Auto.card_half_pow_le {Nv D : ℕ} (hD : 1 ≤ D) (hV : Nv ≤ D) :
                                                                                                                ↑Nv * (1 / 2) ^ (colorDegree D - 4) ≤ 1 / 2
                                                                                                                theorem TrilinearHT.Auto.monotoneColoring {V : Type u_1} [Finite V] [DecidableEq V] (T : AdmTree V) (dist : DepthDistance V) (b1 b2 : ℕ) {D : ℕ} (hD : 1 ≤ D) (hV : ∀ (I : T.Cell), (T.X I).card ≤ D) (S : Finset T.Cell) (cellSet : T.Cell → Set ℝ) (hmeas : ∀ (I : T.Cell), MeasurableSet (cellSet I)) {R : Set ℝ} (hRm : MeasurableSet R) (hR : MeasureTheory.volume R ≠ ⊤) (hsub : ∀ I ∈ S, cellSet I ⊆ R) (hnest : ∀ I ∈ S, ∀ J ∈ S, (cellSet I ∩ cellSet J).Nonempty → T.Anc I J ∨ T.Anc J I) :
                                                                                                                ∃ (ωp : Fin (colorDegree D) → V → Fin (colorDegree D + 1)) (ωh : Fin (colorDegree D) → V → Fin (colorDegree D + 1)), (MeasureTheory.volume (⋃ I ∈ Finset.filter (ColorSetup.FailAt T dist (colorDegree D) b1 b2 ωp ωh) S, cellSet I)).toReal ≤ 100 * 2001 ^ 7 / ↑D * (MeasureTheory.volume R).toReal ∧ (ColorSetup.ofArrays dist (colorDegree D) b1 b2 ωp ωh).numColors D ≤ colorDegree D ^ 30 ∧ (∀ (I : T.Cell), ∀ v ∈ T.X I, 1 ≤ (ColorSetup.ofArrays dist (colorDegree D) b1 b2 ωp ωh).color T D I v ∧ (ColorSetup.ofArrays dist (colorDegree D) b1 b2 ωp ωh).color T D I v ≤ (ColorSetup.ofArrays dist (colorDegree D) b1 b2 ωp ωh).numColors D) ∧ (∀ (I : T.Cell), ∀ v ∈ T.X (T.par I), (ColorSetup.ofArrays dist (colorDegree D) b1 b2 ωp ωh).color T D I v ≤ (ColorSetup.ofArrays dist (colorDegree D) b1 b2 ωp ωh).color T D (T.par I) v) ∧ ∀ (I J : T.Cell) (v w : V), v ∈ T.X I → w ∈ T.X J → (ColorSetup.ofArrays dist (colorDegree D) b1 b2 ωp ωh).color T D I v = (ColorSetup.ofArrays dist (colorDegree D) b1 b2 ωp ωh).color T D J w → (ColorSetup.ofArrays dist (colorDegree D) b1 b2 ωp ωh).metaKey ((ColorSetup.ofArrays dist (colorDegree D) b1 b2 ωp ωh).colorData (T.st I) v) = (ColorSetup.ofArrays dist (colorDegree D) b1 b2 ωp ωh).metaKey ((ColorSetup.ofArrays dist (colorDegree D) b1 b2 ωp ωh).colorData (T.st J) w)

                                                                                                                Blueprint §12.2 (Declaration coloring, THT.Localization.monotoneColoring): with d₀ = ⌈1000 log 2D⌉ and at most D original vertices, the delays can be fixed so that the cells with a failed marking have total length at most 100 · 2001⁷ |R| / D; the colors lie in [1, L] with L ≤ d₀^{30}, do not increase along paths (the change counter decreases at every change of the color data), and equal colors carry equal metadata.

                                                                                                                theorem TrilinearHT.Auto.ColorParams.Hmax_le {V : Type u_1} {K : ColorSetup V} {Hmax : ℕ} (hP : ColorParams K Hmax) :
                                                                                                                Hmax ≤ 2 * K.b1
                                                                                                                theorem TrilinearHT.Auto.historicalMaskSeparation {V : Type u_1} [Finite V] [DecidableEq V] (K : ColorSetup V) {Hmax : ℕ} (hP : ColorParams K Hmax) (T : AdmTree V) (Nv : ℕ) (hN : ∀ (I : T.Cell), (T.X I).card ≤ Nv) :
                                                                                                                (∀ (I : T.Cell), ∀ v ∈ T.X I, K.Success (K.colorData (T.st I) v) → ∀ b ∈ T.X I, ∀ (h δ : ℕ), K.dist.d (T.depth I) b v = ↑δ → δ ≤ h → h ≤ Hmax → b ∈ K.mask T Nv (K.grp T Nv I v) h I) ∧ (∀ (I : T.Cell), ∀ v ∈ T.X I, K.Success (K.colorData (T.st I) v) → ∀ h < Hmax, ∀ (b b' : V), b ∈ K.mask T Nv (K.grp T Nv I v) h I → b' ∈ T.X I → K.dist.d (T.depth I) b b' ≤ 1 → b' ∈ K.mask T Nv (K.grp T Nv I v) (h + 1) I) ∧ (∀ (G : ℕ × Option (Fin K.d0 × V × ℤ) × ℕ × (ℕ × ℕ) × Option (Fin K.d0 × V × ℤ)) (ρ : Fin K.d0) (z : V) (g : ℤ), G.2.1 = some (ρ, z, g) → ∀ (h : ℕ) (I : T.Cell), ∀ b ∈ K.mask T Nv G h I, ∃ (k : ℕ), K.dist.d (T.depth I) z b = ↑k ∧ k ≤ (K.d0 + 1) * K.b1 + h) ∧ ∀ (I J u₀ u : T.Cell) (v₁ v₂ : V), T.Anc I J → T.Anc I u₀ → T.Anc J u → v₁ ∈ T.X u₀ → v₂ ∈ T.X u → K.Success (K.colorData (T.st u₀) v₁) → K.Success (K.colorData (T.st u) v₂) → K.color T Nv u₀ v₁ = K.color T Nv u v₂ → K.grp T Nv u₀ v₁ ≠ K.grp T Nv u v₂ → ∀ (h h' : ℕ), h ≤ Hmax → h' ≤ Hmax → ∀ (b b' : V), b ∈ K.mask T Nv (K.grp T Nv u₀ v₁) h I → b' ∈ K.mask T Nv (K.grp T Nv u v₂) h' J → ¬K.dist.d (T.depth J) b b' ≤ 1

                                                                                                                Blueprint lem:masks (Declaration masks, THT.Localization.historicalMaskSeparation): for the pad masks M_{G,h} of eq:ball-mask with h ≤ H_max, (1) at an actual use centered at v every present vertex within h graph edges of v lies in M_{G,h}; (2) at an actual use every present neighbor of a vertex of M_{G,h} lies in M_{G,h+1} when h < H_max; (3) every mask vertex is within graph distance (d₀ + 1) b₁ + h of the primary winner (so lemma graph gives a short path); (4) for distinct groups of one color, vertices of their pad masks on overlapping usable endpoints are at graph distance greater than one at the finer endpoint.

                                                                                                                Whole endpoint ranges (blueprint lem:whole-ranges, lines 1777-1791) #

                                                                                                                noncomputable def TrilinearHT.Auto.groupOutput {V : Type u_1} [Fintype V] (φ : V → ℝ → ℂ) (ε : V → ℝ) (a : V → ℝ → ℂ) (y : ℝ) :

                                                                                                                A group output Z_G(y) = Σ_v a_{v,G}(y) Φ_v(y) with combined coefficients.

                                                                                                                Equations
                                                                                                                Instances For
                                                                                                                  theorem TrilinearHT.Auto.groupOutput_none {V : Type u_1} [Fintype V] (φ : V → ℝ → ℂ) (ε : V → ℝ) (a : V → ℝ → ℂ) (y : ℝ) :
                                                                                                                  (groupOutput φ ε a y).ofLp none = ∑ v : V, a v y * φ v y
                                                                                                                  theorem TrilinearHT.Auto.groupOutput_some {V : Type u_1} [Fintype V] (φ : V → ℝ → ℂ) (ε : V → ℝ) (a : V → ℝ → ℂ) (y : ℝ) (u : V) :
                                                                                                                  (groupOutput φ ε a y).ofLp (some u) = a u y * ↑√(ε u)
                                                                                                                  theorem TrilinearHT.Auto.norm_sq_groupOutput {V : Type u_1} [Fintype V] (φ : V → ℝ → ℂ) (ε : V → ℝ) (a : V → ℝ → ℂ) (y : ℝ) (hε : ∀ (v : V), 0 ≤ ε v) :
                                                                                                                  ‖groupOutput φ ε a y‖ ^ 2 = ‖∑ v : V, a v y * φ v y‖ ^ 2 + ∑ u : V, ‖a u y‖ ^ 2 * ε u
                                                                                                                  theorem TrilinearHT.Auto.sum_groupOutput {V : Type u_1} {ι : Type u_2} [Fintype V] [Fintype ι] (φ : V → ℝ → ℂ) (ε : V → ℝ) (a : ι → V → ℝ → ℂ) (y : ℝ) :
                                                                                                                  ∑ G : ι, groupOutput φ ε (a G) y = groupOutput φ ε (fun (v : V) (y : ℝ) => ∑ G : ι, a G v y) y
                                                                                                                  theorem TrilinearHT.Auto.norm_sq_sum_eq {ι : Type u_2} [Fintype ι] [DecidableEq ι] (z : ι → ℂ) :
                                                                                                                  ‖∑ G : ι, z G‖ ^ 2 = ∑ G : ι, ‖z G‖ ^ 2 + ∑ G : ι, ∑ G' ∈ Finset.univ.erase G, ((starRingEnd ℂ) (z G) * z G').re

                                                                                                                  |Σ z_G|² = Σ_G |z_G|² + Σ_{G ≠ G'} Re(conj z_G z_{G'}).

                                                                                                                  theorem TrilinearHT.Auto.sq_sum_le_of_support {κ : Type u_3} [Fintype κ] (x : κ → ℝ) {N : ℕ} (hN : {p : κ | x p ≠ 0}.card ≤ N) :
                                                                                                                  (∑ p : κ, x p) ^ 2 ≤ ↑N * ∑ p : κ, x p ^ 2

                                                                                                                  Cauchy–Schwarz over a support of at most N nonzero terms.

                                                                                                                  theorem TrilinearHT.Auto.norm_sq_sum_of_disjoint {ι : Type u_2} [Fintype ι] (z : ι → ℂ) (h : ∀ (G G' : ι), G ≠ G' → z G = 0 ∨ z G' = 0) :
                                                                                                                  ‖∑ G : ι, z G‖ ^ 2 = ∑ G : ι, ‖z G‖ ^ 2
                                                                                                                  theorem TrilinearHT.Auto.wholeRanges_core {V : Type u_1} {ι : Type u_2} [Fintype V] [Fintype ι] (φ : V → ℝ → ℂ) (ε : V → ℝ) (hε : ∀ (v : V), 0 < ε v) {W₀ : ℝ} (hW : ∀ (v : V), 1 ≤ W₀ ^ 2 * ε v) (a : ι → V → ℝ → ℂ) {M : ℝ} {S : Set ℝ} (hS : MeasurableSet S) (hSfin : MeasureTheory.volume S ≠ ⊤) (ha_meas : ∀ (G : ι) (v : V), Measurable (a G v)) (hM0 : 0 ≤ M) (ha_bd : ∀ (G : ι) (v : V) (y : ℝ), ‖a G v y‖ ≤ M) (ha_supp : ∀ (G : ι) (v : V), ∀ y ∉ S, a G v y = 0) (hφm : ∀ (v : V), Measurable (φ v)) (hφb : ∀ (v : V) (y : ℝ), ‖φ v y‖ ≤ M) {τ : ℝ} (hτ : 0 ≤ τ) (hpair : ∀ (G G' : ι), G ≠ G' → ∀ (v w : V), ‖∫ (y : ℝ), (starRingEnd ℂ) (a G v y * φ v y) * (a G' w y * φ w y)‖ ≤ τ * ∫ (y : ℝ), ‖a G v y‖ * ‖a G' w y‖) (hpriv : ∀ (G G' : ι), G ≠ G' → ∀ (v : V) (y : ℝ), a G v y = 0 ∨ a G' v y = 0) {N : ℕ} (hN : ∀ (y : ℝ), {p : ι × V | a p.1 p.2 y ≠ 0}.card ≤ N) :
                                                                                                                  ∫ (y : ℝ), ‖∑ G : ι, groupOutput φ ε (a G) y‖ ^ 2 ≤ (1 + τ * ↑N * W₀ ^ 2) * ∑ G : ι, ∫ (y : ℝ), ‖groupOutput φ ε (a G) y‖ ^ 2

                                                                                                                  Blueprint lem:whole-ranges, analytic core: group outputs Z_G = Σ_v a_{v,G} Φ_v with private coordinates that never coincide on overlaps, cross physical pairings at most τ ∫ |a_{v,G}| |a_{w,G'}|, at most N nonzero coefficients at each point and inverse private weights at most W₀² satisfy ‖Σ_G Z_G‖² ≤ (1 + τ N W₀²) Σ_G ‖Z_G‖².

                                                                                                                  theorem TrilinearHT.Auto.cells_meeting_finite (Gd : RealDyadicGrid) (s : ℤ) (a b : ℝ) :
                                                                                                                  ∃ (𝒦 : Finset ℤ), ∀ (n : ℤ), ∀ y ∈ dyadicGridCell Gd s n, a ≤ y → y ≤ b → n ∈ 𝒦

                                                                                                                  Only finitely many cells of one depth meet a bounded interval.

                                                                                                                  theorem TrilinearHT.Auto.pairing_of_cellwise_constant (Gd : RealDyadicGrid) (s : ℤ) (𝒦 : Finset ℤ) (f ψ : ℝ → ℂ) (hψm : Measurable ψ) {M : ℝ} (hψb : ∀ (y : ℝ), ‖ψ y‖ ≤ M) (hconst : ∀ (n : ℤ), ∀ y ∈ dyadicGridCell Gd s n, ∀ y' ∈ dyadicGridCell Gd s n, f y = f y') (hsupp : ∀ (y : ℝ), f y ≠ 0 → ∃ n ∈ 𝒦, y ∈ dyadicGridCell Gd s n) {τ : ℝ} (hcell : ∀ n ∈ 𝒦, ‖∫ (y : ℝ) in dyadicGridCell Gd s n, ψ y‖ ≤ τ * dyadicGridLength Gd s) :
                                                                                                                  ‖∫ (y : ℝ), f y * ψ y‖ ≤ τ * ∫ (y : ℝ), ‖f y‖

                                                                                                                  A function constant on the cells of one depth, supported in finitely many of them, pairs against ψ with the per-cell bound (the grid argument of blueprint line 1785).

                                                                                                                  noncomputable def TrilinearHT.Auto.occCoef {V : Type u_1} {ι : Type u_2} (Gd : RealDyadicGrid) (occ : ι → V → Finset (ℤ × ℤ)) (c : ι → V → ℤ × ℤ → ℂ) (G : ι) (v : V) (y : ℝ) :

                                                                                                                  The combined coefficient a_{v,G} = Σ_I a_{v,G,I} 1_I of the occurrences of v in G.

                                                                                                                  Equations
                                                                                                                  Instances For
                                                                                                                    theorem TrilinearHT.Auto.occCoef_measurable {V : Type u_1} {ι : Type u_2} (Gd : RealDyadicGrid) (occ : ι → V → Finset (ℤ × ℤ)) (c : ι → V → ℤ × ℤ → ℂ) (G : ι) (v : V) :
                                                                                                                    Measurable (occCoef Gd occ c G v)
                                                                                                                    theorem TrilinearHT.Auto.norm_occCoef_le {V : Type u_1} {ι : Type u_2} (Gd : RealDyadicGrid) (occ : ι → V → Finset (ℤ × ℤ)) (c : ι → V → ℤ × ℤ → ℂ) {Mc : ℝ} (hc : ∀ (G : ι) (v : V) (I : ℤ × ℤ), ‖c G v I‖ ≤ Mc) {K₀ : ℕ} (hK : ∀ (G : ι) (v : V), (occ G v).card ≤ K₀) (G : ι) (v : V) (y : ℝ) :
                                                                                                                    ‖occCoef Gd occ c G v y‖ ≤ ↑K₀ * Mc
                                                                                                                    theorem TrilinearHT.Auto.usableRangeBessel {V : Type u_1} {ι : Type u_2} [Fintype V] [Fintype ι] (Gd : RealDyadicGrid) (φ : V → ℝ → ℂ) (ε : V → ℝ) (hε : ∀ (v : V), 0 < ε v) {W₀ : ℝ} (hW : ∀ (v : V), 1 ≤ W₀ ^ 2 * ε v) (hφm : ∀ (v : V), Measurable (φ v)) {Mφ : ℝ} (hφb : ∀ (v : V) (y : ℝ), ‖φ v y‖ ≤ Mφ) (occ : ι → V → Finset (ℤ × ℤ)) (c : ι → V → ℤ × ℤ → ℂ) {Mc : ℝ} (hMc : 0 ≤ Mc) (hc : ∀ (G : ι) (v : V) (I : ℤ × ℤ), ‖c G v I‖ ≤ Mc) {K₀ : ℕ} (hK : ∀ (G : ι) (v : V), (occ G v).card ≤ K₀) {ra rb : ℝ} (hroot : ∀ (G : ι) (v : V), ∀ I ∈ occ G v, dyadicGridCell Gd I.1 I.2 ⊆ Set.Icc ra rb) (sep : V → V → ℤ) (hsep : ∀ (G G' : ι), G ≠ G' → ∀ (v w : V), ∀ I ∈ occ G v, ∀ J ∈ occ G' w, (dyadicGridCell Gd I.1 I.2 ∩ dyadicGridCell Gd J.1 J.2).Nonempty → I.1 ≤ sep v w ∧ J.1 ≤ sep v w) {τ : ℝ} (hτ : 0 ≤ τ) (hcell : ∀ (G G' : ι), G ≠ G' → ∀ (v w : V), (∃ I ∈ occ G v, ∃ J ∈ occ G' w, (dyadicGridCell Gd I.1 I.2 ∩ dyadicGridCell Gd J.1 J.2).Nonempty) → ∀ (n : ℤ), ‖∫ (y : ℝ) in dyadicGridCell Gd (sep v w) n, (starRingEnd ℂ) (φ v y) * φ w y‖ ≤ τ * dyadicGridLength Gd (sep v w)) (hpriv : ∀ (G G' : ι), G ≠ G' → ∀ (v : V), ∀ I ∈ occ G v, ∀ J ∈ occ G' v, Disjoint (dyadicGridCell Gd I.1 I.2) (dyadicGridCell Gd J.1 J.2)) {N : ℕ} (hN : ∀ (y : ℝ), {p : ι × V | occCoef Gd occ c p.1 p.2 y ≠ 0}.card ≤ N) :
                                                                                                                    ∫ (y : ℝ), ‖∑ G : ι, groupOutput φ ε (occCoef Gd occ c G) y‖ ^ 2 ≤ (1 + τ * ↑N * W₀ ^ 2) * ∑ G : ι, ∫ (y : ℝ), ‖groupOutput φ ε (occCoef Gd occ c G) y‖ ^ 2

                                                                                                                    Blueprint lem:whole-ranges (Declaration whole-ranges, THT.Localization.usableRangeBessel): group outputs Z_G = Σ_v a_{v,G} Φ_v whose combined coefficients are constant on entire endpoint cells satisfy ‖Σ_G Z_G‖² ≤ (1 + τ N W₀²) Σ_G ‖Z_G‖² provided (i) overlapping endpoint cells of labels in different groups have depth at most the last separating depth s_*(v, w) of the two labels (lemma masks), (ii) at that depth the physical pairing of the two pure columns is at most τ on every cell (lemma graph), for labels with overlapping occurrences in different groups, (iii) private labels never coincide on an overlap, and (iv) at most N group-label pairs are present at each point and inverse private weights are at most W₀².

                                                                                                                    One attempt: the admission tree (blueprint lines 1677-1681) #

                                                                                                                    @[reducible, inline]

                                                                                                                    The cells of the finite tree below R.

                                                                                                                    Equations
                                                                                                                    Instances For
                                                                                                                      theorem TrilinearHT.Auto.admCell_sub {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} (I : AdmCell G R N) :
                                                                                                                      dyadicGridCell G (↑I).1 (↑I).2 ⊆ dyadicGridCell G R.1 R.2
                                                                                                                      theorem TrilinearHT.Auto.admCell_depth_ge {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} (I : AdmCell G R N) :
                                                                                                                      R.1 ≤ (↑I).1
                                                                                                                      theorem TrilinearHT.Auto.anc_eq_of_depth {G : RealDyadicGrid} {I J J' : ℤ × ℤ} (hJ : dyadicGridCell G I.1 I.2 ⊆ dyadicGridCell G J.1 J.2) (hJ' : dyadicGridCell G I.1 I.2 ⊆ dyadicGridCell G J'.1 J'.2) (hd : J.1 = J'.1) :
                                                                                                                      J = J'

                                                                                                                      Two ancestors of one cell at the same depth coincide.

                                                                                                                      theorem TrilinearHT.Auto.admParent_mem {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} (I : AdmCell G R N) (h : ↑I ≠ R) :

                                                                                                                      The parent of a non-root cell lies in the tree.

                                                                                                                      theorem TrilinearHT.Auto.admCell_depth_gt {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} (I : AdmCell G R N) (h : ↑I ≠ R) :
                                                                                                                      R.1 < (↑I).1
                                                                                                                      noncomputable def TrilinearHT.Auto.admAnc {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) (I : AdmCell G R N) (v : Λ) :
                                                                                                                      Finset (AdmCell G R N)

                                                                                                                      Ancestors-or-self of a cell in the tree at which a label is available.

                                                                                                                      Equations
                                                                                                                      Instances For
                                                                                                                        noncomputable def TrilinearHT.Auto.admCellOf {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) (I : AdmCell G R N) (v : Λ) :
                                                                                                                        AdmCell G R N

                                                                                                                        The admission cell of a label along the path of I: its shallowest available ancestor.

                                                                                                                        Equations
                                                                                                                        Instances For
                                                                                                                          theorem TrilinearHT.Auto.admCellOf_spec {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) {I : AdmCell G R N} {v : Λ} (h : (admAnc av I v).Nonempty) :
                                                                                                                          admCellOf av I v ∈ admAnc av I v ∧ ∀ J ∈ admAnc av I v, (↑(admCellOf av I v)).1 ≤ (↑J).1
                                                                                                                          theorem TrilinearHT.Auto.mem_admAnc {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) {I J : AdmCell G R N} {v : Λ} :
                                                                                                                          J ∈ admAnc av I v ↔ dyadicGridCell G (↑I).1 (↑I).2 ⊆ dyadicGridCell G (↑J).1 (↑J).2 ∧ av (↑J) v
                                                                                                                          theorem TrilinearHT.Auto.admCellOf_eq {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) {I J : AdmCell G R N} {v : Λ} (hJ : J ∈ admAnc av I v) (hmin : ∀ J' ∈ admAnc av I v, (↑J).1 ≤ (↑J').1) :
                                                                                                                          admCellOf av I v = J

                                                                                                                          Characterization of the admission cell by minimality.

                                                                                                                          theorem TrilinearHT.Auto.admCellOf_parent {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) {I : AdmCell G R N} (hI : ↑I ≠ R) {v : Λ} (h : (admAnc av ⟨dyadicParent G ↑I, ⋯⟩ v).Nonempty) :
                                                                                                                          (admAnc av I v).Nonempty ∧ admCellOf av I v = admCellOf av ⟨dyadicParent G ↑I, ⋯⟩ v

                                                                                                                          The admission cell of a label at a cell persists at its children.

                                                                                                                          @[reducible, inline]
                                                                                                                          abbrev TrilinearHT.Auto.AdmVertex {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} :
                                                                                                                          Type u_1

                                                                                                                          The vertices: a label with its admission cell.

                                                                                                                          Equations
                                                                                                                          Instances For
                                                                                                                            noncomputable def TrilinearHT.Auto.admPresent {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) [Fintype Λ] (I : AdmCell G R N) :

                                                                                                                            The present vertices at a cell.

                                                                                                                            Equations
                                                                                                                            Instances For
                                                                                                                              theorem TrilinearHT.Auto.mem_admPresent {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) [Fintype Λ] {I : AdmCell G R N} {x : AdmVertex} :
                                                                                                                              x ∈ admPresent av I ↔ (admAnc av I x.1).Nonempty ∧ x.2 = admCellOf av I x.1
                                                                                                                              theorem TrilinearHT.Auto.admPresent_parent {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) [Fintype Λ] {I : AdmCell G R N} (hI : ↑I ≠ R) :
                                                                                                                              admPresent av ⟨dyadicParent G ↑I, ⋯⟩ ⊆ admPresent av I

                                                                                                                              The present vertices of the parent are present at the child.

                                                                                                                              noncomputable def TrilinearHT.Auto.admKey {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} [Fintype Λ] (x : AdmVertex) :

                                                                                                                              The admission key: admission depth first, then the label order.

                                                                                                                              Equations
                                                                                                                              Instances For
                                                                                                                                theorem TrilinearHT.Auto.admKey_label {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} [Fintype Λ] {x y : AdmVertex} (h : admKey x = admKey y) :
                                                                                                                                x.1 = y.1
                                                                                                                                noncomputable def TrilinearHT.Auto.admPos {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) [Fintype Λ] (I : AdmCell G R N) (x : AdmVertex) :

                                                                                                                                The admission position of a present vertex.

                                                                                                                                Equations
                                                                                                                                Instances For
                                                                                                                                  theorem TrilinearHT.Auto.admPos_lt {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) [Fintype Λ] {I : AdmCell G R N} {x : AdmVertex} (hx : x ∈ admPresent av I) :
                                                                                                                                  admPos av I x < (admPresent av I).card
                                                                                                                                  theorem TrilinearHT.Auto.admPos_injOn {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) [Fintype Λ] (I : AdmCell G R N) :
                                                                                                                                  Set.InjOn (admPos av I) ↑(admPresent av I)
                                                                                                                                  theorem TrilinearHT.Auto.admPos_parent {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) [Fintype Λ] {I : AdmCell G R N} (hI : ↑I ≠ R) {x : AdmVertex} (hx : x ∈ admPresent av ⟨dyadicParent G ↑I, ⋯⟩) :
                                                                                                                                  admPos av I x = admPos av ⟨dyadicParent G ↑I, ⋯⟩ x

                                                                                                                                  Positions of the parent's vertices are unchanged at the child.

                                                                                                                                  noncomputable def TrilinearHT.Auto.admPar {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} :
                                                                                                                                  Option (AdmCell G R N) → Option (AdmCell G R N)

                                                                                                                                  The parent map of the admission tree (the top above the root is its own parent).

                                                                                                                                  Equations
                                                                                                                                  Instances For
                                                                                                                                    noncomputable def TrilinearHT.Auto.admTree {G : RealDyadicGrid} {R : ℤ × ℤ} {N : ℕ} {Λ : Type u_1} (av : ℤ × ℤ → Λ → Prop) [Fintype Λ] :

                                                                                                                                    Blueprint lines 1677-1681: the admission tree of the finite tree below R: the present vertices along a path increase, with admission positions ordered by admission depth and then by label.

                                                                                                                                    Equations
                                                                                                                                    • One or more equations did not get rendered due to their size.
                                                                                                                                    Instances For

                                                                                                                                      The vertex bound D of the attempt: at most 4|L| vertices are present at any cell.

                                                                                                                                      Equations
                                                                                                                                      Instances For

                                                                                                                                        One attempt: color parameters and historical masks (blueprint lines 1712-1760) #

                                                                                                                                        noncomputable def TrilinearHT.Auto.ActiveSetup.cd0 {κ : LocalKernelClass} {c₀ : ℕ} (A : ActiveSetup κ c₀) :

                                                                                                                                        The primary depth d₀ = ⌈1000 log 2D⌉ of the attempt.

                                                                                                                                        Equations
                                                                                                                                        Instances For

                                                                                                                                          The high scale b₂ = 100 (H_max + 1) (blueprint line 1716).

                                                                                                                                          Equations
                                                                                                                                          Instances For
                                                                                                                                            theorem TrilinearHT.Auto.ColorSetup.mask_center_dist {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) (Nv : ℕ) {G : ℕ × Option (Fin K.d0 × V × ℤ) × ℕ × (ℕ × ℕ) × Option (Fin K.d0 × V × ℤ)} {h : ℕ} {I : T.Cell} {b : V} (hb : b ∈ K.mask T Nv G h I) {ρ : Fin K.d0} {z : V} {g : ℤ} (hG : G.2.1 = some (ρ, z, g)) :
                                                                                                                                            ∃ (k : ℕ), K.dist.d (T.depth I) z b = ↑k ∧ (g - 1) * ↑K.b1 - ↑h ≤ ↑K.b1 * ↑(K.Dp ρ z) - ↑k

                                                                                                                                            A vertex of the ball mask of a group lies within the winner bound of the group's center (blueprint eq:ball-mask, first clause): with the group's primary winner (ρ, z, g), its graph distance k from z obeys (g - 1) b₁ - h ≤ b₁ D_ρ(z) - k.

                                                                                                                                            Whole endpoint ranges for the attempt (lem:whole-ranges, blueprint lines 1777-1789) #

                                                                                                                                            theorem TrilinearHT.Auto.norm_setIntegral_Ico_conj_le {f g : ℝ → ℂ} {a r τ : ℝ} (hr : 0 < r) (h : ‖∫ (y : ℝ), f y * star (g y) ∂normalizedIntervalMeasure a r‖ ≤ τ) :
                                                                                                                                            ‖∫ (y : ℝ) in Set.Ico a (a + r), (starRingEnd ℂ) (f y) * g y‖ ≤ τ * r

                                                                                                                                            An unnormalized cell pairing from a normalized interval average.

                                                                                                                                            theorem TrilinearHT.Auto.ColorSetup.mask_pad_mono {V : Type u_1} [DecidableEq V] (K : ColorSetup V) (T : AdmTree V) (Nv : ℕ) {G : ℕ × Option (Fin K.d0 × V × ℤ) × ℕ × (ℕ × ℕ) × Option (Fin K.d0 × V × ℤ)} {h h' : ℕ} (hh : h ≤ h') {I : T.Cell} {b : V} (hb : b ∈ K.mask T Nv G h I) :
                                                                                                                                            b ∈ K.mask T Nv G h' I

                                                                                                                                            Masks increase with the pad (blueprint eq:ball-mask).