Learn
Concepts
Follow a program from source to a compiler result, one step at a time.
New to types as proofs? Read Theory first. Coming from contracts? Omegyu vs. Solidity compares one generic function with two overloads, then shows how a type can rule out an empty batch.
Start with the compiler pipeline to see how an expression gets its type. For contracts, start with what a handler may do. Each frame shows the source lines it explains. Open Full example and walkthrough to read all the steps together.
- The pipeline and the kernelHow a program goes from text to a checked term, why the elaborator is not trusted, and what the kernel checks again.
- TotalityWhy a pure calculation finishes even though a running program can keep asking for input.
- NormalisationHow the kernel computes a term to its normal form by evaluating it and reading the value back, how far it computes with unknowns, and how normal forms decide equality.
- Dependent types and proofsTypes that mention values, equations as types, and proofs by computation and by induction, which the kernel checks as it checks any program.
- Rows, records and unionsHow a row variable stands for the fields that a function does not name, and how one mechanism types records, unions and the operations that an action may use.
- Actions and modesHow the type of a contract's action says which operations of the chain it may run, so that a view cannot write, and a read can run wherever a write may.
- Storage layout from typesHow a contract's storage layout is computed from the type of its state, and why a layout comes with the proof that it is valid.
- Dispatch through two interfacesHow one record of methods gives a contract a native interface and a Solidity interface, and how a call reaches its handler through either.