Glossary
Design vocabulary used across the fic issues, the papers and the compiler source. Use these terms in new issues, PRs and docs.
orchestration — the generated per-PD code that owns the event loop
and all communication: the init()/notified()/protected() bodies, channel
dispatch, and every microkit_*/seL4_* call, lowered from the .fi
process algebra via the Ccfg. Matches the Orchestration IR type
(src/ccfg/system.rs, one per PD) and src/ast/process.rs’s own framing
(“a process is the orchestration layer of a Fiducia protection
domain”). The orchestration communicates; foreign functions compute.
foreign implementation — one imported unit of non-Fiducia code (a
.h/.c or .pnk file, one per import declaration in a .fi
program; .rs has no reader yet). Never abbreviate to “FI” — it collides with the
.fi file extension, which names the orchestration source, i.e. the
opposite side of the boundary.
foreign function — an individual callable inside a foreign
implementation, reached from a computation event (alias.fn(...)).
Matches standard FFI (“foreign function interface”) usage. Use
“foreign implementation” for the unit, “foreign function” for the
call.
Ccfg — Communicating Control-Flow Graph: the compiler IR between
the typed AST and all backends (src/ccfg/). One Ccfg per bound entry
point; locations are bare control points; transitions carry a guard
and an event, both the typed AST’s nodes. All semantic lowering happens once, into the Ccfg; backends
are emitters over it.
emitter — any backend that walks the Ccfg and produces target text
(XTA, C). The second half of the lower once / emit many
split, matching src/c_backend/, src/xta_backend/ and the --emit=
flags. The invariant
with teeth: emitters make syntax decisions only — if a backend needs
semantic information the Ccfg does not carry, fix the IR, not the
backend.
extraction — reserved for the verified emitter path: producing
executable code whose correspondence to the mechanised semantics is
anchored by proof (an eventual Pancake emitter, once the
unfold(Ccfg) ≈ llts correspondence exists). Do not use it for today’s unverified C emission — the word’s job is to
distinguish the path that carries a proof from the ones that don’t.
transpiling — whole-language, source-to-source translation between
surface languages (Fiducia→Pancake as a standalone translation;
pancake2viper). Not the right word for Ccfg backends: emitting a
verification model isn’t transpiling, and compiling direct to a binary
is precisely not source-to-source.
llts — Local Labelled Transition System: a concept from the CoreFi
paper, mechanised in fidus/CoreFi/{Llts,Glts}.lean, capturing CoreFi’s
small-step semantics. The compiler has no llts of its own; its closest
counterpart is the Ccfg.