RPB108 three-coordinate Gram functions
DefinitionRPB108_ThreeGramDefines the three-coordinate off-diagonal weights, row margins, real Gram form and complex Gram form. The complex form is the sum of real matrix entries times the real part of conjugate coordinate products. All data are exact. Original matrices satisfying these intervals are supplied separately; no realization attachment is proved by these definitions.
Approval/restoration note (2026-10-11): The user confirmed approval and merger of Weil PRs #1 and #2. The published source is now included in approved Weil/main at d2b758dfdd01b40887a3cb97524f29013c74c7ba. All 23 RPB108 component modules were checked byte-for-byte against the publication source. The record is restored within its existing conditional/exact-data scope; no original-form attachment or RH claim is added.
import Mathlib open scoped BigOperators namespace WeilDefect.RPB108 noncomputable def offWeights (u : Fin 3 → ℝ) : Fin 3 → Fin 3 → ℝ := ![![0,u 0,u 1], ![u 0,0,u 2], ![u 1,u 2,0]] noncomputable def rowMargins (d u : Fin 3 → ℝ) : Fin 3 → ℝ := ![d 0-u 0-u 1, d 1-u 0-u 2, d 2-u 1-u 2] noncomputable def realGram (A : Fin 3 → Fin 3 → ℝ) (x : Fin 3 → ℝ) : ℝ := ∑ i, ∑ j, A i j*x i*x j noncomputable def complexGram (A : Fin 3 → Fin 3 → ℝ) (z : Fin 3 → ℂ) : ℝ := ∑ i, ∑ j, A i j*(star (z i)*z j).re end WeilDefect.RPB108