FormalConjecturesForMathlib/Combinatorics/SimpleGraph/Eccentricity.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
8 declarations, 0 contain sorry, 0 declared as axioms
Imports (3)
Imported by 3 files
- def
SimpleGraph.maxEccentricityVerticesThe set of vertices of maximum eccentricity line 29 sourceSource documentation
The set of vertices of maximum eccentricity.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
SimpleGraph,SetProof uses:
Set.ofPred,Eq,ENat,SimpleGraph.eccent,SimpleGraph.ediamnoncomputable def maxEccentricityVertices (G : SimpleGraph α) : Set α := …
- def
SimpleGraph.averageEccentricityThe average eccentricity of a graphG: the mean ofG.eccent vover all vertices, converted to a real number line 34 sourceSource documentation
The average eccentricity of a graph
G: the mean ofG.eccent vover all vertices, converted to a real number. Returns 0 if the graph has no vertices.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,RealProof uses:
HDiv.hDiv,Finset.sum,Nat,Finset.univ,ENat.toNat,SimpleGraph.eccent,Fintype.card6 instances, coercions and auxiliary constants left out.
noncomputable def averageEccentricity (G : SimpleGraph α) : ℝ := …
- def
SimpleGraph.computable_ediamThe diameter of a finite graph as a computable natural number: the maximum BFS distance (computable_dist) over all ordered pairs of vertices line 39 sourceSource documentation
The diameter of a finite graph as a computable natural number: the maximum BFS distance (
computable_dist) over all ordered pairs of vertices.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,SimpleGraph,DecidableRel,SimpleGraph.Adj,NatProof uses:
Finset.sup,Prod,Finset.univ, SimpleGraph.computable_dist,Prod.fst,Prod.snd4 instances, coercions and auxiliary constants left out.
def computable_ediam (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ := …
- theorem
SimpleGraph.ediam_eq_computableFor a connected finite graph, the extended diameterediamequals the computable diameter line 43 sourceSource documentation
For a connected finite graph, the extended diameter
ediamequals the computable diameter.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,SimpleGraph,DecidableRel,SimpleGraph.Adj,Nonempty,SimpleGraph.Connected,Eq,ENat,SimpleGraph.ediam, SimpleGraph.computable_ediamProof uses:
le_antisymm,Eq.mpr,LE.le,SimpleGraph.edist,id,congrArg,propext,SimpleGraph.ediam_le_iff,SimpleGraph.dist,Eq.symm,SimpleGraph.Reachable.coe_dist_eq_edist,SimpleGraph.Connected.preconnected, SimpleGraph.computable_dist,Nat, SimpleGraph.dist_eq_computable,cast,Finset.le_sup,Prod,Finset.univ,Prod.fstand 11 more38 instances, coercions and auxiliary constants left out.
Tactic trace: 11 steps
Open to load the checked before-and-after goal states.
theorem ediam_eq_computable (G : SimpleGraph α) [DecidableRel G.Adj] [Nonempty α] (hc : G.Connected) : G.ediam = (computable_ediam G : ℕ∞) := by …Mentions: SimpleGraph.computable_ediam
- def
SimpleGraph.computable_eccentThe eccentricity of a vertexuin a finite graph as a computable natural number: the maximum BFS distance (computable_dist) fromuto any vertex line 57 sourceSource documentation
The eccentricity of a vertex
uin a finite graph as a computable natural number: the maximum BFS distance (computable_dist) fromuto any vertex.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,SimpleGraph,DecidableRel,SimpleGraph.Adj,NatProof uses:
Finset.sup,Finset.univ, SimpleGraph.computable_dist3 instances, coercions and auxiliary constants left out.
def computable_eccent (G : SimpleGraph α) [DecidableRel G.Adj] (u : α) : ℕ := …
- def
SimpleGraph.computable_radiusThe radius of a finite graph as a computable natural number: the minimum, over all vertices, of the computable eccentricity line 62 sourceSource documentation
The radius of a finite graph as a computable natural number: the minimum, over all vertices, of the computable eccentricity.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,SimpleGraph,DecidableRel,SimpleGraph.Adj,Nonempty,NatProof uses:
Finset.inf',Finset.univ,Finset.univ_nonempty, SimpleGraph.computable_eccent2 instances, coercions and auxiliary constants left out.
def computable_radius (G : SimpleGraph α) [DecidableRel G.Adj] [Nonempty α] : ℕ := …
- theorem
SimpleGraph.eccent_eq_computableFor a connected finite graph, the eccentricityeccent uequals the computable eccentricity line 66 sourceSource documentation
For a connected finite graph, the eccentricity
eccent uequals the computable eccentricity.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,SimpleGraph,DecidableRel,SimpleGraph.Adj,Nonempty,SimpleGraph.Connected,Eq,ENat,SimpleGraph.eccent, SimpleGraph.computable_eccentProof uses:
le_antisymm,Eq.mpr,LE.le,SimpleGraph.edist,id,congrArg,propext,SimpleGraph.eccent_le_iff,SimpleGraph.dist,Eq.symm,SimpleGraph.Reachable.coe_dist_eq_edist,SimpleGraph.Connected.preconnected, SimpleGraph.computable_dist,Nat, SimpleGraph.dist_eq_computable,cast,Finset.le_sup,Finset.univ,Finset.mem_univ,Andand 7 more36 instances, coercions and auxiliary constants left out.
Tactic trace: 11 steps
Open to load the checked before-and-after goal states.
theorem eccent_eq_computable (G : SimpleGraph α) [DecidableRel G.Adj] [Nonempty α] (hc : G.Connected) (u : α) : G.eccent u = (computable_eccent G u : ℕ∞) := by …Mentions: SimpleGraph.computable_eccent
- theorem
SimpleGraph.radius_eq_computableFor a connected finite graph, the radiusradiusequals the computable radius line 79 sourceSource documentation
For a connected finite graph, the radius
radiusequals the computable radius.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,SimpleGraph,DecidableRel,SimpleGraph.Adj,Nonempty,SimpleGraph.Connected,Eq,ENat,SimpleGraph.radius, SimpleGraph.computable_radiusProof uses:
le_antisymm,And,Membership.mem,Finset,Finset.univ,Nat,Finset.inf',Finset.univ_nonempty, SimpleGraph.computable_eccent,Exists,LE.le,Finset.exists_mem_eq_inf',Eq.mpr,id,congrArg,SimpleGraph.eccent,Eq.symm, SimpleGraph.eccent_eq_computable,SimpleGraph.radius_le_eccent,SimpleGraph.exists_eccent_eq_radiusand 3 more34 instances, coercions and auxiliary constants left out.
Tactic trace: 10 steps
Open to load the checked before-and-after goal states.
theorem radius_eq_computable (G : SimpleGraph α) [DecidableRel G.Adj] [Nonempty α] (hc : G.Connected) : G.radius = (computable_radius G : ℕ∞) := by …Mentions: SimpleGraph.computable_radius