Documentation

LeanPool.DistinctDistances.S4Geometry

Geometric parameters and normalized certificate variables #

Theorem S4 of docs/results/explicit-constant-gain-1-40-2026-10-21.md is proved by an exact-rational certificate: in each of 60 cases for the mean radial excess yMean, a nonnegative combination of valid linear rows contradicts the box of the normalized variables. This file fixes the interface between the certificate data and the geometry:

RationalFarkasRows supplies the generic rational-to-integer row conversion. S4RowBuilder selects the geometric rows, and the S4Sound* modules prove their soundness.

Variables: 𝒜(gᵢ) ↦ 2i, ℛ(gᵢ) ↦ 2i + 1 (i < ng), D/n ↦ 2 ng, 1/n ↦ 2 ng + 1, and for band b < nb: W_b ↦ 2 ng + 2 + 3b, U_b ↦ 2 ng + 3 + 3b, V_b ↦ 2 ng + 4 + 3b.

Constants of the certificate #

The annulus parameter sBar = 41821/50000 (sBar² ≤ 1 - 12/40 - 4/10⁴).

Equations
Instances For

    The annulus width W = 1 - sBar².

    Equations
    Instances For

      The upper bound 1/3 + 1/40 of D/n under the contradiction hypothesis.

      Equations
      Instances For

        The upper bound 1/10000 of 1/n.

        Equations
        Instances For

          Certificate parameters and variables #

          structure Esgk.S4.Params :

          The certificate parameters.

          • ng : ℕ

            the number of grid points

          • g : ℕ → ℚ

            the grid point of an index

          • nb : ℕ

            the number of bands of Lemma AB

          • bLam : ℕ → ℕ

            the grid index of the threshold λ of a band

          • bLo : ℕ → ℕ

            the grid index of the lower edge of a band

          • bHi : ℕ → ℕ

            the grid index of the upper edge of a band

          • nch : ℕ

            the number of proved chord conditions

          • ch : ℕ → ℚ × ℚ × ℚ

            the proved chord conditions (lo, hi, T)

          Instances For
            def Esgk.S4.aVar (i : ℕ) :

            The variable 𝒜(gᵢ).

            Equations
            Instances For
              def Esgk.S4.rVar (i : ℕ) :

              The variable ℛ(gᵢ).

              Equations
              Instances For

                The variable D/n.

                Equations
                Instances For

                  The variable 1/n.

                  Equations
                  Instances For
                    def Esgk.S4.Params.wV (P : Params) (b : ℕ) :

                    The variable W_b (the number of triples of band b, over n²).

                    Equations
                    Instances For
                      def Esgk.S4.Params.uV (P : Params) (b : ℕ) :

                      The variable U_b (the base excess of band b, over n²).

                      Equations
                      Instances For
                        def Esgk.S4.Params.vV (P : Params) (b : ℕ) :

                        The variable V_b (the apex excess of band b, over n²).

                        Equations
                        Instances For

                          The number of variables.

                          Equations
                          Instances For
                            def Esgk.S4.Params.sq (P : Params) (i : ℕ) :

                            The squared grid point gᵢ².

                            Equations
                            Instances For
                              def Esgk.S4.Params.ok (P : Params) (i : ℕ) :

                              The index is a grid index.

                              Equations
                              Instances For

                                The index is a band index.

                                Equations
                                Instances For

                                  The configuration #

                                  structure Esgk.S4.Setting (n : ℕ) :

                                  A configuration with the hypotheses of the contradiction argument for Theorem S4.

                                  Instances For
                                    noncomputable def Esgk.S4.Setting.ρ {n : ℕ} (S : Setting n) :

                                    The annulus radius ρ.

                                    Equations
                                    Instances For
                                      noncomputable def Esgk.S4.Setting.c {n : ℕ} (S : Setting n) :

                                      The centroid.

                                      Equations
                                      Instances For
                                        noncomputable def Esgk.S4.Setting.pairs {n : ℕ} (S : Setting n) (t : ℝ) :

                                        P(t): the number of ordered pairs of distinct points at squared distance at most t.

                                        Equations
                                        Instances For
                                          noncomputable def Esgk.S4.Setting.pal {n : ℕ} (S : Setting n) (t : ℝ) :

                                          R(t): the number of palette values r with r² ≤ t.

                                          Equations
                                          Instances For
                                            noncomputable def Esgk.S4.Setting.D {n : ℕ} (S : Setting n) :

                                            The number D of distances.

                                            Equations
                                            Instances For
                                              noncomputable def Esgk.S4.Setting.y {n : ℕ} (S : Setting n) (i : Fin n) :

                                              The radial excess yᵢ = |pᵢ - c|²/ρ² - sBar².

                                              Equations
                                              Instances For
                                                noncomputable def Esgk.S4.Setting.ybar {n : ℕ} (S : Setting n) :

                                                The mean radial excess yMean.

                                                Equations
                                                Instances For
                                                  noncomputable def Esgk.S4.Setting.bandTri {n : ℕ} (S : Setting n) (P : Params) (b : ℕ) :
                                                  Finset (Fin n × Fin n × Fin n)

                                                  The triples of band b of Lemma AB.

                                                  Equations
                                                  Instances For
                                                    noncomputable def Esgk.S4.Setting.bandCount {n : ℕ} (S : Setting n) (P : Params) (b r : ℕ) :

                                                    The band variables W_b (r = 0), U_b (r = 1) and V_b (r = 2), times n².

                                                    Equations
                                                    Instances For
                                                      def Esgk.S4.Setting.ChordHolds {n : ℕ} (S : Setting n) (lo hi T : ℚ) :

                                                      The chord condition (lo, hi, T): every saturated incidence of radius r with lo²ρ² < r² ≤ hi²ρ² has two of its points at squared distance at most Tρ².

                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        theorem Esgk.S4.Setting.n_pos {n : ℕ} (S : Setting n) :
                                                        0 < n
                                                        theorem Esgk.S4.Setting.hnR {n : ℕ} (S : Setting n) :
                                                        10000 ≤ ↑n
                                                        theorem Esgk.S4.Setting.hcap {n : ℕ} (S : Setting n) (i : Fin n) (r : ℝ) :
                                                        theorem Esgk.S4.Setting.hρ {n : ℕ} (S : Setting n) :
                                                        0 < S.ρ
                                                        theorem Esgk.S4.Setting.hD_ordered {n : ℕ} (S : Setting n) :
                                                        S.D ≤ (1 / 3 + 1 / 40) * ↑n
                                                        theorem Esgk.S4.Setting.n_le_three_D {n : ℕ} (S : Setting n) :
                                                        ↑n ≤ 3 * S.D
                                                        theorem Esgk.S4.Setting.hhi {n : ℕ} (S : Setting n) (i : Fin n) :
                                                        dist (S.p i) S.c ^ 2 ≤ S.ρ ^ 2
                                                        theorem Esgk.S4.Setting.sig_cast :
                                                        ↑sig = 41821 / 50000
                                                        theorem Esgk.S4.Setting.hlo {n : ℕ} (S : Setting n) (i : Fin n) :
                                                        ↑sig ^ 2 * S.ρ ^ 2 ≤ dist (S.p i) S.c ^ 2
                                                        theorem Esgk.S4.Setting.hsum {n : ℕ} (S : Setting n) :
                                                        ∑ i : Fin n, (S.p i - S.c) = 0

                                                        The valuation #

                                                        noncomputable def Esgk.S4.val {n : ℕ} (P : Params) (S : Setting n) (k : ℕ) :

                                                        The normalized variables of the certificate, by variable index.

                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          theorem Esgk.S4.val_aVar {n : ℕ} (P : Params) (S : Setting n) {i : ℕ} (hi : i < P.ng) :
                                                          val P S (aVar i) = S.pairs (↑(P.g i) ^ 2 * S.ρ ^ 2) / (↑n * ↑n)
                                                          theorem Esgk.S4.val_rVar {n : ℕ} (P : Params) (S : Setting n) {i : ℕ} (hi : i < P.ng) :
                                                          val P S (rVar i) = S.pal (↑(P.g i) ^ 2 * S.ρ ^ 2) / ↑n
                                                          theorem Esgk.S4.val_dV {n : ℕ} (P : Params) (S : Setting n) :
                                                          val P S P.dV = S.D / ↑n
                                                          theorem Esgk.S4.val_eV {n : ℕ} (P : Params) (S : Setting n) :
                                                          val P S P.eV = 1 / ↑n
                                                          theorem Esgk.S4.val_wV {n : ℕ} (P : Params) (S : Setting n) (b : ℕ) :
                                                          val P S (P.wV b) = ↑(S.bandTri P b).card / (↑n * ↑n)
                                                          theorem Esgk.S4.val_uV {n : ℕ} (P : Params) (S : Setting n) (b : ℕ) :
                                                          val P S (P.uV b) = (∑ x ∈ S.bandTri P b, (S.y x.2.1 + S.y x.2.2)) / (↑n * ↑n)
                                                          theorem Esgk.S4.val_vV {n : ℕ} (P : Params) (S : Setting n) (b : ℕ) :
                                                          val P S (P.vV b) = (∑ x ∈ S.bandTri P b, S.y x.1) / (↑n * ↑n)