AFTD Auto-Formalizing Theoretical Domains

retained_line_msf_weight

def

For a graph on the first n nonnegative integers, the minimum total edge length among its spanning forests, one tree in each connected component.

Statement

noncomputable def retained_line_msf_weight {n : ℕ} (G : SimpleGraph (Fin n)) : ℝ
Source
OP-815, proposed here; compares independent edge retention on the line with classical random spanning-tree results.
Verified
19 Nov 2026
Axioms
none listed
Built on 1
  • graph_costFor a finite vertex type V with [Fintype V], a pairwise distance function d : V → V → ℝ, and a simple graph T on V, graph_cost d T is…
Used by 3

Lean source view module on GitHub

noncomputable def retained_line_msf_weight {n : ℕ} (G : SimpleGraph (Fin n)) : ℝ :=
  sInf {x : ℝ | ∃ F : SimpleGraph (Fin n),
    Maximal (fun H : SimpleGraph (Fin n) => H ≤ G ∧ H.IsAcyclic) F ∧
    x = graph_cost (fun i j => |(i.val : ℝ) - (j.val : ℝ)|) F}
See it in the graphDiscuss this resultChallenge it