FormalConjecturesForMathlib/Combinatorics/SimpleGraph/SzegedIndex.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
7 declarations, 0 contain sorry, 0 declared as axioms
Imports (4)
Imported by 1 file
- def
SimpleGraph.szeged_auxAuxiliary function for Szeged index: counts vertices closer to u than v line 30 sourceSource documentation
Auxiliary function for Szeged index: counts vertices closer to u than v.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,NatProof uses:
Finset.card,Finset.filter,LT.lt,ENat,SimpleGraph.edist,Finset.univ3 instances, coercions and auxiliary constants left out.
noncomputable def szeged_aux (G : SimpleGraph α) (u v : α) : ℕ := …
- def
SimpleGraph.szegedIndexThe Szeged index ofGline 38 sourceSource documentation
The Szeged index of
G.This is define as the sum
∑_{uv ∈ E(G)} n_u(u,v) * n_v(u,v)wheren_u(uv)is the number of vertices closer touthanv.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,DecidableRel,SimpleGraph.Adj,NatProof uses:
Finset.sum,Sym2,SimpleGraph.edgeFinset,Equiv,Subtype,Eq,Sym2.lift,Subtype.mk,HMul.hMul, SimpleGraph.szeged_aux9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
noncomputable def szegedIndex (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ := …
- def
SimpleGraph.computable_szeged_auxComputable Szeged auxiliary: count vertices closer to u than v line 43 sourceSource documentation
Computable Szeged auxiliary: count vertices closer to u than v.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,SimpleGraph,DecidableRel,SimpleGraph.Adj,NatProof uses:
Finset.card,Finset.filter,LT.lt, SimpleGraph.computable_dist,Finset.univ2 instances, coercions and auxiliary constants left out.
def computable_szeged_aux (G : SimpleGraph α) [DecidableRel G.Adj] (u v : α) : ℕ := …
- def
SimpleGraph.computable_szeged_indexComputable Szeged index line 47 sourceSource documentation
Computable Szeged index.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,SimpleGraph,DecidableRel,SimpleGraph.Adj,NatProof uses:
Finset.sum,Sym2,SimpleGraph.edgeFinset,Equiv,Subtype,Eq,Sym2.lift,Subtype.mk,HMul.hMul, SimpleGraph.computable_szeged_aux9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
def computable_szeged_index (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ := …
- lemma
SimpleGraph.edist_lt_iff_dist_ltline 54 source - lemma
SimpleGraph.szeged_aux_eq_computableline 64 source - theorem
SimpleGraph.szeged_eq_computableline 72 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,SimpleGraph,DecidableRel,SimpleGraph.Adj,Eq,Nat, SimpleGraph.szegedIndex, SimpleGraph.computable_szeged_indexProof uses:
id,Finset.sum,Sym2,SimpleGraph.edgeFinset,Equiv,Subtype,Sym2.lift,Subtype.mk,HMul.hMul, SimpleGraph.szeged_aux,Finset.sum_congr, SimpleGraph.computable_szeged_aux,rfl,Finset,Membership.mem,Sym2.ind,Sym2.mk,Eq.mp,Set,SimpleGraph.edgeSetand 8 more14 instances, coercions and auxiliary constants left out.
Tactic trace: 14 steps
Open to load the checked before-and-after goal states.