Documentation

Fad.Chapter5

inductive Chapter5.Quicksort.Tree (a : Sort u_1) :
Sort (max 1 u_1)
Instances For
    @[irreducible]
    def Chapter5.Quicksort.mkTree {a : Type} [h₁ : LT a] [h₂ : DecidableRel fun (x1 x2 : a) => x1 < x2] :
    List aTree a
    Equations
    Instances For
      @[irreducible]
      def Chapter5.Quicksort.qsort₁ {a : Type} [h₁ : LT a] [h₂ : DecidableRel fun (x1 x2 : a) => x1 < x2] :
      List aList a
      Equations
      Instances For
        @[irreducible]
        def Chapter5.Quicksort.qsort₂ {a : Type} [Ord a] (f : aaOrdering) :
        List aList a
        Equations
        Instances For
          Instances For
            Equations
            • One or more equations did not get rendered due to their size.
            Instances For
              @[irreducible]
              def Chapter5.Mergesort.merge {a : Type} [LE a] [DecidableRel fun (x1 x2 : a) => x1 x2] :
              List aList aList a
              Equations
              Instances For
                Equations
                Instances For
                  Equations
                  Instances For
                    def Chapter5.Mergesort.twoStepInduction {a : Type} {P : List aProp} (empty : P []) (single : ∀ (as : List a), as.length = 1P as) (more : ∀ (a_1 b : a) (as : List a), P asP (a_1 :: b :: as)) (as : List a) :
                    P as
                    Equations
                    • =
                    Instances For
                      theorem Chapter5.Mergesort.length_halve_fst {α✝ : Type} {xs : List α✝} :
                      (halve xs).1.length = xs.length / 2
                      theorem Chapter5.Mergesort.length_halve_snd {α✝ : Type} {xs : List α✝} :
                      (halve xs).2.length = (xs.length + 1) / 2
                      @[irreducible]
                      Equations
                      Instances For
                        @[irreducible]
                        def Chapter5.Mergesort.msort₁ {a : Type} [LE a] [DecidableRel fun (x1 x2 : a) => x1 x2] :
                        List aList a
                        Equations
                        Instances For
                          @[irreducible]
                          def Chapter5.Mergesort.mkPair {a : Type} [Inhabited a] (n : ) (xs : List a) :
                          Equations
                          • One or more equations did not get rendered due to their size.
                          Instances For
                            Equations
                            Instances For
                              def Chapter5.Mergesort.msort₅ {a : Type} [LE a] [DecidableRel fun (x1 x2 : a) => x1 x2] :
                              List aList a
                              Equations
                              Instances For
                                Instances For
                                  Equations
                                  Instances For
                                    def Chapter5.Bucketsort.ordered {α β : Type} [BEq β] [LT β] [DecidableRel fun (x1 x2 : β) => x1 < x2] :
                                    List (αβ)ααBool
                                    Equations
                                    Instances For
                                      Instances For
                                        partial def Chapter5.Bucketsort.instReprTree.repr {α✝ : Type} [Repr α✝] :
                                        Tree α✝Std.Format
                                        def Chapter5.Bucketsort.ptn₀ {α β : Type} [BEq β] (rng : List β) (f : αβ) (xs : List α) :
                                        List (List α)
                                        Equations
                                        Instances For
                                          def Chapter5.Bucketsort.bsort₀ {α β : Type} [BEq β] (rng : List β) (ds : List (αβ)) (xs : List α) :
                                          List α
                                          Equations
                                          Instances For
                                            def Chapter5.Bucketsort.bsort₁ {α β : Type} [BEq β] (rng : List β) :
                                            List (αβ)List αList α
                                            Equations
                                            Instances For
                                              def Chapter5.Bucketsort.rsort₀ {α β : Type} [BEq β] (rng : List β) :
                                              List (αβ)List αList α
                                              Equations
                                              Instances For
                                                def Chapter5.Bucketsort.ptn₁ {a b : Type} (bnds : b × b) [Chapter3.Ix b] [BEq b] (d : ab) (xs : List a) :
                                                Equations
                                                Instances For
                                                  def Chapter5.SortingSums.sortsums₀ {a : Type} [Ord a] [Add a] (xs ys : List a) :
                                                  Equations
                                                  Instances For
                                                    @[reducible, inline]
                                                    Equations
                                                    Instances For
                                                      def Chapter5.SortingSums.subs {a : Type} [Sub a] (xs ys : List (a × Label)) :
                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        Equations
                                                        Instances For
                                                          def Chapter5.SortingSums.sortWith {a : Type} [Ord a] [Sub a] (abs : List (a × Pair)) (xis yis : List (a × Label)) :
                                                          Equations
                                                          • One or more equations did not get rendered due to their size.
                                                          Instances For
                                                            def Chapter5.SortingSums.sortsubs₁ {a : Type} [Ord a] [Sub a] [Neg a] [OfNat a 0] [LE a] [DecidableRel fun (x1 x2 : a) => x1 x2] :
                                                            List (a × Label)List (a × Pair)
                                                            Equations
                                                            Instances For
                                                              def Chapter5.SortingSums.sortsubs {a : Type} [Ord a] [Sub a] [Neg a] [OfNat a 0] [LE a] [DecidableRel fun (x1 x2 : a) => x1 x2] (xs ys : List a) :
                                                              Equations
                                                              • One or more equations did not get rendered due to their size.
                                                              Instances For
                                                                def Chapter5.SortingSums.sortsums₁ {a : Type} [Ord a] [Sub a] [Neg a] [OfNat a 0] [LE a] [DecidableRel fun (x1 x2 : a) => x1 x2] (xs ys : List a) :
                                                                Equations
                                                                Instances For