G1 coordinate models and complete statement definitions
DefinitionAPFNativeG1Finite real coordinate spaces, bilinear matrix scores, symmetry, positivity, matrix-group representations and invariant-subspace predicates. The module also defines the two exchange matrices, the algebraic complex-structure expressions, role-symmetrized scores, and the full Lorentz and rotation/boost control families. All definitions are complete; no conclusion or proof obligation is assumed as an auxiliary theorem.
import Mathlib.LinearAlgebra.Matrix.NonsingularInverse
import Mathlib.Analysis.Matrix.Normed
import Mathlib.LinearAlgebra.Matrix.Notation
import Mathlib.Topology.Algebra.Group.Basic
import Mathlib.Topology.Connected.Basic
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic
noncomputable section
set_option autoImplicit false
open scoped BigOperators Matrix
namespace APFNativeG1
abbrev Vec (n : ℕ) := Fin n → ℝ
abbrev Mat (n : ℕ) := Matrix (Fin n) (Fin n) ℝ
def score {n : ℕ} (B : Mat n) (x y : Vec n) : ℝ :=
∑ i, ∑ j, x i * B i j * y j
def symmetric {n : ℕ} (B : Mat n) : Prop := B.transpose = B
def invariant {n : ℕ} (T B : Mat n) : Prop := T.transpose * B * T = B
def positive {n : ℕ} (B : Mat n) : Prop := ∀ x, x ≠ 0 → 0 < score B x x
def indefinite {n : ℕ} (B : Mat n) : Prop :=
(∃ x, 0 < score B x x) ∧ ∃ y, score B y y < 0
def discr (T : Mat 2) : ℝ := T.trace^2 - 4*T.det
def basis {n : ℕ} (i : Fin n) : Vec n := fun j => if j = i then 1 else 0
structure Rep (G : Type*) [Group G] (n : ℕ) where
map : G → Mat n
map_one : map 1 = 1
map_mul : ∀ g h, map (g*h) = map g * map h
def irreducible {n : ℕ} (K : Set (Mat n)) : Prop :=
∀ W : Submodule ℝ (Vec n),
(∀ A ∈ K, ∀ x ∈ W, A.mulVec x ∈ W) → W = ⊥ ∨ W = ⊤
def noInvariantLine (K : Set (Mat 2)) : Prop :=
¬ ∃ W : Submodule ℝ (Vec 2), Module.finrank ℝ W = 1 ∧
∀ A ∈ K, ∀ x ∈ W, A.mulVec x ∈ W
def groupClosed {n : ℕ} (K : Set (Mat n)) : Prop :=
(1 : Mat n) ∈ K ∧ (∀ A ∈ K, IsUnit A.det) ∧
(∀ A ∈ K, ∀ B ∈ K, A*B ∈ K) ∧ (∀ A ∈ K, A⁻¹ ∈ K)
def S : Mat 2 := !![1,0;0,-1]
def E (a b c : ℝ) : Mat 2 := !![a,b;c,-a]
noncomputable def J (a b c : ℝ) : Mat 2 :=
(1 / Real.sqrt (b*c)) • (E a b c * S - a • (1 : Mat 2))
noncomputable def reverseJ (a b c : ℝ) : Mat 2 :=
(1 / Real.sqrt (b*c)) • (S * E a b c - a • (1 : Mat 2))
def symRoleScore {P E : Type*} (theta : P → E) (C : E → P → ℝ) (x y : P) : ℝ :=
(C (theta x) y + C (theta y) x) / 2
def lorentz2 : Mat 2 := !![1,0;0,-1]
noncomputable def boost2 (t : ℝ) : Mat 2 :=
!![Real.cosh t, Real.sinh t; Real.sinh t, Real.cosh t]
def boostFamily2 : Set (Mat 2) := Set.range boost2
def extendedFamily2 : Set (Mat 2) :=
↑(Submonoid.closure (Set.range boost2 ∪ {S}))
def lorentz3 : Mat 3 := !![1,0,0;0,1,0;0,0,-1]
noncomputable def rotation3 (t : ℝ) : Mat 3 :=
!![Real.cos t, -Real.sin t, 0; Real.sin t, Real.cos t, 0; 0,0,1]
noncomputable def boost3 (t : ℝ) : Mat 3 :=
!![Real.cosh t,0,Real.sinh t;0,1,0;Real.sinh t,0,Real.cosh t]
def rotationBoostFamily3 : Set (Mat 3) :=
↑(Submonoid.closure (Set.range rotation3 ∪ Set.range boost3))
def quarterTurn : Mat 2 := !![0,-1;1,0]
def alternating : Mat 2 := !![0,1;-1,0]
end APFNativeG1
Read-back
What the Lean code literally says, in plain math · Exact runtime model identifier unavailable; independent reviewer RV-spine (01a082f2-417c-79c1-9069-c35844067fde).
Real coordinate vectors and matrices; finite bilinear score x^T B y; symmetry, positive definiteness and indefiniteness; matrix invariance and2x2 discriminant. A representation has only identity and multiplication laws. Irreducibility quantifies all invariant linear subspaces; noInvariantLine quantifies all one-dimensional invariant subspaces. groupClosed means contains identity, all determinants units, closed under multiplication and inverse, not topological closedness. Explicit exchange, normalized J, symmetrized role-score, Lorentz boost/rotation families, algebraic generated submonoids, quarter-turn and alternating matrix. No theorem assumptions hidden in these definitions. Independent code-first reading by RV-spine. Earlier written-source exposure and required personal paper/code consultation disclosed; this is not fully blind. Open theorem proofs remain sorry. Source-equivalence scope is governed by SOURCE_EQUIVALENCE_REVIEW.json, including G3-04 limits.