AFTD Auto-Formalizing Theoretical Domains

retained_line_truncated_expected_components

def

The expected number of connected components of the length-≤d truncation of the random graph on n line vertices where each edge is retained independently with probability q.

Statement

noncomputable def retained_line_truncated_expected_components (n d : ℕ) (q : ℝ) : ℝ
Source
step towards retained_line_msf_fixed_q_limit
Verified
22 Nov 2026
Axioms
none listed
Built on 1
  • retained_line_truncateThe graph on the same line vertices formed by retaining exactly those edges of the given graph whose endpoint distance is at most k.

Lean source view module on GitHub

/-- Expected number of components of the length-`d` truncation of the `q`-random graph on `n` line vertices. -/
noncomputable def retained_line_truncated_expected_components (n d : ℕ) (q : ℝ) : ℝ := by
  classical
  exact ∑ G : SimpleGraph (Fin n),
    q ^ G.edgeFinset.card * (1 - q) ^ (Nat.choose n 2 - G.edgeFinset.card) *
      (Nat.card (retained_line_truncate G d).ConnectedComponent : ℝ)
See it in the graphDiscuss this resultChallenge it