Motivation: `Nat`, `Int`, `Fin`, `UInt??` are already in the top level namespace. We will eventually define `UInt??` and `Int??` using `BitVec`.
5 lines
159 B
Text
5 lines
159 B
Text
open BitVec
|
|
def f4 (v : BitVec 32) : Nat :=
|
|
match v with
|
|
| 10#20 ++ 0#12 => 0 -- Should be rejected since `++` does not have `[match_pattern]`
|
|
| _ => 1
|