AFTD Auto-Formalizing Theoretical Domains

recursive_line_hole_budget

def

The recursive-line hole budget recursive_line_hole_budget m n z z_RL for natural numbers m, n and integers z, z_RL is defined as (m : ℤ) * n + z - 2 * z_RL.

Statement

def recursive_line_hole_budget (m n : ℕ) (z z_RL : ℤ) : ℤ
Defined in
scout/2610-22875-overtake-and-the-recursive-line-equality-for-second-order-z.md:541
Verified
22 Oct 2026
Axioms
none listed
Used by 3

Read back from the Lean

recursive_line_hole_budget is defined as a function that takes two natural numbers m and n and two integers z and z_RL, and returns the integer (m : ℤ) * (n : ℤ) + z - 2 * z_RL.

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 recursive-line hole budget h_RL(m,n) = mn + z(m,n) - 2 * z_RL(m,n). -/
def recursive_line_hole_budget (m n : ℕ) (z z_RL : ℤ) : ℤ := (m : ℤ) * n + z - 2 * z_RL
See it in the graphDiscuss this resultChallenge it