import Lait
#lait

-- Problem 1

def min (i : Int) (j : Int) : Int := ...

-- Problem 2

def sorted? (xs : List<Int>) : Bool := ...

-- Problem 3

type Tree := | Leaf (val : Int) | Node (left : Tree) (right : Tree)

def sum_tree (t : Tree) : Int :=  ...

-- Problem 4

def right_linear? (t : Tree) : Bool := ...

-- Problem 5

def dfs_list (t : Tree) : List<Int> := ...

-- Problem 6

def subst (t : Tree) (old : Int) (n : Int) : Tree := ...

-- Problem 7

def multi_subst (t : Tree) (m : Map<Int,Int>) : Tree := ...

-- Problem 8

def filter_false (xs : List<Int>) (f : Int -> Bool) : List<Int> := ...
