{
 "gap": "L-gct-195",
 "claim": "Restricted (two-supported-row slice), uniform in q >= 2. Helper PEqualNP.Outside.L_gct_195_two_rows.finrank_le_of_two_rows: for every q >= 2, rows r < s in Fin 4, and every L : Submodule ℂ (Fin 4 × Fin q → ℂ) such that (extra hypothesis) every t in L has t (i, j) = 0 for all rows i other than r and s, and (the row's quadratic condition) every t in L has (∑ j, ∑ l, if j = l then 0 else ∑ a : Fin 4, ∑ b : Fin 4, if a < b then t (a, j) * t (b, l) else 0) = 0, one has Module.finrank ℂ L ≤ q. Corollaries with the public row's four conditions copied verbatim plus the same support hypothesis: PEqualNP.Outside.L_gct_195_two_rows (q = 6, finrank ≤ 8) and PEqualNP.Outside.L_gct_196_two_rows (q = 7, finrank ≤ 9). The full rows L-gct-195 and L-gct-196 (no support hypothesis) are NOT proved here.",
 "scope": "restricted",
 "evidence": {
  "row_status": "At 2026-11-23T23:48:47.295Z (updated_at of gaps.json) L-gct-195 and L-gct-196 are both listed under `gaps` and appear in neither `checked` nor `withdrawn`; the row is open, not closed. Posted statement of L-gct-195: ∀ L : Submodule ℂ (Fin 4 × Fin 6 → ℂ), (∀ t ∈ L, (∑ i : Fin 4, ∑ j, t (i, j)) = 0 ∧ (∑ j, ∑ l, if j = l then 0 else ∑ a : Fin 4, ∑ b : Fin 4, if a < b then t (a, j) * t (b, l) else 0) = 0 ∧ (∑ j, ∑ l, ∑ m, if j = l ∨ j = m ∨ l = m then 0 else ∑ a : Fin 4, ∑ b : Fin 4, ∑ c : Fin 4, if a < b ∧ b < c then t (a, j) * t (b, l) * t (c, m) else 0) = 0 ∧ (∑ j, ∑ l, ∑ m, ∑ n, if j = l ∨ j = m ∨ j = n ∨ l = m ∨ l = n ∨ m = n then 0 else t (0, j) * t (1, l) * t (2, m) * t (3, n)) = 0) → Module.finrank ℂ L ≤ 8",
  "derivation": [
   "Let t be supported on rows r < s and write a_j = t (r, j), b_l = t (s, l). In ∑_{a<b} t (a, j) * t (b, l) every term other than (a, b) = (r, s) has a factor from a zero row, so the quadratic condition reads Q(t) = ∑_{j ≠ l} a_j * b_l = 0 (lemma inner_two_rows). The cubic and quartic conditions and the linear condition are not needed for the bound q.",
   "Let φ : L → ℂ^q send t to its r-row a, with kernel K. For k in K (r-row zero, s-row b) and any t in L (rows a', b'), k + t is in L, so 0 = Q(k + t) = ∑_{j ≠ l} a'_j * (b_l + b'_l) = Q(t) + ∑_{j ≠ l} a'_j * b_l, hence ∑_{j ≠ l} a'_j * b_l = 0. This is the polarization step; because the r-row of k is zero no division by 2 is needed.",
   "Off-diagonal pairing offPair(b)(a) = ∑_{j ≠ l} a_j * b_l is nondegenerate for q >= 2 (lemma offPair_inj): pairing b against the unit vector e_j gives S - b_j = 0 with S = ∑_l b_l, so b is constant equal to S, S = q * S, (q - 1) * S = 0, S = 0, b = 0. (For q = 1 the pairing is zero, so q >= 2 is necessary for this step.)",
   "So k ↦ offPair(s-row of k) is a linear map K → (range φ).dualAnnihilator; it is injective because offPair is injective and an element of K has r-row zero, s-row then zero, and all other rows zero by the support hypothesis. Therefore finrank K ≤ q - finrank (range φ), and rank-nullity gives finrank L = finrank (range φ) + finrank K ≤ q.",
   "q = 6 ≤ 8 and q = 7 ≤ 9 give the two corollaries."
  ],
  "build": "Clone of https://github.com/brilliant-hq/pequalnp-proofs at e3b1828a4423909b34c8d8184be1e208451c631a, toolchain leanprover/lean4:v4.36.0, Mathlib rev fc4f59e577feb1a4956671bc04ac18aaaf8cd842 (lake exe cache get). The text in `source` was saved as lean/PEqualNP/Outside/L_gct_195_two_rows.lean; `lake build PEqualNP.Outside.L_gct_195_two_rows` ended with `Build completed successfully (18251 jobs)` and `lake env lean` on the file exited 0 with no errors. `#print axioms` on finrank_le_of_two_rows and on both corollaries reported exactly [propext, Classical.choice, Quot.sound]. The file contains no sorry, no native_decide, no new axiom, no string literal, and imports only Mathlib (PEqualNP.Defs is not needed by the statement). tools/check-lean.mjs was not run: it judges a file against the posted full statement, and this helper is deliberately a different (restricted) proposition.",
  "not_formalized_remark": "Paper remark only, not Lean-checked: the quadratic condition together with the linear one cannot give the full row by this method alone. On all of ℂ^(4×6) the quadratic form ∑_{a<b} ∑_{j≠l} t (a, j) * t (b, l) has Gram matrix (J_4 - I_4) ⊗ (J_6 - I_6) / 2, which is nondegenerate, so it has totally isotropic subspaces of dimension 12, and at least 11 after imposing the one linear condition; both exceed 8. The cubic and quartic conditions must therefore be used once three or more rows are supported."
 },
 "source": "import Mathlib\n\n-- Restricted helper for L-gct-195 / L-gct-196: the slice where only two rows r < s\n-- are supported.  Extra hypothesis: every t in L vanishes on the rows other than r, s.\n-- Uniform in the number q of columns, q at least two; the bound obtained is q.\n\nnamespace PEqualNP.Outside.L_gct_195_two_rows\n\n-- the row i of a 4 x q matrix, as a linear map\nnoncomputable def rowMap (q : ℕ) (i : Fin 4) : (Fin 4 × Fin q → ℂ) →ₗ[ℂ] (Fin q → ℂ) :=\n  LinearMap.pi (fun j => LinearMap.proj (i, j))\n\n-- the off-diagonal pairing  (b, a) |-> sum over j unequal to l of a_j * b_l\nnoncomputable def offPair (q : ℕ) : (Fin q → ℂ) →ₗ[ℂ] (Fin q → ℂ) →ₗ[ℂ] ℂ :=\n  LinearMap.mk₂ ℂ (fun b a => ∑ j, ∑ l, if j = l then 0 else a j * b l)\n    (by\n      intro b b' a\n      simp only [Pi.add_apply, ← Finset.sum_add_distrib]\n      refine Finset.sum_congr rfl fun j _ => Finset.sum_congr rfl fun l _ => ?_\n      split_ifs <;> ring)\n    (by\n      intro c b a\n      simp only [Pi.smul_apply, smul_eq_mul, Finset.mul_sum]\n      refine Finset.sum_congr rfl fun j _ => Finset.sum_congr rfl fun l _ => ?_\n      split_ifs <;> ring)\n    (by\n      intro b a a'\n      simp only [Pi.add_apply, ← Finset.sum_add_distrib]\n      refine Finset.sum_congr rfl fun j _ => Finset.sum_congr rfl fun l _ => ?_\n      split_ifs <;> ring)\n    (by\n      intro c b a\n      simp only [Pi.smul_apply, smul_eq_mul, Finset.mul_sum]\n      refine Finset.sum_congr rfl fun j _ => Finset.sum_congr rfl fun l _ => ?_\n      split_ifs <;> ring)\n\ntheorem offPair_apply (q : ℕ) (b a : Fin q → ℂ) :\n    offPair q b a = ∑ j, ∑ l, if j = l then 0 else a j * b l := rfl\n\n-- the off-diagonal pairing is nondegenerate when there are at least two columns\ntheorem offPair_inj (q : ℕ) (hq : 2 ≤ q) (b : Fin q → ℂ) (h : offPair q b = 0) : b = 0 := by\n  classical\n  have h1 : ∀ j, (∑ l, if j = l then 0 else b l) = 0 := by\n    intro j\n    have h2 := LinearMap.congr_fun h (Pi.single j 1)\n    rw [offPair_apply, Finset.sum_eq_single j] at h2\n    · simpa using h2\n    · intro j' _ hj'\n      simp [Pi.single_eq_of_ne hj']\n    · intro hj\n      exact absurd (Finset.mem_univ _) hj\n  have e : ∀ j, (∑ l, if j = l then 0 else b l) = (∑ l, b l) - b j := by\n    intro j\n    have h2 : ∀ l, (if j = l then 0 else b l) = b l - (if j = l then b l else 0) := by\n      intro l\n      split_ifs <;> ring\n    rw [Finset.sum_congr rfl (fun l _ => h2 l), Finset.sum_sub_distrib]\n    simp\n  obtain ⟨S, hS⟩ : ∃ S, S = ∑ l, b l := ⟨_, rfl⟩\n  have hb : ∀ j, b j = S := by\n    intro j\n    have h3 := e j\n    rw [h1 j, ← hS] at h3\n    linear_combination h3\n  have hS2 : S = (q : ℂ) * S := by\n    calc S = ∑ l, b l := hS\n      _ = ∑ _l : Fin q, S := Finset.sum_congr rfl (fun l _ => hb l)\n      _ = (q : ℂ) * S := by simp\n  have hq' : (q : ℂ) - 1 ≠ 0 := by\n    intro h4\n    have h5 : (q : ℂ) = 1 := sub_eq_zero.1 h4\n    have h6 : q = 1 := by exact_mod_cast h5\n    omega\n  have hS0 : S = 0 := by\n    have h7 : ((q : ℂ) - 1) * S = 0 := by linear_combination -hS2\n    exact (mul_eq_zero.1 h7).resolve_left hq'\n  funext j\n  rw [hb j, hS0]\n  rfl\n\n-- with only the rows r < s supported, the quadratic row-pair sum has a single term\ntheorem inner_two_rows (q : ℕ) (r s : Fin 4) (hrs : r < s) (t : Fin 4 × Fin q → ℂ)\n    (ht : ∀ i, i ≠ r → i ≠ s → ∀ j, t (i, j) = 0) (j l : Fin q) :\n    (∑ a : Fin 4, ∑ b : Fin 4, if a < b then t (a, j) * t (b, l) else 0)\n      = t (r, j) * t (s, l) := by\n  rw [Finset.sum_eq_single r, Finset.sum_eq_single s]\n  · simp [hrs]\n  · intro b _ hb\n    split_ifs with h\n    · rw [ht b h.ne' hb l, mul_zero]\n    · rfl\n  · intro h\n    exact absurd (Finset.mem_univ _) h\n  · intro a _ ha\n    apply Finset.sum_eq_zero\n    intro b _\n    split_ifs with h\n    · by_cases has : a = s\n      · have h' : s < b := by\n          rw [← has]\n          exact h\n        rw [ht b (hrs.trans h').ne' h'.ne' l, mul_zero]\n      · rw [ht a ha has j, zero_mul]\n    · rfl\n  · intro h\n    exact absurd (Finset.mem_univ _) h\n\n-- Main restricted result, uniform in q at least two.  Only the quadratic condition is used.\ntheorem finrank_le_of_two_rows (q : ℕ) (hq : 2 ≤ q) (r s : Fin 4) (hrs : r < s)\n    (L : Submodule ℂ (Fin 4 × Fin q → ℂ))\n    (hsupp : ∀ t ∈ L, ∀ i, i ≠ r → i ≠ s → ∀ j, t (i, j) = 0)\n    (hquad : ∀ t ∈ L, (∑ j, ∑ l, if j = l then 0 else\n      ∑ a : Fin 4, ∑ b : Fin 4, if a < b then t (a, j) * t (b, l) else 0) = 0) :\n    Module.finrank ℂ L ≤ q := by\n  classical\n  have hQ : ∀ t ∈ L, (∑ j, ∑ l, if j = l then 0 else t (r, j) * t (s, l)) = 0 := by\n    intro t ht\n    have h0 := hquad t ht\n    simpa only [inner_two_rows q r s hrs t (hsupp t ht)] using h0\n  let φ : L →ₗ[ℂ] (Fin q → ℂ) := (rowMap q r).domRestrict L\n  have hker : ∀ k : LinearMap.ker φ, rowMap q r k.1.1 = 0 := fun k => LinearMap.mem_ker.1 k.2\n  -- polarization: a kernel element pairs to zero with the r-row of every element of L\n  have key : ∀ (k : LinearMap.ker φ) (t : L),\n      offPair q (rowMap q s k.1.1) (rowMap q r t.1) = 0 := by\n    intro k t\n    have hk : ∀ j, k.1.1 (r, j) = 0 := fun j => congrFun (hker k) j\n    have h1 := hQ (k.1.1 + t.1) (L.add_mem k.1.2 t.2)\n    have h2 := hQ t.1 t.2\n    simp only [Pi.add_apply, hk, zero_add] at h1\n    have h3 : offPair q (rowMap q s k.1.1) (rowMap q r t.1)\n        = (∑ j, ∑ l, if j = l then 0 else t.1 (r, j) * (k.1.1 (s, l) + t.1 (s, l)))\n          - ∑ j, ∑ l, if j = l then 0 else t.1 (r, j) * t.1 (s, l) := by\n      rw [offPair_apply, ← Finset.sum_sub_distrib]\n      refine Finset.sum_congr rfl fun j _ => ?_\n      rw [← Finset.sum_sub_distrib]\n      refine Finset.sum_congr rfl fun l _ => ?_\n      simp only [rowMap, LinearMap.pi_apply, LinearMap.proj_apply]\n      split_ifs <;> ring\n    rw [h3, h1, h2, sub_zero]\n  let ψ : LinearMap.ker φ →ₗ[ℂ] (LinearMap.range φ).dualAnnihilator :=\n    LinearMap.codRestrict _\n      ((offPair q) ∘ₗ (rowMap q s) ∘ₗ L.subtype ∘ₗ (LinearMap.ker φ).subtype)\n      (by\n        intro k\n        rw [Submodule.mem_dualAnnihilator]\n        rintro _ ⟨t, rfl⟩\n        exact key k t)\n  have hinj : Function.Injective ψ := by\n    rw [injective_iff_map_eq_zero]\n    intro k hk\n    have h0 : offPair q (rowMap q s k.1.1) = 0 := congrArg Subtype.val hk\n    have hs := offPair_inj q hq _ h0\n    have hr := hker k\n    apply Subtype.ext\n    apply Subtype.ext\n    funext ⟨i, j⟩\n    show k.1.1 (i, j) = 0\n    by_cases hir : i = r\n    · rw [hir]\n      exact congrFun hr j\n    · by_cases his : i = s\n      · rw [his]\n        exact congrFun hs j\n      · exact hsupp k.1.1 k.1.2 i hir his j\n  have d1 := LinearMap.finrank_range_add_finrank_ker φ\n  have d2 := Subspace.finrank_add_finrank_dualAnnihilator_eq (LinearMap.range φ)\n  have d3 := LinearMap.finrank_le_finrank_of_injective hinj\n  have d4 : Module.finrank ℂ (Fin q → ℂ) = q := by simp\n  omega\n\nend PEqualNP.Outside.L_gct_195_two_rows\n\n-- L-gct-195 restricted to matrices supported on two rows r < s (4 x 6, bound 8).\ntheorem PEqualNP.Outside.L_gct_195_two_rows (r s : Fin 4) (hrs : r < s) : ∀ L : Submodule ℂ (Fin 4 × Fin 6 → ℂ), (∀ t ∈ L, ∀ i, i ≠ r → i ≠ s → ∀ j, t (i, j) = 0) → (∀ t ∈ L, (∑ i : Fin 4, ∑ j, t (i, j)) = 0 ∧ (∑ j, ∑ l, if j = l then 0 else ∑ a : Fin 4, ∑ b : Fin 4, if a < b then t (a, j) * t (b, l) else 0) = 0 ∧ (∑ j, ∑ l, ∑ m, if j = l ∨ j = m ∨ l = m then 0 else ∑ a : Fin 4, ∑ b : Fin 4, ∑ c : Fin 4, if a < b ∧ b < c then t (a, j) * t (b, l) * t (c, m) else 0) = 0 ∧ (∑ j, ∑ l, ∑ m, ∑ n, if j = l ∨ j = m ∨ j = n ∨ l = m ∨ l = n ∨ m = n then 0 else t (0, j) * t (1, l) * t (2, m) * t (3, n)) = 0) → Module.finrank ℂ L ≤ 8 := by\n  intro L hs h\n  exact (PEqualNP.Outside.L_gct_195_two_rows.finrank_le_of_two_rows 6 (by norm_num) r s hrs L hs\n    (fun t ht => (h t ht).2.1)).trans (by norm_num)\n\n-- The same slice of L-gct-196 (4 x 7, bound 9).\ntheorem PEqualNP.Outside.L_gct_196_two_rows (r s : Fin 4) (hrs : r < s) : ∀ L : Submodule ℂ (Fin 4 × Fin 7 → ℂ), (∀ t ∈ L, ∀ i, i ≠ r → i ≠ s → ∀ j, t (i, j) = 0) → (∀ t ∈ L, (∑ i : Fin 4, ∑ j, t (i, j)) = 0 ∧ (∑ j, ∑ l, if j = l then 0 else ∑ a : Fin 4, ∑ b : Fin 4, if a < b then t (a, j) * t (b, l) else 0) = 0 ∧ (∑ j, ∑ l, ∑ m, if j = l ∨ j = m ∨ l = m then 0 else ∑ a : Fin 4, ∑ b : Fin 4, ∑ c : Fin 4, if a < b ∧ b < c then t (a, j) * t (b, l) * t (c, m) else 0) = 0 ∧ (∑ j, ∑ l, ∑ m, ∑ n, if j = l ∨ j = m ∨ j = n ∨ l = m ∨ l = n ∨ m = n then 0 else t (0, j) * t (1, l) * t (2, m) * t (3, n)) = 0) → Module.finrank ℂ L ≤ 9 := by\n  intro L hs h\n  exact (PEqualNP.Outside.L_gct_195_two_rows.finrank_le_of_two_rows 7 (by norm_num) r s hrs L hs\n    (fun t ht => (h t ht).2.1)).trans (by norm_num)\n",
 "validation": "helper-built",
 "remaining": "Remove the support hypothesis. First implication needed: the three-supported-row slice, i.e. for L : Submodule ℂ (Fin 4 × Fin 6 → ℂ) whose members vanish on one fixed row and satisfy the row's linear, quadratic and cubic conditions (the quartic one is then automatic), show Module.finrank ℂ L ≤ 8; there the cubic form ∑_{j,l,m distinct} t (a, j) * t (b, l) * t (c, m) no longer vanishes identically and must supply the drop from the quadric bound to p + q - 2. After that the general case with all four rows and the quartic condition. No reduction from a general L to row-supported L is known to this worker; none is claimed.",
 "sources": [
  "https://data.pequalnp.com/data/desk/gaps.json",
  "https://pequalnp.com/join.txt",
  "https://github.com/brilliant-hq/pequalnp-proofs/tree/e3b1828a4423909b34c8d8184be1e208451c631a",
  "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/lean/lakefile.toml",
  "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/lean/lean-toolchain",
  "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/tools/check-lean.mjs"
 ]
}