Conceptcore
Formal semantics
Also called formal semantics, semantics of programming languages, operational semantics, small-step semantics, big-step semantics, structural operational semantics, denotational semantics, axiomatic semantics, Hoare logic, weakest precondition, abstract machine.
A formal semantics gives programs an exact meaning in mathematics: as steps of a machine, as functions, or as rules for proofs. Tools use it to prove facts about programs.
- Applies to
- core-languages
Idea
A formal semantics states the meaning of every program of a language in mathematics, so that the meaning does not depend on a reader's guess or on one compiler. A grammar says which programs are well formed; the semantics says what each one does. There are three main styles. Operational semantics describes the steps of an abstract machine that runs the program. Denotational semantics maps each program to a mathematical object, such as a function from states to states. Axiomatic semantics gives rules for proving facts about a program, such as Hoare triples. Each style suits a different use, and for a well-defined language all three agree.
# A tiny language: x := e | s ; s | while e do s, with e = n | x | e op e
PROG = ("seq", ("set", "y", 1),
("while", (">", "x", 1),
("seq", ("set", "y", ("*", "y", "x")), ("set", "x", ("-", "x", 1)))))
OPS = {"+": lambda a, b: a + b, "-": lambda a, b: a - b,
"*": lambda a, b: a * b, ">": lambda a, b: int(a > b)}
def ev(e, env): # the value of an expression in an environment
if isinstance(e, int):
return e
if isinstance(e, str):
return env[e]
return OPS[e[0]](ev(e[1], env), ev(e[2], env))
def big(s, env): # big-step: a statement maps a state to its final state
if s[0] == "set":
return {**env, s[1]: ev(s[2], env)}
if s[0] == "seq":
return big(s[2], big(s[1], env))
while ev(s[1], env):
env = big(s[2], env)
return env
def step(s, env): # small-step: one rule rewrites a configuration once
if s[0] == "set":
return None, {**env, s[1]: ev(s[2], env)}
if s[0] == "seq":
rest, env = step(s[1], env)
return (s[2] if rest is None else ("seq", rest, s[2])), env
if ev(s[1], env): # while e do b -> b ; while e do b
return ("seq", s[2], s), env
return None, env
def den(s): # denotational: the meaning of a statement is a function
if s[0] == "set":
return lambda env: {**env, s[1]: ev(s[2], env)}
if s[0] == "seq":
f, g = den(s[1]), den(s[2])
return lambda env: g(f(env))
body = den(s[2])
def loop(env): # the least fixed point, unrolled on demand
return loop(body(env)) if ev(s[1], env) else env
return loop
start = {"x": 5}
print("big-step: ", big(PROG, start))
config, steps = (PROG, start), 0
while config[0] is not None:
config, steps = step(*config), steps + 1
print("small-step: ", config[1], f"after {steps} steps")
print("denotational: ", den(PROG)(start))
big-step: {'x': 1, 'y': 120}
small-step: {'x': 1, 'y': 120} after 14 steps
denotational: {'x': 1, 'y': 120}
The program defines a small language of assignments, sequences and while loops, and gives it three semantics. big relates a statement and a state directly to the final state. step rewrites a configuration, a statement and a state, one rule at a time, and needs 14 steps for the factorial of 5. den turns each statement into a Python function, built only from the functions of its parts. All three give y = 120, which is what agreement between semantics means.
How it works
Operational semantics. An operational semantics gives rules that say how a program runs. Small-step rules rewrite a configuration, a program and its state, into the next configuration, as step does. The WebAssembly specification works this way: "A configuration is a syntactic description of a program state. Each rule specifies one step of execution."1 Big-step rules, also called natural semantics, relate a program and a start state directly to a final value or state, as big does. Gordon Plotkin set out the structural style, with one rule for each form of syntax, and its aim: "It is the purpose of these notes to develop a simple and direct method for specifying the semantics of programming languages."2 A tree-walking interpreter is close to a big-step semantics written as code.
Denotational semantics. A denotational semantics maps each phrase of a program to a mathematical object, its denotation, and the denotation of a compound phrase comes only from the denotations of its parts. This property, compositionality, lets a reader reason about one part at a time. Statements denote functions from states to states, and a sequence denotes the composition of two functions. Loops and recursion need a fixed point: the meaning of while is the least function that satisfies its unrolling equation, and domain theory, from Dana Scott, shows that such a function exists.
Axiomatic semantics. An axiomatic semantics defines a language by the facts that can be proved about its programs. A Hoare triple {P} S {Q} states that if P is true before S runs and S ends, then Q is true after it. Each construct has a rule. The assignment rule says that {Q[x := e]} x = e {Q}, where Q[x := e] is Q with e in place of x. The loop rule uses an invariant, a condition that each pass of the body keeps true. Edsger Dijkstra's weakest precondition computes the most general P for a given S and Q, as the Python example does. These rules are the basis of assertions, contracts and program verifiers.
English specifications. Most language standards are written in English, not mathematics, and they leave gaps. The Python reference says so: "While I am trying to be as precise as possible, I chose to use English rather than formal specifications for everything except syntax and lexical analysis. This should make the document more understandable to the average reader, but will leave room for ambiguities."3 Other standards use precise English to close the gaps. The Java specification states that "the operands of operators appear to be evaluated in a specific evaluation order, namely, from left to right",4 where C leaves the order unspecified. See order of evaluation.
Undefined behavior and the abstract machine. The C and C++ standards define a program by its effect on an abstract machine, and they mark some operations, such as signed overflow, as undefined behavior, for which the standard sets no rules. A compiler may assume that undefined behavior never happens. During constant evaluation the compiler must detect it instead, and cppreference lists std::numeric_limits<int>::max() + 1 as an error for this reason.5
What a formal semantics gives. A formal definition makes a standard exact, so that independent implementations agree. WebAssembly was designed to be "Well-defined: fully and precisely defines valid programs and their behavior in a way that is easy to reason about informally and formally."6 A semantics also states what a correct compiler must preserve. CompCert, a C compiler, comes with "a mathematical, machine-checked proof that the generated executable code behaves exactly as prescribed by the semantics of the source program".7 Type systems use the semantics to state soundness: a well-typed program does not get stuck in the operational rules.
In languages
| Language | Verdict | Note |
|---|---|---|
| Python | Absent | |
| C++ | Absent | |
| Java | Absent | |
| C | Absent | |
| C# | Absent | |
| JavaScript | Absent | |
| TypeScript | Absent | TypeScript has no specification of its own today; its type system is defined by the compiler, and its run-time meaning is that of JavaScript. |
| Go | Absent | |
| Rust | Absent | |
| Kotlin | Absent | The Kotlin specification is written in English; no example file because kotlinc is not installed on the machine that recorded the examples. |
| SQL | Absent | The SQL standard is written in English; research has given formal semantics to its core, including the treatment of NULL. |
| Bash | Absent | POSIX defines the shell language in English, and research such as Smoosh gives it an executable formal semantics. |
| PowerShell | Absent | The PowerShell language specification is written in English, and the implementation defines the details. |
| HTML | Does not apply | The HTML standard defines parsing with precise algorithms in English, but markup has no execution to give a meaning to. |
| CSS | Does not apply | The CSS specifications define the cascade and layout in English and pseudo-code. |
| Regular expressions | Absent | Regular expressions in theory have an exact meaning as sets of strings, but each engine defines its own extensions in English. |
| Language | Verdict | Mechanism |
|---|---|---|
| Python | absent | the reference in English; CPython as the reference implementation |
| JavaScript | absent | step-by-step algorithms in English; research semantics |
| TypeScript | absent | defined by the compiler; JavaScript at run time |
| Java | absent | the JLS in English; a formal memory model |
| Kotlin | absent | the Kotlin specification in English |
| C# | absent | ECMA-334 in English |
| Go | absent | a short specification in English; a memory model |
| Rust | absent | the Rust Reference in English; MiniRust and Miri |
| C | absent | an abstract machine in English; CompCert and K semantics |
| C++ | absent | an abstract machine in English; constant evaluation |
| Bash | absent | POSIX in English; the Smoosh research semantics |
| PowerShell | absent | a specification in English |
| SQL | absent | the standard in English; research semantics |
| Regex | absent | exact in theory; engines specified in English |
| HTML | n/a | parsing algorithms, but no execution |
| CSS | n/a | the cascade and layout, specified in English |
No core language of this site has an official, complete formal semantics, so every general-purpose language is absent. The languages that do have one are mostly outside the core set: Standard ML was defined formally in 1990, and WebAssembly has a formal specification that the official reference interpreter follows. For the core languages, formal semantics come from research, such as KJS for JavaScript, K-Java, the semantics of C in CompCert and the K framework, and RustBelt for parts of Rust, and they often find bugs in the English standards.
The example files show the three styles and the gaps they close. The Rust file is a big-step interpreter, the C# file builds the denotation of an expression as a function, and the Python and Go files apply Hoare logic. The JavaScript file follows an algorithm of the ECMAScript specification step by step. The Java and C files contrast a language that defines the order of evaluation and overflow with one that leaves them open, and the C++ fails block shows the compiler rejecting undefined behavior during constant evaluation.
import ast
import copy
import itertools
class Subst(ast.NodeTransformer): # replace a variable by an expression
def __init__(self, name, expr):
self.name, self.expr = name, expr
def visit_Name(self, node):
return copy.deepcopy(self.expr) if node.id == self.name else node
def wp(program, post): # Hoare's assignment rule, applied from the last line up
cond = ast.parse(post, mode="eval").body
for line in reversed(program):
target, value = line.split(" = ")
cond = Subst(target, ast.parse(value, mode="eval").body).visit(cond)
return ast.unparse(cond)
swap = ["x = x + y", "y = x - y", "x = x - y"]
pre = wp(swap, "x == B and y == A")
print("{", pre, "}")
print("; ".join(swap))
print("{ x == B and y == A }")
same = all(eval(pre, {"x": a, "y": b, "A": a, "B": b})
for a, b in itertools.product(range(-3, 4), repeat=2))
print("the precondition holds whenever x == A and y == B:", same)
{ x + y - (x + y - y) == B and x + y - y == A }
x = x + y; y = x - y; x = x - y
{ x == B and y == A }
the precondition holds whenever x == A and y == B: True
- Verdict: absent. Python has no formal semantics; its reference manual is written in English, and CPython is the reference implementation. The example applies the assignment rule of Hoare logic with the
astmodule: to find what must be true beforex = e, replacexbyein the condition that must be true after it. Applied from the last line of a swap without a temporary variable, the rule gives a precondition that simplifies toy == B and x == A, and the program checks this on 49 pairs of values.
#include <iostream>
// The compiler runs constexpr functions on its model of the abstract machine.
constexpr long factorial(int n) {
long r = 1;
for (int i = 2; i <= n; ++i) r *= i;
return r;
}
constexpr int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); }
static_assert(factorial(5) == 120);
static_assert(gcd(1071, 462) == 21);
int main() {
constexpr long f20 = factorial(20); // computed at compile time
std::cout << "20! = " << f20 << '\n';
std::cout << "gcd(1071, 462) = " << gcd(1071, 462) << '\n';
}
20! = 2432902008176640000
gcd(1071, 462) = 21
This code does not compile, on purpose.
#include <limits>
constexpr int next(int n) { return n + 1; }
// Signed overflow is undefined behavior, and undefined behavior is not
// allowed in a constant expression, so the compiler rejects this line.
constexpr int big = next(std::numeric_limits<int>::max());
int main() { return big; }
- Verdict: absent. The C++ standard, like C's, is written in English and defines programs by an abstract machine. Constant evaluation makes the compiler an interpreter of that machine: it runs
constexprfunctions at compile time, andstatic_assertchecks their results before the program exists. - The fails block calls a
constexprfunction that overflows a signedint. At run time this is undefined behavior that the compiler need not detect. In a constant expression, undefined behavior is not allowed, so the compiler must reject the program, and Clang reports the value that does not fit.
public class Main {
static int trace(String name, int value) {
System.out.print(name + " ");
return value;
}
public static void main(String[] args) {
// The JLS fixes the order: operands are evaluated from left to right.
int r = trace("a", 1) + trace("b", 2) * trace("c", 3);
System.out.println("= " + r);
int i = 1;
i = i++ + ++i; // defined in Java: 1 + 3
System.out.println("i = " + i);
// Overflow wraps, and division truncates toward zero.
System.out.println(Integer.MAX_VALUE + 1 == Integer.MIN_VALUE);
System.out.println((-7 / 2) + " " + (-7 % 2));
}
}
a b c = 7
i = 4
true
-3 -1
- Verdict: absent. The Java Language Specification is written in English, but it leaves little open: it fixes the order of evaluation, the result of overflow and the rounding of division, and the Java memory model gives a formal semantics for threads. So
i = i++ + ++ihas one result, 4, on every JVM, andInteger.MAX_VALUE + 1isInteger.MIN_VALUE. The same lines in C have no defined meaning.
#include <limits.h>
#include <stdio.h>
int main(void) {
/* Defined by the standard: division truncates toward zero. */
printf("defined: -7 / 2 = %d, -7 %% 2 = %d\n", -7 / 2, -7 % 2);
/* Defined: unsigned arithmetic wraps modulo 2 to the width. */
printf("defined: UINT_MAX + 1u = %u\n", UINT_MAX + 1u);
/* Implementation-defined: each compiler documents its choice. */
printf("implementation-defined: sizeof(int) = %zu, CHAR_MIN = %d\n", sizeof(int), CHAR_MIN);
printf("implementation-defined: -8 >> 1 = %d\n", -8 >> 1);
/* Undefined: INT_MAX + 1 has no meaning, so test before the addition. */
int a = INT_MAX, b = 1;
printf("undefined, so tested: INT_MAX + 1 overflows: %s\n", b > 0 && a > INT_MAX - b ? "yes" : "no");
return 0;
}
defined: -7 / 2 = -3, -7 % 2 = -1
defined: UINT_MAX + 1u = 0
implementation-defined: sizeof(int) = 4, CHAR_MIN = -128
implementation-defined: -8 >> 1 = -4
undefined, so tested: INT_MAX + 1 overflows: yes
- Verdict: absent. The C standard is written in English and defines programs by an abstract machine. It sorts behavior into four kinds: defined; implementation-defined, where each compiler documents its choice; unspecified, where the compiler can choose without saying; and undefined, where the standard puts no limit on what happens. The output shows defined and implementation-defined results, and tests for signed overflow before the addition, because the addition itself would be undefined. CompCert and the K framework give C formal semantics.
using System;
using System.Collections.Generic;
// Denotational style: the meaning of each expression is a function from an
// environment to a value, built once from the syntax tree.
static Func<Dictionary<string, int>, int> Meaning(Expr e) => e switch
{
Num n => _ => n.Value,
Var v => env => env[v.Name],
Add a => Combine(Meaning(a.Left), Meaning(a.Right), (x, y) => x + y),
Mul m => Combine(Meaning(m.Left), Meaning(m.Right), (x, y) => x * y),
_ => throw new ArgumentException("unknown expression"),
};
static Func<Dictionary<string, int>, int> Combine(
Func<Dictionary<string, int>, int> f, Func<Dictionary<string, int>, int> g, Func<int, int, int> op)
=> env => op(f(env), g(env));
// 2 * x + y, as a tree
Expr tree = new Add(new Mul(new Num(2), new Var("x")), new Var("y"));
var meaning = Meaning(tree);
foreach (var (x, y) in new[] { (1, 1), (5, 0), (10, -3) })
{
Console.WriteLine($"x={x,-3} y={y,-3} 2 * x + y = {meaning(new() { ["x"] = x, ["y"] = y })}");
}
abstract record Expr;
record Num(int Value) : Expr;
record Var(string Name) : Expr;
record Add(Expr Left, Expr Right) : Expr;
record Mul(Expr Left, Expr Right) : Expr;
x=1 y=1 2 * x + y = 3
x=5 y=0 2 * x + y = 10
x=10 y=-3 2 * x + y = 17
- Verdict: absent. The C# specification, standardized as ECMA-334, is written in English. The example follows the denotational method:
Meaningmaps each node of the syntax tree to a function from an environment to a value, and the meaning of a compound expression is built only from the meanings of its parts. The tree is turned into a function once, and the function then runs on each environment.
// IsLooselyEqual from the ECMAScript specification, for primitive values.
function looselyEqual(x, y) {
if (typeof x === typeof y) return x === y; // step 1: same type, strict equality
if (x == null && y == null) return true; // steps 2 and 3: null and undefined
if (typeof x === "number" && typeof y === "string") return x === Number(y); // step 5
if (typeof x === "string" && typeof y === "number") return Number(x) === y; // step 6
if (typeof x === "boolean") return looselyEqual(Number(x), y); // step 9
if (typeof y === "boolean") return looselyEqual(x, Number(y)); // step 10
return false; // step 14
}
const values = [null, undefined, 0, 1, "", "0", "1", "a", false, true, NaN];
const show = (v) => (typeof v === "string" ? JSON.stringify(v) : String(v));
let pairs = 0, agree = 0;
const equal = [];
for (const a of values) {
for (const b of values) {
pairs++;
if (looselyEqual(a, b) === (a == b)) agree++;
if (looselyEqual(a, b) && a !== b && show(a) < show(b)) equal.push(`${show(a)} == ${show(b)}`);
}
}
console.log(`${agree} of ${pairs} pairs agree with ==`);
console.log(equal.join(", "));
121 of 121 pairs agree with ==
null == undefined, 0 == false, 1 == true, "" == 0, "" == false, "0" == 0, "0" == false, "1" == 1, "1" == true
- Verdict: absent. The ECMAScript specification defines each operation as a numbered algorithm in precise English, which is an operational semantics in prose, and research groups have turned it into formal and executable semantics. The example writes the steps of the algorithm
IsLooselyEqualfor primitive values as a function and compares it with==on all 121 pairs of eleven values. The two agree on every pair, and the list shows the pairs that==makes equal even though their types differ.
package main
import "fmt"
// Integer division by repeated subtraction, with its Hoare-logic annotations
// checked at run time.
func divide(n, d int) (q, r int) {
// precondition: n >= 0 && d > 0
q, r = 0, n
for r >= d {
invariant(n, d, q, r)
q, r = q+1, r-d
}
invariant(n, d, q, r)
// postcondition: the invariant holds and r < d
if r >= d {
panic("postcondition fails")
}
return q, r
}
func invariant(n, d, q, r int) {
ok := q*d+r == n && r >= 0
fmt.Printf(" q=%d r=%-2d q*d+r == n: %v\n", q, r, ok)
if !ok {
panic("invariant fails")
}
}
func main() {
q, r := divide(17, 5)
fmt.Println("17 / 5 =", q, "remainder", r)
}
q=0 r=17 q*d+r == n: true
q=1 r=12 q*d+r == n: true
q=2 r=7 q*d+r == n: true
q=3 r=2 q*d+r == n: true
17 / 5 = 3 remainder 2
- Verdict: absent. The Go specification is a short document in English, with a separate memory model for concurrent programs. The example writes the annotations of Hoare logic for division by repeated subtraction as checks: the invariant
q*d+r == n && r >= 0holds before the loop and after each pass, and when the loop exits,r < dalso holds. Together they prove thatqandrare the quotient and the remainder. Tools such as Gobra check such annotations before the program runs.
use std::collections::HashMap;
// Big-step semantics: each statement maps a state to its final state.
enum Expr {
Num(i64),
Var(&'static str),
Bin(char, Box<Expr>, Box<Expr>),
}
enum Stmt {
Set(&'static str, Expr),
Seq(Vec<Stmt>),
While(Expr, Box<Stmt>),
}
type State = HashMap<&'static str, i64>;
fn eval(e: &Expr, s: &State) -> i64 {
match e {
Expr::Num(n) => *n,
Expr::Var(x) => s[x],
Expr::Bin(op, a, b) => {
let (x, y) = (eval(a, s), eval(b, s));
match op {
'+' => x + y,
'-' => x - y,
'*' => x * y,
'%' => x % y,
_ => (x != y) as i64,
}
}
}
}
fn exec(st: &Stmt, mut s: State) -> State {
match st {
Stmt::Set(x, e) => {
let v = eval(e, &s);
s.insert(x, v);
s
}
Stmt::Seq(list) => list.iter().fold(s, |s, st| exec(st, s)),
Stmt::While(cond, body) => {
while eval(cond, &s) != 0 {
s = exec(body, s);
}
s
}
}
}
fn bin(op: char, a: Expr, b: Expr) -> Expr {
Expr::Bin(op, Box::new(a), Box::new(b))
}
fn main() {
use Expr::{Num, Var};
// while b != 0 { t := b; b := a % b; a := t }
let gcd = Stmt::While(
bin('!', Var("b"), Num(0)),
Box::new(Stmt::Seq(vec![
Stmt::Set("t", Var("b")),
Stmt::Set("b", bin('%', Var("a"), Var("b"))),
Stmt::Set("a", Var("t")),
])),
);
for (a, b) in [(1071, 462), (17, 5), (12, 18)] {
let end = exec(&gcd, State::from([("a", a), ("b", b)]));
println!("gcd({a}, {b}) = {}", end["a"]);
}
}
gcd(1071, 462) = 21
gcd(17, 5) = 1
gcd(12, 18) = 6
- Verdict: absent. Rust has no complete formal semantics yet; the Rust Reference is written in English, and research projects such as RustBelt and the MiniRust model, with the Miri interpreter that detects undefined behavior, describe parts of it formally. The example is a big-step semantics for a small language:
exectakes a statement and a state and returns the final state, with onematcharm for each rule. The enums are the syntax, and the program runs Euclid's algorithm written in that syntax.
Variations and related ideas
- Reduction semantics. A small-step style that splits each configuration into an evaluation context and a redex, the part that the next rule rewrites. PLT Redex runs such definitions.
- Abstract machines. The SECD and CEK machines define the steps of functional programs with explicit stacks and environments, close to a real implementation.
- Executable semantics. The K framework and PLT Redex turn a formal definition into an interpreter, so the semantics can run test suites.
- Separation logic. An extension of Hoare logic for programs with pointers, in which a condition owns a part of the heap. Verifiers such as VeriFast, Viper and Iris use it.
- Game and trace semantics. Denotational models that describe a program by its interactions with its context, used for concurrency and higher-order code.
- Memory models. Formal rules for what values a read can see in a concurrent program, as in the memory models of Java, C, C++ and Go.
- Type soundness. The theorem that well-typed programs do not get stuck, proved by progress and preservation over an operational semantics.
Pitfalls
- Taking one compiler as the definition. A program that works on one compiler can depend on behavior that the standard leaves open. Read the standard, and test with more than one implementation.
- Undefined behavior that appears to work. In C and C++ a program with undefined behavior can give the expected output today and a different output with the next compiler or a higher optimization level. Use sanitizers, and Miri for unsafe Rust.
- Confusing unspecified with implementation-defined. An implementation-defined result is documented and stable; an unspecified one, such as the order of evaluation of arguments in C, can change from call to call.
- Partial correctness. A Hoare triple says nothing about programs that do not end, so a proof of
{P} S {Q}does not prove thatSstops. Prove termination with a measure that decreases on each pass of each loop. - Semantics of the model, not the machine. A formal model often leaves out overflow, memory limits or concurrency. A proof holds only for what the model covers.
Cost
A formal semantics costs nothing at run time; its cost is the effort to write it and to keep it true to the language. Small languages, such as the cores used in research, have short definitions, but the full semantics of a language such as C or JavaScript runs to thousands of rules. Executable semantics run programs much more slowly than a real implementation, so they serve for tests and for deciding disputes, not for production. Proofs about real programs with Hoare logic or separation logic take much more effort than writing the program, and verified projects such as CompCert and seL4 took years of work.
History
Robert W. Floyd gave the first method for proving programs with assertions on flowcharts in 1967, and Tony Hoare turned it into a logic of triples for programs in 1969. Christopher Strachey and Dana Scott developed denotational semantics from 1969, and Scott's domain theory gave meaning to recursion and loops. Peter Landin described the SECD machine for functional languages in 1964, and the Vienna Definition Language at IBM gave PL/I an operational semantics in the late 1960s. Edsger Dijkstra introduced weakest preconditions in 1975.
Gordon Plotkin wrote his notes on structural operational semantics in 1981,2 and Gilles Kahn proposed natural semantics in 1987. Robin Milner, Mads Tofte and Robert Harper published the formal definition of Standard ML in 1990. Xavier Leroy's CompCert, from 2005, proved a C compiler correct against a formal semantics.7 WebAssembly, from 2017, was the first widely used language whose standard includes a formal semantics.6
References
- Conventions, Execution, WebAssembly Specification, Formal notation
- Gordon D. Plotkin, A Structural Approach to Operational Semantics, reprinted in the Journal of Logic and Algebraic Programming, 2004, 1.1 Introduction
- Introduction, The Python Language Reference, 1. Introduction
- Chapter 15, Expressions, The Java Language Specification, Java SE 25 Edition, 15.7 Evaluation Order
- Constant expressions, cppreference.com, Core constant expressions
- Introduction, WebAssembly Specification, Design goals
- The CompCert project, Home page
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag S5085W Edit this page History Report an error Markdown