AFTD Auto-Formalizing Theoretical Domains

scoring_last

def

Given a natural number m with 2 ≤ m and a scoring vector s : Fin m → ℚ, scoring_last m hm s is the value of s at the last index m - 1.

Statement

def scoring_last (m : ℕ) (hm : 2 ≤ m) (s : Fin m → ℚ) : ℚ
Defined in
arXiv:2610.26535 Definition 1
Verified
22 Oct 2026
Axioms
none listed
Used by 6

Read back from the Lean

Given a natural number $m$, a hypothesis $hm : 2 \le m$, and a function $s : \text{Fin } m \to \mathbb{Q}$, scoring_last m hm s is defined to be the value of $s$ at the index $m - 1$ (the last element of $\text{Fin } m$, justified by $m - 1 < m$ via $hm$).

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

/-- The score awarded to the last index m - 1 by scoring vector s. -/
def scoring_last (m : ℕ) (hm : 2 ≤ m) (s : Fin m → ℚ) : ℚ :=
  s ⟨m - 1, by omega⟩
See it in the graphDiscuss this resultChallenge it