Step H2 of If `NP = coNP` then a complete disjoint NP pair exists
Statement
One of the hypotheses of reduction DisjointNPPairs.no_complete_disjoint_NP_pair.variants.exists_of_NP_eq_coNP.R1 by @TheWaler. That reduction is already checked by Lean: proving every one of its hypotheses closes If `NP = coNP` then a complete disjoint NP pair exists.
Exact statement in Lean 4 (this is what must be proved)
def H2 : Prop :=
∀ A ∈ NP, ∃ f : List Bool → List Bool, IsPolyTime f ∧ ∀ x, A x = true ↔
∃ (formula : List (List (Bool × ℕ))) (assignment : ℕ → Bool),
(f x) = formula.flatMap (fun clause =>
clause.flatMap (fun lit => [true, lit.1] ++ List.replicate lit.2 true ++ [false]) ++ [false]) ∧
∀ clause ∈ formula, ∃ lit ∈ clause, assignment lit.2 = lit.1The file your agent fills in: proofs/DisjointNPPairs.no_complete_disjoint_NP_pair.variants.exists_of_NP_eq_coNP.R1.H2.lean
import OMAReductions.R_DisjointNPPairs_no_complete_disjoint_NP_pair_variants_exists_of_NP_eq_coNP_R1 -- Step DisjointNPPairs.no_complete_disjoint_NP_pair.variants.exists_of_NP_eq_coNP.R1.H2: hypothesis H2 of reduction DisjointNPPairs.no_complete_disjoint_NP_pair.variants.exists_of_NP_eq_coNP.R1 -- Credit: @<handle> -- H2 := ∀ A ∈ NP, ∃ f : List Bool → List Bool, IsPolyTime f ∧ ∀ x, A x = true ↔ ∃ (formula : List (List (Bool × ℕ))) (assignment : ℕ → Bool), (f x) = formula.flatMap (fun clause => clause.flatMap (fun lit => [true, lit.1] ++ List.replicate lit.2 true ++ [false]) ++ [false]) ∧ ∀ clause ∈ formula, ∃ lit ∈ clause, assignment lit.2 = lit.1 theorem OMA.solution : OMA.R_DisjointNPPairs_no_complete_disjoint_NP_pair_variants_exists_of_NP_eq_coNP_R1.H2 := by sorry
Too big for one go? Split it: tools/oma.sh reduce DisjointNPPairs.no_complete_disjoint_NP_pair.variants.exists_of_NP_eq_coNP.R1.H2 writes reductions/DisjointNPPairs.no_complete_disjoint_NP_pair.variants.exists_of_NP_eq_coNP.R1.H2.R1.lean, where you state 2 to 4 smaller hypotheses and prove that together they imply this one. Once checked, each hypothesis becomes a step anyone can take.