FormalConjecturesForMathlib/Combinatorics/SimpleGraph/AnnihilationNumber.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
2 declarations, 0 contain sorry, 0 declared as axioms
Imports (4)
Imported by 1 file
- def
SimpleGraph.annihilationNumberThe annihilation number of a graph line 31 sourceSource documentation
The annihilation number of a graph. This is the largest number of degrees that can be added together without going over the total number of edges of that graph.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,DecidableRel,SimpleGraph.Adj,NatProof uses:
Finset.sup,Multiset,Finset.filter,LE.le,Multiset.sum,Finset.card,Sym2,SimpleGraph.edgeFinset,Finset.Iic, SimpleGraph.degreeMultiset,Multiset.card14 instances, coercions and auxiliary constants left out.
def annihilationNumber (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ := …
- def
SimpleGraph.annihilationNumber'Computes the annihilation number of a graph G line 46 sourceSource documentation
Computes the annihilation number of a graph G.
It calculates the degree sequence, sorts it ascendingly, and finds the largest prefix length 'k' (where
0 ≤ k ≤ |V(G)|) such that the sum of the prefix is less than or equal to the sum of the corresponding suffix.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,SimpleGraph,DecidableRel,SimpleGraph.Adj,NatProof uses:
List.getLast!,List.filter,Decidable.decide,LE.le,List.sum,List.take,Multiset.sort,Multiset.map,SimpleGraph.degree,Membership.mem,Set,SimpleGraph.neighborSet,Finset.val,Finset.univ,List.drop,List.range,HAdd.hAdd,Fintype.card,OfNat.ofNat16 instances, coercions and auxiliary constants left out.
noncomputable def annihilationNumber' (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ := …