AFTD Auto-Formalizing Theoretical Domains

lex_ge

def

A binary relation on lists of natural numbers defined recursively: lex_ge [] [] is True; lex_ge [] (_ :: _) is False; lex_ge (_ :: _) [] is True; and for non-empty lists, lex_ge (a :: as) (b :: bs) holds if a > b or (a = b and lex_ge as bs).

Statement

def lex_ge : List ℕ → List ℕ → Prop
Defined in
arXiv:2611.19021 Section 2.3
Verified
22 Nov 2026
Axioms
none listed
Used by 3
  • impossibility_con_ucon_lex_cel_claim2If an SRS R satisfies consistency (satisfies_con), union consistency (satisfies_ucon), and Lex-cel extension (satisfies_le), and x ≠ y are…
  • impossibility_con_ucon_lex_celFor any countably infinite type of individuals X with decidable equality, no social ranking solution R on X simultaneously satisfies…
  • lex_celFor individuals x and y and a power relation r, x is weakly preferred to y under the Lex-cel solution at r, denoted lex_cel r x y, if…

Read back from the Lean

A recursive definition of a relation lex_ge : List ℕ → List ℕ → Prop (lexicographical greater-than-or-equal-to relation on lists of natural numbers): - Given two empty lists [] and [], it evaluates to True. - Given an empty list [] and a non-empty list _ :: _, it evaluates to False. - Given a non-empty list _ :: _ and an empty list [], it evaluates to True. - Given lists a :: as and b :: bs, it evaluates to a > b ∨ (a = b ∧ lex_ge as bs).

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

/-- Lexicographical comparison of lists of natural numbers. -/
def lex_ge : List ℕ → List ℕ → Prop
| [], [] => True
| [], _ :: _ => False
| _ :: _, [] => True
| a :: as, b :: bs => a > b ∨ (a = b ∧ lex_ge as bs)
See it in the graphDiscuss this resultChallenge it