AFTD Auto-Formalizing Theoretical Domains

arrival_walk_iterates

def

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

Statement

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

Read back from the Lean

Given a type V with decidable equality, a distinguished element o ∈ V, and an operator H : (V → ℝ) → (V → ℝ), arrival_walk_iterates o H is the sequence of functions from V to ℝ indexed by ℕ defined recursively by: - at 0, the constant zero function (mapping every v ∈ V to 0); - at k + 1, the pointwise sum of the indicator function of {o} (taking value 1 at o and 0 elsewhere) and H applied to the k-th iterate.

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

/-- Walk iterates U^(k) counting departures in the first min(k, T) moves. -/
def arrival_walk_iterates {V : Type*} [DecidableEq V]
    (o : V) (H : (V → ℝ) → (V → ℝ)) : ℕ → (V → ℝ)
| 0 => 0
| k + 1 => Pi.single o 1 + H (arrival_walk_iterates o H k)
See it in the graphDiscuss this resultChallenge it