Skip to content

Gram determinant ​

Also known as: covolume, Hadamard's inequality.

The determinant of the matrix of pairwise inner products of a family of vectors, measuring the squared volume of the parallelotope they span and controlled by Hadamard's and Fischer's inequalities.

Diagram illustrating Gram determinant
Diagram illustrating Gram determinant.

Level 1 — First-Principles ​

Take two vectors v1,v2 in space. The parallelogram they span has area ∥v1∥∥v2∥sin⁡θ, so its squared area is

∥v1∥2∥v2∥2(1−cos2⁡θ)=∥v1∥2∥v2∥2−⟨v1,v2⟩2=det(⟨v1,v1⟩⟨v1,v2⟩⟨v2,v1⟩⟨v2,v2⟩).

That 2×2 determinant generalizes immediately to any n vectors v1,…,vn: arrange all pairwise inner products ⟨vi,vj⟩ into an n×n table and take its determinant. The resulting number is the Gram determinant. It equals the square of the n-dimensional volume—the covolume—of the box spanned by v1,…,vn, and it works even when v1,…,vn sit inside a much larger ambient space without any chosen coordinate axes.

Two geometric facts follow directly from thinking of a box. First, tilting the edges of a box can only flatten it, never expand it: the squared volume never exceeds the product of the squared edge lengths,

det(⟨vi,vj⟩)≤∥v1∥2∥v2∥2⋯∥vn∥2,

with equality precisely when the vectors meet at right angles. This bound is Hadamard's inequality; taking logarithms, if every edge has squared length at most eh, the logarithmic covolume of n vectors is at most nh. Second, if you join two families of vectors y and z into one larger box, its volume is at most the product of the two smaller volumes (Fischer's inequality), so logarithmic covolumes simply add when you adjoin extra vectors.

In the Stage 01 reduction, vectors live over the two-dimensional plane of numbers with real and imaginary coordinatescomplex plane inside a system of twisted linear embeddings equipped with prime-by-prime integrality rulestwisted lattice. Bounding the Gram determinant of a completed basis supplies the archimedean side of the global balance between ordinary magnitude and prime-by-prime divisibilityarithmetic height: it gives an upper cap on how large the determinant can be, which must then be compatible with how divisible the determinant is at the primes.

Limits of the intuition ​

