pp. 367–368, proof of THEOREM 2 — the reduction map is correct:
ProvedEdgeDomSets.NPC.Red.redMap_correctLet be the reduction map of THEOREM 2 (the published definition EdgeDomSets_NPC_ReductionMap): it decodes a binary string as a formula and, on a well-formed SAT-3-restricted formula with nonempty clauses, outputs the code of the numbered graph of pp. 367–368 together with the threshold ( literal occurrences, clauses replaced by the gadget ); every other string goes to the empty string. Then for every binary string ,
where is the language of codes of satisfiable SAT-3-restricted formulas and is the language of codes of a bipartite graph of maximum degree at most with a positive integer such that the graph has an edge dominating set of at most edges.
This is the correctness half of the reduction in the proof of THEOREM 2: a formula is satisfiable exactly when has a dominating edge-set of size , and is bipartite of maximum degree .
Formalization Note For a SAT-3-restricted formula every variable has exactly three occurrences, so and the threshold is the paper's (corrected reading of p. 368, as in the milestone Gstar_props). Formulas with an empty clause are unsatisfiable and are sent to the empty string, a no-instance; the empty formula (satisfiable) gets threshold on the empty graph.
import Mathlib import Definitions.Def_EdgeDomSets_NPC_ReductionMap
namespace EdgeDomSets.NPC.Red theorem redMap_correct (x : List Bool) : sat3rLang x ↔ edsBip3Lang (redMap x) := by sorry end EdgeDomSets.NPC.Red