FormalConjecturesForMathlib/Combinatorics/SimpleGraph/AnnihilationNumber.lean

GitHub source file

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
  1. def SimpleGraph.annihilationNumber The annihilation number of a graph line 31 source

    Source 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, Nat

    Proof uses: Finset.sup, Multiset, Finset.filter, LE.le, Multiset.sum, Finset.card, Sym2, SimpleGraph.edgeFinset, Finset.Iic, SimpleGraph.degreeMultiset, Multiset.card

    14 instances, coercions and auxiliary constants left out.

    def annihilationNumber (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ :=
    …
  2. def SimpleGraph.annihilationNumber' Computes the annihilation number of a graph G line 46 source

    Source 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, Nat

    Proof 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.ofNat

    16 instances, coercions and auxiliary constants left out.

    noncomputable def annihilationNumber' (G : SimpleGraph α) [DecidableRel G.Adj] : ℕ :=
    …