twin_star
For any natural number d, the twin-star graph TS_d is the simple graph on vertex type Fin d ⊕ Fin d, where distinct vertices x and y are adjacent if and only if either: one vertex is Sum.inl i and the other is Sum.inr j with i.val = 0 and j.val = 0; or both vertices are in the left copy, Sum.inl i and Sum.inl j, with i.val = 0 or j.val = 0; or both vertices are in the right copy, Sum.inr i and Sum.inr j, with i.val = 0 or j.val = 0.
Statement
def twin_star (d : ℕ) : SimpleGraph (Fin d ⊕ Fin d)- Defined in
- arXiv:2611.19473, Section 1
- Verified
- 20 Nov 2026
- Axioms
- none listed
- Used by 1
- twin_star_leaf_countFor any natural number d ≥ 2, the number of leaves graph_leaf_count of the twin-star graph TS_d on Fin d ⊕ Fin d is equal to 2 * d - 2.
Read back from the Lean
For a given natural number d, twin_star d is the simple graph on the vertex type Fin d ⊕ Fin d constructed via SimpleGraph.fromRel from the relation R where:
- R (Sum.inl i) (Sum.inr j) holds if and only if i.val = 0 and j.val = 0;
- R (Sum.inl i) (Sum.inl j) holds if and only if i.val = 0 and j.val ≠ 0;
- R (Sum.inr i) (Sum.inr j) holds if and only if i.val = 0 and j.val ≠ 0;
- R x y is false for any other pair of vertices (in particular, R (Sum.inr i) (Sum.inl j) is false).
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 twin-star graph TS_d on 2d vertices (Fin d ⊕ Fin d). -/ def twin_star (d : ℕ) : SimpleGraph (Fin d ⊕ Fin d) := SimpleGraph.fromRel fun x y => match x, y with | .inl i, .inr j => i.val = 0 ∧ j.val = 0 | .inl i, .inl j => i.val = 0 ∧ j.val ≠ 0 | .inr i, .inr j => i.val = 0 ∧ j.val ≠ 0 | _, _ => False