Documentation

Fad.«Chapter4-Ex»

Exercicio 4.5 #

Indexing the coordinates from zero, the positions are (0, 9), (5, 6), (7, 5), (9, 0)

def Chapter4.partition {α : Type} (p : αBool) :
List αList α × List α
Equations
Instances For
    def Chapter4.BST2.partition3 {a : Type u_1} [LT a] [DecidableRel fun (x1 x2 : a) => x1 < x2] [DecidableRel fun (x1 x2 : a) => x1 = x2] (y : a) (xs : List a) :
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      @[irreducible]
      def Chapter4.DSet.merge {a : Type u_1} [LT a] [DecidableEq a] [DecidableRel fun (x1 x2 : a) => x1 < x2] :
      List aList aList a
      Equations
      Instances For
        def Chapter4.DSet.union₁ {a : Type} [LT a] [DecidableRel fun (x1 x2 : a) => x1 < x2] (t₁ t₂ : Set a) :
        Set a
        Equations
        Instances For
          partial def Chapter4.DSet.frm {a : Type} [Inhabited a] (l r : Nat) (xa : Array a) :
          Set a
          def Chapter4.DSet.build {a : Type} [Inhabited a] [LT a] [DecidableRel fun (x1 x2 : a) => x1 < x2] (xs : List a) :
          Set a
          Equations
          Instances For
            def Chapter4.DSet.union₂ {a : Type} [Inhabited a] [LT a] [DecidableEq a] [DecidableRel fun (x1 x2 : a) => x1 < x2] (t₁ t₂ : Set a) :
            Set a
            Equations
            Instances For
              def Chapter4.DSet.pair {α β : Type} (f : αβ) (p : α × α) :
              β × β
              Equations
              Instances For
                def Chapter4.DSet.split₁ {α : Type} [LT α] [LE α] [DecidableRel fun (x1 x2 : α) => x1 < x2] [DecidableRel fun (x1 x2 : α) => x1 x2] (x : α) :
                Set αSet α × Set α
                Equations
                Instances For