AFTD Auto-Formalizing Theoretical Domains

arrival_discounted_iterates

def

For a type V with decidable equality, an origin vertex o : V, a real discount factor q : ℝ, an inflow map H : (V → ℝ) → (V → ℝ), and a step count k : ℕ, arrival_discounted_iterates o q H k is the vector in V → ℝ defined recursively by 0 at step 0 and Pi.single o 1 + q • H (arrival_discounted_iterates o q H k) at step k + 1.

Statement

def arrival_discounted_iterates {V : Type*} [DecidableEq V]
    (o : V) (q : ℝ) (H : (V → ℝ) → (V → ℝ)) : ℕ → (V → ℝ)
Defined in
arXiv:2611.33785, Section 2.2
Verified
29 Nov 2026
Axioms
none listed

Read back from the Lean

arrival_discounted_iterates is a recursive definition taking a type V with decidable equality, an element o : V, a real number q : ℝ, an operator H : (V → ℝ) → (V → ℝ), and returning a sequence of functions ℕ → (V → ℝ) defined by: - for 0: the constantly zero function 0 : V → ℝ, - for k + 1: the sum of Pi.single o 1 (the function mapping o to 1 and all other elements of V to 0) and q • H (arrival_discounted_iterates o q H k).

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

/-- Discounted iterates X^(k) starting from 0. -/
def arrival_discounted_iterates {V : Type*} [DecidableEq V]
    (o : V) (q : ℝ) (H : (V → ℝ) → (V → ℝ)) : ℕ → (V → ℝ)
| 0 => 0
| k + 1 => Pi.single o 1 + q • H (arrival_discounted_iterates o q H k)
See it in the graphDiscuss this resultChallenge it