{
  "gap": "L-meta-457",
  "base_commit": "605dc84be40929b8c04c6b206c363d69dc369d12",
  "path": "lean/PEqualNP/Outside/L_meta_457.lean",
  "status": "checked",
  "source": "import Mathlib\nimport PEqualNP.Defs\n\ntheorem PEqualNP.Outside.L_meta_457 :\n    ∀ E : List (Fin 3 × Fin 3), E = [(0, 1), (0, 2), (1, 2)] →\n    ∀ τ : Fin 3 × Fin 3 → Finset (Fin 3) → Fin 3,\n    (∀ e ∈ E, ∀ I : Finset (Fin 3),\n      (∀ f ∈ E, ¬ (f.1 ∈ I ∧ f.2 ∈ I)) →\n      (τ e I = e.1 ∨ τ e I = e.2) ∧ τ e I ∉ I) →\n    ∀ c : Fin 3 × Fin 3 → ℚ,\n    (∀ I : Finset (Fin 3),\n      (∀ f ∈ E, ¬ (f.1 ∈ I ∧ f.2 ∈ I)) →\n      ∀ v : Fin 3, ((E.filter (fun e => τ e I = v)).map c).sum = 0) →\n    ∀ e ∈ E, c e = 0 := by\n  intro E hE τ hτ c hw e he\n  subst E\n  have hI0 : ∀ f ∈ ([(0, 1), (0, 2), (1, 2)] : List (Fin 3 × Fin 3)),\n      ¬ (f.1 ∈ ({0} : Finset (Fin 3)) ∧ f.2 ∈ ({0} : Finset (Fin 3))) := by decide\n  have hI1 : ∀ f ∈ ([(0, 1), (0, 2), (1, 2)] : List (Fin 3 × Fin 3)),\n      ¬ (f.1 ∈ ({1} : Finset (Fin 3)) ∧ f.2 ∈ ({1} : Finset (Fin 3))) := by decide\n  have hI2 : ∀ f ∈ ([(0, 1), (0, 2), (1, 2)] : List (Fin 3 × Fin 3)),\n      ¬ (f.1 ∈ ({2} : Finset (Fin 3)) ∧ f.2 ∈ ({2} : Finset (Fin 3))) := by decide\n  have h01_0 : τ (0, 1) {0} = 1 := by\n    obtain ⟨h | h, hn⟩ := hτ (0, 1) (by simp) {0} hI0\n    · exact False.elim (hn (by simp [h]))\n    · exact h\n  have h02_0 : τ (0, 2) {0} = 2 := by\n    obtain ⟨h | h, hn⟩ := hτ (0, 2) (by simp) {0} hI0\n    · exact False.elim (hn (by simp [h]))\n    · exact h\n  have h01_1 : τ (0, 1) {1} = 0 := by\n    obtain ⟨h | h, hn⟩ := hτ (0, 1) (by simp) {1} hI1\n    · exact h\n    · exact False.elim (hn (by simp [h]))\n  have h12_1 : τ (1, 2) {1} = 2 := by\n    obtain ⟨h | h, hn⟩ := hτ (1, 2) (by simp) {1} hI1\n    · exact False.elim (hn (by simp [h]))\n    · exact h\n  have h02_2 : τ (0, 2) {2} = 0 := by\n    obtain ⟨h | h, hn⟩ := hτ (0, 2) (by simp) {2} hI2\n    · exact h\n    · exact False.elim (hn (by simp [h]))\n  have h12_2 : τ (1, 2) {2} = 1 := by\n    obtain ⟨h | h, hn⟩ := hτ (1, 2) (by simp) {2} hI2\n    · exact h\n    · exact False.elim (hn (by simp [h]))\n  have hab : c (0, 1) = 0 ∨ c (0, 2) = 0 := by\n    rcases (hτ (1, 2) (by simp) {0} hI0).1 with h | h\n    · right\n      have hz := hw {0} hI0 2\n      simpa [h01_0, h02_0, h] using hz\n    · left\n      have hz := hw {0} hI0 1\n      simpa [h01_0, h02_0, h] using hz\n  have hac : c (0, 1) = 0 ∨ c (1, 2) = 0 := by\n    rcases (hτ (0, 2) (by simp) {1} hI1).1 with h | h\n    · right\n      have hz := hw {1} hI1 2\n      simpa [h01_1, h12_1, h] using hz\n    · left\n      have hz := hw {1} hI1 0\n      simpa [h01_1, h12_1, h] using hz\n  have hbc : c (0, 2) = 0 ∨ c (1, 2) = 0 := by\n    rcases (hτ (0, 1) (by simp) {2} hI2).1 with h | h\n    · right\n      have hz := hw {2} hI2 1\n      simpa [h02_2, h12_2, h] using hz\n    · left\n      have hz := hw {2} hI2 0\n      simpa [h02_2, h12_2, h] using hz\n  have hsum : c (0, 1) + c (0, 2) + c (1, 2) = 0 := by\n    have hz0 := hw ∅ (by simp) 0\n    have hz1 := hw ∅ (by simp) 1\n    have hz2 := hw ∅ (by simp) 2\n    rcases (hτ (0, 1) (by simp) ∅ (by simp)).1 with h01 | h01 <;>\n      rcases (hτ (0, 2) (by simp) ∅ (by simp)).1 with h02 | h02 <;>\n      rcases (hτ (1, 2) (by simp) ∅ (by simp)).1 with h12 | h12 <;>\n      simp [h01, h02, h12] at hz0 hz1 hz2 <;> linarith\n  have ha : c (0, 1) = 0 := by\n    rcases hab with ha | hb <;> rcases hac with ha' | hc <;>\n      rcases hbc with hb' | hc' <;> linarith\n  have hb : c (0, 2) = 0 := by\n    rcases hab with ha | hb <;> rcases hac with ha' | hc <;>\n      rcases hbc with hb' | hc' <;> linarith\n  have hc : c (1, 2) = 0 := by\n    rcases hab with ha | hb <;> rcases hac with ha' | hc <;>\n      rcases hbc with hb' | hc' <;> linarith\n  simp only [List.mem_cons, List.not_mem_nil, or_false] at he\n  rcases he with rfl | rfl | rfl\n  · exact ha\n  · exact hb\n  · exact hc\n",
  "evidence": {
    "derivation": "For each singleton independent set, its two incident edges must receive their other endpoints. The third edge receives one of its endpoints. Its choice isolates an incident edge at the opposite receiving vertex, whose zero weighted in-degree equation forces that edge weight to zero. The three singleton sets give a = 0 or b = 0, a = 0 or d = 0, and b = 0 or d = 0 for a=c(0,1), b=c(0,2), d=c(1,2). At the empty set, summing the three vertex equations gives a+b+d=0; the Lean proof checks the eight possible endpoint choices. Pairwise disjunctions leave at most one nonzero weight, which the total equation eliminates.",
    "outside_lean_computations": "None used as mathematical evidence. The finite membership checks are kernel-checked `decide` proofs, and all orientation and linear cases are checked in Lean."
  },
  "checks": [
    {
      "command": "cd test/scratch/pequalnp-proofs/lean && PATH=\"$(realpath ../../lean-4.36.0-linux/bin):$PATH\" lake build PEqualNP.Outside.L_meta_457",
      "outcome": "Passed with Lean 4.36.0 and pinned Mathlib; build completed successfully."
    },
    {
      "command": "cd test/scratch/pequalnp-proofs/lean && PATH=\"$(realpath ../../lean-4.36.0-linux/bin):$PATH\" lake env lean ../../check-l-meta-457.lean",
      "outcome": "Passed. The scratch file imports the named module, checks the exact posted proposition by `example := PEqualNP.Outside.L_meta_457`, and prints axioms [propext, Classical.choice, Quot.sound].",
      "scratch_check_source": "import PEqualNP.Outside.L_meta_457\n#check PEqualNP.Outside.L_meta_457\n#print axioms PEqualNP.Outside.L_meta_457\nexample : ∀ E : List (Fin 3 × Fin 3), E = [(0, 1), (0, 2), (1, 2)] → ∀ τ : Fin 3 × Fin 3 → Finset (Fin 3) → Fin 3, (∀ e ∈ E, ∀ I : Finset (Fin 3), (∀ f ∈ E, ¬ (f.1 ∈ I ∧ f.2 ∈ I)) → (τ e I = e.1 ∨ τ e I = e.2) ∧ τ e I ∉ I) → ∀ c : Fin 3 × Fin 3 → ℚ, (∀ I : Finset (Fin 3), (∀ f ∈ E, ¬ (f.1 ∈ I ∧ f.2 ∈ I)) → ∀ v : Fin 3, ((E.filter (fun e => τ e I = v)).map c).sum = 0) → ∀ e ∈ E, c e = 0 :=\n  PEqualNP.Outside.L_meta_457\n"
    },
    {
      "command": "python3 -m json.tool artifacts/goal/batches/structural-lemmas/items/l-meta-457/result.json && python3 -m json.tool artifacts/goal/batches/structural-lemmas/items/l-meta-457/sources.json",
      "outcome": "Passed; both files parse as JSON."
    }
  ],
  "sources": [
    "https://data.pequalnp.com/data/desk/gaps.json",
    "https://data.pequalnp.com/data/desk/gaps.json",
    "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/605dc84be40929b8c04c6b206c363d69dc369d12/CONTRIBUTING.md",
    "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/605dc84be40929b8c04c6b206c363d69dc369d12/lean/lean-toolchain",
    "https://raw.githubusercontent.com/brilliant-hq/pequalnp-proofs/605dc84be40929b8c04c6b206c363d69dc369d12/lean/lakefile.toml"
  ],
  "remaining": "None."
}
