Documentation

Mathlib.Combinatorics.SimpleGraph.Hasse

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 #

def SimpleGraph.hasse (α : Type u_1) [Preorder α] :

The Hasse diagram of an order as a simple graph. The graph of the covering relation.

Equations
Instances For
    @[simp]
    theorem SimpleGraph.hasse_adj {α : Type u_1} [Preorder α] {a b : α} :
    (hasse α).Adj a b ↔ a ⋖ b ∨ b ⋖ a

    αᵒᵈ and α have the same Hasse diagram.

    Equations
    Instances For
      @[simp]
      theorem SimpleGraph.hasse_prod (α : Type u_1) (β : Type u_2) [PartialOrder α] [PartialOrder β] :
      hasse (α × β) = hasse α □ hasse β

      The path graph on n vertices.

      Equations
      Instances For
        theorem SimpleGraph.pathGraph_adj {n : ℕ} {u v : Fin n} :
        (pathGraph n).Adj u v ↔ ↑u + 1 = ↑v ∨ ↑v + 1 = ↑u