{
 "gap": "L-meta-461",
 "path": "lean/PEqualNP/Outside/L_meta_461.lean",
 "scope": "full",
 "source": "import Mathlib\nimport PEqualNP.Defs\n\nnamespace PEqualNP.Outside.L_meta_461\n\nlemma step (a : Fin 6 × Fin 6) (l : List (Fin 6 × Fin 6)) (p : Fin 6 × Fin 6 → Prop)\n    [DecidablePred p] (c : Fin 6 × Fin 6 → ℚ) :\n    (((a :: l).filter (fun e => decide (p e))).map c).sum =\n      (if p a then c a else 0) + ((l.filter (fun e => decide (p e))).map c).sum := by\n  by_cases h : p a <;> simp [h]\n\nlemma sum6 (p : Fin 6 × Fin 6 → Prop) [DecidablePred p] (c : Fin 6 × Fin 6 → ℚ) :\n    ((([(0, 1), (0, 2), (1, 2), (0, 3), (1, 4), (2, 5)] : List (Fin 6 × Fin 6)).filter\n        (fun e => decide (p e))).map c).sum =\n      (if p (0, 1) then c (0, 1) else 0) + ((if p (0, 2) then c (0, 2) else 0)\n      + ((if p (1, 2) then c (1, 2) else 0) + ((if p (0, 3) then c (0, 3) else 0)\n      + ((if p (1, 4) then c (1, 4) else 0) + (if p (2, 5) then c (2, 5) else 0))))) := by\n  rw [step, step, step, step, step, step]\n  simp only [List.filter_nil, List.map_nil, List.sum_nil, add_zero]\n\nlemma pin {x a b : Fin 6} {I : Finset (Fin 6)} (h : (x = a ∨ x = b) ∧ x ∉ I) (ha : a ∈ I) :\n    x = b := by\n  rcases h with ⟨h | h, hn⟩\n  · subst h\n    exact absurd ha hn\n  · exact h\n\nlemma pin' {x a b : Fin 6} {I : Finset (Fin 6)} (h : (x = a ∨ x = b) ∧ x ∉ I) (hb : b ∈ I) :\n    x = a := by\n  rcases h with ⟨h | h, hn⟩\n  · exact h\n  · subst h\n    exact absurd hb hn\n\nend PEqualNP.Outside.L_meta_461\n\ntheorem PEqualNP.Outside.L_meta_461 : ∀ E : List (Fin 6 × Fin 6), E = [(0, 1), (0, 2), (1, 2), (0, 3), (1, 4), (2, 5)] → ∀ τ : Fin 6 × Fin 6 → Finset (Fin 6) → Fin 6, (∀ e ∈ E, ∀ I : Finset (Fin 6), (∀ f ∈ E, ¬ (f.1 ∈ I ∧ f.2 ∈ I)) → (τ e I = e.1 ∨ τ e I = e.2) ∧ τ e I ∉ I) → ∀ c : Fin 6 × Fin 6 → ℚ, (∀ I : Finset (Fin 6), (∀ f ∈ E, ¬ (f.1 ∈ I ∧ f.2 ∈ I)) → ∀ v : Fin 6, ((E.filter (fun e => τ e I = v)).map c).sum = 0) → ∀ e ∈ E, c e = 0 := by\n  intro E hE τ hτ c hc\n  subst hE\n  have hs : ∀ I : Finset (Fin 6),\n      (∀ f ∈ ([(0, 1), (0, 2), (1, 2), (0, 3), (1, 4), (2, 5)] : List (Fin 6 × Fin 6)),\n        ¬ (f.1 ∈ I ∧ f.2 ∈ I)) → ∀ v : Fin 6,\n      (if τ (0, 1) I = v then c (0, 1) else 0) + ((if τ (0, 2) I = v then c (0, 2) else 0)\n      + ((if τ (1, 2) I = v then c (1, 2) else 0) + ((if τ (0, 3) I = v then c (0, 3) else 0)\n      + ((if τ (1, 4) I = v then c (1, 4) else 0) + (if τ (2, 5) I = v then c (2, 5) else 0)))))\n        = 0 := by\n    intro I hI v\n    rw [← PEqualNP.Outside.L_meta_461.sum6 (fun e => τ e I = v) c]\n    exact hc I hI v\n  have h0 : ∀ f ∈ ([(0, 1), (0, 2), (1, 2), (0, 3), (1, 4), (2, 5)] : List (Fin 6 × Fin 6)),\n      ¬ (f.1 ∈ ({0} : Finset (Fin 6)) ∧ f.2 ∈ ({0} : Finset (Fin 6))) := by decide\n  have h1 : ∀ f ∈ ([(0, 1), (0, 2), (1, 2), (0, 3), (1, 4), (2, 5)] : List (Fin 6 × Fin 6)),\n      ¬ (f.1 ∈ ({1} : Finset (Fin 6)) ∧ f.2 ∈ ({1} : Finset (Fin 6))) := by decide\n  have h2 : ∀ f ∈ ([(0, 1), (0, 2), (1, 2), (0, 3), (1, 4), (2, 5)] : List (Fin 6 × Fin 6)),\n      ¬ (f.1 ∈ ({2} : Finset (Fin 6)) ∧ f.2 ∈ ({2} : Finset (Fin 6))) := by decide\n  have m01 : ((0, 1) : Fin 6 × Fin 6) ∈ ([(0, 1), (0, 2), (1, 2), (0, 3), (1, 4), (2, 5)] : List (Fin 6 × Fin 6)) := by simp\n  have m02 : ((0, 2) : Fin 6 × Fin 6) ∈ ([(0, 1), (0, 2), (1, 2), (0, 3), (1, 4), (2, 5)] : List (Fin 6 × Fin 6)) := by simp\n  have m12 : ((1, 2) : Fin 6 × Fin 6) ∈ ([(0, 1), (0, 2), (1, 2), (0, 3), (1, 4), (2, 5)] : List (Fin 6 × Fin 6)) := by simp\n  have m03 : ((0, 3) : Fin 6 × Fin 6) ∈ ([(0, 1), (0, 2), (1, 2), (0, 3), (1, 4), (2, 5)] : List (Fin 6 × Fin 6)) := by simp\n  have m14 : ((1, 4) : Fin 6 × Fin 6) ∈ ([(0, 1), (0, 2), (1, 2), (0, 3), (1, 4), (2, 5)] : List (Fin 6 × Fin 6)) := by simp\n  have m25 : ((2, 5) : Fin 6 × Fin 6) ∈ ([(0, 1), (0, 2), (1, 2), (0, 3), (1, 4), (2, 5)] : List (Fin 6 × Fin 6)) := by simp\n  have a01 : τ (0, 1) {0} = 1 := PEqualNP.Outside.L_meta_461.pin (hτ _ m01 _ h0) (by simp)\n  have a02 : τ (0, 2) {0} = 2 := PEqualNP.Outside.L_meta_461.pin (hτ _ m02 _ h0) (by simp)\n  have a03 : τ (0, 3) {0} = 3 := PEqualNP.Outside.L_meta_461.pin (hτ _ m03 _ h0) (by simp)\n  have a12 : τ (1, 2) {0} = 1 ∨ τ (1, 2) {0} = 2 := (hτ _ m12 _ h0).1\n  have a14 : τ (1, 4) {0} = 1 ∨ τ (1, 4) {0} = 4 := (hτ _ m14 _ h0).1\n  have a25 : τ (2, 5) {0} = 2 ∨ τ (2, 5) {0} = 5 := (hτ _ m25 _ h0).1\n  have b01 : τ (0, 1) {1} = 0 := PEqualNP.Outside.L_meta_461.pin' (hτ _ m01 _ h1) (by simp)\n  have b12 : τ (1, 2) {1} = 2 := PEqualNP.Outside.L_meta_461.pin (hτ _ m12 _ h1) (by simp)\n  have b14 : τ (1, 4) {1} = 4 := PEqualNP.Outside.L_meta_461.pin (hτ _ m14 _ h1) (by simp)\n  have b02 : τ (0, 2) {1} = 0 ∨ τ (0, 2) {1} = 2 := (hτ _ m02 _ h1).1\n  have b03 : τ (0, 3) {1} = 0 ∨ τ (0, 3) {1} = 3 := (hτ _ m03 _ h1).1\n  have b25 : τ (2, 5) {1} = 2 ∨ τ (2, 5) {1} = 5 := (hτ _ m25 _ h1).1\n  have d02 : τ (0, 2) {2} = 0 := PEqualNP.Outside.L_meta_461.pin' (hτ _ m02 _ h2) (by simp)\n  have d12 : τ (1, 2) {2} = 1 := PEqualNP.Outside.L_meta_461.pin' (hτ _ m12 _ h2) (by simp)\n  have d25 : τ (2, 5) {2} = 5 := PEqualNP.Outside.L_meta_461.pin (hτ _ m25 _ h2) (by simp)\n  have d01 : τ (0, 1) {2} = 0 ∨ τ (0, 1) {2} = 1 := (hτ _ m01 _ h2).1\n  have d03 : τ (0, 3) {2} = 0 ∨ τ (0, 3) {2} = 3 := (hτ _ m03 _ h2).1\n  have d14 : τ (1, 4) {2} = 1 ∨ τ (1, 4) {2} = 4 := (hτ _ m14 _ h2).1\n  have z03 : c (0, 3) = 0 := by\n    have e := hs {0} h0 3\n    rw [a01, a02, a03] at e\n    rcases a12 with h | h <;> rcases a14 with h' | h' <;> rcases a25 with h'' | h'' <;>\n      simpa [h, h', h''] using e\n  have z14 : c (1, 4) = 0 := by\n    have e := hs {1} h1 4\n    rw [b01, b12, b14] at e\n    rcases b02 with h | h <;> rcases b03 with h' | h' <;> rcases b25 with h'' | h'' <;>\n      simpa [h, h', h''] using e\n  have z25 : c (2, 5) = 0 := by\n    have e := hs {2} h2 5\n    rw [d02, d12, d25] at e\n    rcases d01 with h | h <;> rcases d03 with h' | h' <;> rcases d14 with h'' | h'' <;>\n      simpa [h, h', h''] using e\n  have e01 := hs {0} h0 1\n  have e02 := hs {0} h0 2\n  have e10 := hs {1} h1 0\n  have e12 := hs {1} h1 2\n  have e20 := hs {2} h2 0\n  have e21 := hs {2} h2 1\n  simp only [z03, z14, z25, ite_self, add_zero] at e01 e02 e10 e12 e20 e21\n  rw [a01, a02] at e01 e02\n  rw [b01, b12] at e10 e12\n  rw [d02, d12] at e20 e21\n  have tri : c (0, 1) = 0 ∧ c (0, 2) = 0 ∧ c (1, 2) = 0 := by\n    rcases a12 with h | h <;> rcases b02 with h' | h' <;> rcases d01 with h'' | h'' <;>\n      simp [h, h', h''] at e01 e02 e10 e12 e20 e21 <;>\n      refine ⟨by linarith, by linarith, by linarith⟩\n  intro e he\n  simp only [List.mem_cons, List.not_mem_nil, or_false] at he\n  rcases he with rfl | rfl | rfl | rfl | rfl | rfl\n  · exact tri.1\n  · exact tri.2.1\n  · exact tri.2.2\n  · exact z03\n  · exact z14\n  · exact z25\n",
 "localCheck": "passed",
 "reasoning": "Gap is open: L-meta-461 is listed in gaps and is in neither the checked nor the withdrawn list of data.pequalnp.com/data/desk/gaps.json (updated_at 2026-11-23T23:34:35Z). Proof: the per-vertex sum is unfolded into six if-terms (helper lemmas step/sum6). For each singleton I={0},{1},{2} (independent, by decide) the typing is forced on the edges touching I, e.g. tau(0,1){0}=1, tau(0,2){0}=2, tau(0,3){0}=3, while the other edges have two options. At v=3 for I={0}, only (0,3) can point to 3, so c(0,3)=0; likewise v=4 for I={1} gives c(1,4)=0 and v=5 for I={2} gives c(2,5)=0. With the pendant weights zero, the six equations at the triangle vertices (I={0}: v=1,2; I={1}: v=0,2; I={2}: v=0,1) split into 8 cases on tau(1,2){0}, tau(0,2){1} and tau(0,1){2}; linarith closes each case, giving c(0,1)=c(0,2)=c(1,2)=0. The empty-set equations are not needed. Local check: node tools/check-lean.mjs with the desk statement at commit e3b1828, pinned Lean v4.36.0 and Mathlib fc4f59e5, printed ACCEPTED (check): PEqualNP.Outside.L_meta_461; axioms [Quot.sound, propext, Classical.choice]. The file has no sorry, native_decide, set_option, attribute, # commands, double quotes or comments, and it imports only Mathlib and PEqualNP.Defs. Environment note: in this sandbox the Lean binary could not read /proc/<pid>/exe, so the build ran with an LD_PRELOAD shim that redirects that lookup to /proc/self/exe. This does not affect what is checked.",
 "sources": [
  "https://data.pequalnp.com/data/desk/gaps.json",
  "https://github.com/brilliant-hq/pequalnp-proofs/tree/e3b1828a4423909b34c8d8184be1e208451c631a",
  "https://github.com/brilliant-hq/pequalnp-proofs/blob/e3b1828a4423909b34c8d8184be1e208451c631a/CONTRIBUTING.md",
  "https://github.com/brilliant-hq/pequalnp-proofs/blob/e3b1828a4423909b34c8d8184be1e208451c631a/tools/check-lean.mjs",
  "https://pequalnp.com/join.txt"
 ]
}