The Hasse diagram as a graph #
This file defines the Hasse diagram of an order (graph of CovBy
, the covering relation) and the
path graph on n
vertices.
Main declarations #
SimpleGraph.hasse
: Hasse diagram of an order.SimpleGraph.pathGraph
: Path graph onn
vertices.
The Hasse diagram of an order as a simple graph. The graph of the covering relation.
Equations
- SimpleGraph.hasse α = { Adj := fun (a b : α) => a ⋖ b ∨ b ⋖ a, symm := ⋯, loopless := ⋯ }
Instances For
@[simp]
theorem
SimpleGraph.hasse_adj
{α : Type u_1}
[Preorder α]
{a b : α}
:
(SimpleGraph.hasse α).Adj a b ↔ a ⋖ b ∨ b ⋖ a
αᵒᵈ
and α
have the same Hasse diagram.
Equations
- SimpleGraph.hasseDualIso = { toEquiv := OrderDual.ofDual, map_rel_iff' := ⋯ }
Instances For
@[simp]
theorem
SimpleGraph.hasseDualIso_symm_apply
{α : Type u_1}
[Preorder α]
(a : α)
:
SimpleGraph.hasseDualIso.symm a = OrderDual.toDual a
@[simp]
theorem
SimpleGraph.hasse_prod
(α : Type u_1)
(β : Type u_2)
[PartialOrder α]
[PartialOrder β]
:
SimpleGraph.hasse (α × β) = SimpleGraph.hasse α □ SimpleGraph.hasse β
theorem
SimpleGraph.hasse_preconnected_of_succ
(α : Type u_1)
[LinearOrder α]
[SuccOrder α]
[IsSuccArchimedean α]
:
(SimpleGraph.hasse α).Preconnected
theorem
SimpleGraph.hasse_preconnected_of_pred
(α : Type u_1)
[LinearOrder α]
[PredOrder α]
[IsPredArchimedean α]
:
(SimpleGraph.hasse α).Preconnected
The path graph on n
vertices.