{
  "gap": "L-meta-467",
  "path": "lean/PEqualNP/Outside/L_meta_467.lean",
  "module": "PEqualNP.Outside.L_meta_467",
  "scope": "full",
  "source": "import Mathlib\nimport PEqualNP.Defs\n\ntheorem PEqualNP.Outside.L_meta_467 :\n    ∀ (m k : ℕ) (H : SimpleGraph (Fin m)) (Q : Fin m → Fin m → ℕ → Fin (m + 2 * k * (m * m)) → Prop) (S : SimpleGraph (Fin (m + 2 * k * (m * m)))), 1 ≤ k → (∀ (u v : Fin m) (p : ℕ) (x : Fin (m + 2 * k * (m * m))), Q u v p x ↔ (p = 0 ∧ x.val = u.val) ∨ (p = 2 * k + 1 ∧ x.val = v.val) ∨ (1 ≤ p ∧ p ≤ 2 * k ∧ x.val + 1 = m + 2 * k * (u.val * m + v.val) + p)) → (∀ x y : Fin (m + 2 * k * (m * m)), S.Adj x y ↔ ∃ u v : Fin m, u < v ∧ H.Adj u v ∧ ∃ p : ℕ, p ≤ 2 * k ∧ ((Q u v p x ∧ Q u v (p + 1) y) ∨ (Q u v p y ∧ Q u v (p + 1) x))) → ∀ (T : Finset (Fin m)) (T' : Finset (Fin (m + 2 * k * (m * m)))), (∀ u v : Fin m, H.Adj u v → u ∈ T ∨ v ∈ T) → (∀ x : Fin (m + 2 * k * (m * m)), x ∈ T' ↔ (∃ u ∈ T, x.val = u.val) ∨ ∃ u v : Fin m, ∃ i : ℕ, i < 2 * k ∧ u < v ∧ H.Adj u v ∧ x.val = m + 2 * k * (u.val * m + v.val) + i ∧ (i % 2 = 1 ↔ u ∈ T)) → ∀ x y : Fin (m + 2 * k * (m * m)), S.Adj x y → x ∈ T' ∨ y ∈ T' := by\n  intro m k H Q S hk hQ hS T T' hT hT' x y hxy\n  have oriented : ∀ (u v : Fin m) (p : ℕ)\n      (a b : Fin (m + 2 * k * (m * m))),\n      u < v → H.Adj u v → p ≤ 2 * k →\n      Q u v p a → Q u v (p + 1) b → a ∈ T' ∨ b ∈ T' := by\n    intro u v p a b huv hadj hp hpa hpb\n    have interior : ∀ (i : ℕ) (z : Fin (m + 2 * k * (m * m))),\n        i < 2 * k → z.val = m + 2 * k * (u.val * m + v.val) + i →\n        (i % 2 = 1 ↔ u ∈ T) → z ∈ T' := by\n      intro i z hi hz hparity\n      exact (hT' z).mpr (Or.inr ⟨u, v, i, hi, huv, hadj, hz, hparity⟩)\n    rcases (hQ u v p a).mp hpa with hzero | hlast | ha\n    · rcases hzero with ⟨rfl, ha⟩\n      have hb : b.val = m + 2 * k * (u.val * m + v.val) := by\n        rcases (hQ u v (0 + 1) b).mp hpb with hb | hb | hb <;> omega\n      by_cases hu : u ∈ T\n      · exact Or.inl ((hT' a).mpr (Or.inl ⟨u, hu, ha⟩))\n      · right\n        apply interior 0 b (by omega) (by omega)\n        simp [hu]\n    · omega\n    · rcases ha with ⟨hpos, hbound, ha⟩\n      rcases (hQ u v (p + 1) b).mp hpb with hzero | hlast | hb\n      · omega\n      · have hpLast : p = 2 * k := by omega\n        by_cases hu : u ∈ T\n        · left\n          apply interior (p - 1) a (by omega) (by omega)\n          constructor\n          · intro _\n            exact hu\n          · intro _\n            omega\n        · right\n          exact (hT' b).mpr (Or.inl ⟨v, (hT u v hadj).resolve_left hu, hlast.2⟩)\n      · rcases hb with ⟨hbpos, hbbound, hb⟩\n        by_cases hselect : (p - 1) % 2 = 1 ↔ u ∈ T\n        · left\n          exact interior (p - 1) a (by omega) (by omega) hselect\n        · right\n          apply interior p b (by omega) (by omega)\n          by_cases hu : u ∈ T\n          · have hprev : (p - 1) % 2 ≠ 1 := by\n              intro h\n              exact hselect (iff_of_true h hu)\n            exact iff_of_true (by omega) hu\n          · have hprev : (p - 1) % 2 = 1 := by\n              by_contra h\n              exact hselect (iff_of_false h hu)\n            exact iff_of_false (by omega) hu\n  rcases (hS x y).mp hxy with ⟨u, v, huv, hadj, p, hp, hpath⟩\n  rcases hpath with hforward | hreverse\n  · exact oriented u v p x y huv hadj hp hforward.1 hforward.2\n  · exact (oriented u v p y x huv hadj hp hreverse.1 hreverse.2).symm\n",
  "changed": false,
  "localCheck": "incomplete",
  "disposition": "open: L-meta-467 is in gaps (desk snapshot updated_at 2026-11-23T23:48:47.295Z). It is not in checked or withdrawn, so it is not closed.",
  "statementMatch": "The theorem type in the handed file equals the desk row's statement string byte for byte. File path, module name and imports (Mathlib, PEqualNP.Defs) match the row. The file contains no sorry, native_decide, axiom, # command, double quote, macro/syntax/notation/elab/attribute/initialize, or helper outside the theorem, as CONTRIBUTING.md requires.",
  "localCheckNote": "I did not run tools/check-lean.mjs on this machine. Only about 380 MB of disk was free, and downloading the pinned Lean v4.36.0 toolchain failed with 'No space left on device', so Mathlib could not be installed. That is why localCheck is 'incomplete', not 'passed'. The input result reports an ACCEPTED (check) verdict from lean/CheckLemma.lean at base commit 605dc84, with axioms propext, Quot.sound and Classical.choice. Between 605dc84 and the pinned e3b1828, git diff shows only added files: new lean/PEqualNP/Outside/L_* proofs and two new lean/PEqualNP/MetaComplexity files (Helpers/LadderOrd.lean, L1396.lean). No existing file was modified, PEqualNP.Defs included. tools/, lean/CheckLemma.lean, lakefile.toml, lean-toolchain, lake-manifest.json and CONTRIBUTING.md are unchanged, so that verdict should carry over to e3b1828. I have not reproduced it independently.",
  "reasoning": "I read the proof by hand and it is complete, with every edge type covered. Let B = m + 2k(u*m+v). From S.Adj x y, extract u<v, H.Adj u v, and p<=2k with Q p on one end and Q (p+1) on the other. An ordered lemma handles (a,b), and Or.symm gives the reverse orientation. First edge (p=0): a.val=u. Since k>=1, position 1 is neither 0 nor 2k+1, so b.val=B (interior index 0). If u is in T, a is in T' as a base vertex. Otherwise index 0 has even parity and u is not in T, so the parity iff is False<->False and b is in T'. The first vertex cannot be at position 2k+1 because p<=2k (omega). Final edge (p+1=2k+1): a is at interior index p-1=2k-1, which is odd. If u is in T, a is selected because odd<->true. Otherwise the vertex-cover hypothesis gives v in T, and b.val=v.val makes b a base vertex in T'. Internal edges (1<=p, p+1<=2k): the indices are p-1 and p, both <2k. If the parity iff holds at p-1, a is selected. Otherwise consecutive integers have opposite parity, so the iff holds at p (split on u in T, omega on % 2) and b is selected. The nonlinear term 2*k*(u*m+v) appears syntactically identically everywhere, so omega treats it as one atom. The arithmetic is linear apart from that, plus mod by the literal 2. No edit was needed.",
  "sources": [
    "https://data.pequalnp.com/data/desk/gaps.json",
    "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/CONTRIBUTING.md",
    "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/e3b1828a4423909b34c8d8184be1e208451c631a/tools/check-lean.mjs",
    "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://github.com/brilliant-hq/pequalnp-proofs/tree/e3b1828a4423909b34c8d8184be1e208451c631a"
  ]
}
