{"repo":"pvsnp","commit":{"oid":"f0679799a068ef3eadad81d312dbccca601dc438","tree":"d6145aec31ac838aee08605421fc8db9d72750d0","parents":["5775f68a625381372449ec219c1ffa1a4b854544"],"author":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945076000},"committer":{"name":"Claude","email":"noreply@anthropic.com","time_ms":1795945076000},"subject":"State P ≠ NP as an open problem","message":"State P ≠ NP as an open problem\n\nPEqNP and PNeNP are definitions over the binary alphabet, not theorems,\nand no axiom assumes either. Proved around them: P = NP iff P and NP have\nthe same languages, P ≠ NP iff some NP language is outside P, and for an\nNP-complete L, P ≠ NP iff L ∉ P.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n"},"diff":{"base":"5775f68a625381372449ec219c1ffa1a4b854544","head":"f0679799a068ef3eadad81d312dbccca601dc438","stat":{"files":2,"additions":50,"deletions":0},"files":[{"path":"PvsNP.lean","status":"modified","additions":1,"deletions":0,"binary":false,"patch":"--- a/PvsNP.lean\n+++ b/PvsNP.lean\n@@ -10,6 +10,7 @@\n import PvsNP.Complexity.Reduction\n import PvsNP.Complexity.NP\n import PvsNP.Complexity.Completeness\n+import PvsNP.Open\n \n /-! # P versus NP in Lean 4\n \n","truncated":false},{"path":"PvsNP/Open.lean","status":"added","additions":49,"deletions":0,"binary":false,"patch":"--- /dev/null\n+++ b/PvsNP/Open.lean\n@@ -0,0 +1,49 @@\n+import PvsNP.Complexity.Completeness\n+\n+/-!\n+# The P versus NP problem — OPEN\n+\n+This file **states** the P versus NP problem. It does not solve it, and nothing in this repository\n+claims to. `PNeNP` is a definition (a `Prop`), not a theorem; no axiom here assumes it or its\n+negation. `#print axioms` on any theorem of the project lists at most Lean's standard axioms\n+(`propext`, `Classical.choice`, `Quot.sound`).\n+\n+The problem is posed over the binary alphabet `Bool`, as usual. Over any finite alphabet with at least\n+two symbols the answer is the same, but that equivalence is not proved here.\n+\n+What *is* proved below: P = NP is the same as \"P and NP have the same languages\" (one inclusion is\n+P ⊆ NP), and for any NP-complete language `L`, P ≠ NP is the same as `L ∉ P`.\n+-/\n+\n+namespace PvsNP\n+\n+/-- **P = NP**, over the binary alphabet: every language in NP is in P. -/\n+def PEqNP : Prop := ∀ L : Language Bool, InNP L → InP L\n+\n+/-- **P ≠ NP — an open problem.** Stated, not proved. One of the Clay Millennium Prize Problems. -/\n+def PNeNP : Prop := ¬ PEqNP\n+\n+/-- P = NP says exactly that P and NP contain the same languages. -/\n+theorem pEqNP_iff : PEqNP ↔ ∀ L : Language Bool, InP L ↔ InNP L :=\n+  ⟨fun h L => ⟨InP.inNP, h L⟩, fun h L hL => (h L).mpr hL⟩\n+\n+/-- P ≠ NP exactly when some NP language is not in P. -/\n+theorem pNeNP_iff : PNeNP ↔ ∃ L : Language Bool, InNP L ∧ ¬ InP L := by\n+  unfold PNeNP PEqNP\n+  constructor\n+  · intro h\n+    apply Classical.byContradiction\n+    intro hne\n+    exact h fun L hL => Classical.byContradiction fun hP => hne ⟨L, hL, hP⟩\n+  · intro ⟨L, hL, hP⟩ h\n+    exact hP (h L hL)\n+\n+/-- For an NP-complete `L`: `L ∈ P` exactly when P = NP. -/\n+theorem NPComplete.inP_iff_pEqNP {L : Language Bool} (hL : NPComplete L) : InP L ↔ PEqNP :=\n+  hL.inP_iff\n+\n+/-- For an NP-complete `L`: P ≠ NP exactly when `L ∉ P`. -/\n+theorem NPComplete.pNeNP_iff {L : Language Bool} (hL : NPComplete L) : PNeNP ↔ ¬ InP L :=\n+  not_congr hL.inP_iff_pEqNP.symm\n+\n+end PvsNP\n","truncated":false}],"truncated":false},"jit":null,"api":"/v1/repos/pvsnp/commit?rev=f0679799a068ef3eadad81d312dbccca601dc438","api_url":"https://git.neoopensource.com/v1/repos/pvsnp/commit?rev=f0679799a068ef3eadad81d312dbccca601dc438"}