Frames of near terms: short shared vectors and moves between frames
New.Spanning.RemainingTerms.FrameCount.lean
Reading
Upstream documentation written by Claude
This file proves lemmas for counting the frames
γ fof the remaining termsp = (c', γ)modulo moves. Heref = (e₁, …, e_ϱ, z)is the standard frame,New.frameImage γis the frameγ f, andZ = S.frameProducts γis the matrix of products offwithγ f. At boxed points the frames are uniformly independent, so the vectors shared by the two frames of a near term are short.
Copyright 2026 Anthropic, PBC. Apache License 2.0 · Upstream notice.
Rest of upstream introduction
Main definitions and results
New.Filling.IsNearTermAt.eq_of_frameImage_eq: near terms moved by elements ofNew.Filling.classUnipotent₀are determined by their frames.New.Filling.HasCellRank.mulVec_eStar_eq_zero_and_sum_indexX₀_le,New.Filling.col_eq_zero_of_norm_lt_one: certain vectors have a shortX₀-part, and a short vector of the lattice ofcinX₀is zero.New.Filling.exists_mem_classUnipotent₀_frameImage_mul_eq: take two terms with the same integralS.frameProducts, with nonzero leading minor of orderj, and the same shared vectors, whose frames agree outside the first block of rows and differ in that block byS.frameModulustimes an integral matrix. Then an element ofS.classUnipotent₀ ccarries one frame to the other.
Notions from other files:
New.Filling.paddedLeading: the first j rows of Z, completed by rows of the identity matrix.New.Filling.HasCellRank: γ has cell rank j, that is, the flags of the two frames share vectors from the index j on (NormOnePairOccursFrom), the leading minor D_j of Z(γ) is nonzero, and the discriminanttermDiscof γ is nonzero exactly when j = ϱ + 1.New.Filling.classUnipotent₀: the rational unipotent elements of level M for the class c that fix every vector of the frame.New.Filling.IsNear: γ is near if y and γ⁻¹y are both boxed points for some archimedean y.
Relation to the literature
See New.Spanning.RemainingTerms.Sum for related work.
Declarations
lemma exists_mem_classUnipotent₀_frameImage_mul_eq [HasPrimitiveRoot5040 E] {𝔰 : Shape} {S : Filling E 𝔰} {j : Fin (𝔰.ϱ + 2)} [S.IsAdmissible] {γ γ' : S.G E} (c : S.Classes) (hZ : S.frameProducts γ' = S.frameProducts γ) (hZ_int : ∀ a b : Fin (𝔰.ϱ + 1), IsIntegral ℤ (S.frameProducts γ a b)) (h_minor : leadingMinor (S.frameProducts γ) j ≠ 0) (h_shared : S.sharedVectors j γ' = S.sharedVectors j γ) (h_rows : ∀ (i : 𝔰.MiddleIndex ⊕ Fin 𝔰.ϱ) (a : Fin (𝔰.ϱ + 1)), γ'.val (.inr i) (𝔰.besselFrame a) = γ.val (.inr i) (𝔰.besselFrame a)) {X : Matrix (Fin 𝔰.ϱ) (Fin (𝔰.ϱ + 1)) E} (hX : IsIntMatrix ((Ô E).comap (algebraMap E (𝔸f E))) X) (h_diff : (frameImage γ'.val.val - frameImage γ.val.val).toRows₁ = S.frameModulus j (S.frameProducts γ) • X) : ∃ r ∈ S.classUnipotent₀ c, frameImage (r * γ).val.val = frameImage γ'.val.val
Import route to Main
New.Spanning.RemainingTerms.FrameCount → New.Spanning.RemainingTerms.ColumnLattice (pinned import) → New.Spanning.RemainingTerms.SchurOrbit (pinned import) → New.Spanning.RemainingTerms.Size (pinned import) → New.Spanning.MainTerm.BadTypes (pinned import) → New.Spanning.SecondMoment.SpanningTheorem (pinned import) → New.Reduction.ShortAndEnough (pinned import) → New.Reduction.MainInequality (pinned import) → New.Reduction.OneSidedBound (pinned import) → New.Main (pinned import) → Main (pinned import)