ChyRho commited on
Commit
3d8caeb
·
verified ·
1 Parent(s): c9192ce

sync: upload 05_lean_formalization to Hugging Face dataset

Browse files
05_lean_formalization/ADJACENT_MODULES.txt CHANGED
@@ -540,3 +540,10 @@ ModelIdentity.lean # The versioned model-identity manifest as one
540
  ModelIdentityBindings.lean # Wave 3 / AeST theorems restated with literals read
541
  # from ModelIdentity.canonical; gated by
542
  # sabotage_model_identity.sh. Not cited by the manuscript.
 
 
 
 
 
 
 
 
540
  ModelIdentityBindings.lean # Wave 3 / AeST theorems restated with literals read
541
  # from ModelIdentity.canonical; gated by
542
  # sabotage_model_identity.sh. Not cited by the manuscript.
543
+ CP2SpincIndex.lean # Characteristic-class arithmetic for Spin^c Dirac index
544
+ # on CP^2 twisted by O(Q), Serre duality Q <-> -3 - Q
545
+ # (h^0=3 at Q=1 vs h^2=3 at Q=-4), and Dolan cross-check
546
+ # (O44/O15). Atiyah-Singer enters only as [ext] hypothesis.
547
+ NoetherScoping.lean # Abstract B1-B3 chunks of diffeomorphism Noether identity
548
+ # (vector sector, Fin 2 contraction, t-only 2D density
549
+ # divergence; O44). Not cited by the manuscript.
05_lean_formalization/CP2SpincIndex.lean ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /-
2
+ Copyright (c) 2026 R.W. Yett / Chyren / Res-Nova. All rights reserved.
3
+ Released under Apache 2.0 license as described in the file LICENSE.
4
+ Authors: R.W. Yett, Muse
5
+ -/
6
+ import Mathlib.Tactic.Ring
7
+ import Mathlib.Tactic.NormNum
8
+
9
+ /-!
10
+ # Spin^c Dirac Index Polynomial for CP² — Lean 4 Formalization
11
+
12
+ ## Scope (read this first)
13
+
14
+ This module formalizes the **characteristic-class arithmetic and the index
15
+ polynomial** for the Spin^c Dirac operator on CP² twisted by `O(Q)`. It does
16
+ NOT formalize:
17
+
18
+ * the analytic Dirac operator on CP², its domain, or its spectrum;
19
+ * the Atiyah–Singer index theorem;
20
+ * CP² itself as a manifold, its cohomology ring, or its characteristic
21
+ classes — Mathlib has none of these.
22
+
23
+ What Lean proves here `[P]` is the polynomial identity: **given** the Â-form
24
+ and Chern-character inputs (transcribed below from the geometry, tier
25
+ `[ext]`/`[D]`), the characteristic integral evaluates to `(Q+1)(Q+2)/2`.
26
+
27
+ ## The [ext] hypothesis (stated, never proved, never axiomatized)
28
+
29
+ The Atiyah–Singer index theorem for the Spin^c Dirac operator says
30
+
31
+ ind D_Q⁺ = ∫_{CP²} e^{(Q+3/2)H} · Â(CP²),
32
+
33
+ where `H` generates `H²(CP²; ℤ)` with `∫ H² = 1`. This identification is
34
+ **external mathematics** (`[ext]`): it enters this file only as an explicit
35
+ hypothesis of `dirac_index_poly`, never as a Lean axiom. The theorem
36
+ `index_formula` proves the *integral* equals `(Q+1)(Q+2)/2`; the statement
37
+ "this integral is the Dirac index" is the `[ext]` hypothesis, not a Lean
38
+ theorem.
39
+
40
+ ## Geometric inputs (tier [ext]/[D] — transcribed, not derived)
41
+
42
+ With `H` the generator of `H²(CP²; ℤ)`, normalized so `∫ H² = 1`:
43
+
44
+ * `c₁(T CP²) = 3H`, `c₂(T CP²) = 3H²`, hence `p₁ = c₁² − 2c₂ = 3H²`
45
+ (checked arithmetically in `pontryagin_p1_coeff`);
46
+ * Â-genus form `Â = 1 − p₁/24 = 1 − H²/8`
47
+ (checked arithmetically in `aHat_h2_coeff`);
48
+ * the canonical Spin^c determinant line is `O(3)`; twisting by `O(Q)` gives
49
+ determinant line `O(2Q+3)`, so the Chern character contributes
50
+ `e^{(Q+3/2)H}` (the exponent is half the determinant degree:
51
+ `det_twist_exponent`).
52
+
53
+ ## The polynomial model
54
+
55
+ A cohomology class of degree ≤ 4 is represented as a triple `(a₀, a₁, a₂)`
56
+ of rationals — the coefficients of `1, H, H²` — with multiplication
57
+ truncated at `H³ = 0` (`mulClass`) and integration picking out the `H²`
58
+ coefficient (`integral`, since `∫ H² = 1`). The model is honest about what
59
+ it is: formal polynomial arithmetic over ℚ, not a cohomology ring.
60
+
61
+ ## Dolan cross-check (notation resolution, 2026-11-17)
62
+
63
+ The arithmetic identity `(|Y|+2)(|Y|+4)/8 = 3` at `|Y| = 2` is Dolan's own
64
+ notation in hep-th/0304037, eq. (B.7): there `d(k,n)` is a ground-level
65
+ degeneracy label (`k = n = 0`), and `d(0,0) = 3` at `|Y| = 2`. This `d(0,0)`
66
+ must NOT be read as the Dynkin `(0,0)` singlet: in standard Dynkin labels
67
+ `d(p,q) = (p+1)(q+1)(p+q+2)/2`, the singlet is `d(0,0) = 1` and the triplet
68
+ is `d(1,0) = 3` (both checked in Lean below); in Dolan's hep-th/0307124
69
+ notation the triplet is `d_1 = 3`. The substance is the same under every
70
+ labelling: three `Q = 1` zero modes forming an SU(3) triplet, agreeing with
71
+ the index at `Q = 1` (`index_Q1_eq_dolan`).
72
+
73
+ ## Serre duality note (O15, 2026-11-18)
74
+
75
+ Because `K_{CP²} = O(-3)`, Serre duality on `CP²` maps `Q ↦ -3 - Q`,
76
+ exchanging `h⁰(CP², O(Q))` and `h²(CP², O(-3-Q))`. On the index polynomial
77
+ `χ(Q) = (Q+1)(Q+2)/2`, this manifests as the exact reflection symmetry
78
+ `indexViaIntegral (-3 - Q) = indexViaIntegral Q` (`index_serre_duality`),
79
+ mapping the `Q = 1` triplet (`h⁰ = 3`, `h² = 0`) to the Serre-dual `Q = -4`
80
+ triplet (`h⁰ = 0`, `h² = 3`). Note that the algebraic symmetry is `[P]`,
81
+ while the cohomology sheaf interpretation (`h⁰` vs `h²`) is external
82
+ geometry (`[ext]`).
83
+
84
+ ## Main results
85
+
86
+ * `index_formula`: `indexViaIntegral Q = (Q+1)(Q+2)/2` for all `Q : ℚ`.
87
+ * `index_formula_sq`: the same index as `((2Q+3)² − 1)/8`.
88
+ * `index_serre_duality`: `indexViaIntegral (-3 - Q) = indexViaIntegral Q` (O15).
89
+ * `index_table`: `Q ∈ {0, 1, −1, −2, −4} ↦ {1, 3, 0, 0, 3}`.
90
+ * `dolan_ground_deg_two`: Dolan's (B.7) degeneracy is `3` at `|Y| = 2`.
91
+ * `dirac_index_poly`: conditional on the [ext] Atiyah–Singer identification,
92
+ the analytic index is the polynomial.
93
+ -/
94
+
95
+ namespace ResNova.CP2SpincIndex
96
+
97
+ /-! ### The truncated polynomial model -/
98
+
99
+ /-- Chern character of a line bundle with first Chern class `t·H`, truncated
100
+ at `H³ = 0`: `e^{tH} = 1 + tH + (t²/2)H²`, as coefficients `(a₀, a₁, a₂)`. -/
101
+ def chernCharacter (t : ℚ) : ℚ × ℚ × ℚ := (1, t, t ^ 2 / 2)
102
+
103
+ /-- The Â-genus form of CP²: `Â = 1 − H²/8`. The `−1/8` is the geometric
104
+ input `−p₁/24` with `p₁ = 3H²` (see `aHat_h2_coeff`). -/
105
+ def aHatForm : ℚ × ℚ × ℚ := (1, 0, -1 / 8)
106
+
107
+ /-- Product of two truncated classes, with `H³ = 0` imposed. -/
108
+ def mulClass (a b : ℚ × ℚ × ℚ) : ℚ × ℚ × ℚ :=
109
+ (a.1 * b.1,
110
+ a.1 * b.2.1 + a.2.1 * b.1,
111
+ a.1 * b.2.2 + a.2.1 * b.2.1 + a.2.2 * b.1)
112
+
113
+ /-- Integration over CP²: picks out the `H²` coefficient, since `∫ H² = 1`
114
+ and `∫ 1 = ∫ H = 0` by degree. -/
115
+ def integral (c : ℚ × ℚ × ℚ) : ℚ := c.2.2
116
+
117
+ /-- The characteristic integral for the Spin^c Dirac operator twisted by
118
+ `O(Q)`: `∫ e^{(Q+3/2)H} · Â`. The exponent `Q + 3/2` is half the degree of
119
+ the determinant line `O(2Q+3)` (see `det_twist_exponent`). -/
120
+ def indexViaIntegral (Q : ℚ) : ℚ :=
121
+ integral (mulClass (chernCharacter (Q + 3 / 2)) aHatForm)
122
+
123
+ /-- Dolan's ground-level degeneracy, hep-th/0304037 eq. (B.7):
124
+ `d(0,0) = (|Y|+2)(|Y|+4)/8`. See the header for the notation resolution. -/
125
+ def dolanGroundDeg (Y : ℚ) : ℚ := (|Y| + 2) * (|Y| + 4) / 8
126
+
127
+ /-- SU(3) dimension in standard Dynkin labels:
128
+ `d(p,q) = (p+1)(q+1)(p+q+2)/2`. Included to pin down the notation
129
+ distinction: Dynkin `(0,0)` is the singlet, Dynkin `(1,0)` is the triplet. -/
130
+ def dynkinDim (p q : ℕ) : ℕ := (p + 1) * (q + 1) * (p + q + 2) / 2
131
+
132
+ /-! ### Geometric inputs, checked arithmetically -/
133
+
134
+ /-- `[P]` given the inputs `c₁ = 3H`, `c₂ = 3H²`: the first Pontryagin
135
+ class is `p₁ = c₁² − 2c₂ = 3H²`. -/
136
+ theorem pontryagin_p1_coeff : (3 : ℚ) ^ 2 - 2 * 3 = 3 := by norm_num
137
+
138
+ /-- `[P]` given `p₁ = 3H²`: the Â-form's `H²` coefficient is `−p₁/24 = −1/8`. -/
139
+ theorem aHat_h2_coeff : -(3 : ℚ) / 24 = -1 / 8 := by norm_num
140
+
141
+ /-- `[P]` The Chern-character exponent is half the determinant-line degree:
142
+ twisting by `O(Q)` on top of the canonical `O(3)` gives determinant line
143
+ `O(2Q+3)`, and `(2Q+3)/2 = Q + 3/2`. -/
144
+ theorem det_twist_exponent (Q : ℚ) : (2 * Q + 3) / 2 = Q + 3 / 2 := by ring
145
+
146
+ /-! ### The index polynomial — main theorems -/
147
+
148
+ /-- `[P]` The characteristic integral is the index polynomial:
149
+ `∫ e^{(Q+3/2)H}(1 − H²/8) = (Q+1)(Q+2)/2`. -/
150
+ theorem index_formula (Q : ℚ) :
151
+ indexViaIntegral Q = (Q + 1) * (Q + 2) / 2 := by
152
+ simp only [indexViaIntegral, integral, mulClass, chernCharacter, aHatForm]
153
+ ring
154
+
155
+ /-- `[P]` The same index in the `((2Q+3)² − 1)/8` form: the `H²` coefficient
156
+ of the product is `(Q+3/2)²/2 − 1/8`. -/
157
+ theorem index_formula_sq (Q : ℚ) :
158
+ indexViaIntegral Q = ((2 * Q + 3) ^ 2 - 1) / 8 := by
159
+ rw [index_formula]
160
+ ring
161
+
162
+ /-- `[P]` The two closed forms agree. -/
163
+ theorem index_poly_eq_sq (Q : ℚ) :
164
+ (Q + 1) * (Q + 2) / 2 = ((2 * Q + 3) ^ 2 - 1) / 8 := by ring
165
+
166
+ /-- `[P]` Algebraic Serre-duality reflection symmetry `Q ↔ -3 - Q` (O15):
167
+ maps `Q = 1` (`h⁰ = 3`) to `Q = -4` (`h² = 3`) with identical index polynomial. -/
168
+ theorem index_serre_duality (Q : ℚ) :
169
+ indexViaIntegral (-3 - Q) = indexViaIntegral Q := by
170
+ rw [index_formula, index_formula]
171
+ ring
172
+
173
+ /-! ### The index table -/
174
+
175
+ /-- `[P]` `Q = 0`: index 1. -/
176
+ theorem index_Q0 : indexViaIntegral 0 = 1 := by
177
+ rw [index_formula]; norm_num
178
+
179
+ /-- `[P]` `Q = 1`: index 3 — the three generations. -/
180
+ theorem index_Q1_three_generations : indexViaIntegral 1 = 3 := by
181
+ rw [index_formula]; norm_num
182
+
183
+ /-- `[P]` `Q = −1`: index 0. -/
184
+ theorem index_Qm1 : indexViaIntegral (-1) = 0 := by
185
+ rw [index_formula]; norm_num
186
+
187
+ /-- `[P]` `Q = −2`: index 0. -/
188
+ theorem index_Qm2 : indexViaIntegral (-2) = 0 := by
189
+ rw [index_formula]; norm_num
190
+
191
+ /-- `[P]` `Q = −4`: index 3. -/
192
+ theorem index_Qm4 : indexViaIntegral (-4) = 3 := by
193
+ rw [index_formula]; norm_num
194
+
195
+ /-- `[P]` The full table: `Q ∈ {0, 1, −1, −2, −4} ↦ {1, 3, 0, 0, 3}`. -/
196
+ theorem index_table :
197
+ indexViaIntegral 0 = 1 ∧ indexViaIntegral 1 = 3 ∧
198
+ indexViaIntegral (-1) = 0 ∧ indexViaIntegral (-2) = 0 ∧
199
+ indexViaIntegral (-4) = 3 :=
200
+ ⟨index_Q0, index_Q1_three_generations, index_Qm1, index_Qm2, index_Qm4⟩
201
+
202
+ /-! ### Dolan cross-check -/
203
+
204
+ /-- `[P]` Dolan hep-th/0304037 eq. (B.7): the ground-level degeneracy
205
+ `d(0,0) = (|Y|+2)(|Y|+4)/8` is `3` at `|Y| = 2`. -/
206
+ theorem dolan_ground_deg_two : dolanGroundDeg 2 = 3 := by
207
+ norm_num [dolanGroundDeg]
208
+
209
+ /-- `[P]` Same degeneracy at `Y = −2` (the formula depends on `|Y|`). -/
210
+ theorem dolan_ground_deg_neg_two : dolanGroundDeg (-2) = 3 := by
211
+ norm_num [dolanGroundDeg]
212
+
213
+ /-- `[P]` The index at `Q = 1` agrees with Dolan's ground-level degeneracy:
214
+ three zero modes, an SU(3) triplet under either labelling. -/
215
+ theorem index_Q1_eq_dolan : indexViaIntegral 1 = dolanGroundDeg 2 := by
216
+ rw [index_Q1_three_generations, dolan_ground_deg_two]
217
+
218
+ /-- `[P]` Dynkin `(0,0)` is the singlet — this is NOT Dolan's `d(0,0)`. -/
219
+ theorem dynkin_singlet : dynkinDim 0 0 = 1 := rfl
220
+
221
+ /-- `[P]` Dynkin `(1,0)` is the triplet — Dolan hep-th/0307124 `d_1 = 3`. -/
222
+ theorem dynkin_triplet : dynkinDim 1 0 = 3 := rfl
223
+
224
+ /-! ### The [ext] bridge — conditional, not proved -/
225
+
226
+ /-- `[ext] ⇒ [P]` Conditional on the Atiyah–Singer identification (the
227
+ hypothesis `hAS`, external mathematics, NOT a Lean axiom and NOT proved
228
+ here), the analytic Spin^c Dirac index at twist `Q` is the polynomial
229
+ `(Q+1)(Q+2)/2`. What Lean proves is the polynomial evaluation; the
230
+ identification of the integral with the analytic index is the hypothesis. -/
231
+ theorem dirac_index_poly (Q : ℚ) (analyticIndex : ℚ)
232
+ (hAS : analyticIndex = indexViaIntegral Q) :
233
+ analyticIndex = (Q + 1) * (Q + 2) / 2 := by
234
+ rw [hAS, index_formula]
235
+
236
+ /-- `[ext] ⇒ [P]` Same conditional statement at `Q = 1`: three generations. -/
237
+ theorem dirac_index_Q1_three_generations (analyticIndex : ℚ)
238
+ (hAS : analyticIndex = indexViaIntegral 1) :
239
+ analyticIndex = 3 := by
240
+ rw [hAS, index_Q1_three_generations]
241
+
242
+ end ResNova.CP2SpincIndex
243
+
244
+ /-! ### Axiom audit -/
245
+
246
+ #print axioms ResNova.CP2SpincIndex.index_formula
247
+ #print axioms ResNova.CP2SpincIndex.index_formula_sq
248
+ #print axioms ResNova.CP2SpincIndex.index_serre_duality
249
+ #print axioms ResNova.CP2SpincIndex.index_table
250
+ #print axioms ResNova.CP2SpincIndex.dolan_ground_deg_two
251
+ #print axioms ResNova.CP2SpincIndex.index_Q1_eq_dolan
252
+ #print axioms ResNova.CP2SpincIndex.dirac_index_poly
253
+ #print axioms ResNova.CP2SpincIndex.dirac_index_Q1_three_generations
05_lean_formalization/NoetherScoping.lean ADDED
@@ -0,0 +1,200 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Mathlib.Analysis.SpecialFunctions.ExpDeriv
2
+ import Mathlib.Algebra.BigOperators.Fin
3
+ import Mathlib.Tactic.Ring
4
+
5
+ /-!
6
+ # Noether scoping: first formalizable chunks (Track F, Spin^c CP^2 programme)
7
+
8
+ Scoping + first chunks for the tensor-level Noether formalization (Safa's
9
+ BLK-1449 ask). See `noether-scoping.md` in the same folder for the full
10
+ scoping note, the dependency order, and the honest tiering.
11
+
12
+ ## What this module proves
13
+
14
+ Three derivation steps of the diffeomorphism Noether identity
15
+ (`PR217_OBLIGATIONS_VALIDATION_2026-11-17.md`, checks B1–B3), each at the
16
+ level that is genuinely formalizable without the missing covariant-calculus
17
+ infrastructure:
18
+
19
+ 1. **`vector_sector_identity`** (B1): the vector-sector equivalence
20
+ `E^μ ∇_ν A_μ - ∇_μ(E^μ A_ν) = E^μ F_{νμ} - A_ν ∇_μ E^μ`, proved as
21
+ abstract finite-sum algebra with the Leibniz rule for `∇_μ(E^μ A_ν)`
22
+ as an explicit hypothesis. The calculus content (that `∇` satisfies
23
+ Leibniz) is an input, not proved here.
24
+ 2. **`symmetric_contraction_fin2`** (B2): a symmetric `E^{μν}` contracts
25
+ only against the symmetric part of `∇_μ ξ_ν`, in the concrete 2-index
26
+ case, by explicit expansion.
27
+ 3. **`density_divergence`** (B3): the density-divergence identity
28
+ `∂_μ(√-g V^μ) = √-g ∇_μ V^μ` in a concrete symmetry-reduced 2D model:
29
+ diagonal metric `g = diag(-e^{2α(t)}, e^{2β(t)})`, fields depending on
30
+ `t` only. The Christoffel trace components `Γ^0_{00}` and `Γ^1_{10}`
31
+ are **computed from the metric formula** (`gamma000_eq`,
32
+ `gamma110_eq`), not assumed: `Γ^0_{00} = α'`, `Γ^1_{10} = β'`, so the
33
+ trace is `α' + β' = ∂_t log √-g`, and the identity follows by the
34
+ product/chain rule.
35
+
36
+ ## Scope — read before citing
37
+
38
+ * The density identity is proved in the **t-only reduced model**: the
39
+ `x`-partials vanish by construction (`Γ^0_{01} = Γ^1_{11} = 0`), and the
40
+ `V^1` component drops out identically. The full 2D version (fields of
41
+ `(t, x)`, SymPy check B3) needs Mathlib partial derivatives (`fderiv`)
42
+ and is the next step; it is NOT proved here.
43
+ * Nothing here states the AeST action, any field variation, or the full
44
+ Noether identity. The general Lean proof of the Noether identity for the
45
+ complete AeST action remains [O]; see `noether-scoping.md`.
46
+ * All theorems compile with `0 sorry` and standard axioms only.
47
+ -/
48
+
49
+ noncomputable section
50
+
51
+ namespace ResNova.NoetherScoping
52
+
53
+ /-! ## 1. Vector-sector identity (B1, abstract algebra) -/
54
+
55
+ /-- B1: the vector-sector equivalence, as abstract finite-sum algebra.
56
+ `dνA μ` stands for `∇_ν A_μ`, `dμAν μ` for `∇_μ A_ν`, `divE` for
57
+ `∇_μ E^μ`, and `divEA` for `∇_μ (E^μ A_ν)`; the Leibniz rule relating
58
+ them is the hypothesis `hleibniz`. With `F_{νμ} = ∇_ν A_μ - ∇_μ A_ν`,
59
+ the two sides are the two forms of the vector-sector Noether term. -/
60
+ theorem vector_sector_identity {ι : Type*} [Fintype ι] {E dνA dμAν : ι → ℝ}
61
+ {Aν divE divEA : ℝ}
62
+ (hleibniz : divEA = divE * Aν + ∑ μ, E μ * dμAν μ) :
63
+ (∑ μ, E μ * dνA μ) - divEA
64
+ = (∑ μ, E μ * (dνA μ - dμAν μ)) - Aν * divE := by
65
+ have hsum : (∑ μ, E μ * (dνA μ - dμAν μ))
66
+ = (∑ μ, E μ * dνA μ) - ∑ μ, E μ * dμAν μ := by
67
+ rw [← Finset.sum_sub_distrib]
68
+ apply Finset.sum_congr rfl
69
+ intro μ _
70
+ ring
71
+ rw [hleibniz, hsum]
72
+ ring
73
+
74
+ /-! ## 2. Symmetric contraction (B2, concrete 2-index case) -/
75
+
76
+ /-- B2: a symmetric `E` contracts only against the symmetric part of `T`.
77
+ Concrete `Fin 2` case, by explicit expansion: the off-diagonal terms pair
78
+ up via `E 1 0 = E 0 1`. This is the step that turns
79
+ `δg^{μν} = -2∇^{(μ}ξ^{ν)}` into the `2∇^μ E_g(μν)` coefficient. -/
80
+ theorem symmetric_contraction_fin2 {E T : Fin 2 → Fin 2 → ℝ}
81
+ (hsym : ∀ i j, E i j = E j i) :
82
+ (∑ i, ∑ j, E i j * T i j)
83
+ = ∑ i, ∑ j, E i j * ((T i j + T j i) / 2) := by
84
+ have h10 : E 1 0 = E 0 1 := hsym 1 0
85
+ simp only [Fin.sum_univ_two]
86
+ rw [h10]
87
+ ring
88
+
89
+ /-! ## 3. Density-divergence identity (B3, t-only reduced 2D model) -/
90
+
91
+ /-- Metric component `g₀₀ = -e^{2α}` (as a function of `t`). -/
92
+ def g00 (α : ℝ → ℝ) : ℝ → ℝ := fun s => -Real.exp (2 * α s)
93
+
94
+ /-- Metric component `g₁₁ = e^{2β}` (as a function of `t`). -/
95
+ def g11 (β : ℝ → ℝ) : ℝ → ℝ := fun s => Real.exp (2 * β s)
96
+
97
+ /-- Inverse-metric component `g⁰⁰ = -e^{-2α}` at the point `t`. -/
98
+ def g00inv (α : ℝ → ℝ) (t : ℝ) : ℝ := -Real.exp (-2 * α t)
99
+
100
+ /-- Inverse-metric component `g¹¹ = e^{-2β}` at the point `t`. -/
101
+ def g11inv (β : ℝ → ℝ) (t : ℝ) : ℝ := Real.exp (-2 * β t)
102
+
103
+ /-- `∂_t g₀₀ = -2α' e^{2α}`, by the chain rule. -/
104
+ theorem deriv_g00 {α : ℝ → ℝ} {α' t : ℝ} (hα : HasDerivAt α α' t) :
105
+ deriv (g00 α) t = -2 * α' * Real.exp (2 * α t) := by
106
+ have h1 : HasDerivAt (fun s => 2 * α s) (2 * α') t := hα.const_mul 2
107
+ have h2 : HasDerivAt (fun s => Real.exp (2 * α s))
108
+ (Real.exp (2 * α t) * (2 * α')) t := h1.exp
109
+ have h3 : HasDerivAt (fun s => -Real.exp (2 * α s))
110
+ (-(Real.exp (2 * α t) * (2 * α'))) t := h2.neg
111
+ have h3' : HasDerivAt (g00 α) (-(Real.exp (2 * α t) * (2 * α'))) t := h3
112
+ rw [h3'.deriv]
113
+ ring
114
+
115
+ /-- `∂_t g₁₁ = 2β' e^{2β}`, by the chain rule. -/
116
+ theorem deriv_g11 {β : ℝ → ℝ} {β' t : ℝ} (hβ : HasDerivAt β β' t) :
117
+ deriv (g11 β) t = 2 * β' * Real.exp (2 * β t) := by
118
+ have h1 : HasDerivAt (fun s => 2 * β s) (2 * β') t := hβ.const_mul 2
119
+ have h2 : HasDerivAt (fun s => Real.exp (2 * β s))
120
+ (Real.exp (2 * β t) * (2 * β')) t := h1.exp
121
+ have h2' : HasDerivAt (g11 β) (Real.exp (2 * β t) * (2 * β')) t := h2
122
+ rw [h2'.deriv]
123
+ ring
124
+
125
+ /-- Christoffel component `Γ^0_{00} = ½ g⁰⁰ ∂_t g₀₀`, from the metric
126
+ formula `Γ^λ_{μν} = ½ g^{λσ}(∂_μ g_{νσ} + ∂_ν g_{μσ} - ∂_σ g_{μν})`
127
+ (the `σ = 1` term vanishes since `g⁰¹ = 0`). -/
128
+ def Gamma000 (α : ℝ → ℝ) (t : ℝ) : ℝ :=
129
+ (1 / 2) * g00inv α t * deriv (g00 α) t
130
+
131
+ /-- Christoffel component `Γ^1_{10} = ½ g¹¹ ∂_t g₁₁`, from the metric
132
+ formula (the `σ = 0` term vanishes since `g¹⁰ = 0`). -/
133
+ def Gamma110 (β : ℝ → ℝ) (t : ℝ) : ℝ :=
134
+ (1 / 2) * g11inv β t * deriv (g11 β) t
135
+
136
+ /-- The Christoffel component `Γ^0_{00}` computed from the metric is `α'`. -/
137
+ theorem gamma000_eq {α : ℝ → ℝ} {α' t : ℝ} (hα : HasDerivAt α α' t) :
138
+ Gamma000 α t = α' := by
139
+ have hexp : Real.exp (-2 * α t) * Real.exp (2 * α t) = 1 := by
140
+ rw [← Real.exp_add]
141
+ have h0 : -2 * α t + 2 * α t = 0 := by ring
142
+ rw [h0, Real.exp_zero]
143
+ unfold Gamma000 g00inv
144
+ rw [deriv_g00 hα]
145
+ calc (1 / 2) * (-Real.exp (-2 * α t)) * (-2 * α' * Real.exp (2 * α t))
146
+ = α' * (Real.exp (-2 * α t) * Real.exp (2 * α t)) := by ring
147
+ _ = α' := by rw [hexp]; ring
148
+
149
+ /-- The Christoffel component `Γ^1_{10}` computed from the metric is `β'`. -/
150
+ theorem gamma110_eq {β : ℝ → ℝ} {β' t : ℝ} (hβ : HasDerivAt β β' t) :
151
+ Gamma110 β t = β' := by
152
+ have hexp : Real.exp (-2 * β t) * Real.exp (2 * β t) = 1 := by
153
+ rw [← Real.exp_add]
154
+ have h0 : -2 * β t + 2 * β t = 0 := by ring
155
+ rw [h0, Real.exp_zero]
156
+ unfold Gamma110 g11inv
157
+ rw [deriv_g11 hβ]
158
+ calc (1 / 2) * Real.exp (-2 * β t) * (2 * β' * Real.exp (2 * β t))
159
+ = β' * (Real.exp (-2 * β t) * Real.exp (2 * β t)) := by ring
160
+ _ = β' := by rw [hexp]; ring
161
+
162
+ /-- The Christoffel trace in the reduced model is `α' + β' = ∂_t log √-g`.
163
+ (The `x`-trace `Γ^0_{01} + Γ^1_{11}` vanishes identically: every
164
+ `x`-partial is zero in the t-only model, so it does not appear.) -/
165
+ theorem christoffel_trace_eq {α β : ℝ → ℝ} {α' β' t : ℝ}
166
+ (hα : HasDerivAt α α' t) (hβ : HasDerivAt β β' t) :
167
+ Gamma000 α t + Gamma110 β t = α' + β' := by
168
+ rw [gamma000_eq hα, gamma110_eq hβ]
169
+
170
+ /-- The density-divergence identity in the reduced model:
171
+ `∂_t(√-g V⁰) = √-g ∇_t V^t`, where `√-g = e^{α+β}` and the covariant
172
+ divergence is `V' + (Γ^0_{00} + Γ^1_{10}) V⁰`. The `V¹` component drops
173
+ out identically in the t-only model (`∂_x ≡ 0`, `Γ^1_{11} = 0`), so the
174
+ identity is stated for the surviving component. -/
175
+ theorem density_divergence {α β V : ℝ → ℝ} {α' β' V' t : ℝ}
176
+ (hα : HasDerivAt α α' t) (hβ : HasDerivAt β β' t)
177
+ (hV : HasDerivAt V V' t) :
178
+ deriv (fun s => Real.exp (α s + β s) * V s) t
179
+ = Real.exp (α t + β t)
180
+ * (V' + (Gamma000 α t + Gamma110 β t) * V t) := by
181
+ rw [christoffel_trace_eq hα hβ]
182
+ have hab : HasDerivAt (fun s => α s + β s) (α' + β') t := hα.add hβ
183
+ have hexp : HasDerivAt (fun s => Real.exp (α s + β s))
184
+ (Real.exp (α t + β t) * (α' + β')) t := hab.exp
185
+ have hmul : HasDerivAt (fun s => Real.exp (α s + β s) * V s)
186
+ (Real.exp (α t + β t) * (α' + β') * V t + Real.exp (α t + β t) * V') t :=
187
+ hexp.mul hV
188
+ rw [hmul.deriv]
189
+ ring
190
+
191
+ #print axioms vector_sector_identity
192
+ #print axioms symmetric_contraction_fin2
193
+ #print axioms deriv_g00
194
+ #print axioms deriv_g11
195
+ #print axioms gamma000_eq
196
+ #print axioms gamma110_eq
197
+ #print axioms christoffel_trace_eq
198
+ #print axioms density_divergence
199
+
200
+ end ResNova.NoetherScoping
05_lean_formalization/lakefile.lean CHANGED
@@ -182,5 +182,11 @@ lean_lib «ResNovaFormal» where
182
  `ModelIdentity,
183
  -- ADDED 2026-11-17. Wave/AeST theorems restated with their physics literals read
184
  -- from ModelIdentity.canonical; sabotage_model_identity.sh mutates each field.
185
- `ModelIdentityBindings
 
 
 
 
 
 
186
  ]
 
182
  `ModelIdentity,
183
  -- ADDED 2026-11-17. Wave/AeST theorems restated with their physics literals read
184
  -- from ModelIdentity.canonical; sabotage_model_identity.sh mutates each field.
185
+ `ModelIdentityBindings,
186
+ -- ADDED 2026-11-19 (O44/O15, BLK-1518/BLK-1522). Spin^c Dirac index polynomial on CP^2
187
+ -- twisted by O(Q), Serre duality Q <-> -3 - Q (h^0=3 vs h^2=3), and Dolan cross-check.
188
+ `CP2SpincIndex,
189
+ -- ADDED 2026-11-19 (O44, BLK-1522). First formalizable chunks (B1-B3) of the
190
+ -- diffeomorphism Noether identity in a t-only reduced 2D model.
191
+ `NoetherScoping
192
  ]
05_lean_formalization/verify_all_proofs.sh CHANGED
@@ -121,6 +121,8 @@ TARGETS=(
121
  Wave3BBNAndSpinCCP2Bounds.lean
122
  ModelIdentity.lean
123
  ModelIdentityBindings.lean
 
 
124
  )
125
 
126
  # --- Invariant: TARGETS must equal the lakefile roots -----------------------
 
121
  Wave3BBNAndSpinCCP2Bounds.lean
122
  ModelIdentity.lean
123
  ModelIdentityBindings.lean
124
+ CP2SpincIndex.lean
125
+ NoetherScoping.lean
126
  )
127
 
128
  # --- Invariant: TARGETS must equal the lakefile roots -----------------------