Database
Types
Functions
def read_all (path : String | path ≠ "") (sql : String | sql ≠ "") : {r : Rows | row_count r ≥ 0}
def num_rows (r : Rows) : {n : Int | n = row_count r && n ≥ 0}
def is_empty (r : Rows) : {b : Bool | b = row_count r = 0}
def connect (path : String | path ≠ "") : Conn
def begin (1 c : Conn) : Txn
def execute (sql : String | sql ≠ "") (1 t : Txn) : Txn
def commit (1 t : Txn) : Conn
def rollback (1 t : Txn) : Conn
def close (1 c : Conn) : Unit
Uninterpreted
Functions declared as def f ... = uninterpreted: only their signature is known to the verifier; they have no body.
def row_count : (r : Rows) → Int