(3,4)-Satisfiability

Lax888481.SatVariant · concepts/Lax888481/SatVariant.lean · lax-888481

proven

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Definition

    (3,4)-SAT is satisfiability restricted to formulas in which every clause contains exactly three literals and every variable occurs at most four times. Tovey proved that it is NP-hard; it is the starting point of the second theorem of this submission, because the bounded number of occurrences is what keeps the processing times of the scheduling instance the reduction builds bounded by an absolute constant.

    Concept map
    11 concepts; 1 descendant hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    Each proof establishes this claim relative to its assumptions.

    In the paper

    • page 4 of this submission's paper

    Lean source view on GitHub

    1import Lax429075.Reductions
    2import Lax429075.Satisfiability
    3import Lax888481.NPHardness
    4
    5/-!
    6---
    7title: (3,4)-Satisfiability
    8type: definition
    9---
    10*(3,4)-SAT* is satisfiability restricted to formulas in which every clause contains
    11exactly three literals and every variable occurs at most four times. Tovey proved
    12that it is NP-hard; it is the starting point of the second theorem of this submission,
    13because the bounded number of occurrences is what keeps the processing times of the
    14scheduling instance the reduction builds bounded by an absolute constant.
    15
    16# Formalization Notes
    17
    18The restriction is a predicate on the CNF formulas of the archive's Cook–Levin submission,
    19so the encoding and the notion of satisfiability are shared with unrestricted SAT.
    20Occurrences are counted with multiplicity.
    21
    22Tovey's theorem is stated here, and proved in the submission `lax-345332`, from which the proofs
    23of this submission take it: the language of that submission is this one.
    24-/
    25
    26namespace Lax888481.SatVariant
    27
    28open Lax429075.CNF Lax434930.PolynomialTime
    29
    30/-- The number of occurrences of the variable `i` in the formula `F`. -/
    31def occurrences (F : Formula) (i : ℕ) : ℕ :=
    32 (F.flatMap fun C => C.filter fun l => l.index == i).length
    33
    34/-- The variables occurring in `F`. -/
    35def occurringVars (F : Formula) : List ℕ := (F.flatMap id).map Literal.index
    36
    37/-- `F` is a *(3,4)* formula: every clause has exactly three literals, and every variable
    38occurs at most four times. -/
    39def Exact34 (F : Formula) : Prop :=
    40 (∀ C ∈ F, C.length = 3) ∧ ∀ i ∈ occurringVars F, occurrences F i ≤ 4
    41
    42/-- **(3,4)-SAT** as a language: the encodings of satisfiable (3,4)
    43formulas. -/
    44def SAT34 : Language :=
    45 {w | ∃ F : Formula, Lax429075.Encoding.encodeCNF F = w ∧ Exact34 F ∧ Satisfiable F}
    46
    47/-- **Tovey's theorem.** (3,4)-SAT is NP-hard.
    48
    49Tovey, *A simplified NP-complete satisfiability problem*, Discrete Applied Mathematics 8
    50(1984) 85–89. -/
    51axiom sat34_npHard :
    52 ∀ A : Language, A ∈ Lax434930.NondeterministicPolynomialTime.NP →
    53 Lax429075.Reductions.ManyOne A SAT34
    54
    55end Lax888481.SatVariant
    56
    Show Proof
    Formalization Notes

    The restriction is a predicate on the CNF formulas of the archive's Cook–Levin submission, so the encoding and the notion of satisfiability are shared with unrestricted SAT. Occurrences are counted with multiplicity.

    Tovey's theorem is stated here, and proved in the submission lax−345332lax-345332, from which the proofs of this submission take it: the language of that submission is this one.

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…