FormalConjecturesForMathlib/Combinatorics/Digraph/Tournament.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
7 declarations, 0 contain sorry, 0 declared as axioms
Imports (6)
Imported by 1 file
- def
Digraph.IsTournamentA tournament is a directed graph in which every pair of distinct vertices is connected by exactly one directed edge line 35 sourceSource 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:
DigraphProof uses:
And,Not,Digraph.Adj,Ne,Iffdef IsTournament (G : Digraph V) : Prop := …
- def
Digraph.IsOrientationAn orientation of an undirected simple graphHis a digraphDwhose edges are obtained by directing each edge ofHin exactly one direction line 42 sourceSource documentation
An orientation of an undirected simple graph
His a digraphDwhose edges are obtained by directing each edge ofHin exactly one direction.no axioms what this means
Statement uses:
Digraph,SimpleGraphProof uses:
And,Digraph.Adj,SimpleGraph.Adj,Iff,Notdef IsOrientation (D : Digraph V) (H : SimpleGraph V) : Prop := …
- structure
Digraph.HomThe type of digraph homomorphismsD →g D'line 52 sourceSource documentation
The type of digraph homomorphisms
D →g D'. A functionf : V → Wis a digraph homomorphism ifD.Adj u v → D'.Adj (f u) (f v). Note thatfis a general mapping and is not required to be injective.no axioms what this means
Statement uses:
DigraphTactic trace: 3 steps
Open to load the checked before-and-after goal states.
structure Hom (D : Digraph V) (D' : Digraph W) where …
- instance
Digraph.(instance at line 58)line 58 source - instance
Digraph.(instance at line 61)line 61 source - def
Digraph.homCountThe number of homomorphisms from a digraphDto a digraphD'line 68 sourceSource documentation
The number of homomorphisms from a digraph
Dto a digraphD'.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fintype,DecidableEq,Digraph,DecidableRel,Digraph.Adj,NatProof uses:
Fintype.card, Digraph.Hom1 instances, coercions and auxiliary constants left out.
noncomputable def homCount (D : Digraph V) (D' : Digraph W) [DecidableRel D.Adj] [DecidableRel D'.Adj] : ℕ := …
- def
Digraph.homDensityThe homomorphism density $t_D(D')$ of a digraph $D$ in a digraph $D'$ line 75 sourceSource 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,RealProof uses:
HDiv.hDiv, Digraph.homCount,HPow.hPow,Nat,Fintype.card9 instances, coercions and auxiliary constants left out.
noncomputable def homDensity (D : Digraph V) (D' : Digraph W) [DecidableRel D.Adj] [DecidableRel D'.Adj] : ℝ := …