{
 "unit": "L-gct-307",
 "statement": "∀ (L : Submodule ℂ (Fin 4 → Fin 5 → ℂ))\n  (u : Fin 5 → ℂ) (A : Submodule ℂ (Fin 4 → ℂ)),\n  u ≠ 0 → 2 ≤ Module.finrank ℂ A →\n  (∀ X ∈ L, (∀ i, (∑ j, X i j) = 0) ∧ (∀ j, (∑ i, X i j) = 0) ∧\n    (∑ f : Fin 4 ↪ Fin 5, ∏ i : Fin 4, (1 + X i (f i))) = 120) →\n  (∀ a ∈ A, (fun i j => a i * u j) ∈ L) →\n  Module.finrank ℂ L ≤ 4",
 "statement_sha256": "07e785c3a0ea4463a95ed23f14fed31d8e5fffd5551df284cd33c41d5920949c",
 "complete": false,
 "lean": "import Mathlib\nimport PEqualNP.Defs\nimport PEqualNP.Outside.L_gct_306\nnamespace PEqualNP.Outside.L_gct_307_aux\nopen PEqualNP.Outside.L_gct_306_aux\nopen scoped BigOperators\ntheorem e0_five : e0 5 = 120 := by\n  simp [e0, Fintype.card_embedding_eq]\ntheorem level (L : Submodule ℂ (Fin 4 → Fin 5 → ℂ))\n    (h : ∀ X ∈ L, (∀ i, (∑ j, X i j) = 0) ∧ (∀ j, (∑ i, X i j) = 0) ∧\n      (∑ f : Fin 4 ↪ Fin 5, ∏ i : Fin 4, (1 + X i (f i))) = 120) : Level L := by\n  intro X hX\n  rw [e0_five]\n  exact h X hX\ntheorem sum_u (u : Fin 5 → ℂ) (a : Fin 4 → ℂ) (ha : a ≠ 0) (h : ∀ i, (∑ j, a i * u j) = 0) :\n    (∑ j, u j) = 0 := by\n  obtain ⟨i, hi⟩ := Function.ne_iff.mp ha\n  have e := h i\n  rw [← Finset.mul_sum] at e\n  exact (mul_eq_zero.mp e).resolve_left hi\ntheorem sum_a (u : Fin 5 → ℂ) (a : Fin 4 → ℂ) (hu : u ≠ 0) (h : ∀ j, (∑ i, a i * u j) = 0) :\n    (∑ i, a i) = 0 := by\n  obtain ⟨j, hj⟩ := Function.ne_iff.mp hu\n  have e := h j\n  rw [← Finset.sum_mul] at e\n  exact (mul_eq_zero.mp e).resolve_right hj\ndef D : LinearMap.BilinForm ℂ (Fin 4 → ℂ) := dotProductBilin ℂ ℂ\ntheorem dNondeg : D.Nondegenerate := by\n  constructor\n  · intro x hx; funext i\n    have h := hx (Pi.single i 1)\n    change dotProduct x (Pi.single i 1) = 0 at h\n    simpa using h\n  · intro y hy; funext i\n    have h := hy (Pi.single i 1)\n    change dotProduct (Pi.single i 1) y = 0 at h\n    simpa using h\ntheorem small (A : Submodule ℂ (Fin 4 → ℂ)) (hs : ∀ a ∈ A, (∑ i, a i) = 0)\n    (ho : ∀ a ∈ A, ∀ b ∈ A, (∑ i, a i * b i) = 0) : Module.finrank ℂ A ≤ 1 := by\n  let one : Fin 4 → ℂ := fun _ => 1\n  have none : one ∉ A := by\n    intro m\n    have := ho one m one m\n    simp [one] at this\n  have dis : Disjoint A (Submodule.span ℂ {one}) := by\n    rw [Submodule.disjoint_span_singleton' (by intro e; have := congrFun e 0; simp [one] at this)]\n    exact none\n  have sup := A.finrank_sup_add_finrank_inf_eq (Submodule.span ℂ {one})\n  rw [dis.eq_bot, finrank_bot, add_zero, finrank_span_singleton\n    (by intro e; have := congrFun e 0; simp [one] at this)] at sup\n  have perp := LinearMap.BilinForm.finrank_orthogonal (B := D) dNondeg (A ⊔ Submodule.span ℂ {one})\n  have amb : Module.finrank ℂ (Fin 4 → ℂ) = 4 := by simp\n  rw [amb] at perp\n  have orth : A ≤ D.orthogonal (A ⊔ Submodule.span ℂ {one}) := by\n    intro a ha y hy\n    obtain ⟨b, hb, c, hc, rfl⟩ := Submodule.mem_sup.mp hy\n    obtain ⟨r, rfl⟩ := Submodule.mem_span_singleton.mp hc\n    change dotProduct (b + r • one) a = 0\n    have e1 := ho b hb a ha\n    have e2 := hs a ha\n    simp only [dotProduct, Pi.add_apply, Pi.smul_apply, smul_eq_mul, one, add_mul,\n      Finset.sum_add_distrib, mul_one, ← Finset.mul_sum, e1, e2, mul_zero, add_zero]\n  have le := Submodule.finrank_mono orth\n  have cap := (A ⊔ Submodule.span ℂ {one}).finrank_le\n  rw [amb] at cap\n  omega\ntheorem p2 (L : Submodule ℂ (Fin 4 → Fin 5 → ℂ)) (u : Fin 5 → ℂ) (A : Submodule ℂ (Fin 4 → ℂ))\n    (hu : u ≠ 0) (hA : 2 ≤ Module.finrank ℂ A) (valid : Level L)\n    (hL : ∀ a ∈ A, (fun i j => a i * u j) ∈ L) : (∑ j, (u j)^2) = 0 := by\n  by_contra hne\n  apply absurd (small A ?_ ?_) (by omega)\n  · intro a ha\n    exact sum_a u a hu (fun j => (valid _ (hL a ha)).2.1 j)\n  · intro a ha b hb\n    have e := isotropic (le_refl 4 |>.trans (by norm_num)) valid (hL a ha) (hL b hb)\n    have id : pairing (fun i j => a i * u j) (fun i j => b i * u j) =\n        (∑ i, a i * b i) * (∑ j, (u j)^2) := by\n      simp only [pairing, Fin.sum_univ_four, Finset.mul_sum]\n      apply Finset.sum_congr rfl; intro j _; ring\n    rw [id] at e\n    exact (mul_eq_zero.mp e).resolve_right hne\ntheorem moments (L : Submodule ℂ (Fin 4 → Fin 5 → ℂ)) (u : Fin 5 → ℂ) (A : Submodule ℂ (Fin 4 → ℂ))\n    (hu : u ≠ 0) (hA : 2 ≤ Module.finrank ℂ A) (valid : Level L)\n    (hL : ∀ a ∈ A, (fun i j => a i * u j) ∈ L) (a : Fin 4 → ℂ) (ha : a ∈ A) (b : Fin 4 → ℂ) (hb : b ∈ A) :\n    (∑ i, a i * (b i)^2) * (∑ j, (u j)^3) = 0 ∧\n    (a 0 * a 1 * a 2 * a 3) * (∑ j, (u j)^4) = 0 := by\n  have q := p2 L u A hu hA valid hL\n  constructor\n  · have e := cubeSlope (le_refl 4 |>.trans (by norm_num)) valid (hL a ha) (hL b hb)\n    rw [← e, Fin.sum_univ_four, Finset.mul_sum]\n    apply Finset.sum_congr rfl; intro j _; ring\n  · have e := (forms (le_refl 4 |>.trans (by norm_num)) valid (hL a ha)).2.2\n    have dd (i k : Fin 4) : dot (fun j => a i * u j) (fun j => a k * u j) = 0 := by\n      have : dot (fun j => a i * u j) (fun j => a k * u j) = a i * a k * (∑ j, (u j)^2) := by\n        simp only [dot, Finset.mul_sum]\n        apply Finset.sum_congr rfl; intro j _; ring\n      rw [this, q, mul_zero]\n    have pz : pairs (fun i j => a i * u j) = 0 := by\n      simp only [pairs, dd, mul_zero, add_zero]\n    rw [pz] at e\n    have r : ringProd (fun i j => a i * u j) = (a 0 * a 1 * a 2 * a 3) * (∑ j, (u j)^4) := by\n      simp only [ringProd, Finset.mul_sum]\n      apply Finset.sum_congr rfl; intro j _; ring\n    rw [← r]\n    linear_combination -e/6\nend PEqualNP.Outside.L_gct_307_aux\n",
 "lean_bytes": 5152,
 "lean_sha256": "74d477de6fbcbdc48f2b1777437724d2eb150ca531f7544c5540518934534ed3",
 "build": {
  "exit": 0,
  "seconds": 15.1,
  "peak_memory_gb": 6.62
 },
 "checker": {
  "exit": 1,
  "last_line": "REJECTED (no-theorem): the file declares no theorem named PEqualNP.Outside.L_gct_307 (one lemma, one file: the theorem carries the module's name)"
 },
 "axioms": [
  "propext",
  "Classical.choice",
  "Quot.sound"
 ],
 "missing": "The final theorem PEqualNP.Outside.L_gct_307 itself. Proved so far (in namespace L_gct_307_aux, building on checked L_gct_306): e0 5 = 120; the hypothesis gives L_gct_306_aux.Level L; sum u = 0 and sum a = 0 for a in A; p2(u) = sum u_j^2 = 0 (theorem p2); for all a,b in A, (sum_i a_i b_i^2)*p3(u) = 0 and (a0 a1 a2 a3)*p4(u) = 0 (theorem moments). Still unproved: (i) case p4 != 0: the row product vanishing on the 2-dim A forces one coordinate of A to vanish identically, after which the sketch applies sibling 305, which is NOT on main (no L_gct_305.lean), so this branch cannot currently be closed; (ii) case p3 = p4 = 0: u is a scaled vector of fifth roots of unity and L must be transformed into the form of L_gct_284 / L_gct_280; (iii) case p4 = 0, p3 != 0: sum a_i b_i^2 = 0 on A forces A to be an opposite-pairs plane up to row permutation, then L_gct_306 gives dim L <= 5, and dim 5 needs p8 = 0 and 5 p12 = p6^2, contradicted via Newton identities for T^5 - aT^2 - b.",
 "approach": "Imported the checked sibling L_gct_306 and reused its Level predicate and its forms, isotropic and cubeSlope lemmas (vanishing of the degree-2, 3 and 4 parts of the shifted permanent on L). Computed e0 5 = 120 from the embedding count. For rank-one members a*u: column sums give sum a = 0, row sums give sum u = 0. Isotropy gives (a.b)(u.u) = 0; if u.u != 0 then A is totally isotropic and orthogonal to the all-ones vector, and the nondegenerate dot-product orthogonal-complement dimension count forces dim A <= 1, a contradiction. So p2(u) = 0. Then cubeSlope and pairs = 6*ringProd on a*u give (sum a_i b_i^2) p3 = 0 and (prod a_i) p4 = 0. The remaining case split needs the missing sibling 305 and is estimated at 180-360 min, beyond this run.",
 "reason": "missing_lemma"
}