summaryrefslogtreecommitdiff
path: root/tests/lean/Betree/FunsExternal.lean
blob: 859cbd689d9c6cc5210597f17e28d5c149693dfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-- [betree]: external functions.
import Base
import Betree.Types
open Primitives
open betree

-- TODO: fill those bodies

/- [betree::betree_utils::load_internal_node] -/
def betree_utils.load_internal_node
  :
  U64  State  Result (State × (betree.List (U64 × betree.Message))) :=
  fun _ _ => .fail .panic

/- [betree::betree_utils::store_internal_node] -/
def betree_utils.store_internal_node
  :
  U64  betree.List (U64 × betree.Message)  State  Result (State
    × Unit) :=
  fun _ _ _ => .fail .panic

/- [betree::betree_utils::load_leaf_node] -/
def betree_utils.load_leaf_node
  : U64  State  Result (State × (betree.List (U64 × U64))) :=
  fun _ _ => .fail .panic

/- [betree::betree_utils::store_leaf_node] -/
def betree_utils.store_leaf_node
  : U64  betree.List (U64 × U64)  State  Result (State × Unit) :=
  fun _ _ _ => .fail .panic