std::formal
std::formal provides reusable Formal Silk theories (“standard lemmas”) used
by stdlib code and downstream verified code.
Full reference: formal.
Notes#
- Supported forms is available (initial theory set).
- Full reference: formal
Importing#
Theories are imported via file imports and applied with #theory:
import { nonnegative_i64, bounds_i64 } from "std/formal";
Examples#
Example: applying standard theories#
import { nonnegative_i64, bounds_i64 } from "std/formal";
#theory nonnegative_i64(len);
#theory bounds_i64(index, len);
fn get_at (index: i64, len: i64) -> i64 {
return index;
}
See also#
- Full reference: formal
- Formal verification: formal verification
Source repository · Edit this page · View Markdown