Documentation

FraudProof.DataStructures.MTree

@[reducible, inline]
abbrev MTree (ℍ : Type) :
Equations
Instances For
    def comb_MTree {ℍ : Type} [m : HashMagma ℍ] :
    MTree ℍ → MTree ℍ → MTree ℍ
    Equations
    Instances For
      def BTree.hash_BTree {α ℍ : Type} [o : Hash α ℍ] [HashMagma ℍ] :
      BTree α → MTree ℍ
      Equations
      Instances For
        def ABTree.hash_Tree {α ℍ : Type} [o : Hash α ℍ] [m : HashMagma ℍ] :
        BTree α → ABTree α ℍ
        Equations
        Instances For
          def ABTree.hash_SubTree {α ℍ : Type} [o : Hash α ℍ] [m : HashMagma ℍ] :
          BTree α → ABTree α (ℍ × ℍ)
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            structure MkData (ℍ : Type) :
            • top : ℍ
            • left : ℍ
            • right : ℍ
            Instances For
              def ABTree.merkle_root {α ℍ : Type} [o : Hash α ℍ] :
              ABTree α (MkData ℍ) → ℍ
              Equations
              Instances For
                def ABTree.hash_MKSubts {α ℍ : Type} [Hash α ℍ] [m : HashMagma ℍ] :
                BTree α → ABTree α (MkData ℍ)
                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  def hashM {α ℍ : Type} {m : Type → Type} [Monad m] (hL : α → m ℍ) (hC : ℍ → ℍ → m ℍ) (t : BTree α) :
                  m (MTree ℍ)
                  Equations
                  Instances For
                    inductive SkElem :
                    Instances For
                      Equations
                      def SkElem.destruct {α : Type} (s : SkElem) (l r : α) :
                      α
                      Equations
                      Instances For
                        @[reducible, inline]
                        abbrev Skeleton :
                        Equations
                        Instances For
                          @[reducible, inline]
                          abbrev ISkeleton (n : ℕ) :
                          Equations
                          Instances For
                            def ABTree.find_left {α β : Type} (is : α → Bool) :
                            ABTree α β → Option (List (SkElem × (α ⊕ β)))
                            Equations
                            Instances For
                              def ABTree.gen_path_elem_forward {α β γ : Type} {n : ℕ} (t : ABTree α β) (ag : α → γ) (bg : β → γ) (p : Sequence n SkElem) :
                              Option (α × Sequence n (γ × γ))
                              Equations
                              Instances For
                                def op_side {ℍ : Type} [mag : HashMagma ℍ] (side : SkElem) (a b : ℍ) :
                                ℍ
                                Equations
                                Instances For
                                  theorem opHash_neqRight {ℍ : Type} [HashMagma ℍ] [lHStr : SLawFulHash ℍ] {hl hr pl pr : ℍ} :
                                  theorem opHash_neqLeft {ℍ : Type} [HashMagma ℍ] [lHStr : SLawFulHash ℍ] {hl hr pl pr : ℍ} :
                                  def listPathHashes {ℍ : Type} [HashMagma ℍ] (h : ℍ) (path : List (SkElem × ℍ)) :
                                  ℍ
                                  Equations
                                  Instances For
                                    def nodeIn {ℍ : Type} [BEq ℍ] [HashMagma ℍ] (h : ℍ) (path : List (SkElem × ℍ)) (t : MTree ℍ) :
                                    Equations
                                    Instances For
                                      def containCompute {α ℍ : Type} [BEq ℍ] [o : Hash α ℍ] [HashMagma ℍ] (v : α) (path : List (SkElem × ℍ)) (t : MTree ℍ) :
                                      Equations
                                      Instances For
                                        theorem leftChildContaintionN {α ℍ : Type} [BEq ℍ] [LawfulBEq ℍ] [Hash α ℍ] [HashMagma ℍ] (v : α) (h : ℍ) (btR broot : BTree α) :
                                        theorem rightChildContaintionN {α ℍ : Type} [BEq ℍ] [LawfulBEq ℍ] [Hash α ℍ] [HashMagma ℍ] (v : α) (h : ℍ) (btL broot : BTree α) :
                                        theorem leafChildContaintionN {α ℍ : Type} [BEq ℍ] [LawfulBEq ℍ] [Hash α ℍ] [HashMagma ℍ] (v : α) (broot : BTree α) :