Documentation

FormalRamsey.Encodings.CNF.RamseyEncoder

def List.all_pairs {α : Type} (l : List α) :
List (α × α)
Equations
Instances For
    def List.mem_of_mem_all_pairs {α : Type} {l : List α} {p : α × α} (h : p l.all_pairs) :
    p.1 l p.2 l
    Equations
    • =
    Instances For
      theorem List.all_pairs_sorted_of_sorted {α : Type} {l : List α} {R : ααProp} (h : Sorted R l) (p : α × α) :
      p l.all_pairsR p.1 p.2
      theorem List.all_pairs_neq_of_nodup {α : Type} {l : List α} (lnodup : l.Nodup) (p : α × α) :
      p l.all_pairsp.1 p.2
      theorem List.mem_all_pairs_iff_of_irrefl_of_antisymm_of_sorted {α : Type} {l : List α} {R : ααProp} [Rirrefl : IsIrrefl α R] [Ranti : IsAntisymm α R] (lsorted : Sorted R l) (p : α × α) :
      p l.all_pairs R p.1 p.2 p.1 l p.2 l
      theorem List.Sorted.antisymm_is_le_sorted_of_nodup_of_sorted {α : Type} {l : List α} {R : ααProp} [Ranti : IsAntisymm α R] (hnodup : l.Nodup) (hsorted : Sorted R l) {a b : Fin l.length} (hab : R l[a] l[b]) :
      a b
      theorem List.Sublist.sorted {α : Type} {l l' : List α} {R : ααProp} (sub : l'.Sublist l) :
      Sorted R lSorted R l'
      theorem triangular_monotone :
      Monotone fun (N : ) => N * (N - 1) / 2
      theorem triangular_next (n : ) :
      n * (n - 1) / 2 + n = (n + 1) * n / 2
      structure EdgeVar (N : ) :
      Instances For
        def decoder {N : } (idx : Fin (N * (N - 1) / 2)) :
        Equations
        • One or more equations did not get rendered due to their size.
        • decoder idx_2 = idx_2.elim0
        Instances For
          Equations
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              def main (argv : List String) :
              Equations
              Instances For