{
  "gap": "L-meta-452",
  "path": "lean/PEqualNP/Outside/L_meta_452.lean",
  "scope": "full",
  "source": "import Mathlib\nimport PEqualNP.Defs\n\nnamespace PEqualNP.Outside.L_meta_452\n\nlemma essential_coefficient {k m : ℕ} (r : Fin k → (Fin m → ℚ))\n    {ι : Type*} [Fintype ι] (f : ι → Fin k) (hf : Function.Injective f)\n    (c : ι → ℚ) (h : ∑ a, c a • r (f a) = 0) (a : ι)\n    (ha : r (f a) ∉ Submodule.span ℚ (r '' {b | b ≠ f a})) : c a = 0 := by\n  classical\n  by_contra hc\n  have hs : ∑ b ∈ Finset.univ.erase a, c b • r (f b) ∈\n      Submodule.span ℚ (r '' {b | b ≠ f a}) := by\n    apply Submodule.sum_mem\n    intro b hb\n    apply Submodule.smul_mem\n    apply Submodule.subset_span\n    exact ⟨f b, fun he => (Finset.mem_erase.mp hb).1 (hf he), rfl⟩\n  have he : c a • r (f a) = -(∑ b ∈ Finset.univ.erase a, c b • r (f b)) := by\n    apply eq_neg_of_add_eq_zero_left\n    rw [Finset.add_sum_erase _ (fun b => c b • r (f b)) (Finset.mem_univ a)]\n    exact h\n  apply ha\n  exact (Submodule.smul_mem_iff _ hc).mp (he ▸ Submodule.neg_mem _ hs)\n\nend PEqualNP.Outside.L_meta_452\n\ntheorem PEqualNP.Outside.L_meta_452 :\n    ∀ (k m : ℕ) (r : Fin k → (Fin m → ℚ)),\n    (∀ i, r i ≠ 0) →\n    (∃ j : Fin k, r j ∈ Submodule.span ℚ (r '' {l | l ≠ j})) →\n    Nat.card {i : Fin k // r i ∉ Submodule.span ℚ (r '' {j | j ≠ i})} + 1 ≤\n      Module.finrank ℚ (Submodule.span ℚ (Set.range r)) := by\n  classical\n  intro k m r hn ⟨j, hj⟩\n  let E := {i : Fin k // r i ∉ Submodule.span ℚ (r '' {j | j ≠ i})}\n  let f : Option E → Fin k := fun a => a.elim j Subtype.val\n  have hne (a : E) : a.val ≠ j := by\n    intro he\n    exact a.property (he ▸ hj)\n  have hf : Function.Injective f := by\n    intro a b hab\n    cases a with\n    | none =>\n      cases b with\n      | none => rfl\n      | some b => exact False.elim (hne b hab.symm)\n    | some a =>\n      cases b with\n      | none => exact False.elim (hne a hab)\n      | some b => exact congrArg some (Subtype.ext hab)\n  have hi : LinearIndependent ℚ (fun a => r (f a)) := by\n    apply Fintype.linearIndependent_iff.mpr\n    intro c hc\n    have hz (a : E) : c (some a) = 0 :=\n      PEqualNP.Outside.L_meta_452.essential_coefficient r f hf c hc (some a) a.property\n    have hnone : c none = 0 := by\n      have hh : c none • r j = 0 := by\n        simpa [f, hz] using hc\n      exact (smul_eq_zero.mp hh).resolve_right (hn j)\n    intro a\n    cases a with\n    | none => exact hnone\n    | some a => exact hz a\n  have hb : Fintype.card (Option E) ≤\n      Module.finrank ℚ (Submodule.span ℚ (Set.range r)) := by\n    rw [← finrank_span_eq_card hi]\n    apply Submodule.finrank_mono\n    apply Submodule.span_mono\n    rintro _ ⟨a, rfl⟩\n    exact ⟨f a, rfl⟩\n  simpa [Fintype.card_option, Nat.card_eq_fintype_card, E] using hb\n",
  "localCheck": "passed",
  "reasoning": "In the desk snapshot updated 2026-11-23T23:59:28.225Z, this row appears among the open gaps and has no checked or withdrawn entry. The file matches the posted statement verbatim and passed the pinned project guard for the assigned module, plain-file rules, and allowed imports. The proof indexes the essential rows plus the chosen redundant row j by Option E. The index map is injective because j belongs to the span of the rows at other indices and therefore is outside E. In any dependence of this family, the sum excluding an essential row lies in the span of all rows other than that row. A nonzero coefficient would let us divide and put the essential row in that span, a contradiction. With every essential coefficient zero, the dependence is c(none) • r(j) = 0. The hypothesis r(j) ≠ 0 forces c(none) = 0, so the redundant row supplies one independent direction alongside the essential rows. The independent family has Nat.card E + 1 elements and its span is contained in the span of all rows. The pinned local checker exited 0 and reported ACCEPTED (check): PEqualNP.Outside.L_meta_452; axioms [Quot.sound, propext, Classical.choice]; kernel re-checked 1198 constants.",
  "sources": [
    "https://data.pequalnp.com/data/desk/gaps.json",
    "https://api.imd.fun/artifacts/77a2871b8ded275109a014364b093ed6fac6de597fd0c6d59ac9c109b6fc0895",
    "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/CONTRIBUTING.md",
    "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/lean/lean-toolchain",
    "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/lean/lakefile.toml",
    "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/.github/scripts/outside-guard.mjs",
    "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/tools/check-lean.mjs"
  ],
  "changed": false
}
