Documentation

HexGraphIso.Nauty.Sparse.Key

Compare sorted sparse rows: smaller degree wins, and with equal degrees the row containing the first differing vertex wins.

Equations
Instances For

    Canonical sparse storage supplies sorted rows without dense expansion.

    Equations
    Instances For

      A sparse leaf key, with a normalized sparse graph and its path codes. This type is distinct from the dense key and its adjacency-row ordering.

      Instances For
        def Hex.GraphIso.Nauty.Sparse.instDecidableEqKey.decEq {n✝ : Nat} (x✝ x✝¹ : Key n✝) :
        Decidable (x✝ = x✝¹)
        Equations
        Instances For

          Codes precede graph comparison; a terminal code uses codeSentinel.

          Equations
          Instances For
            @[simp]
            theorem Hex.GraphIso.Nauty.Sparse.Key.cmp_trans {n : Nat} {a b c : Key n} (hab : a.cmp b = Ordering.gt) (hbc : b.cmp c = Ordering.gt) :

            Non-strict comparison used in subtree coverage contracts.

            Equations
            Instances For
              theorem Hex.GraphIso.Nauty.Sparse.Key.le_trans {n : Nat} {a b c : Key n} (hab : a.Le b) (hbc : b.Le c) :
              a.Le c
              theorem Hex.GraphIso.Nauty.Sparse.Key.le_antisymm {n : Nat} {a b : Key n} (hab : a.Le b) (hba : b.Le a) :
              a = b

              Select the greater key, keeping the first argument on a tie.

              Equations
              Instances For
                theorem Hex.GraphIso.Nauty.Sparse.Key.max_mem {n : Nat} (a b : Key n) :
                a.max b = a ∨ a.max b = b
                theorem Hex.GraphIso.Nauty.Sparse.Key.max_le {n : Nat} {a b c : Key n} (ha : a.Le c) (hb : b.Le c) :
                (a.max b).Le c