thr_res_refutation_pos_neg_example
Sanity check: the CNF formula [[CnfLit.pos 0], [CnfLit.neg 0]] consisting of unit clauses {x₀} and {¬x₀} has a Thr-Res refutation deriving 0 ≥ 1, namely ThrResDerivable [[CnfLit.pos 0], [CnfLit.neg 0]] 0 1.
Statement
theorem thr_res_refutation_pos_neg_example : ThrResDerivable [[CnfLit.pos (0 : ℕ)], [CnfLit.neg (0 : ℕ)]] 0 1- Source
- arXiv:2611.24548 Example 2.15
- Verified
- 20 Nov 2026
- Axioms
Quot.soundpropext- Built on 2
- ThrResDerivableInductive derivation relation ThrResDerivable F f s for a CNF formula F : List (List (CnfLit V)) (a list of clauses, each a list of…
- CnfLitA CNF literal over a variable type V is either a positive variable or a negated variable.
Read back from the Lean
The theorem asserts that the empty multiset of literals and threshold value $1 \in \mathbb{Z}$ is derivable in the threshold resolution calculus ThrResDerivable from the CNF formula consisting of the two unit clauses $[[CnfLit.pos\ 0], [CnfLit.neg\ 0]]$ over variable type $\mathbb{N}$.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The refutation derives the contradictory constraint 0 ≥ 1 from the complementary unit clauses {x₀} and {¬x₀} using the resolution rule on variable 0. This reduces the problem to deriving the two unit constraints {x₀} ≥ 1 and {¬x₀} ≥ 1. Each is derived directly from the trivial axiom 0 ≥ 0 by applying the clause introduction rule with the respective clause from the formula.
Deriving the contradiction 0 ≥ 1 reduces to deriving {x₀} ≥ 1 and {¬x₀} ≥ 1.
Applying the resolution rule (`ThrResDerivable.resolution`) on variable 0 reduces the goal of deriving 0 ≥ 1 (the empty multiset of literals with threshold 1) to two subgoals: deriving the constraint with the positive literal {x₀} ≥ 1 and the constraint with the negative literal {¬x₀} ≥ 1.
uses
ThrResDerivable.resolutionrefine ThrResDerivable.resolution (f := (0 : Multiset (CnfLit ℕ))) (s := 1) (x := 0) ?_ ?_The positive unit constraint {x₀} ≥ 1 is derivable from the formula.
Starting from the initial axiom 0 ≥ 0 (`ThrResDerivable.source`), applying the clause rule (`ThrResDerivable.clause`) with the input clause {x₀} produces {x₀} ≥ 1. Membership of [CnfLit.pos 0] in the formula is verified directly by simplification.
uses
ThrResDerivable.clause,ThrResDerivable.source· exact ThrResDerivable.clause ThrResDerivable.source (by simp)
The negative unit constraint {¬x₀} ≥ 1 is derivable from the formula.
Similarly, starting from 0 ≥ 0 (`ThrResDerivable.source`), applying the clause rule (`ThrResDerivable.clause`) with the input clause {¬x₀} produces {¬x₀} ≥ 1. Membership of [CnfLit.neg 0] in the formula is verified directly by simplification.
uses
ThrResDerivable.clause,ThrResDerivable.source· exact ThrResDerivable.clause ThrResDerivable.source (by simp)
ThrResDerivable.resolution- Given derivations of f + {x} ≥ s and f + {¬x} ≥ s, resolving on variable x yields a derivation of f ≥ s.
ThrResDerivable.clause- Given a derivation of f ≥ s and an input clause C ∈ F, adding C yields a derivation of f + C ≥ s + 1.
ThrResDerivable.source- The trivial threshold constraint 0 ≥ 0 is derivable without premises.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- Sanity check: derivation of contradiction from complementary unit clauses. -/theorem thr_res_refutation_pos_neg_example : ThrResDerivable [[CnfLit.pos (0 : ℕ)], [CnfLit.neg (0 : ℕ)]] 0 1 := by refine ThrResDerivable.resolution (f := (0 : Multiset (CnfLit ℕ))) (s := 1) (x := 0) ?_ ?_ · exact ThrResDerivable.clause ThrResDerivable.source (by simp) · exact ThrResDerivable.clause ThrResDerivable.source (by simp)