AFTD Auto-Formalizing Theoretical Domains

is_lp_refutation

def

A Lift & Project refutation of a CNF formula F : Finset (Finset (CnfLit (Fin n))) is an L&P derivation π : List (LinIneq n) from F containing a contradiction line whose coefficients are all zero and whose constant term is at least 1.

Statement

def is_lp_refutation (n : ℕ) (F : Finset (Finset (CnfLit (Fin n)))) (π : List (LinIneq n)) : Prop
Defined in
arXiv:2611.24548 Definition 4.2
Verified
19 Nov 2026
Axioms
none listed
Built on 3
  • LinIneqA linear inequality c^T x ≥ d over n Boolean variables, with integer coefficient vector c : Fin n → ℤ and integer constant term d : ℤ.
  • is_lp_derivationA Lift & Project (L&P) derivation from a CNF formula F : Finset (Finset (CnfLit (Fin n))) is a list π : List (LinIneq n) where each line…
  • CnfLitA CNF literal over a variable type V is either a positive variable or a negated variable.

Read back from the Lean

Given a number of variables n : ℕ, a CNF formula F : Finset (Finset (CnfLit (Fin n))) (a finite set of clauses, where each clause is a finite set of positive or negative literals over Fin n), and a list of linear inequalities π : List (LinIneq n), is_lp_refutation n F π asserts that: 1. π is a valid LP derivation from F (is_lp_derivation n F π), meaning every step π[i] in the list satisfies at least one of the derivation rules (trivial inequality, variable bound $x_v \ge 0$, variable bound $-x_v \ge -1$, encoding of an input clause from F, a non-negative integer linear combination of two earlier inequalities, or a variable-case-split inference rule from two earlier inequalities); and 2. There exists an index k : Fin π.length in π such that all coefficients of π[k] are 0 (∀ j : Fin n, π[k].coeffs j = 0) and its constant term is at least 1 (1 ≤ π[k].const), representing the contradictory inequality $0 \ge 1$.

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

/-- A Lift & Project (L&P) refutation of a CNF formula F derives the contradiction 0 ≥ 1. -/
def is_lp_refutation (n : ℕ) (F : Finset (Finset (CnfLit (Fin n)))) (π : List (LinIneq n)) : Prop :=
  is_lp_derivation n F π ∧ ∃ k : Fin π.length, (∀ j, π[k].coeffs j = 0) ∧ 1 ≤ π[k].const
See it in the graphDiscuss this resultChallenge it