FormalConjecturesForMathlib/Combinatorics/SimpleGraph/HarmonicIndex.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
1 declarations, 0 contain sorry, 0 declared as axioms
Imported by 2 files
- def
SimpleGraph.harmonicIndexThe harmonic index ofG, defined as∑_{uv ∈ E(G)} 2 / (deg u + deg v), wheredegis the degree of a vertex line 30 sourceSource documentation
The harmonic index of
G, defined as∑_{uv ∈ E(G)} 2 / (deg u + deg v), wheredegis the degree of a vertex. This is a standard topological index in chemical graph theory, introduced by Fajtlowicz.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,DecidableRel,SimpleGraph.Adj,RatProof uses:
Finset.sum,Sym2,SimpleGraph.edgeFinset,Equiv,Subtype,Eq,Sym2.lift,Subtype.mk,HDiv.hDiv,OfNat.ofNat,HAdd.hAdd,SimpleGraph.degree,Membership.mem,Set,SimpleGraph.neighborSet17 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
def harmonicIndex (G : SimpleGraph α) [DecidableRel G.Adj] : ℚ := …