seL4-L4.verified/spec/abstract
Gerwin Klein d4fafd2bdb aspec+machine: SGISignalCap API + cdt interfaces
- add SGISignalCap API for ARM, ARM_HYP, AARCH64
- add generic interface for should_be_arch_parent_of and
  is_irq_control_descendant in the cdt implementation
- add default interface implementations new interfaces for RISCV64, X64

Signed-off-by: Gerwin Klein <gerwin.klein@proofcraft.systems>
2025-07-07 08:53:07 +10:00
..
AARCH64 aspec+machine: SGISignalCap API + cdt interfaces 2025-07-07 08:53:07 +10:00
ARM aspec+machine: SGISignalCap API + cdt interfaces 2025-07-07 08:53:07 +10:00
ARM_HYP aspec+machine: SGISignalCap API + cdt interfaces 2025-07-07 08:53:07 +10:00
RISCV64 aspec+machine: SGISignalCap API + cdt interfaces 2025-07-07 08:53:07 +10:00
X64 aspec+machine: SGISignalCap API + cdt interfaces 2025-07-07 08:53:07 +10:00
document aarch64 aspec: initial setup from RISCV64 2022-04-20 09:16:19 +10:00
CSpaceAcc_A.thy various: resolve some existing fixmes 2021-07-22 10:44:43 +10:00
CSpace_A.thy aspec+machine: SGISignalCap API + cdt interfaces 2025-07-07 08:53:07 +10:00
CapRights_A.thy licenses: convert license tags to SPDX 2020-03-13 14:38:24 +08:00
Decode_A.thy machine+aspec: use arch_requalify commands 2024-08-08 18:05:03 +10:00
Deterministic_A.thy aspec: refactor det_ext to remove scheduler state 2025-05-01 10:55:20 +10:00
ExceptionTypes_A.thy machine+aspec: use arch_requalify commands 2024-08-08 18:05:03 +10:00
Exceptions_A.thy aspec+ainvs: remove interrupt/irq from p_monad 2020-10-25 13:15:00 +11:00
Glossary_Doc.thy aspec: include doc build in ASpec again 2020-10-27 15:52:31 +10:00
Interrupt_A.thy aspec: refactor det_ext to remove scheduler state 2025-05-01 10:55:20 +10:00
Intro_Doc.thy aspec: include doc build in ASpec again 2020-10-27 15:52:31 +10:00
InvocationLabels_A.thy licenses: convert license tags to SPDX 2020-03-13 14:38:24 +08:00
Invocations_A.thy machine+aspec: use arch_requalify commands 2024-08-08 18:05:03 +10:00
IpcCancel_A.thy aspec: refactor det_ext to remove scheduler state 2025-05-01 10:55:20 +10:00
Ipc_A.thy aspec: refactor det_ext to remove scheduler state 2025-05-01 10:55:20 +10:00
KHeap_A.thy aspec: refactor det_ext to remove scheduler state 2025-05-01 10:55:20 +10:00
KernelInit_A.thy arm+arm-hyp: kernelBase and physMappingOffset renames 2020-11-16 16:52:40 +11:00
MiscMachine_A.thy machine+aspec: use arch_requalify commands 2024-08-08 18:05:03 +10:00
README.md READMEs: use run_tests consistently in READMEs (#622) 2023-03-30 13:59:18 +11:00
Retype_A.thy aspec: refactor det_ext to remove scheduler state 2025-05-01 10:55:20 +10:00
Schedule_A.thy aspec: refactor det_ext to remove scheduler state 2025-05-01 10:55:20 +10:00
Structures_A.thy aspec: refactor det_ext to remove scheduler state 2025-05-01 10:55:20 +10:00
Syscall_A.thy aspec: refactor det_ext to remove scheduler state 2025-05-01 10:55:20 +10:00
TcbAcc_A.thy machine+aspec: use arch_requalify commands 2024-08-08 18:05:03 +10:00
Tcb_A.thy aspec: refactor det_ext to remove scheduler state 2025-05-01 10:55:20 +10:00
VMRights_A.thy licenses: convert license tags to SPDX 2020-03-13 14:38:24 +08:00

README.md

The Abstract Specification of seL4

l4v/spec/abstract/

This directory contains the main Isabelle sources of the seL4 abstract specification. The specification draws in additional interface files from design and machine.

The specification is written in monadic style. See l4v/lib/Monads/NonDetMonad for the definition of this monad.

Top-Level Theory

The top-level theory file that draws the whole specification together is Syscall_A, the top-level function in that theory is call_kernel.

This top-level function defines in-kernel behaviour. Later in the proof, in particular in invariant-abstract, this function is further wrapped in an automaton that describes system behaviour.

Entry Points

Two useful entry points for browsing the abstract specification are the theories Structures_A and ARM_Structs_A. They define the state space of the kernel model, including what capabilities and kernel objects are.

The theories Invocations_A and ArchInvocation_A define datatypes for the capability invocations/operations the kernel understands.

Most theories are named after the subsystem of the kernel they specify.

Building

The corresponding Isabelle session is ASpec. It is set up to build a human-readable PDF document. Glossary_Doc contains definitions of common seL4 terms.

To build, run in directory l4v/:

L4V_ARCH=ARM ./run_test ASpec

Remarks

  • Note that this specification is actually an extensible family of specifications, with predefined extension points. These points can either be left generic, as for most of the abstract invariant proofs, or they can be instantiated to more precise behaviour, such as in the theory Deterministic_A, which is used for the information flow proofs.

  • The theory Init_A does not define real kernel initialisation. Instead it is a dummy initial state for the kernel to demonstrate non-emptiness of abstract kernel invariants.

  • KernelInit_A is a paused project and not currently included in the rest of the specification.