tree_hitting_time_index
For a simple graph G on a finite vertex type V, tree_hitting_time_index G is the integer defined as the sum over all unordered pairs e : Sym2 V of max (hit u v) (hit v u) for e = ⟦(u, v)⟧, where hit u v = (Fintype.card V - 1 : ℤ) * (G.dist u v : ℤ) + ∑ w : V, ((G.dist w v : ℤ) - (G.dist w u : ℤ)).
Statement
noncomputable def tree_hitting_time_index {V : Type*} [Fintype V] (G : SimpleGraph V) : ℤ
- Defined in
- arXiv:2611.34295 Sec. 1
- Verified
- 26 Nov 2026
- Axioms
- none listed
Read back from the Lean
Given a finite type V and a simple graph G on V, tree_hitting_time_index G is the integer defined as follows:
For any vertices u, v : V, let
hit u v = (|V| - 1) * dist_G(u, v) + ∑ w : V, (dist_G(w, v) - dist_G(w, u))
where |V| is Fintype.card V and dist_G is the shortest-path graph distance in G (cast to ℤ).
Then tree_hitting_time_index G is the sum over all unordered pairs e : Sym2 V (including diagonal pairs {u, u}) of
max (hit u v) (hit v u).
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 hitting time index HT(T) of a finite graph G on vertex type V, matching the tree hitting time index when G is a tree. -/ noncomputable def tree_hitting_time_index {V : Type*} [Fintype V] (G : SimpleGraph V) : ℤ := let hit : V → V → ℤ := fun u v => (Fintype.card V - 1 : ℤ) * (G.dist u v : ℤ) + ∑ w : V, ((G.dist w v : ℤ) - (G.dist w u : ℤ)) ∑ e : Sym2 V, Sym2.lift ⟨fun u v => max (hit u v) (hit v u), fun _ _ => max_comm _ _⟩ e