FormalConjecturesForMathlib/Combinatorics/Digraph/Tournament.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

7 declarations, 0 contain sorry, 0 declared as axioms

Imports (6)
Imported by 1 file
  1. def Digraph.IsTournament A tournament is a directed graph in which every pair of distinct vertices is connected by exactly one directed edge line 35 source

    Source documentation

    A tournament is a directed graph in which every pair of distinct vertices is connected by exactly one directed edge.

    no axioms what this means

    Statement uses: Digraph

    Proof uses: And, Not, Digraph.Adj, Ne, Iff

    def IsTournament (G : Digraph V) : Prop :=
    …
  2. def Digraph.IsOrientation An orientation of an undirected simple graph H is a digraph D whose edges are obtained by directing each edge of H in exactly one direction line 42 source

    Source documentation

    An orientation of an undirected simple graph H is a digraph D whose edges are obtained by directing each edge of H in exactly one direction.

    no axioms what this means

    Statement uses: Digraph, SimpleGraph

    Proof uses: And, Digraph.Adj, SimpleGraph.Adj, Iff, Not

    def IsOrientation (D : Digraph V) (H : SimpleGraph V) : Prop :=
    …
  3. structure Digraph.Hom The type of digraph homomorphisms D →g D' line 52 source

    Source documentation

    The type of digraph homomorphisms D →g D'. A function f : V → W is a digraph homomorphism if D.Adj u v → D'.Adj (f u) (f v). Note that f is a general mapping and is not required to be injective.

    no axioms what this means

    Statement uses: Digraph

    Tactic trace: 3 steps

    Open to load the checked before-and-after goal states.

    structure Hom (D : Digraph V) (D' : Digraph W) where
    …
  4. instance Digraph.(instance at line 58) line 58 source
  5. instance Digraph.(instance at line 61) line 61 source
  6. def Digraph.homCount The number of homomorphisms from a digraph D to a digraph D' line 68 source

    Source documentation

    The number of homomorphisms from a digraph D to a digraph D'.

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Fintype, DecidableEq, Digraph, DecidableRel, Digraph.Adj, Nat

    Proof uses: Fintype.card, Digraph.Hom

    1 instances, coercions and auxiliary constants left out.

    noncomputable def homCount (D : Digraph V) (D' : Digraph W) [DecidableRel D.Adj] [DecidableRel D'.Adj] : ℕ :=
    …
  7. def Digraph.homDensity The homomorphism density $t_D(D')$ of a digraph $D$ in a digraph $D'$ line 75 source

    Source documentation

    The homomorphism density $t_D(D')$ of a digraph $D$ in a digraph $D'$. It is defined as #Hom(D, D') / |W|^{|V|}.

    standard axioms: Classical.choice, Quot.sound, propext what this means

    Statement uses: Fintype, DecidableEq, Digraph, DecidableRel, Digraph.Adj, Real

    Proof uses: HDiv.hDiv, Digraph.homCount, HPow.hPow, Nat, Fintype.card

    9 instances, coercions and auxiliary constants left out.

    noncomputable def homDensity (D : Digraph V) (D' : Digraph W)
        [DecidableRel D.Adj] [DecidableRel D'.Adj] : ℝ :=
    …