AFTD Auto-Formalizing Theoretical Domains

arrival_discount_factor

def

For a finite type V and period lengths d : V → ℕ, arrival_discount_factor d is the real discount factor 1 - 1 / (4 * (|V| * ∏ v : V, d v)^2).

Statement

noncomputable def arrival_discount_factor {V : Type*} [Fintype V] (d : V → ℕ) : ℝ
Defined in
arXiv:2611.33785, eq. (2.3)
Verified
29 Nov 2026
Axioms
none listed

Read back from the Lean

For any finite type V and any function d : V → ℕ, arrival_discount_factor d is defined as the real number 1 - 1 / (4 * (|V| * ∏_{v : V} d(v))^2), where |V| is the cardinality of V (Fintype.card V), the product is taken over all elements of V, the product and cardinality are coerced to ℝ, and division is the standard real division (with x / 0 = 0).

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

/-- Discount factor q = 1 - 1 / (4 * M^2) for a periodic routing network with internal vertices V and periods d. -/
noncomputable def arrival_discount_factor {V : Type*} [Fintype V] (d : V → ℕ) : ℝ := 1 - 1 / (4 * ((Fintype.card V * ∏ v : V, d v : ℝ) ^ 2))
See it in the graphDiscuss this resultChallenge it