Documentation

RequestProject.HadamardCn3Defs

Foundational Definitions For The Cn^3 Formalization #

This module contains the basic combinatorial, Gaussian, and coordinate-level objects used throughout the active development.

It is intentionally definition-heavy: the later analytic and counting bridges live in the split follow-on modules

Architecture #

We model edge data using symmetric matrices Fin n → Fin n → ℝ rather than an explicit Fin (n.choose 2) coordinate system. This keeps the basic definitions, influence statistics, and Gaussian support quantities closer to the mathematical notation used downstream.

Setup and Core Definitions #

def dim (n : ) :

The dimension d = n choose 2, the number of edges of the complete graph K_n.

Equations
Instances For
    def signOf (b : Fin 2) :

    The set of all sign vectors in {-1,1}^n, represented via Fin 2. We encode: 0 ↦ -1, 1 ↦ 1.

    Equations
    Instances For
      def innerX (n : ) (lam : Fin nFin n) (σ : Fin nFin 2) :

      The quadratic form X_λ(σ) = Σ_{i<j} λ_{ij} σ_i σ_j on sign vectors.

      Equations
      Instances For
        def gaussianInnerX (n : ) (lam : Fin nFin n) (x : Fin n) :

        The same quadratic form evaluated on real coordinates, used for the Gaussian comparison side of the Mossel-O'Donnell-Oleszkiewicz invariance principle.

        Equations
        Instances For
          def psi (n : ) (lam : Fin nFin n) :

          The discrete Fourier average ψ_n(λ) = 2^{-n} Σ_{σ ∈ {-1,1}^n} exp(i X_λ(σ)).

          Equations
          Instances For
            def sNorm (n : ) (lam : Fin nFin n) :

            s(λ) = ‖λ‖² = Σ_{i<j} λ_{ij}², the squared norm of the edge vector.

            Equations
            Instances For
              def cubicT (n : ) (lam : Fin nFin n) :

              T(λ) = Σ_{i<j<k} λ_{ij} λ_{ik} λ_{jk}, the triangle sum.

              Equations
              Instances For
                def gaussianF (d : ) (t : ) :

                The Gaussian integral F(d,t) = (π/(2t))^{d/2}.

                Equations
                Instances For
                  def coreMass (d : ) (t : ) :

                  The inner-core Gaussian mass G_core(d,t) = ∫_{‖λ‖²≤d/t} e^{-2t‖λ‖²} dλ. Defined as the Lebesgue integral with indicator.

                  Equations
                  Instances For
                    def hadamardCount (n s : ) :

                    The number N_{n,s} of n × s partial Hadamard matrices. An n × s partial Hadamard matrix has entries ±1 with pairwise orthogonal rows.

                    Equations
                    Instances For
                      def normalizedCount (n s : ) :

                      The normalized count N_{n,s} / 2^{ns}. This is the combinatorial quantity directly identified with the normalized torus integral.

                      Equations
                      Instances For
                        def gaussianMatrix (n : ) (lam : Fin nFin n) :
                        Matrix (Fin n) (Fin n)

                        The symmetric zero-diagonal matrix attached to lam, obtained by reflecting the strict upper-triangular coordinates across the diagonal.

                        Equations
                        Instances For
                          theorem gaussianMatrix_isHermitian (n : ) (lam : Fin nFin n) :
                          theorem gaussianMatrix_eigenvalue_sq_sum (n : ) (lam : Fin nFin n) :
                          let T := Matrix.toEuclideanLin (gaussianMatrix n lam); have hSymm := ; i : Fin n, hSymm.eigenvalues i ^ 2 = 2 * sNorm n lam
                          def simpleCycle4 (n : ) (lam : Fin nFin n) :

                          The simple 4-cycle sum over increasing quadruples of vertices.

                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            def orderedCycle4 (n : ) (lam : Fin nFin n) :

                            The ordered 4-cycle form C_4^ord(λ) = Σ over ordered 4-cycles.

                            Equations
                            Instances For
                              def quarticCorr (n : ) (lam : Fin nFin n) :

                              The corrected quartic polynomial Q_4^corr(λ) = -(1/12) Σ_e λ_e⁴ + (1/8) C_4^ord(λ).

                              Equations
                              Instances For
                                def minorLamLast {n : } (lam : Fin (n + 1)Fin (n + 1)) :
                                Fin nFin n

                                The upper-left minor obtained by deleting the last vertex.

                                Equations
                                Instances For
                                  def lastColLam {n : } (lam : Fin (n + 1)Fin (n + 1)) :
                                  Fin n

                                  The last-column edge weights obtained by deleting the last vertex.

                                  Equations
                                  Instances For
                                    def simpleCycle4LastCross (n : ) (B : Fin nFin n) (x : Fin n) :

                                    The simple 4-cycle contribution coming from cycles that use the last vertex.

                                    Equations
                                    Instances For
                                      def cubicTLastCross (n : ) (B : Fin nFin n) (x : Fin n) :

                                      The triangle contribution coming from triangles that use the last vertex.

                                      Equations
                                      Instances For
                                        theorem strictUpper_sum_split_last {n : } (f : Fin (n + 1)Fin (n + 1)) :
                                        (∑ i : Fin (n + 1), j : Fin (n + 1), if i < j then f i j else 0) = (∑ i : Fin n, j : Fin n, if i < j then f i.castSucc j.castSucc else 0) + i : Fin n, f i.castSucc (Fin.last n)

                                        Split a strict upper-triangular double sum by whether the second index is the last vertex or not.

                                        theorem sNorm_peel_last (n : ) (lam : Fin (n + 1)Fin (n + 1)) :
                                        sNorm (n + 1) lam = sNorm n (minorLamLast lam) + i : Fin n, lastColLam lam i ^ 2

                                        The squared edge norm splits into the peeled minor and the last column.

                                        theorem cubicT_peel_last (n : ) (lam : Fin (n + 1)Fin (n + 1)) :

                                        The triangle form splits by whether a triangle uses the last vertex.

                                        theorem quarticCorr_peel_last (n : ) (lam : Fin (n + 1)Fin (n + 1)) :
                                        quarticCorr (n + 1) lam = quarticCorr n (minorLamLast lam) + simpleCycle4LastCross n (minorLamLast lam) (lastColLam lam) - 1 / 12 * i : Fin n, lastColLam lam i ^ 4

                                        Manuscript lem:quartic-peeling in corrected-quartic form.

                                        def avgSigns (n : ) (f : (Fin nFin 2)) :

                                        Averaging over all sign vectors in (Fin n → Fin 2).

                                        Equations
                                        Instances For
                                          def stdGaussianAvg (n : ) (f : (Fin n)) :

                                          Expectation against the standard Gaussian law on ℝ^n, written as a normalized Lebesgue integral.

                                          Equations
                                          Instances For

                                            Internal Gaussian characteristic-function support #

                                            def gaussianPsiIntegrand (n : ) (lam : Fin nFin n) (x : Fin n) :

                                            The complex Gaussian integrand for the quadratic phase gaussianInnerX.

                                            Equations
                                            Instances For
                                              def gaussianPsiComplex (n : ) (lam : Fin nFin n) :

                                              The complex-valued Gaussian characteristic function corresponding to gaussianInnerX.

                                              Equations
                                              Instances For
                                                theorem integrable_stdGaussianDensity (n : ) :
                                                MeasureTheory.Integrable (fun (x : Fin n) => Real.exp ((-i : Fin n, x i ^ 2) / 2)) MeasureTheory.volume
                                                def gaussianPsi (n : ) (lam : Fin nFin n) :

                                                The Gaussian quadratic-characteristic function used in the MOO comparison, written via its real and imaginary parts: E[cos(gaussianInnerX)] + i E[sin(gaussianInnerX)]. This is the exact package needed to combine the MOO cosine/sine comparison with the Gaussian modulus estimate from the text.

                                                Equations
                                                Instances For
                                                  theorem gaussianPsi_re (n : ) (lam : Fin nFin n) :
                                                  (gaussianPsi n lam).re = stdGaussianAvg n fun (x : Fin n) => Real.cos (gaussianInnerX n lam x)
                                                  theorem gaussianPsi_im (n : ) (lam : Fin nFin n) :
                                                  (gaussianPsi n lam).im = stdGaussianAvg n fun (x : Fin n) => Real.sin (gaussianInnerX n lam x)
                                                  theorem gaussianPsi_eq_gaussianPsiComplex (n : ) (lam : Fin nFin n) :
                                                  theorem gaussianInnerX_eq_half_inner_toEuclideanLin (n : ) (lam : Fin nFin n) (x : Fin n) :
                                                  def momentX (n : ) (lam : Fin nFin n) (k : ) :

                                                  The k-th moment of X_λ over Rademacher signs: μ_k(λ) = E[X_λ^k].

                                                  Equations
                                                  Instances For
                                                    theorem continuous_momentX (n k : ) :
                                                    Continuous fun (lam : Fin nFin n) => momentX n lam k

                                                    The matrix-model moments vary continuously with the edge weights.

                                                    The cubic triangle sum is a continuous polynomial in the matrix entries.

                                                    def linearX (n : ) (x : Fin n) (σ : Fin nFin 2) :

                                                    Linear Rademacher form on vertex weights.

                                                    Equations
                                                    Instances For
                                                      def singleEdgeLam {n : } (u v : Fin n) :
                                                      Fin nFin n

                                                      The strict-upper indicator supported on a single edge (u,v).

                                                      Equations
                                                      Instances For
                                                        def triangleThroughPair (n : ) (B : Fin nFin n) (u v : Fin n) :

                                                        Sum of the two-edge products over triangles containing the ordered pair (u,v).

                                                        Equations
                                                        Instances For

                                                          Internal last-coordinate peeling identities #

                                                          theorem sum_signVec_split_last (n : ) (g : (Fin (n + 1)Fin 2)) :
                                                          τ : Fin (n + 1)Fin 2, g τ = σ : Fin nFin 2, b : Fin 2, g (Fin.snoc σ b)

                                                          Expand a sum over sign vectors on Fin (n+1) by the last coordinate.

                                                          theorem avgSigns_split_last (n : ) (g : (Fin (n + 1)Fin 2)) :
                                                          avgSigns (n + 1) g = avgSigns n fun (σ : Fin nFin 2) => (∑ b : Fin 2, g (Fin.snoc σ b)) / 2

                                                          Average over sign vectors by first averaging over the last sign.

                                                          theorem linearX_snoc_last (n : ) (x : Fin n) (a : ) (σ : Fin nFin 2) (b : Fin 2) :
                                                          linearX (n + 1) (Fin.snoc x a) (Fin.snoc σ b) = linearX n x σ + a * (signOf b)
                                                          theorem signOf_sq (b : Fin 2) :
                                                          (signOf b) ^ 2 = 1
                                                          theorem sum_linear_over_last_sign (A Y : ) :
                                                          b : Fin 2, (A + (signOf b) * Y) = 2 * A
                                                          theorem sum_square_over_last_sign (A Y : ) :
                                                          b : Fin 2, (A + (signOf b) * Y) ^ 2 = 2 * (A ^ 2 + Y ^ 2)
                                                          theorem sum_cube_over_last_sign (A Y : ) :
                                                          b : Fin 2, (A + (signOf b) * Y) ^ 3 = 2 * (A ^ 3 + 3 * A * Y ^ 2)
                                                          theorem sum_sq_snoc (n : ) (x : Fin n) (a : ) :
                                                          i : Fin (n + 1), Fin.snoc x a i ^ 2 = i : Fin n, x i ^ 2 + a ^ 2
                                                          theorem sum_fourth_snoc (n : ) (x : Fin n) (a : ) :
                                                          i : Fin (n + 1), Fin.snoc x a i ^ 4 = i : Fin n, x i ^ 4 + a ^ 4
                                                          theorem innerX_snoc_last (n : ) (lam : Fin (n + 1)Fin (n + 1)) (σ : Fin nFin 2) (b : Fin 2) :
                                                          innerX (n + 1) lam (Fin.snoc σ b) = innerX n (minorLamLast lam) σ + (signOf b) * linearX n (lastColLam lam) σ
                                                          theorem sum_fourth_over_last_sign (A Y : ) :
                                                          b : Fin 2, (A + (signOf b) * Y) ^ 4 = 2 * (A ^ 4 + 6 * A ^ 2 * Y ^ 2 + Y ^ 4)
                                                          theorem sum_sixth_over_last_sign (A Y : ) :
                                                          b : Fin 2, (A + (signOf b) * Y) ^ 6 = 2 * (A ^ 6 + 15 * A ^ 4 * Y ^ 2 + 15 * A ^ 2 * Y ^ 4 + Y ^ 6)
                                                          theorem sum_eighth_over_last_sign (A Y : ) :
                                                          b : Fin 2, (A + (signOf b) * Y) ^ 8 = 2 * (A ^ 8 + 28 * A ^ 6 * Y ^ 2 + 70 * A ^ 4 * Y ^ 4 + 28 * A ^ 2 * Y ^ 6 + Y ^ 8)
                                                          theorem avgSigns_congr (n : ) {f g : (Fin nFin 2)} (hfg : ∀ (σ : Fin nFin 2), f σ = g σ) :
                                                          theorem avgSigns_const_aux (n : ) (c : ) :
                                                          (avgSigns n fun (x : Fin nFin 2) => c) = c
                                                          theorem avgSigns_add_aux (n : ) (f g : (Fin nFin 2)) :
                                                          (avgSigns n fun (σ : Fin nFin 2) => f σ + g σ) = avgSigns n f + avgSigns n g
                                                          theorem avgSigns_cos_sq_linearX_eq_half_one_add_half_prod (n : ) (x : Fin n) :
                                                          (avgSigns n fun (σ : Fin nFin 2) => Real.cos (linearX n x σ) ^ 2) = 1 / 2 + 1 / 2 * i : Fin n, Real.cos (2 * x i)
                                                          theorem momentX_four_peel_last_raw (n : ) (lam : Fin (n + 1)Fin (n + 1)) :
                                                          momentX (n + 1) lam 4 = avgSigns n fun (σ : Fin nFin 2) => innerX n (minorLamLast lam) σ ^ 4 + 6 * innerX n (minorLamLast lam) σ ^ 2 * linearX n (lastColLam lam) σ ^ 2 + linearX n (lastColLam lam) σ ^ 4
                                                          theorem abs_pow_even (x : ) (k : ) :
                                                          |x| ^ (2 * k) = x ^ (2 * k)
                                                          def quinticP5 (n : ) (lam : Fin nFin n) :

                                                          The 5th cumulant phase P_5(λ) = κ_5(λ)/120. Using the moment-cumulant relation (for zero-mean): κ_5 = μ_5 - 10·μ_3·μ_2.

                                                          Equations
                                                          Instances For

                                                            The quintic correction is a continuous polynomial in the matrix entries.

                                                            def gaussianScale (n : ) (t : ) :

                                                            The Gaussian scale A_n(t) = 2^{2d-n+1} (8πt)^{-d/2}.

                                                            Equations
                                                            Instances For
                                                              def countScale (n t : ) :

                                                              The count scale 2^{4nt} A_n(t) appearing in cor:cn3-count-asym.

                                                              Equations
                                                              Instances For
                                                                theorem gaussianScale_pos (n : ) {t : } (ht : 0 < t) :