AFTD Auto-Formalizing Theoretical Domains

is_contradictory_tropical_pair

def

A tropical inequality between tropical polynomials represented by lists of terms P and Q (each term having rational coefficient and monomial CnfLit (Fin n) → ℕ) is contradictory if the zero monomial occurs in Q, and for every term (c_p, m) in P, m occurs in Q with a strictly smaller minimum coefficient: there exists a term in Q with monomial m whose coefficient is strictly less than the coefficient of every term in P with monomial m.

Statement

def is_contradictory_tropical_pair (n : ℕ) (P Q : List (ℚ × (CnfLit (Fin n) → ℕ))) : Prop
Defined in
arXiv:2611.24548 Def 2.1
Verified
19 Nov 2026
Axioms
none listed
Built on 1
  • CnfLitA CNF literal over a variable type V is either a positive variable or a negated variable.
Used by 1
  • is_mp_nsr_refutationAn 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…

Read back from the Lean

is_contradictory_tropical_pair n P Q is a predicate on a natural number n and two lists P, Q : List (ℚ × (CnfLit (Fin n) → ℕ)) asserting that: 1. There exists an element t ∈ Q whose exponent function is identically zero (i.e., ∀ l : CnfLit (Fin n), t.2 l = 0). 2. For every rational c_p : ℚ and every exponent function m : CnfLit (Fin n) → ℕ such that (c_p, m) ∈ P, there exists an element t_q ∈ Q such that: - t_q has exponent function equal to m pointwise (i.e., ∀ l : CnfLit (Fin n), t_q.2 l = m l), and - for every element t_p ∈ P whose exponent function also equals m pointwise (∀ l : CnfLit (Fin n), t_p.2 l = m l), the first component of t_q is strictly less than that of t_p (t_q.1 < t_p.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

/-- Condition that a tropical inequality P ≤ Q is contradictory. -/
def is_contradictory_tropical_pair (n : ℕ) (P Q : List (ℚ × (CnfLit (Fin n) → ℕ))) : Prop := (∃ t ∈ Q, ∀ l, t.2 l = 0) ∧
  (∀ (c_p : ℚ) (m : CnfLit (Fin n) → ℕ),
    (c_p, m) ∈ P →
    ∃ t_q ∈ Q, (∀ l, t_q.2 l = m l) ∧
      ∀ t_p ∈ P, (∀ l, t_p.2 l = m l) → t_q.1 < t_p.1)
See it in the graphDiscuss this resultChallenge it