AFTD Auto-Formalizing Theoretical Domains

is_mp_nsr_refutation

def

An MP-NSR certificate cert : List (MpNsrEntry n F) is a refutation of a CNF formula F : List (List (CnfLit (Fin n))) over Fin n if the tropical polynomials formed by flat-mapping over each entry e the shifted premise terms (e.coeff + c', fun l => e.monomial l + m' l) for the left-hand and right-hand sides satisfy is_contradictory_tropical_pair n.

Statement

def is_mp_nsr_refutation (n : ℕ) (F : List (List (CnfLit (Fin n)))) (cert : List (MpNsrEntry n F)) : Prop
Defined in
arXiv:2611.24548 Def 2.3 & Def 2.7
Verified
19 Nov 2026
Axioms
none listed
Built on 4
  • MpNsrEntryA structure MpNsrEntry (n : ℕ) (F : List (List (CnfLit (Fin n)))) : Type representing an entry in an MP-NSR certificate, with fields coeff…
  • is_contradictory_tropical_pairA tropical inequality between tropical polynomials represented by lists of terms P and Q (each term having rational coefficient and…
  • mp_nsr_premise_termsThe pair of lists of left-hand side and right-hand side tropical terms (c : ℚ, m : CnfLit (Fin n) → ℕ) for an MP-NSR premise p :…
  • CnfLitA CNF literal over a variable type V is either a positive variable or a negated variable.

Read back from the Lean

is_mp_nsr_refutation n F cert asserts that the certificate cert (a list of entries e, each having a rational coefficient e.coeff, an exponent function e.monomial : CnfLit (Fin n) → ℕ, and a premise e.premise) forms a contradictory tropical pair for the CNF formula F on n variables. Specifically, two lists of terms (pairs of a rational coefficient and a literal exponent function CnfLit (Fin n) → ℕ) are constructed by flat-mapping over each entry e ∈ cert: - List P: contains, for each (c', m') in the first component of mp_nsr_premise_terms n F e.premise, the term (e.coeff + c', fun l => e.monomial l + m' l). - List Q: contains, for each (c', m') in the second component of mp_nsr_premise_terms n F e.premise, the term (e.coeff + c', fun l => e.monomial l + m' l). The declaration asserts that (P, Q) is a contradictory tropical pair, meaning: 1. There exists some term t ∈ Q such that for all literals l, t.2 l = 0 (i.e., t has the all-zero monomial). 2. For every c_p : ℚ and m : CnfLit (Fin n) → ℕ, if (c_p, m) ∈ P, then there exists t_q ∈ Q such that: - for all literals l, t_q.2 l = m l (the monomial of t_q equals m), and - for every t_p ∈ P, if t_p.2 is pointwise equal to m, then t_q.1 < t_p.1 (the coefficient of t_q is strictly less than the coefficient of every term in P that shares the monomial m).

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

/-- An MP-NSR certificate refutes F if its combined tropical inequality is contradictory. -/
def is_mp_nsr_refutation (n : ℕ) (F : List (List (CnfLit (Fin n)))) (cert : List (MpNsrEntry n F)) : Prop := is_contradictory_tropical_pair n
    (cert.flatMap (fun e =>
      (mp_nsr_premise_terms n F e.premise).1.map (fun (c', m') =>
        (e.coeff + c', fun l => e.monomial l + m' l))))
    (cert.flatMap (fun e =>
      (mp_nsr_premise_terms n F e.premise).2.map (fun (c', m') =>
        (e.coeff + c', fun l => e.monomial l + m' l))))
See it in the graphDiscuss this resultChallenge it