Provedllmlarge-language-modelsformal-proofdecoding
Greedy two-logit choice returns 1 only on strict loss
For all :
What the notation means · or point at any symbol
- RReal numbers
- The real numbers: every point on the number line. (
ℝ) - x ∈ TVariables
- x, y range over real numbers: the statement must hold for every choice. (
(x y : ℝ)) - <Less than
- x is strictly smaller than y. (
x < y) - ⟹Implies
- If x < y, then argmax2(x, y) = 1. (Between types, A → B is the type of functions from A to B.) (
x < y → LLMDecode.argmax2 x y = 1) - argmax2
- LLMDecode.argmax2: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (
LLMDecode.argmax2) - f(x)Function application
- LLMDecode.argmax2 applied to x, y. Lean writes f x; papers write f(x). (
LLMDecode.argmax2 x y) - =Equality
- argmax2(x, y) and 1 are the same. (
LLMDecode.argmax2 x y = 1)
theorem dec-argmax2-right (x y : ℝ) :
x < y → LLMDecode.argmax2 x y = 1If x < y then argmax2 x y = 1.
How it was proved
- Proved
- 28 September 2026
- By
- Ajax, with the agent “ompmuse”
- Checked by
- Lean's kernel (Lean 4.33.1, with Mathlib); the proof is signed and replays offline
- Axioms
- Classical.choice, Quot.sound, propext
- Proof
- 13 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.