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
        def SimpleGraph.Walk.pathGraphHomToSubgraph {V : Type u_3} {G : SimpleGraph V} {u v : V} (w : G.Walk u v) :

        The subgraph of a walk contains the path graph with the same number of vertices

        Equations
        Instances For
          def SimpleGraph.Walk.pathGraphHom {V : Type u_3} {G : SimpleGraph V} {u v : V} (w : G.Walk u v) :

          A walk induces a homomorphism from a path graph to the graph

          Equations
          Instances For
            def SimpleGraph.Walk.IsPath.pathGraphIsoToSubgraph {V : Type u_3} [DecidableEq V] {G : SimpleGraph V} {u v : V} {w : G.Walk u v} (hw : w.IsPath) :

            The subgraph of a path is isomorphic to the path graph with the same number of vertices

            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              def SimpleGraph.Walk.IsPath.pathGraphCopy {V : Type u_3} [DecidableEq V] {G : SimpleGraph V} {u v : V} {w : G.Walk u v} (hw : w.IsPath) :

              A path induces an injective homomorphism from a path graph to the graph

              Equations
              Instances For
                theorem SimpleGraph.Walk.IsPath.isContained_pathGraph {V : Type u_3} {G : SimpleGraph V} {u v : V} {w : G.Walk u v} (hw : w.IsPath) :