import Base def total(xs: List) -> Nat: match xs: case Nil{}: 0n case Con{h, t}: Nat.add(h, total(t))