Visualizing the Gram determinant as the squared volume of a real box faithfully explains why linear dependence gives zero, why orthogonal vectors maximize volume (Hadamard's inequality), and why gluing two families adds logarithmic covolumes. The picture breaks down over complex numbers once algebraic conjugates enter: to compare with prime-by-prime divisibility, we must bound not only the actual determinant det(⟨Θ1yi,Θ1yk⟩) but also its image σ(det(⟨Θ1yi,Θ1yk⟩)) under every field automorphism σ of C, most of which are discontinuous and scramble ordinary Euclidean geometry. Fixing a rational inner-product matrix G on coordinates restores control by expressing each conjugate determinant as an exterior-power pairing bounded by the covolumes at σ and σ′(z)=σ(z¯)―.

Level 2 — Undergrad Bridge ​

For vectors v1,…,vn in a complex inner product space H, the Gram matrix M=(⟨vi,vj⟩)1≤i,j≤n∈Mn×n(C) is Hermitian positive semidefinite: for any c∈Cn, c∗Mc=∥∑icivi∥2≥0. Consequently detM≥0, with detM>0 if and only if v1,…,vn are linearly independent. Equivalently, detM=∥v1∧⋯∧vn∥2 in ⋀nH.

Three determinantal theorems from Hermitian matrix analysis (Horn & Johnson 2013, §7.2 and Theorems 7.8.1, 7.8.5) govern Gram determinants:

  1. Hadamard's inequality: for any positive semidefinite matrix M,detM≤∏i=1nMii.Applied to Mij=⟨vi,vj⟩, if ∥vi∥2≤eh for every i, then detM≤enh.
  2. Fischer's inequality: if a positive semidefinite matrix is partitioned into blocks M=(ABB∗D) with square diagonal blocks A and D, thendetM≤(detA)(detD).Thus adjoining two families y and z multiplies their Gram determinant bounds, so logarithmic covolume bounds add: c(y∪z)≤c(y)+c(z).
  3. Cauchy–Schwarz in the exterior power: for any positive semidefinite form G∈MI×I(C) and two families v,w:S→CI, the mixed pairing matrix (vi∗Gwk) satisfies|det(vi∗Gwk)|2≤det(vi∗Gvk)⋅det(wi∗Gwk),proved by applying positive semidefiniteness to the block Gram matrix of v∪w.

In a twisted lattice L, the trivial twist space H1 has coordinates coord:H1→CCoord in which the inner product is represented by a positive-definite rational matrix G. For σ∈Aut(C), applying σ entrywise to coordinates defines conjCoord(σ,y)=σ∘coord(Θ1y), and rationality of G yields

σ(⟨Θ1v,Θ1w⟩)=conjCoord(σ′,v)∗GconjCoord(σ,w),σ′(z)=σ(z¯)―.

Defining a family y to have covolume at most c (CovolumeLe y c) by requiring |det(formGram(G,conjCoord(σ)∘y))|≤ec for all σ∈Aut(C) therefore immediately implies via exterior-power Cauchy–Schwarz that |σ(Gram(1))|≤ec for every σ∈Aut(C).

Finally, when V has dimension d and w1,…,wd is any basis of V, functoriality of the Gram determinant (New.det_gram_comp) gives det(⟨Θξwi,Θξwk⟩)=Z(ξ)det(⟨wi,wk⟩), where Z(ξ)=det(Θξ∗Θξ). This identity allows Stage 01 to relate the trivial-twist Gram determinant Gram(1) to any twisted Gram determinant Gram(ξ) purely through the basis-independent ratio Z(1)/Z(ξ).

Level 3 — Formal Lean Contract ​

In skeleton/01_reduction/twisted_lattice.lean (extracted from upstream src/New/Reduction/Lattices/TwistedLattice.lean, backed by Hermitian Gram lemmas in src/Lib/General/LinearAlgebra/GramDeterminant.lean), logarithmic covolume and its Hadamard and Fischer closure properties have the following signatures:

  • 01_reduction/twisted_lattice.lean#New.TwistedLattice.CovolumeLe (upstream src/New/Reduction/Lattices/TwistedLattice.lean:262-266):
    lean
    def New.TwistedLattice.CovolumeLe (y : S → V) (c : ℝ) : Prop :=
      ∀ σ : ℂ ≃+* ℂ, ‖(formGram (L.gramMatrix.map (↑)) (L.conjCoord σ ∘ y)).det‖ ≤ exp c
  • 01_reduction/twisted_lattice.lean#New.TwistedLattice.covolumeLe_of_normSqAt_le (upstream src/New/Reduction/Lattices/TwistedLattice.lean:301-310, Hadamard's inequality):
    lean
    lemma New.TwistedLattice.covolumeLe_of_normSqAt_le {n : ℕ} {z : Fin n → V} {h : ℝ}
        (hz : ∀ (i : Fin n) (σ : ℂ ≃+* ℂ), L.normSqAt (z i) σ ≤ exp h) :
        L.CovolumeLe z (n * h)
  • 01_reduction/twisted_lattice.lean#New.TwistedLattice.CovolumeLe.sumElim (upstream src/New/Reduction/Lattices/TwistedLattice.lean:312-325, Fischer's inequality):
    lean
    lemma New.TwistedLattice.CovolumeLe.sumElim {S' : Type} [Fintype S'] [DecidableEq S']
        {y : S → V} {z : S' → V} {c c' : ℝ} (hy : L.CovolumeLe y c) (hz : L.CovolumeLe z c') :
        L.CovolumeLe (Sum.elim y z) (c + c')

Together with CovolumeLe.norm_map_det_gram_le (TwistedLattice.lean:284-299), these three declarations supply the exact archimedean bound ‖σ (Gram 1)‖ ≤ exp (c + n' * b_short) inside covolume_add_index_nonneg. See the page's live verification banner (audit/verification-status.json) for the currently pinned upstream snapshot and local Lean build status (build_status: unverified-locally).

Where this analogy breaks ​

Treating the Gram determinant merely as the squared Euclidean volume of a box in Rn captures orthogonality, Hadamard's inequality, and block subadditivity, but hides the algebraic-conjugate twist required over C: to feed into the global product formula, CovolumeLe must bound the determinant simultaneously after applying every field automorphism σ∈Aut(C) to coordinates, using a rational inner-product matrix G so σ commutes with the form up to σ′(z)=σ(z¯)―.

Formal Lean Anchors ​

def New.TwistedLattice.CovolumeLe — Upstream source (src/New/Reduction/Lattices/TwistedLattice.lean L262-L266)

lean
/-- The family `y` has covolume at most `c`: for every automorphism `σ` of `ℂ` the determinant of
the products `⟨σ Θ₁ y_i, σ Θ₁ y_k⟩`, taken by the rational Gram matrix on the coordinate vectors
`L.conjCoord σ (y i)`, has absolute value at most `exp c`. -/
def New.TwistedLattice.CovolumeLe (y : S → V) (c : ℝ) : Prop := by
  sorry -- [EXTRACTED_STUB upstream=src/New/Reduction/Lattices/TwistedLattice.lean:262-266 commit=41c2716658c42ba08eb0648994a2efe83082a95c body_lines=1 body_sha256=46779ee3e42fe2502d47a1192e510d6233d1b0df80e43b99c9dd7a2910128fad]

lemma New.TwistedLattice.covolumeLe_of_normSqAt_le — Upstream source (src/New/Reduction/Lattices/TwistedLattice.lean L301-L310)

lean
/-- Let `L` be a twisted lattice on `V`, with map `Θ₁ = L.lift 1` for the trivial twist. For an
automorphism `σ` of `ℂ`, apply `σ` to the coordinates of `Θ₁ v` and pair the results by the rational
Gram matrix: `L.normSqAt v σ = ‖Θ₁ v‖_σ²` is the product of such a vector with itself, and a family
has covolume at most `c` (`CovolumeLe`) if for every `σ` the determinant of these products of its
members has absolute value at most `exp c`. If `‖Θ₁ z_i‖_σ² ≤ exp h` for all `i` and `σ`, then
`z_1, …, z_n` has covolume at most `n h`. This is Hadamard's inequality. -/
lemma New.TwistedLattice.covolumeLe_of_normSqAt_le {n : ℕ} {z : Fin n → V} {h : ℝ}
    (hz : ∀ (i : Fin n) (σ : ℂ ≃+* ℂ), L.normSqAt (z i) σ ≤ exp h) :
    L.CovolumeLe z (n * h) := by
  sorry -- [EXTRACTED_STUB upstream=src/New/Reduction/Lattices/TwistedLattice.lean:301-310 commit=41c2716658c42ba08eb0648994a2efe83082a95c body_lines=1 body_sha256=8195abd389c0b80c67fb4f1f66b7c53186c37bfddc08ee9ad488f8a3fd3e5450]

lemma New.TwistedLattice.CovolumeLe.sumElim — Upstream source (src/New/Reduction/Lattices/TwistedLattice.lean L312-L325)

lean
/-- **Gram determinants, adjoining vectors.** If two families have covolume at most `c` and
`c'`, their union has covolume at most `c + c'` by Fischer's inequality. -/
lemma New.TwistedLattice.CovolumeLe.sumElim {S' : Type} [Fintype S'] [DecidableEq S']
    {y : S → V} {z : S' → V} {c c' : ℝ} (hy : L.CovolumeLe y c) (hz : L.CovolumeLe z c') :
    L.CovolumeLe (Sum.elim y z) (c + c') := by
  sorry -- [EXTRACTED_STUB upstream=src/New/Reduction/Lattices/TwistedLattice.lean:312-325 commit=41c2716658c42ba08eb0648994a2efe83082a95c body_lines=10 body_sha256=edae3cf0717eb670961c5db9b3da7a651cd97072f01e71fe0fd0ab56cd160cd0]
  • complex plane — The two-dimensional coordinate plane of numbers s = σ + it, where the horizontal coordinate σ = Re(s) sets decay rate and the vertical coordinate t = Im(s) sets oscillation frequency.
  • twisted lattice — A family of linear lifts from one complex vector space into inner-product spaces—one per twist—equipped with prime-by-prime integrality lattices so each prime can pick its own allowed twist.
  • arithmetic height — A logarithmic measure combining ordinary archimedean size with prime-by-prime p-adic divisibility, locked together by the product formula so a nonzero algebraic quantity cannot be simultaneously small at every place.

Referenced By ​

Authoritative Sources ​

  • Matrix Analysis (book) — R. A. Horn and C. R. Johnson, 2nd ed., Cambridge University Press (2013), §7.2 and Theorems 7.8.1, 7.8.5.
  • Heights in Diophantine Geometry (book) — E. Bombieri and W. Gubler, Cambridge University Press (2006), Chapter 1.

Page Glossary ​

complex plane
The two-dimensional coordinate plane of numbers s = σ + it, where the horizontal coordinate σ = Re(s) sets decay rate and the vertical coordinate t = Im(s) sets oscillation frequency.
twisted lattice
A family of linear lifts from one complex vector space into inner-product spaces—one per twist—equipped with prime-by-prime integrality lattices so each prime can pick its own allowed twist.
arithmetic height
A logarithmic measure combining ordinary archimedean size with prime-by-prime p-adic divisibility, locked together by the product formula so a nonzero algebraic quantity cannot be simultaneously small at every place.