P is closed under complement
ProvedCookPvsNP.coP_eq_PFor every finite alphabet , the languages whose complements lie in P are exactly the languages in P:
With this gives , and it shows that implies .
import Definitions.Def_CookPvsNP_defs
namespace CookPvsNP
/-- The complements of the languages in `P` are exactly the languages in `P`. -/
theorem coP_eq_P (Sym : Type) [Fintype Sym] : { L : Lang Sym | Lᶜ ∈ P Sym } = P Sym := by sorry
end CookPvsNPRead-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the drafter; non-blind
Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted these Lean statements, at the explicit request of the proposal owner. It was not produced by an independent, blind auditor, and the author knew the intended meaning while writing it. Do not treat it as independent evidence of faithfulness; compare the Lean code against the source yourself.
For every type (lowest universe) with a finiteness structure, the set of languages over whose complement belongs to is equal to itself. Complement is taken inside the set of all finite -strings. No nonemptiness of is assumed.