Statements
The fundamental unit of proof
Overview
A statement in Formall has the form expression -> expression. It asserts that within the current context, the left expression can be replaced by the right expression.
leftExpression -> rightExpressionleftExpression- What may be replaced.
rightExpression- What replaces it: wherever
leftExpressionoccurs, it can be rewritten torightExpression. A truth is a statement with a true value on the right:P -> ✔.
Basic examples
With if
Introduce statements as assumptions:
if statements
With prove
Derive statements by substitution:
prove statements
Note: outer angle brackets around f are NOT needed since f itself is not being substituted.
Statement Semantics
A statement A -> B means: in the current proof context, A can be replaced with B. This is not logical implication — it's closer to "evaluates to" or "equals". To express logical implication, use a function:
Equality vs Implication
Statement Sources
Statements can come from: if (assumptions), proofs <…> (derived by rewriting), calls T[…] (theorems and quantified facts applied to values; taking their blocks — lifted to universals, flipped assumptions), and axiom (conditional axioms).
Statement Visibility
Statements are visible inside the scope where they were created. When that scope closes, they are no longer accessible:
Statement scope
Chained Substitutions
With nested angle brackets, prove chains substitutions:
Chains
A -> B does not imply B -> A. To express bidirectional equality, you typically prove both directions separately.