Documentation

LeanPool.MetricCodes.Rates

Strict rate improvements #

The MRRW comparison and the first spherical hierarchy and numerical bounds.

theorem MetricCodes.MRRW.hasDerivAt_mul_continuous_zero (g : ℝ → ℝ) (hg : ContinuousAt g 0) (hgzero : g 0 = 0) :
HasDerivAt (fun (r : ℝ) => r * g r) 0 0
noncomputable def MetricCodes.MRRW.inverseDegree (r : ℝ) :

The smaller-branch inverse degree expression (1 - sqrt (1 - r ^ 2)) / 2.

Equations
Instances For

    The reciprocal variance factor appearing in the inverse-degree entropy expansion.

    Equations
    Instances For

      The combination of negative logarithmic terms used in the inverse-degree entropy estimate.

      Equations
      Instances For
        noncomputable def MetricCodes.MRRW.lowerEndpointRoot (δ : ℝ) :

        The square-root term sqrt (1 - 2 * δ) in the MRRW lower-endpoint parameterization.

        Equations
        Instances For
          noncomputable def MetricCodes.MRRW.lowerEndpointWeight (δ : ℝ) :

          The lower-endpoint weight (1 - sqrt (1 - 2 * δ)) / 2.

          Equations
          Instances For

            The logarithmic derivative expression at the MRRW lower-endpoint weight.

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              theorem MetricCodes.MRRW.lowerEndpointRoot_pos {δ : ℝ} (hhalf : δ < 1 / 2) :
              theorem MetricCodes.MRRW.lowerEndpointDerivative_pos {δ : ℝ} (hδ : 0 < δ) (hhalf : δ < 1 / 2) :
              theorem MetricCodes.MRRW.hasDerivAt_mrrwG_boundary_quadratic_zero {δ : ℝ} (hδ : 0 < δ) (hhalf : δ < 1 / 2) :
              HasDerivAt (fun (r : ℝ) => Johnson.mrrwG (r ^ 2 + 2 * δ * r + 2 * δ)) (lowerEndpointDerivative δ) 0
              theorem MetricCodes.MRRW.exists_mrrwObjective_lt_zero {δ : ℝ} (hδ : 0 < δ) (hhalf : δ < 1 / 2) :
              ∃ (r : ℝ), 0 < r ∧ r < 1 - 2 * δ ∧ Johnson.mrrwObjective δ r < Johnson.mrrwObjective δ 0
              theorem MetricCodes.MRRW.mrrw_minimizer_pos {δ r : ℝ} (hδ : 0 < δ) (hhalf : δ < 1 / 2) (hr : 0 ≤ r) (hupper : r ≤ 1 - 2 * δ) (hmin : ∀ (s : ℝ), 0 ≤ s → s ≤ 1 - 2 * δ → Johnson.mrrwObjective δ r ≤ Johnson.mrrwObjective δ s) :
              0 < r
              theorem MetricCodes.MRRW.exists_positive_mrrw_minimizer {δ : ℝ} (hδ : 0 < δ) (hhalf : δ < 1 / 2) :
              ∃ (r : ℝ), 0 < r ∧ r ≤ 1 - 2 * δ ∧ (∀ (s : ℝ), 0 ≤ s → s ≤ 1 - 2 * δ → Johnson.mrrwObjective δ r ≤ Johnson.mrrwObjective δ s) ∧ Johnson.mrrwRate δ = Johnson.mrrwObjective δ r
              theorem MetricCodes.MRRW.inverse_zero_fibre_boundary {δ r : ℝ} (hδ : 0 < δ) :
              δ < 1 / 2 → ∀ (hr : 0 < r) (hupper : r < 1 - 2 * δ), ∃ (a : ℝ) (u : ℝ), 0 < u ∧ u < a ∧ a < 1 / 2 ∧ δ / 2 < a ∧ Johnson.spectralLimit a 0 0 u = Johnson.asymptoticThreshold δ a ∧ Johnson.mrrwObjective δ r = Johnson.shellRate a 0 0 u
              theorem MetricCodes.MRRW.exists_zero_fibre_boundary_of_interior_minimizer {δ : ℝ} (hδ : 0 < δ) (hhalf : δ < 1 / 2) (hstrict : Johnson.mrrwRate δ < Hamming.classicalRate δ) :
              ∃ (a : ℝ) (u : ℝ), 0 < u ∧ u < a ∧ a < 1 / 2 ∧ δ / 2 < a ∧ Johnson.spectralLimit a 0 0 u = Johnson.asymptoticThreshold δ a ∧ Johnson.mrrwRate δ = Johnson.shellRate a 0 0 u
              noncomputable def MetricCodes.MRRW.interiorSlope (a u : ℝ) :

              The reciprocal slope factor defining the interior perturbation of the shell weight.

              Equations
              Instances For
                noncomputable def MetricCodes.MRRW.interiorWeight (a u e : ℝ) :

                The shell weight perturbed linearly from a with the prescribed interior slope.

                Equations
                Instances For
                  noncomputable def MetricCodes.MRRW.interiorSupport (a u e : ℝ) :

                  The support-degree parameter along the interior perturbation, equal to the weight times e.

                  Equations
                  Instances For
                    noncomputable def MetricCodes.MRRW.interiorComplement (a u e : ℝ) :

                    The complement-degree parameter along the interior perturbation, equal to the complement weight times e.

                    Equations
                    Instances For
                      noncomputable def MetricCodes.MRRW.interiorSpectralMargin (δ a u e : ℝ) :

                      The perturbed Johnson spectral limit minus its asymptotic code-distance threshold.

                      Equations
                      • One or more equations did not get rendered due to their size.
                      Instances For
                        theorem MetricCodes.MRRW.interior_boundary_delta_relation {δ a u : ℝ} (hu : 0 < u) (hua : u < a) (ha : a < 1 / 2) (hboundary : Johnson.spectralLimit a 0 0 u = Johnson.asymptoticThreshold δ a) :
                        δ * (1 + 2 * √(u * (1 - u))) = 2 * (a * (1 - a) - u * (1 - u))
                        theorem MetricCodes.MRRW.interior_boundary_weight_gt_distance {δ a u : ℝ} (hδ : 0 < δ) (hu : 0 < u) (hua : u < a) (ha : a < 1 / 2) (hboundary : Johnson.spectralLimit a 0 0 u = Johnson.asymptoticThreshold δ a) :
                        δ / 2 < a
                        theorem MetricCodes.MRRW.spectralLimit_interior_eq (a u e : ℝ) :
                        Johnson.spectralLimit (interiorWeight a u e) (interiorSupport a u e) (interiorComplement a u e) u = have z := 1 - 2 * u; have m := 1 - 2 * interiorWeight a u e; have t := 1 - 2 * e; (m * (t ^ 2 - z ^ 2)) ^ 2 / (z ^ 2 * (1 - m ^ 2) * (1 - z ^ 2)) + (z ^ 2 - (m * t) ^ 2) * (t ^ 2 - z ^ 2) / (z ^ 2 * (1 - m ^ 2) * √(1 - z ^ 2))
                        theorem MetricCodes.MRRW.eventually_interior_parameters {δ a u : ℝ} (hδ : 0 < δ) (hδ' : δ < 1 / 2) (hδa : δ / 2 < a) (hu : 0 < u) (hua : u < a) (ha : a < 1 / 2) :
                        theorem MetricCodes.MRRW.hasDerivAt_interiorSpectralMargin {δ a u : ℝ} (hu : 0 < u) (hua : u < a) (ha : a < 1 / 2) (hboundary : Johnson.spectralLimit a 0 0 u = Johnson.asymptoticThreshold δ a) :
                        HasDerivAt (interiorSpectralMargin δ a u) ((1 - 2 * (a * (1 - a))) * (1 - 2 * √(u * (1 - u))) / (a * (1 - a) * √(u * (1 - u)) * (1 + 2 * √(u * (1 - u))))) 0
                        theorem MetricCodes.MRRW.interiorSpectralMargin_derivative_pos {a u : ℝ} (hu : 0 < u) (hua : u < a) (ha : a < 1 / 2) :
                        0 < (1 - 2 * (a * (1 - a))) * (1 - 2 * √(u * (1 - u))) / (a * (1 - a) * √(u * (1 - u)) * (1 + 2 * √(u * (1 - u))))
                        theorem MetricCodes.MRRW.eventually_interiorSpectralMargin_pos {δ a u : ℝ} (hu : 0 < u) (hua : u < a) (ha : a < 1 / 2) (hboundary : Johnson.spectralLimit a 0 0 u = Johnson.asymptoticThreshold δ a) :
                        theorem MetricCodes.MRRW.eventually_interior_feasible {δ a u : ℝ} (hδ : 0 < δ) (hδ' : δ < 1 / 2) (hu : 0 < u) (hua : u < a) (ha : a < 1 / 2) (hboundary : Johnson.spectralLimit a 0 0 u = Johnson.asymptoticThreshold δ a) :
                        theorem MetricCodes.MRRW.interior_shell_improvement {δ a u : ℝ} (hδ : 0 < δ) (hδ' : δ < 1 / 2) (hu : 0 < u) (hua : u < a) (ha : a < 1 / 2) (hboundary : Johnson.spectralLimit a 0 0 u = Johnson.asymptoticThreshold δ a) :
                        ∃ (A : ℝ) (b : ℝ) (g : ℝ), 0 < b ∧ 0 < g ∧ Johnson.Feasible δ A b g u ∧ Johnson.shellRate A b g u < Johnson.shellRate a 0 0 u
                        theorem MetricCodes.MRRW.strict_mrrw2 {δ : ℝ} (hδ : 0 < δ) (hhalf : δ < 1 / 2) :
                        noncomputable def MetricCodes.Johnson.johnsonWindowBasis {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (Q : ShellWindowIndex n p q L) :

                        The Boolean harmonic basis function indexed by a degree and basis coordinate in the shell window.

                        Equations
                        Instances For

                          The orthonormal coordinates of a harmonic Boolean function in its global degree space.

                          Equations
                          Instances For
                            theorem MetricCodes.Johnson.johnsonWindowBasis_dot {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (source : Index p q L) (a b : Fin (booleanHarmonicDimension n (p + q + ↑source))) :
                            theorem MetricCodes.Johnson.johnsonWindowBasis_dot_coupled {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (x : JohnsonSphere n w) (source : Index p q L) (a : HarmonicFibreIndex n w p q) (b : Fin (booleanHarmonicDimension n (p + q + ↑source))) :
                            Boolean.dot (johnsonWindowBasis h ⟨source, b⟩) (coupledHarmonic x ⋯ ⋯ a ↑source) = coupledDegreeCoordinates h x source a b
                            noncomputable def MetricCodes.Johnson.johnsonWindowChannelMatrix {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (hstrict : 2 * w < n) (v : Space p q L) (lam : ℝ) :

                            The adjacent Johnson channel matrix indexed by shell-window harmonic coordinates.

                            Equations
                            • One or more equations did not get rendered due to their size.
                            Instances For
                              theorem MetricCodes.Johnson.johnsonWindowChannelMatrix_pairing {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (hstrict : 2 * w < n) (v : Space p q L) (lam : ℝ) (Q R : ShellWindowIndex n p q L) :
                              ∑ T : Fin n × ShellWindowIndex n p q L, johnsonWindowChannelMatrix h hstrict v lam T Q * johnsonWindowChannelMatrix h hstrict v lam T R = ∑ target : Index p q L, johnsonAdjacentBlockCoefficient n w p q L v lam target Q.fst * johnsonAdjacentBlockCoefficient n w p q L v lam target R.fst * Boolean.coordinateDot (johnsonAdjacentChannel n w p q L target Q.fst (johnsonWindowBasis h Q)) (johnsonAdjacentChannel n w p q L target R.fst (johnsonWindowBasis h R))
                              theorem MetricCodes.Johnson.johnsonWindowChannelMatrix_transpose_mul {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (hstrict : 2 * w < n) (v : Space p q L) (hv : ∀ (i : Index p q L), 0 < v.ofLp i) (lam : ℝ) (hlam : 0 < lam) (heigen : (operator n w p q L) v = lam • v) :
                              noncomputable def MetricCodes.Johnson.johnsonChannelMatrix {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (hstrict : 2 * w < n) (v : Space p q L) (lam : ℝ) :

                              The shell-window channel matrix reindexed by the total Johnson ambient dimension.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                theorem MetricCodes.Johnson.johnsonChannelMatrix_transpose_mul {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (hstrict : 2 * w < n) (v : Space p q L) (hv : ∀ (i : Index p q L), 0 < v.ofLp i) (lam : ℝ) (hlam : 0 < lam) (heigen : (operator n w p q L) v = lam • v) :
                                (johnsonChannelMatrix h hstrict v lam).transpose * johnsonChannelMatrix h hstrict v lam = 1
                                theorem MetricCodes.Johnson.johnsonAdjacentChannel_coordinate_axisDot {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (hstrict : 2 * w < n) (x : JohnsonSphere n w) (target source : Index p q L) (f : Boolean.Function n) (hf : Boolean.IsHarmonic (p + q + ↑source) f) (a : HarmonicFibreIndex n w p q) :
                                ∑ k : Fin n, ∑ b : Fin (booleanHarmonicDimension n (p + q + ↑target)), (geometricAxis x).ofLp k * johnsonHarmonicCoordinates ⋯ (johnsonAdjacentChannel n w p q L target source f k) ⋯ b * coupledDegreeCoordinates h x target a b = Boolean.coordinateDot (johnsonAdjacentChannel n w p q L target source f) (johnsonAxisTensor x (coupledHarmonic x ⋯ ⋯ a ↑target))
                                theorem MetricCodes.Johnson.johnsonWindowChannelMatrix_transpose_axis_fibre {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (hstrict : 2 * w < n) (v : Space p q L) (hv : ∀ (i : Index p q L), 0 < v.ofLp i) (lam : ℝ) (hlam : 0 < lam) (heigen : (operator n w p q L) v = lam • v) (haxis : ∀ (x : JohnsonSphere n w) (target source : Index p q L) (f : Boolean.Function n), Boolean.IsHarmonic (p + q + ↑source) f → ∀ (a : HarmonicFibreIndex n w p q), Boolean.coordinateDot (johnsonAdjacentChannel n w p q L target source f) (johnsonAxisTensor x (coupledHarmonic x ⋯ ⋯ a ↑target)) = √(johnsonSourceChannelCoefficient n w p q L source target) * Boolean.dot f (coupledHarmonic x ⋯ ⋯ a ↑source)) (x : JohnsonSphere n w) :
                                theorem MetricCodes.Johnson.johnsonChannelMatrix_transpose_axis_fibre {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (hstrict : 2 * w < n) (v : Space p q L) (hv : ∀ (i : Index p q L), 0 < v.ofLp i) (lam : ℝ) (hlam : 0 < lam) (heigen : (operator n w p q L) v = lam • v) (haxis : ∀ (x : JohnsonSphere n w) (target source : Index p q L) (f : Boolean.Function n), Boolean.IsHarmonic (p + q + ↑source) f → ∀ (a : HarmonicFibreIndex n w p q), Boolean.coordinateDot (johnsonAdjacentChannel n w p q L target source f) (johnsonAxisTensor x (coupledHarmonic x ⋯ ⋯ a ↑target)) = √(johnsonSourceChannelCoefficient n w p q L source target) * Boolean.dot f (coupledHarmonic x ⋯ ⋯ a ↑source)) (x : JohnsonSphere n w) :
                                theorem MetricCodes.Johnson.johnsonChannelMatrix_transpose_axis_projection {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (hstrict : 2 * w < n) (v : Space p q L) (hv : ∀ (i : Index p q L), 0 < v.ofLp i) (lam : ℝ) (hlam : 0 < lam) (heigen : (operator n w p q L) v = lam • v) (haxis : ∀ (x : JohnsonSphere n w) (target source : Index p q L) (f : Boolean.Function n), Boolean.IsHarmonic (p + q + ↑source) f → ∀ (a : HarmonicFibreIndex n w p q), Boolean.coordinateDot (johnsonAdjacentChannel n w p q L target source f) (johnsonAxisTensor x (coupledHarmonic x ⋯ ⋯ a ↑target)) = √(johnsonSourceChannelCoefficient n w p q L source target) * Boolean.dot f (coupledHarmonic x ⋯ ⋯ a ↑source)) (x : JohnsonSphere n w) :
                                noncomputable def MetricCodes.Johnson.johnsonGramIndexEquiv (n D : ℕ) :
                                (Fin n × Fin D) × Fin D ≃ Fin (n * D * D)

                                The enumeration flattening a coordinate and two ambient indices into one finite Gram index.

                                Equations
                                Instances For
                                  noncomputable def MetricCodes.Johnson.johnsonProjectionGramFeature {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (hstrict : 2 * w < n) (v : Space p q L) (hv : ∀ (i : Index p q L), 0 < v.ofLp i) (lam : ℝ) (x : JohnsonSphere n w) :

                                  The Euclidean Gram feature built from Johnson fibre projections, geometric axes, and channel matrices.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    theorem MetricCodes.Johnson.johnsonProjectionGramFeature_inner {n w p q L : ℕ} (h : AdmissibleDegrees n w p q L) (hstrict : 2 * w < n) (v : Space p q L) (hv : ∀ (i : Index p q L), 0 < v.ofLp i) (lam : ℝ) (hlam : 0 < lam) (heigen : (operator n w p q L) v = lam • v) (haxis : ∀ (x : JohnsonSphere n w) (target source : Index p q L) (f : Boolean.Function n), Boolean.IsHarmonic (p + q + ↑source) f → ∀ (a : HarmonicFibreIndex n w p q), Boolean.coordinateDot (johnsonAdjacentChannel n w p q L target source f) (johnsonAxisTensor x (coupledHarmonic x ⋯ ⋯ a ↑target)) = √(johnsonSourceChannelCoefficient n w p q L source target) * Boolean.dot f (coupledHarmonic x ⋯ ⋯ a ↑source)) (x y : JohnsonSphere n w) :
                                    inner ℝ (johnsonProjectionGramFeature h hstrict v hv lam x) (johnsonProjectionGramFeature h hstrict v hv lam y) = (correlation x y - lam) * (johnsonProjectionFamily h v hv).overlap x y

                                    The terminal degree shifted downward by a fixed window offset r.

                                    Equations
                                    Instances For
                                      theorem MetricCodes.Johnson.SpectralAsymptotics.tendsto_add_degree_add_fixed_ratio {f g : ℕ → ℕ} {a b : ℝ} (hf : Filter.Tendsto (fun (n : ℕ) => ↑(f n) / ↑n) Filter.atTop (nhds a)) (hg : Filter.Tendsto (fun (n : ℕ) => ↑(g n) / ↑n) Filter.atTop (nhds b)) (r : ℕ) :
                                      Filter.Tendsto (fun (n : ℕ) => ↑(f n + g n + r) / ↑n) Filter.atTop (nhds (a + b))
                                      theorem MetricCodes.Johnson.SpectralAsymptotics.tendsto_johnsonJ_ratio {u : ℝ} (hu : 0 < u) (r : ℕ) :
                                      Filter.Tendsto (fun (n : ℕ) => johnsonJ n (terminalIndex u r n) / ↑n) Filter.atTop (nhds ((1 - 2 * u) / 2))
                                      noncomputable def MetricCodes.Johnson.SpectralAsymptotics.normalizedMu (j₁ j₂ j m e : ℝ) :

                                      The dimensionless expression for the Johnson mu coefficient after scaling by the word length.

                                      Equations
                                      Instances For
                                        theorem MetricCodes.Johnson.SpectralAsymptotics.johnsonMu_div_eq_normalized (n w p q j : ℕ) (hn : 0 < n) (hj : johnsonJ n j ≠ 0) (hj' : johnsonJ n j + 1 ≠ 0) :
                                        johnsonMu n w p q j / ↑n = normalizedMu (johnsonJ1 w p / ↑n) (johnsonJ2 n w q / ↑n) (johnsonJ n j / ↑n) (johnsonM n w / ↑n) (1 / ↑n)

                                        The limiting Johnson mu coefficient under proportional shell and degree scaling.

                                        Equations
                                        Instances For
                                          theorem MetricCodes.Johnson.SpectralAsymptotics.normalizedMu_zero (a b g u : ℝ) (hz : 1 - 2 * u ≠ 0) :
                                          normalizedMu (a / 2 - b) ((1 - a) / 2 - g) ((1 - 2 * u) / 2) ((1 - 2 * a) / 2) 0 = muLimit a b g u
                                          noncomputable def MetricCodes.Johnson.SpectralAsymptotics.normalizedDiagonal (j₁ j₂ j m e x y : ℝ) :

                                          The dimensionless Johnson diagonal expression in terms of the normalized mu coefficient.

                                          Equations
                                          Instances For
                                            theorem MetricCodes.Johnson.SpectralAsymptotics.johnsonDiagonal_eq_normalized (n w p q j : ℕ) (hn : 0 < n) (hw : 0 < w) (hwn : w < n) (hj : 0 < johnsonJ n j) :
                                            johnsonDiagonal n w p q j = normalizedDiagonal (johnsonJ1 w p / ↑n) (johnsonJ2 n w q / ↑n) (johnsonJ n j / ↑n) (johnsonM n w / ↑n) (1 / ↑n) (↑w / ↑n) (↑(n - w) / ↑n)

                                            The limiting Johnson diagonal coefficient under proportional shell and degree scaling.

                                            Equations
                                            • One or more equations did not get rendered due to their size.
                                            Instances For
                                              noncomputable def MetricCodes.Johnson.SpectralAsymptotics.normalizedNu (j m eta sigma e : ℝ) :

                                              The homogeneous square-root expression used to scale the Johnson nu coefficient.

                                              Equations
                                              Instances For
                                                theorem MetricCodes.Johnson.SpectralAsymptotics.normalizedNu_scale (N J M eta sigma : ℝ) (hN : 0 < N) (hstep : 0 < 2 * J - 1) :
                                                √((J ^ 2 - M ^ 2) * (J ^ 2 - eta ^ 2) * ((sigma + 1) ^ 2 - J ^ 2)) / (2 * J * √((2 * J - 1) * (2 * J + 1))) / N = normalizedNu (J / N) (M / N) (eta / N) (sigma / N) (1 / N)
                                                theorem MetricCodes.Johnson.SpectralAsymptotics.johnsonNu_div_eq_normalized (n w p q j : ℕ) (hn : 0 < n) (hstep : 0 < 2 * johnsonJ n j - 1) :
                                                johnsonNu n w p q j / ↑n = normalizedNu (johnsonJ n j / ↑n) (johnsonM n w / ↑n) (johnsonDelta n w p q / ↑n) (johnsonSigma n w p q / ↑n) (1 / ↑n)

                                                The limiting normalized Johnson nu coefficient under proportional degree scaling.

                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  theorem MetricCodes.Johnson.SpectralAsymptotics.normalizedNu_zero (a b g u : ℝ) (hz : 0 < 1 - 2 * u) :
                                                  normalizedNu ((1 - 2 * u) / 2) ((1 - 2 * a) / 2) (centeredEta a b g / 2) ((1 - 2 * b - 2 * g) / 2) 0 = nuLimit a b g u

                                                  The limiting Johnson edge coefficient under proportional shell and degree scaling.

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

                                                    The limiting hatted Johnson diagonal coefficient under proportional degree scaling.

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

                                                      The limiting hatted Johnson edge coefficient under proportional degree scaling.

                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        theorem MetricCodes.Johnson.SpectralAsymptotics.diagonalLimit_zero_eq {d a b g u : ℝ} (_h : AsymptoticParameters d a b g u) :
                                                        diagonalLimit a 0 0 u = (1 - 2 * a) ^ 2 * (1 - (1 - 2 * u) ^ 2) / ((1 - 2 * u) ^ 2 * (1 - (1 - 2 * a) ^ 2))
                                                        theorem MetricCodes.Johnson.SpectralAsymptotics.edgeLimit_zero_eq {d a b g u : ℝ} (h : AsymptoticParameters d a b g u) :
                                                        edgeLimit a 0 0 u = ((1 - 2 * u) ^ 2 - (1 - 2 * a) ^ 2) * √(1 - (1 - 2 * u) ^ 2) / (2 * (1 - 2 * u) ^ 2 * (1 - (1 - 2 * a) ^ 2))
                                                        theorem MetricCodes.Johnson.SpectralAsymptotics.tridiagonal_quadratic_sum (d : ℕ) (b c v : ℕ → ℝ) :
                                                        ∑ i ∈ Finset.range (d + 1), ∑ j ∈ Finset.range (d + 1), (if i = j then b i else if i + 1 = j then c i else if j + 1 = i then c j else 0) * v j * v i = ∑ i ∈ Finset.range (d + 1), b i * v i ^ 2 + 2 * ∑ i ∈ Finset.range d, c i * v i * v (i + 1)
                                                        theorem MetricCodes.Johnson.SpectralAsymptotics.terminal_indicator_diagonal_sum (d m : ℕ) (hm : m ≤ d) (b : ℕ → ℝ) :
                                                        ∑ i ∈ Finset.range (d + 1), b i * Hamming.terminalIndicator d m i ^ 2 = ∑ r ∈ Finset.range (m + 1), b (d - m + r)

                                                        The terminal vector used in the Johnson-code argument.

                                                        Equations
                                                        Instances For
                                                          theorem MetricCodes.Johnson.SpectralAsymptotics.terminalVector_inner (n w p q L m : ℕ) (hfirst : p + q ≤ L) (hm : m ≤ L - (p + q)) :
                                                          inner ℝ ((operator n w p q L) (terminalVector p q L m)) (terminalVector p q L m) = ∑ r ∈ Finset.range (m + 1), johnsonHattedDiagonal n w p q (L - m + r) + 2 * ∑ r ∈ Finset.range m, johnsonHattedEdge n w p q (L - m + r)
                                                          theorem MetricCodes.Johnson.SpectralAsymptotics.terminalVector_rayleigh (n w p q L m : ℕ) (hfirst : p + q ≤ L) (hm : m ≤ L - (p + q)) :
                                                          rayleigh n w p q L (terminalVector p q L m) = (∑ r ∈ Finset.range (m + 1), johnsonHattedDiagonal n w p q (L - m + r) + 2 * ∑ r ∈ Finset.range m, johnsonHattedEdge n w p q (L - m + r)) / (↑m + 1)
                                                          theorem MetricCodes.Johnson.SpectralAsymptotics.terminal_rayleigh_le_top (n w p q L m : ℕ) (hfirst : p + q ≤ L) (hm : m ≤ L - (p + q)) :
                                                          (∑ r ∈ Finset.range (m + 1), johnsonHattedDiagonal n w p q (L - m + r) + 2 * ∑ r ∈ Finset.range m, johnsonHattedEdge n w p q (L - m + r)) / (↑m + 1) ≤ topEigenvalue n w p q L

                                                          The Rayleigh quotient of the constant vector on a terminal window of m + 1 Johnson degrees.

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

                                                            The spectral gap used in the Johnson-code argument.

                                                            Equations
                                                            Instances For
                                                              noncomputable def MetricCodes.Johnson.Rate.certificateConstant (d a b g u : ℝ) :

                                                              The ratio of the threshold numerator to the positive spectral gap in the Johnson rate certificate.

                                                              Equations
                                                              Instances For
                                                                theorem MetricCodes.Johnson.Rate.exists_zero_fibre_feasible {d : ℝ} (hd : 0 < d) (hdhalf : d < 1 / 2) :
                                                                ∃ (a : ℝ) (u : ℝ), Feasible d a 0 0 u
                                                                theorem MetricCodes.Johnson.Rate.rateSet_nonempty_of_interior {d : ℝ} (hd : 0 < d) (hdhalf : d < 1 / 2) :

                                                                The fixed first parameter used in the certified numerical kissing-number estimate.

                                                                Equations
                                                                Instances For

                                                                  The fixed second parameter used in the certified numerical kissing-number estimate.

                                                                  Equations
                                                                  Instances For
                                                                    noncomputable def MetricCodes.Numerics.logSeriesLower (x : ℝ) (m : ℕ) :

                                                                    The log series lower used in the metric-code argument.

                                                                    Equations
                                                                    Instances For
                                                                      noncomputable def MetricCodes.Numerics.logSeriesUpper (x : ℝ) (m : ℕ) :

                                                                      The log series upper used in the metric-code argument.

                                                                      Equations
                                                                      Instances For
                                                                        theorem MetricCodes.Numerics.log_ratio_lower {x : ℝ} (hx : 0 ≤ x) (hx' : x < 1) (m : ℕ) :
                                                                        logSeriesLower x m ≤ Real.log ((1 + x) / (1 - x))
                                                                        theorem MetricCodes.Numerics.log_ratio_upper {x : ℝ} (hx : 0 ≤ x) (hx' : x < 1) (m : ℕ) :
                                                                        Real.log ((1 + x) / (1 - x)) ≤ logSeriesUpper x m
                                                                        theorem MetricCodes.Numerics.log_interval_of_series {r x lo hi : ℝ} (m : ℕ) (hx : 0 ≤ x) (hx' : x < 1) (hr : (1 + x) / (1 - x) = r) (hlo : lo < logSeriesLower x m) (hhi : logSeriesUpper x m < hi) :
                                                                        lo < Real.log r ∧ Real.log r < hi
                                                                        theorem MetricCodes.Numerics.log_two_interval :
                                                                        693147180559945309 / 10 ^ 18 < Real.log 2 ∧ Real.log 2 < 693147180559945310 / 10 ^ 18
                                                                        theorem MetricCodes.Numerics.log_kissing_one_add_a_interval :
                                                                        82226264808038924 / 10 ^ 18 < Real.log (1 + kissingA) ∧ Real.log (1 + kissingA) < 82226264808038925 / 10 ^ 18
                                                                        theorem MetricCodes.Numerics.log_kissing_scaled_a_interval :
                                                                        315703048970999865 / 10 ^ 18 < Real.log (16 * kissingA) ∧ Real.log (16 * kissingA) < 315703048970999866 / 10 ^ 18
                                                                        theorem MetricCodes.Numerics.log_kissing_one_add_b_interval :
                                                                        3695990739373266 / 10 ^ 18 < Real.log (1 + kissingB) ∧ Real.log (1 + kissingB) < 3695990739373267 / 10 ^ 18
                                                                        theorem MetricCodes.Numerics.log_kissing_inverse_scaled_b_interval :
                                                                        53480621756332520 / 10 ^ 18 < Real.log (1 / (256 * kissingB)) ∧ Real.log (1 / (256 * kissingB)) < 53480621756332521 / 10 ^ 18
                                                                        theorem MetricCodes.Numerics.kissing_sqrt_upper :
                                                                        √(kissingA * (1 + kissingA)) < 30503471040898065 / 10 ^ 17

                                                                        The feasible used in the spherical-code argument.

                                                                        Equations
                                                                        Instances For

                                                                          The rate set used in the spherical-code argument.

                                                                          Equations
                                                                          Instances For

                                                                            The variational rate used in the spherical-code argument.

                                                                            Equations
                                                                            Instances For
                                                                              theorem MetricCodes.Spherical.Gamma_zero {a : ℝ} (ha : 0 < a) :
                                                                              Gamma a 0 = √(a * (1 + a)) / (1 + 2 * a)

                                                                              The spherical improvement path used in the spherical-code argument.

                                                                              Equations
                                                                              Instances For

                                                                                The polynomial expression used to certify positivity of the spherical spectral margin.

                                                                                Equations
                                                                                • One or more equations did not get rendered due to their size.
                                                                                Instances For
                                                                                  theorem MetricCodes.Spherical.sphericalSpectralMarginPolynomial_factor (a c b : ℝ) :
                                                                                  (((a + c * b) * (1 + (a + c * b)) - b * (1 + b)) * (1 + 2 * a)) ^ 2 - a * (1 + a) * (1 + 2 * (a + c * b)) ^ 2 * ((a + c * b) * (1 + (a + c * b))) = b * sphericalSpectralMarginPolynomial a c b

                                                                                  The spectral atom used in the spherical-code argument.

                                                                                  Equations
                                                                                  Instances For
                                                                                    def MetricCodes.Spherical.HigherHierarchy.Interlacing {r : ℕ} (a : Fin (r + 1) → ℝ) (b : Fin r → ℝ) :

                                                                                    The interlacing used in the spherical-code argument.

                                                                                    Equations
                                                                                    Instances For
                                                                                      def MetricCodes.Spherical.HigherHierarchy.lagrangeNumerator {r : ℕ} (a : Fin (r + 1) → ℝ) (b : Fin r → ℝ) (ℓ : Fin (r + 1)) :

                                                                                      The lagrange numerator used in the spherical-code argument.

                                                                                      Equations
                                                                                      Instances For

                                                                                        The lagrange denominator used in the spherical-code argument.

                                                                                        Equations
                                                                                        Instances For
                                                                                          noncomputable def MetricCodes.Spherical.HigherHierarchy.lagrangeWeight {r : ℕ} (a : Fin (r + 1) → ℝ) (b : Fin r → ℝ) (ℓ : Fin (r + 1)) :

                                                                                          The lagrange weight used in the spherical-code argument.

                                                                                          Equations
                                                                                          Instances For
                                                                                            noncomputable def MetricCodes.Spherical.HigherHierarchy.Gamma {r : ℕ} (a : Fin (r + 1) → ℝ) (b : Fin r → ℝ) :

                                                                                            The gamma used in the spherical-code argument.

                                                                                            Equations
                                                                                            Instances For
                                                                                              noncomputable def MetricCodes.Spherical.HigherHierarchy.Phi {r : ℕ} (a : Fin (r + 1) → ℝ) (b : Fin r → ℝ) :

                                                                                              The phi used in the spherical-code argument.

                                                                                              Equations
                                                                                              Instances For
                                                                                                theorem MetricCodes.Spherical.HigherHierarchy.Interlacing.ambient_nonneg {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) (i : Fin (r + 1)) :
                                                                                                0 ≤ a i
                                                                                                theorem MetricCodes.Spherical.HigherHierarchy.Interlacing.stabilizer_pos {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) (i : Fin r) :
                                                                                                0 < b i
                                                                                                theorem MetricCodes.Spherical.HigherHierarchy.Interlacing.quadratic_injective {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) :
                                                                                                Function.Injective fun (i : Fin (r + 1)) => a i * (1 + a i)
                                                                                                theorem MetricCodes.Spherical.HigherHierarchy.lagrangeDenominator_eq_prod_erase {r : ℕ} (a : Fin (r + 1) → ℝ) (ℓ : Fin (r + 1)) :
                                                                                                lagrangeDenominator a ℓ = ∏ j ∈ Finset.univ.erase ℓ, (a ℓ * (1 + a ℓ) - a j * (1 + a j))
                                                                                                theorem MetricCodes.Spherical.HigherHierarchy.Interlacing.lagrangeFactor_pos {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) (ℓ : Fin (r + 1)) (m : Fin r) :
                                                                                                0 < (a ℓ * (1 + a ℓ) - b m * (1 + b m)) / (a ℓ * (1 + a ℓ) - a (ℓ.succAbove m) * (1 + a (ℓ.succAbove m)))
                                                                                                theorem MetricCodes.Spherical.HigherHierarchy.Interlacing.lagrangeWeight_pos {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) (ℓ : Fin (r + 1)) :
                                                                                                0 < lagrangeWeight a b ℓ
                                                                                                theorem MetricCodes.Spherical.HigherHierarchy.Interlacing.lagrangeWeight_nonneg {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) (ℓ : Fin (r + 1)) :

                                                                                                The monic polynomial with roots b m * (1 + b m) for the stabilizer parameters.

                                                                                                Equations
                                                                                                Instances For
                                                                                                  theorem MetricCodes.Spherical.HigherHierarchy.stabilizerPolynomial_eval {r : ℕ} (a : Fin (r + 1) → ℝ) (b : Fin r → ℝ) (ℓ : Fin (r + 1)) :
                                                                                                  theorem MetricCodes.Spherical.HigherHierarchy.Interlacing.sum_lagrangeWeight {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) :
                                                                                                  ∑ ℓ : Fin (r + 1), lagrangeWeight a b ℓ = 1

                                                                                                  The angle j * π / N used to parameterize the Chebyshev zeros.

                                                                                                  Equations
                                                                                                  Instances For

                                                                                                    The zero used in the spherical-code argument.

                                                                                                    Equations
                                                                                                    Instances For

                                                                                                      The stabilizer used in the spherical-code argument.

                                                                                                      Equations
                                                                                                      Instances For

                                                                                                        The kissing ambient used in the spherical-code argument.

                                                                                                        Equations
                                                                                                        Instances For

                                                                                                          The kissing stabilizer used in the spherical-code argument.

                                                                                                          Equations
                                                                                                          Instances For
                                                                                                            @[simp]
                                                                                                            theorem MetricCodes.Spherical.HigherHierarchy.Numerics.kissingAmbient_apply (i : Fin 3) :
                                                                                                            kissingAmbient i = if ↑i = 0 then 90531e-6 else if ↑i = 1 then 565957168637484e-18 else 249433171106134e-20
                                                                                                            @[simp]
                                                                                                            theorem MetricCodes.Spherical.HigherHierarchy.Numerics.kissingStabilizer_apply (i : Fin 2) :
                                                                                                            kissingStabilizer i = if ↑i = 0 then 693131464159807e-17 else 438056170666568e-19
                                                                                                            theorem MetricCodes.Spherical.HigherHierarchy.Interlacing.Phi_nonneg {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) :
                                                                                                            0 ≤ Phi a b

                                                                                                            The hierarchy rate set used in the spherical-code argument.

                                                                                                            Equations
                                                                                                            • One or more equations did not get rendered due to their size.
                                                                                                            Instances For
                                                                                                              noncomputable def MetricCodes.Spherical.HigherHierarchy.stieltjesPhase {r : ℕ} (a : Fin (r + 1) → ℝ) (b : Fin r → ℝ) (t : ℝ) :

                                                                                                              The stieltjes phase used in the spherical-code argument.

                                                                                                              Equations
                                                                                                              • One or more equations did not get rendered due to their size.
                                                                                                              Instances For
                                                                                                                noncomputable def MetricCodes.Spherical.HigherHierarchy.stieltjesPhaseProduct {r : ℕ} (a : Fin (r + 1) → ℝ) (b : Fin r → ℝ) (t : ℝ) :

                                                                                                                The stieltjes phase product used in the spherical-code argument.

                                                                                                                Equations
                                                                                                                Instances For
                                                                                                                  theorem MetricCodes.Spherical.HigherHierarchy.Interlacing.ambient_quadratic_nonneg {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) (i : Fin (r + 1)) :
                                                                                                                  0 ≤ a i * (1 + a i)
                                                                                                                  theorem MetricCodes.Spherical.HigherHierarchy.Interlacing.stabilizer_quadratic_pos {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) (i : Fin r) :
                                                                                                                  0 < b i * (1 + b i)
                                                                                                                  theorem MetricCodes.Spherical.HigherHierarchy.integral_inv_add_eq_log_div {t p q : ℝ} (hp : 0 < t + p) (hq : 0 < t + q) :
                                                                                                                  ∫ (u : ℝ) in p..q, (t + u)⁻¹ = Real.log ((t + q) / (t + p))
                                                                                                                  theorem MetricCodes.Spherical.HigherHierarchy.stieltjesPhase_eq_log_sum {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) {t : ℝ} (ht : 0 < t) :
                                                                                                                  stieltjesPhase a b t = Real.log ((t + a (Fin.last r) * (1 + a (Fin.last r))) / t) + ∑ i : Fin r, Real.log ((t + a i.castSucc * (1 + a i.castSucc)) / (t + b i * (1 + b i)))
                                                                                                                  theorem MetricCodes.Spherical.HigherHierarchy.polynomial_partialFraction {r : ℕ} {x : Fin (r + 1) → ℝ} (hx : Function.Injective x) (P : Polynomial ℝ) (hdegree : P.degree < ↑Finset.univ.card) {z : ℝ} (hz : ∀ (i : Fin (r + 1)), z ≠ x i) :
                                                                                                                  Polynomial.eval z P / ∏ i : Fin (r + 1), (z - x i) = ∑ i : Fin (r + 1), (Polynomial.eval (x i) P / ∏ j ∈ Finset.univ.erase i, (x i - x j)) / (z - x i)
                                                                                                                  theorem MetricCodes.Spherical.HigherHierarchy.stieltjesPartialFraction {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) {t : ℝ} (ht : 0 < t) :
                                                                                                                  (∏ i : Fin r, (t + b i * (1 + b i))) / ∏ i : Fin (r + 1), (t + a i * (1 + a i)) = ∑ i : Fin (r + 1), lagrangeWeight a b i / (t + a i * (1 + a i))
                                                                                                                  theorem MetricCodes.Spherical.HigherHierarchy.exp_neg_stieltjesPhase_eq_lagrange_sum {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) {t : ℝ} (ht : 0 < t) :
                                                                                                                  Real.exp (-stieltjesPhase a b t) = ∑ i : Fin (r + 1), lagrangeWeight a b i * (t / (t + a i * (1 + a i)))
                                                                                                                  theorem MetricCodes.Spherical.HigherHierarchy.integral_exp_neg_stieltjesPhase_eq_one_sub_two_Gamma {r : ℕ} {a : Fin (r + 1) → ℝ} {b : Fin r → ℝ} (h : Interlacing a b) (μ : MeasureTheory.Measure ℝ) [MeasureTheory.IsFiniteMeasure μ] (hpositive : ∀ᵐ (t : ℝ) ∂μ, 0 < t) (hstieltjes : ∀ (i : Fin (r + 1)), ∫ (t : ℝ), t / (t + a i * (1 + a i)) ∂μ = 1 - 2 * spectralAtom (a i)) :
                                                                                                                  ∫ (t : ℝ), Real.exp (-stieltjesPhase a b t) ∂μ = 1 - 2 * Gamma a b