AFTD Auto-Formalizing Theoretical Domains

petersen_poly_variance_per_vertex

def

For an activity x, the per-vertex hard-core variance of the Petersen graph computed from its independence polynomial 1 + 10*x + 30*x^2 + 30*x^3 + 5*x^4 as (e2 - e1^2) / 10, where e1 = (10*x + 60*x^2 + 90*x^3 + 20*x^4) / (1 + 10*x + 30*x^2 + 30*x^3 + 5*x^4) and e2 = (10*x + 120*x^2 + 270*x^3 + 80*x^4) / (1 + 10*x + 30*x^2 + 30*x^3 + 5*x^4).

Statement

noncomputable def petersen_poly_variance_per_vertex (x : ℝ) : ℝ
Defined in
arXiv:1806.02146
Verified
09 Nov 2026
Axioms
none listed
Used by 4

Read back from the Lean

A definition of petersen_poly_variance_per_vertex, which is a function from ℝ to ℝ that maps x to: (e₂ - e₁²) / 10 where: z = 1 + 10*x + 30*x^2 + 30*x^3 + 5*x^4, e₁ = (10*x + 60*x^2 + 90*x^3 + 20*x^4) / z, e₂ = (10*x + 120*x^2 + 270*x^3 + 80*x^4) / z.

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

/-- Per-vertex hard-core particle-number variance of the Petersen graph from its independence polynomial. -/
noncomputable def petersen_poly_variance_per_vertex (x : ℝ) : ℝ :=
  let z := 1 + 10 * x + 30 * x^2 + 30 * x^3 + 5 * x^4
  let e1 := (10 * x + 60 * x^2 + 90 * x^3 + 20 * x^4) / z
  let e2 := (10 * x + 120 * x^2 + 270 * x^3 + 80 * x^4) / z
  (e2 - e1^2) / 10
See it in the graphDiscuss this resultChallenge it