AFTD Auto-Formalizing Theoretical Domains

ThrResDerivable

inductive

Inductive derivation relation ThrResDerivable F f s for a CNF formula F : List (List (CnfLit V)) (a list of clauses, each a list of literals over V), asserting that a threshold condition f ≥ s (with f : Multiset (CnfLit V) and s : ℤ) is derivable from F, with constructors: source deriving ThrResDerivable F 0 0; clause deriving ThrResDerivable F (f + ↑C) (s + 1) from ThrResDerivable F f s and C ∈ F; resolution deriving ThrResDerivable F f s from ThrResDerivable F (f + {CnfLit.pos x}) s and ThrResDerivable F (f + {CnfLit.neg x}) s for a variable x : V; weak deriving ThrResDerivable F (f + {l}) s from ThrResDerivable F f s for a literal l : CnfLit V; introduce deriving ThrResDerivable F (f + (l ::ₘ cnf_lit_compl l ::ₘ 0)) (s + 1) from ThrResDerivable F f s for a literal l : CnfLit V; and simplify deriving ThrResDerivable F f (s - 1) from ThrResDerivable F (f + (l ::ₘ cnf_lit_compl l ::ₘ 0)) s for a literal l : CnfLit V.

Statement

inductive ThrResDerivable {V : Type*} (F : List (List (CnfLit V))) : Multiset (CnfLit V) → ℤ → Prop
Defined in
arXiv:2611.24548 Definition 2.12
Verified
19 Nov 2026
Axioms
none listed
Built on 2
  • CnfLitA CNF literal over a variable type V is either a positive variable or a negated variable.
  • cnf_lit_complThe complement of a literal, negating its polarity.
Used by 3
  • thr_res_refutation_pos_neg_exampleSanity check: the CNF formula [[CnfLit.pos 0], [CnfLit.neg 0]] consisting of unit clauses {x₀} and {¬x₀} has a Thr-Res refutation deriving…
  • thr_res_soundnessSoundness of Threshold Resolution: for any CNF formula F : List (List (CnfLit V)), multiset of literals f : Multiset (CnfLit V), and…
  • thr_res_unsat_of_refutationIf a Threshold Resolution refutation of a CNF formula F : List (List (CnfLit V)) exists (namely ThrResDerivable F 0 1), then F is…

Read back from the Lean

An inductive family of propositions ThrResDerivable parameterized by a type V and a list of clauses F : List (List (CnfLit V)), defining a binary relation between a multiset of literals f : Multiset (CnfLit V) and an integer s : ℤ. The inductive relation has six constructors: 1. source: Asserts ThrResDerivable F 0 0 (the empty multiset with integer threshold 0 is derivable). 2. clause: For any multiset f, integer s, and clause C : List (CnfLit V), if ThrResDerivable F f s holds and C ∈ F, then ThrResDerivable F (f + ↑C) (s + 1) holds (where ↑C is the list C regarded as a multiset). 3. resolution: For any multiset f, integer s, and variable x : V, if ThrResDerivable F (f + {CnfLit.pos x}) s and ThrResDerivable F (f + {CnfLit.neg x}) s both hold, then ThrResDerivable F f s holds. 4. weak: For any multiset f, integer s, and literal l : CnfLit V, if ThrResDerivable F f s holds, then ThrResDerivable F (f + {l}) s holds. 5. introduce: For any multiset f, integer s, and literal l : CnfLit V, if ThrResDerivable F f s holds, then ThrResDerivable F (f + {l, cnf_lit_compl l}) (s + 1) holds. 6. simplify: For any multiset f, integer s, and literal l : CnfLit V, if ThrResDerivable F (f + {l, cnf_lit_compl l}) s holds, then ThrResDerivable F f (s - 1) holds.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- Inductive predicate for Threshold Resolution derivations from a CNF formula. -/
inductive ThrResDerivable {V : Type*} (F : List (List (CnfLit V))) : Multiset (CnfLit V) → ℤ → Prop | source : ThrResDerivable F 0 0
| clause {f s C} : ThrResDerivable F f s → C ∈ F →
    ThrResDerivable F (f + (C : Multiset (CnfLit V))) (s + 1)
| resolution {f s x} : ThrResDerivable F (f + {CnfLit.pos x}) s →
    ThrResDerivable F (f + {CnfLit.neg x}) s → ThrResDerivable F f s
| weak {f s l} : ThrResDerivable F f s → ThrResDerivable F (f + {l}) s
| introduce {f s l} : ThrResDerivable F f s →
    ThrResDerivable F (f + (l ::ₘ cnf_lit_compl l ::ₘ 0)) (s + 1)
| simplify {f s l} : ThrResDerivable F (f + (l ::ₘ cnf_lit_compl l ::ₘ 0)) s →
    ThrResDerivable F f (s - 1)
See it in the graphDiscuss this resultChallenge it