FormalConjecturesForMathlib/Combinatorics/SimpleGraph/Degrees.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
14 declarations, 0 contain sorry, 0 declared as axioms
Imports (9)
Imported by 2 files
- def
SimpleGraph.averageDegreeThe average degree ofGline 35 sourceSource documentation
The average degree of
G.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,DecidableRel,SimpleGraph.Adj,RatProof uses:
HDiv.hDiv,Finset.sum,Finset.univ,SimpleGraph.degree,Membership.mem,Set,SimpleGraph.neighborSet,Fintype.card8 instances, coercions and auxiliary constants left out.
noncomputable def averageDegree (G : SimpleGraph α) [DecidableRel G.Adj] : ℚ := …
- def
SimpleGraph.degreeMultisetThe multiset of degrees of a graph line 39 sourceSource documentation
The multiset of degrees of a graph.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,DecidableRel,SimpleGraph.Adj,Multiset,NatProof uses:
Multiset.map,SimpleGraph.degree,Membership.mem,Set,SimpleGraph.neighborSet,Finset.val,Finset.univ3 instances, coercions and auxiliary constants left out.
def degreeMultiset (G : SimpleGraph α) [DecidableRel G.Adj] : Multiset ℕ := …
- def
SimpleGraph.degreeSequenceThe degree sequence of a graph, sorted in nondecreasing order line 43 sourceSource documentation
The degree sequence of a graph, sorted in nondecreasing order.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,DecidableRel,SimpleGraph.Adj,List,NatProof uses:
Multiset.sort,Multiset.map,SimpleGraph.degree,Membership.mem,Set,SimpleGraph.neighborSet,Finset.val,Finset.univ,LE.le10 instances, coercions and auxiliary constants left out.
noncomputable def degreeSequence (G : SimpleGraph α) [DecidableRel G.Adj] : List ℕ := …
- def
SimpleGraph.degreeSequenceMultiplicityThe maximum number of occurrences of any term of the degree sequence ofGline 49 sourceSource documentation
The maximum number of occurrences of any term of the degree sequence of
G.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,DecidableRel,SimpleGraph.Adj,NatProof uses:
Option.getD,List.max?,List.map,List.count, SimpleGraph.degreeSequence,OfNat.ofNat4 instances, coercions and auxiliary constants left out.
noncomputable def degreeSequenceMultiplicity (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ := …
- def
SimpleGraph.edegreeline 58 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
SimpleGraph,ENatProof uses:
Set.encard,SimpleGraph.neighborSet - def
SimpleGraph.emaxDegreeline 61 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
SimpleGraph,ENatProof uses:
iSup, SimpleGraph.edegree5 instances, coercions and auxiliary constants left out.
- def
SimpleGraph.non_edge_neighborhood_cardCardinality of the union of the neighbourhoods of the ends of the non-edgeeline 64 sourceSource documentation
Cardinality of the union of the neighbourhoods of the ends of the non-edge
e.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,SimpleGraph,DecidableRel,SimpleGraph.Adj,Sym2,NatProof uses:
Equiv,Subtype,Eq,Sym2.lift,Subtype.mk,Finset.card,Union.union,Finset,SimpleGraph.neighborFinset,Membership.mem,Set,SimpleGraph.neighborSet8 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
def non_edge_neighborhood_card (G : SimpleGraph α) [DecidableRel G.Adj] (e : Sym2 α) : ℕ := …
- def
SimpleGraph.NGMinimum size of the neighbourhood of a non-edge ofGline 69 sourceSource documentation
Minimum size of the neighbourhood of a non-edge of
G.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,SimpleGraph,DecidableRel,SimpleGraph.Adj,RealProof uses:
Finset,Sym2,SimpleGraph.edgeFinset,Compl.compl,dite,Finset.Nonempty,Nat,Finset.image, SimpleGraph.non_edge_neighborhood_card,Finset.min',Not,Fintype.card10 instances, coercions and auxiliary constants left out.
noncomputable def NG (G : SimpleGraph α) [DecidableRel G.Adj] : ℝ := …
- def
SimpleGraph.Sline 77 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,RealProof uses:
Nat,Fintype.card,ite,LT.lt,OfNat.ofNat,Multiset,List.map,SimpleGraph.degree,Membership.mem,Set,SimpleGraph.neighborSet,Classical.propDecidable,SimpleGraph.Adj,Finset.toList,Finset.univ,List,Multiset.sort,LE.le,Option.getD,GetElem?.getElem?and 2 more21 instances, coercions and auxiliary constants left out.
- def
SimpleGraph.secondSmallestDegreeDocumented declaration: secondSmallestDegree line 90 sourceSource documentation
The second-smallest degree of
G's degree sequence — DeLaVina'sσ(G)per the WOWII definitions popup (defEntry 65): "order the degree sequence in nondecreasing orderd₁ ≤ d₂ ≤ … ≤ dₙ, the second smallest degree of the sequence is the 2nd entry". For graphs withn ≤ 1we conventionally return0.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,DecidableRel,SimpleGraph.Adj,NatProof uses:
List.getD, SimpleGraph.degreeSequence,OfNat.ofNat1 instances, coercions and auxiliary constants left out.
noncomputable def secondSmallestDegree (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ := …
- lemma
SimpleGraph.exists_distinct_degree_one_of_secondSmallestDegree_eq_oneIn a nontrivial preconnected finite graph, second-smallest degree one forces two leaves line 95 sourceSource documentation
In a nontrivial preconnected finite graph, second-smallest degree one forces two leaves.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,Nontrivial,SimpleGraph,DecidableRel,SimpleGraph.Adj,SimpleGraph.Preconnected,Eq,Nat, SimpleGraph.secondSmallestDegree,OfNat.ofNat,Exists,And,Ne,SimpleGraph.degree,Membership.mem,Set,SimpleGraph.neighborSetProof uses:
List, SimpleGraph.degreeSequence,LE.le,List.length,Eq.mpr,Fintype.card,id,congrArg,Eq.trans,Multiset.card,Multiset.map,Finset.val,Finset.univ,Multiset.sort,SimpleGraph.degreeSequence.eq_1,Multiset.length_sort,Multiset.card_map,Nat.succ_le_of_lt,Fintype.one_lt_card,List.consand 57 more106 instances, coercions and auxiliary constants left out.
Tactic trace: 41 steps
Open to load the checked before-and-after goal states.
lemma exists_distinct_degree_one_of_secondSmallestDegree_eq_one [Nontrivial α] (G : SimpleGraph α) [DecidableRel G.Adj] (hG : G.Preconnected) (hσ : secondSmallestDegree G = 1) : ∃ x y : α, x ≠ y ∧ G.degree x = 1 ∧ G.degree y = 1 := by …Mentions: SimpleGraph.secondSmallestDegree
- def
SimpleGraph.numTrianglesAtVertexThe number of triangles (3-cliques) ofGincident to vertexv: the number of 3-element cliques containingvline 143 sourceSource documentation
The number of triangles (3-cliques) of
Gincident to vertexv: the number of 3-element cliques containingv.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,SimpleGraph,DecidableRel,SimpleGraph.Adj,NatProof uses:
Finset.card,Finset,Finset.filter,Membership.mem,SimpleGraph.cliqueFinset,OfNat.ofNat4 instances, coercions and auxiliary constants left out.
noncomputable def numTrianglesAtVertex (G : SimpleGraph α) [DecidableRel G.Adj] (v : α) : ℕ := …
- def
SimpleGraph.degreeL2NormThe length of a graph: the square root of the sum of the squares of degrees line 147 sourceSource documentation
The length of a graph: the square root of the sum of the squares of degrees.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,DecidableRel,SimpleGraph.Adj,RealProof uses:
Real.sqrt,Finset.sum,Finset.univ,HPow.hPow,Nat,SimpleGraph.degree,Membership.mem,Set,SimpleGraph.neighborSet,OfNat.ofNat11 instances, coercions and auxiliary constants left out.
noncomputable def degreeL2Norm (G : SimpleGraph α) [DecidableRel G.Adj] : ℝ := …
- def
SimpleGraph.countDegreeKThe number of vertices of degree k inGline 151 sourceSource documentation
The number of vertices of degree k in
G.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,DecidableRel,SimpleGraph.Adj,NatProof uses:
Finset.card,Finset.filter,Eq,SimpleGraph.degree,Membership.mem,Set,SimpleGraph.neighborSet,Finset.univ4 instances, coercions and auxiliary constants left out.
def countDegreeK (G : SimpleGraph α) [DecidableRel G.Adj] (k : ℕ) : ℕ := …