lh-l4v/spec/abstract
Gerwin Klein f0faa90f8a lib/spec/proof/tools: fix word change fallout 2016-05-16 21:11:40 +10:00
..
ARM lib/spec/proof/tools: fix word change fallout 2016-05-16 21:11:40 +10:00
document fewer warnings 2015-05-16 19:52:49 +10:00
CSpaceAcc_A.thy fewer warnings 2015-05-16 19:52:49 +10:00
CSpace_A.thy lib/spec/proof/tools: fix word change fallout 2016-05-16 21:11:40 +10:00
CapRights_A.thy fewer warnings 2015-05-16 19:52:49 +10:00
Decode_A.thy lib/spec/proof/tools: fix word change fallout 2016-05-16 21:11:40 +10:00
Deterministic_A.thy rebase and fix problems caused by new machine constants 2016-02-17 11:18:02 +11:00
ExceptionTypes_A.thy paramatrised abstract and haskell specs over L4V_ARCH 2016-01-13 12:01:40 +11:00
Exceptions_A.thy paramatrised abstract and haskell specs over L4V_ARCH 2016-01-13 12:01:40 +11:00
Glossary_Doc.thy terminology in comments: async ep -> notifications 2015-11-24 16:58:22 +13:00
Interrupt_A.thy arch_split: fix proofs after removing shadow and unqualify commands and adding fix for crunch. Checks up to DPolicy. 2016-05-04 15:14:41 +10:00
Intro_Doc.thy terminology in comments: async ep -> notifications 2015-11-24 16:58:22 +13:00
InvocationLabels_A.thy arch_split: More namespacing progress and invariant splitting. Checks halfway into Invariants_AI 2016-02-05 17:00:06 +11:00
Invocations_A.thy arch_split: fix proofs after removing shadow and unqualify commands and adding fix for crunch. Checks up to DPolicy. 2016-05-04 15:14:41 +10:00
IpcCancel_A.thy SELFOUR-56: Remove diminish rights from IPC 2016-02-24 13:24:10 +11:00
Ipc_A.thy arch_split: fix proofs after removing shadow and unqualify commands and adding fix for crunch. Checks up to DPolicy. 2016-05-04 15:14:41 +10:00
KHeap_A.thy arch_split: More namespacing progress and invariant splitting. Checks halfway into Invariants_AI 2016-02-05 17:00:06 +11:00
KernelInit_A.thy lib/spec/proof/tools: fix word change fallout 2016-05-16 21:11:40 +10:00
MiscMachine_A.thy arch_split: fix proofs after removing shadow and unqualify commands and adding fix for crunch. Checks up to DPolicy. 2016-05-04 15:14:41 +10:00
README.md lib/spec/proof/tools: fix word change fallout 2016-05-16 21:11:40 +10:00
Retype_A.thy arch_split: fix proofs after removing shadow and unqualify commands and adding fix for crunch. Checks up to DPolicy. 2016-05-04 15:14:41 +10:00
Schedule_A.thy arch_split: fix proofs after removing shadow and unqualify commands and adding fix for crunch. Checks up to DPolicy. 2016-05-04 15:14:41 +10:00
Structures_A.thy arch_split: fix proofs after removing shadow and unqualify commands and adding fix for crunch. Checks up to DPolicy. 2016-05-04 15:14:41 +10:00
Syscall_A.thy arch_split: fix proofs after removing shadow and unqualify commands and adding fix for crunch. Checks up to DPolicy. 2016-05-04 15:14:41 +10:00
TcbAcc_A.thy arch_split: fix proofs after removing shadow and unqualify commands and adding fix for crunch. Checks up to DPolicy. 2016-05-04 15:14:41 +10:00
Tcb_A.thy arch_split: fix proofs after removing shadow and unqualify commands and adding fix for crunch. Checks up to DPolicy. 2016-05-04 15:14:41 +10:00
VMRights_A.thy arch_split: fix proofs after removing shadow and unqualify commands and adding fix for crunch. Checks up to DPolicy. 2016-05-04 15:14:41 +10: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/Monad_WP/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/spec:

make 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.