Proof Assistant Projects
Collection
Digesting proof assistant libraries for AI ingestion. • 103 items • Updated • 3
statement stringlengths 1 16.4k | proof stringlengths 0 53.2k | type stringclasses 23
values | symbolic_name stringlengths 1 69 | library stringclasses 128
values | filename stringlengths 11 62 | imports listlengths 0 0 | deps listlengths 0 64 | docstring stringclasses 1
value | source_url stringclasses 1
value | commit stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|
simple :: procedure (* Sourced from Simple.idl4 *) | where
"simple \<equiv> [
\<lparr> m_return_type = Some (Primitive (Textual String)), m_name = ''echo_string'',
m_parameters = [
\<lparr> p_type = Primitive (Textual String),
p_direction = InParameter,
p_name = ''s'' \<rparr>
] \<rparr>,
\<lparr> m_return_type = Some (Pr... | definition | simple | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"procedure",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
client :: component (* Sourced from Client.camkes *) | where
"client \<equiv> \<lparr>
control = True,
hardware = False,
requires = [(''s'', (InterfaceRequired, simple))],
provides = [],
dataports = [],
emits = [],
consumes = [],
attributes = []
\<rparr>" | definition | client | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"InterfaceRequired",
"component",
"simple",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
echo :: component (* Sourced from Echo.camkes *) | where
"echo \<equiv> \<lparr>
control = False,
hardware = False,
requires = [],
provides = [(''s'', simple)],
dataports = [],
emits = [],
consumes = [],
attributes = []
\<rparr>" | definition | echo | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"component",
"simple",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
system :: assembly (* Sourced from simple.camkes *) | where
"system \<equiv> \<lparr>
composition = \<lparr>
components = [(''echo'', echo),(''client'', client)],
connections = [(''simple'', \<lparr>
conn_type = seL4RPC,
conn_from = [(''client'', ''s'')],
conn_to = [(''echo'', ''s'')]
\<rparr>)],
group_labels = []
... | definition | system | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"assembly",
"client",
"composition",
"configuration",
"echo",
"seL4RPC",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"wellformed_assembly system" | by (simp add: wellformed_CAMKES_simps system_def echo_def client_def simple_def) | lemma | wellformed_assembly | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"system",
"wellformed_assembly"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
signal :: event | where
"signal \<equiv> 1" | definition | signal | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"event",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
emitter :: component | where
"emitter \<equiv> \<lparr>
control = True,
hardware = False,
requires = [],
provides = [],
dataports = [],
emits = [(''event'', signal)],
consumes = [],
attributes = []
\<rparr>" | definition | emitter | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"component",
"signal",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
consumer :: component | where
"consumer \<equiv> \<lparr>
control = True,
hardware = False,
requires = [],
provides = [],
dataports = [],
emits = [],
consumes = [(''event'', (InterfaceRequired, signal))],
attributes = []
\<rparr>" | definition | consumer | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"InterfaceRequired",
"component",
"signal",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
event_system :: assembly | where
"event_system \<equiv> \<lparr>
composition = \<lparr>
components = [(''source'', emitter), (''sink'', consumer)],
connections = [(''simpleEvent1'', \<lparr>
conn_type = seL4Notification,
conn_from = [(''source'', ''event'')],
conn_to = [(''sink'', ''event'')]
\<rpa... | definition | event_system | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"assembly",
"composition",
"configuration",
"consumer",
"emitter",
"seL4Notification",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"wellformed_assembly event_system" | by (simp add: wellformed_CAMKES_simps event_system_def emitter_def consumer_def signal_def) | lemma | wellformed_assembly | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"event_system",
"wellformed_assembly"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
data_client :: component | where
"data_client \<equiv> \<lparr>
control = True,
hardware = False,
requires = [],
provides = [],
dataports = [(''d1'', None), (''d2'', None)],
emits = [],
consumes = [],
attributes = []
\<rparr>" | definition | data_client | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"component",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
data_system :: assembly | where
"data_system \<equiv> \<lparr>
composition = \<lparr>
components = [(''comp1'', data_client), (''comp2'', data_client)],
connections = [(''simple1'', \<lparr>
conn_type = seL4SharedData,
conn_from = [(''comp1'', ''d1'')],
conn_to = [(''comp2'', ''d2'')]
\<rparr>), (... | definition | data_system | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"assembly",
"composition",
"configuration",
"data_client",
"seL4SharedData",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"wellformed_assembly data_system" | apply (simp add: data_system_def data_client_def)
apply (simp add: wellformed_CAMKES_simps
refs_valid_connection_def (* HACK because the wellformed_CAMKES_simps version backtracks excessively *))
done | lemma | wellformed_assembly | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"data_system",
"wellformed_assembly"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
display :: procedure | where
"display \<equiv> [
\<lparr> m_return_type = Some (CType ''uint32_t''), m_name = ''put_char'',
m_parameters = [
\<lparr> p_type = CType ''uint32_t'',
p_direction = InParameter,
p_name = ''x'' \<rparr>,
\<lparr> p_type = CType ''uint32_t'',
p_direction = In... | definition | display | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"procedure",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
manager :: component | where
"manager \<equiv> \<lparr>
control = False,
hardware = False,
requires = [],
provides = [(''domain1'', display), (''domain2'', display)],
dataports = [],
emits = [],
consumes = [],
attributes = []
\<rparr>" | definition | manager | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"component",
"display",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
terminal_client :: component | where
"terminal_client \<equiv> \<lparr>
control = True,
hardware = False,
requires = [(''d'', (InterfaceRequired, display))],
provides = [],
dataports = [],
emits = [],
consumes = [],
attributes = [(''ID'', Primitive (Numerical Integer))]
\<rparr>" | definition | terminal_client | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"InterfaceRequired",
"component",
"display",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
channel1 :: connection | where
"channel1 \<equiv> \<lparr>
conn_type = seL4RPC,
conn_from = [(''client1'', ''d'')],
conn_to = [(''manager'', ''domain1'')]
\<rparr>" | definition | channel1 | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"connection",
"seL4RPC",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
channel2 :: connection | where
"channel2 \<equiv> \<lparr>
conn_type = seL4RPC,
conn_from = [(''client2'', ''d'')],
conn_to = [(''manager'', ''domain2'')]
\<rparr>" | definition | channel2 | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"connection",
"seL4RPC",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
comp :: composition | where
"comp \<equiv> \<lparr>
components = [(''manager'', manager),
(''client1'', terminal_client),
(''client2'', terminal_client)],
connections = [(''channel1'', channel1),
(''channel2'', channel2)],
group_labels = []
\<rparr>" | definition | comp | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"channel1",
"channel2",
"composition",
"manager",
"terminal_client",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
conf :: configuration | where
"conf \<equiv> [(''client1'', ''ID'', ''1''),
(''client2'', ''ID'', ''2'')]" | definition | conf | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"configuration",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
terminal :: assembly | where
"terminal \<equiv> \<lparr>
composition = comp,
configuration = Some conf,
policy_extra = {}
\<rparr>" | definition | terminal | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"assembly",
"comp",
"composition",
"conf",
"configuration",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"wellformed_assembly terminal" | by (simp add: wellformed_CAMKES_simps refs_valid_connection_def
terminal_def comp_def manager_def terminal_client_def display_def
channel1_def channel2_def conf_def) | lemma | wellformed_assembly | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"terminal",
"wellformed_assembly"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
FAIL_MissingRequires begin | locale | FAIL_MissingRequires | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
x :: component | where
"x \<equiv> \<lparr>
control = undefined,
hardware = undefined,
requires = [(undefined, (InterfaceRequired, [undefined]))], \<comment> \<open>1 required interface...\<close>
provides = undefined,
dataports = undefined,
emits = undefined,
consumes = undefined,
attributes = undefin... | definition | x | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"InterfaceRequired",
"component",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
broken_assembly :: assembly | where
"broken_assembly \<equiv> \<lparr>composition = \<lparr>
components = [(undefined, x)],
connections = [], \<comment> \<open>... that is unsatisfied.\<close>
group_labels = undefined
\<rparr>, configuration = undefined,
policy_extra = undefined\<rparr>" | definition | broken_assembly | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"assembly",
"composition",
"configuration",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"\<not> wellformed_assembly broken_assembly" | apply (unfold wellformed_assembly_def)
apply (subst de_Morgan_conj)
apply (rule disjI1)
apply (unfold wellformed_composition_def broken_assembly_def, simp)
apply (unfold refs_valid_composition_def
refs_valid_components_def
refs_valid_procedures_def
x_def ex_one_de... | lemma | not | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"broken_assembly",
"wellformed_assembly"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
FAIL_Empty begin | locale | FAIL_Empty | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
broken_assembly :: assembly | where
"broken_assembly \<equiv> \<lparr> composition = \<lparr>
components = [],
connections = undefined,
group_labels = undefined
\<rparr>, configuration = undefined,
policy_extra = {} \<rparr>" | definition | broken_assembly | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"assembly",
"composition",
"configuration",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"\<not>wellformed_assembly broken_assembly" | apply (unfold wellformed_assembly_def)
apply (case_tac "wellformed_composition (composition broken_assembly)")
apply (unfold broken_assembly_def)
apply (frule wellformed_composition_is_nonempty)
apply simp+
done | lemma | not | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"broken_assembly",
"composition",
"wellformed_assembly",
"wellformed_composition",
"wellformed_composition_is_nonempty"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"\<not>wellformed_assembly \<lparr> composition = \<lparr>
components = [(''foo'', undefined), (''foo'', undefined)],
connections = undefined,
group_labels = undefined
\<rparr>, configuration = undefined,
policy_extra = {} \<rparr>" | by (simp add:wellformed_assembly_def wellformed_composition_def) | lemma | not | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"composition",
"configuration",
"wellformed_assembly"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"\<not>wellformed_assembly \<lparr> composition = \<lparr>
components = undefined,
connections = [(''foo'', undefined), (''foo'', undefined)],
group_labels = undefined
\<rparr>, configuration = undefined,
policy_extra = {} \<rparr>" | by (simp add:wellformed_assembly_def wellformed_composition_def) | lemma | not | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"composition",
"configuration",
"wellformed_assembly"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"\<not>wellformed_assembly \<lparr> composition = \<lparr>
components = [(''foo'', undefined)],
connections = [(''foo'', undefined)],
group_labels = undefined
\<rparr>, configuration = undefined,
policy_extra = {} \<rparr>" | by (simp add:wellformed_assembly_def wellformed_composition_def) | lemma | not | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"composition",
"configuration",
"wellformed_assembly"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"\<not>wellformed_assembly \<lparr> composition = \<lparr>
components = [(''foo'', \<lparr>
control = undefined,
hardware = undefined,
requires = [(''bar'', (InterfaceRequired, [undefined]))],
provides = undefined,
dataports = undefined,
emits = undefined,
consumes = undefi... | by (simp add: wellformed_assembly_def wellformed_composition_def refs_valid_components_def
refs_valid_composition_def refs_valid_procedures_def
ex_one_def
split: prod.splits) | lemma | not | camkes.adl-spec | camkes/adl-spec/Examples_CAMKES.thy | [] | [
"InterfaceRequired",
"composition",
"configuration",
"split",
"wellformed_assembly"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"seL4_MsgMaxLength \<equiv> 120::nat" | abbreviation | seL4_MsgMaxLength | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"nat"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
ipc | = "nat list" | type_synonym | ipc | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"list",
"nat"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
wellformed_ipc :: "ipc \<Rightarrow> bool" | where "wellformed_ipc i = (length i < seL4_MsgMaxLength)" | definition | wellformed_ipc | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"bool",
"ipc",
"seL4_MsgMaxLength",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
parameter_value =
p_type :: param_type
p_value :: "nat list" | record | parameter_value | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"list",
"nat",
"param_type"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
wellformed_parameter :: "parameter_value \<Rightarrow> bool" | where
"wellformed_parameter p = (case p_type p of
Primitive _ \<Rightarrow> length (p_value p) = 1
| Array t \<Rightarrow> (case t of
SizedArray _ \<Rightarrow> True
| TerminatedArray _ \<Rightarrow> length (p_value p) > 0 \<and> hd (rev (p_value p)) = 0))" | definition | wellformed_parameter | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"bool",
"parameter_value",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"prim_value \<equiv> \<lambda>(x::parameter_value). hd (p_value x)" | abbreviation | prim_value | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"parameter_value"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
marshal_primitive :: "ipc \<Rightarrow> parameter_value \<Rightarrow> ipc" | where
"marshal_primitive i p = i @ [hd (p_value p)]" | definition | marshal_primitive | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"ipc",
"parameter_value",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
marshal_array :: "ipc \<Rightarrow> parameter_value \<Rightarrow> ipc" | where
"marshal_array i p = (case p_value p of
[] \<Rightarrow> i
| _ # xs \<Rightarrow> marshal_array (marshal_primitive i p) \<lparr>p_type = p_type p, p_value = xs\<rparr>)"
by fast+ | function | marshal_array | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"ipc",
"marshal_primitive",
"parameter_value",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
marshal :: "ipc \<Rightarrow> parameter_value \<Rightarrow> ipc" | where
"marshal i p = (case p_type p of
Primitive _ \<Rightarrow> marshal_primitive i p
|Array _ \<Rightarrow> marshal_array i p)" | definition | marshal | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"ipc",
"marshal_array",
"marshal_primitive",
"parameter_value",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
unmarshal_primitive :: "ipc \<Rightarrow> primitive \<Rightarrow> parameter_value \<times> ipc" | where
"unmarshal_primitive i t = (\<lparr>p_type = Primitive t, p_value = [hd i]\<rparr>, tl i)" | definition | unmarshal_primitive | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"ipc",
"parameter_value",
"primitive",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
unmarshal_array_by_size :: "ipc \<Rightarrow> primitive \<Rightarrow> nat \<Rightarrow> nat list \<Rightarrow> parameter_value \<times> ipc" | where
"unmarshal_array_by_size i t 0 ac = (\<lparr>p_type = Array (SizedArray t), p_value = ac\<rparr>, i)"
|"unmarshal_array_by_size i t sz ac = unmarshal_array_by_size (snd (unmarshal_primitive i t)) t (sz - 1) (ac @ p_value (fst (unmarshal_primitive i t)))" | fun | unmarshal_array_by_size | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"ipc",
"list",
"nat",
"parameter_value",
"primitive",
"sz",
"unmarshal_primitive",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
unmarshal_array_by_terminator :: "ipc \<Rightarrow> primitive \<Rightarrow> nat list \<Rightarrow> parameter_value \<times> ipc" | where
"unmarshal_array_by_terminator i t ac = (case (prim_value (fst (unmarshal_primitive i t))) of
0 \<Rightarrow> (\<lparr>p_type = Array (TerminatedArray t), p_value = ac @ [0]\<rparr>, snd (unmarshal_primitive i t))
|_ \<Rightarrow> unmarshal_array_by_terminator (snd (unmarshal_primitive i t)) t (ac @ p_va... | function | unmarshal_array_by_terminator | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"ipc",
"list",
"nat",
"parameter_value",
"prim_value",
"primitive",
"unmarshal_primitive",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
unmarshal_array :: "ipc \<Rightarrow> primitive \<Rightarrow> nat option \<Rightarrow> parameter_value \<times> ipc" | where
"unmarshal_array i t n = (case n of
None \<Rightarrow> unmarshal_array_by_terminator i t []
|Some nn \<Rightarrow> unmarshal_array_by_size i t nn [])" | definition | unmarshal_array | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"ipc",
"nat",
"option",
"parameter_value",
"primitive",
"unmarshal_array_by_size",
"unmarshal_array_by_terminator",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"\<lbrakk>marshal_primitive [] p = i2; wellformed_parameter p; p_type p = Primitive q; unmarshal_primitive i2 q = (n, i3)\<rbrakk>
\<Longrightarrow> wellformed_ipc i2 \<and> [] = i3 \<and> n = p" | apply (simp add:marshal_primitive_def unmarshal_primitive_def)
apply (clarsimp simp:wellformed_ipc_def wellformed_parameter_def)
apply (induct p, clarsimp, case_tac p_value, simp+)
done | lemma | lbrakk | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"marshal_primitive",
"unmarshal_primitive",
"wellformed_ipc",
"wellformed_parameter"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"\<forall>t. \<exists>p. (unmarshal_primitive [] t = (\<lparr>p_type = p, p_value = [hd []]\<rparr>, []))" | by (simp add:unmarshal_primitive_def) | lemma | forall | camkes.adl-spec | camkes/adl-spec/Glue_CAMKES.thy | [] | [
"unmarshal_primitive"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
lookup :: "('a \<times> 'b) list \<Rightarrow> 'a \<Rightarrow> 'b" | where (* Assumes the filter will return a unique element. *)
"lookup xs x = snd (hd (filter (\<lambda>y. (x = (fst y))) xs))" | definition | lookup | camkes.adl-spec | camkes/adl-spec/Helpers_CAMKES.thy | [] | [
"list",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"from_components conn \<equiv> map fst (conn_from conn)" | abbreviation | from_components | camkes.adl-spec | camkes/adl-spec/Helpers_CAMKES.thy | [] | [
"map"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
"from_interfaces conn \<equiv> map snd (conn_from conn)" | abbreviation | from_interfaces | camkes.adl-spec | camkes/adl-spec/Helpers_CAMKES.thy | [] | [
"map"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
"to_components conn \<equiv> map fst (conn_to conn)" | abbreviation | to_components | camkes.adl-spec | camkes/adl-spec/Helpers_CAMKES.thy | [] | [
"map"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
"to_interfaces conn \<equiv> map snd (conn_to conn)" | abbreviation | to_interfaces | camkes.adl-spec | camkes/adl-spec/Helpers_CAMKES.thy | [] | [
"map"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
"in_map conns xs \<equiv> (\<exists>s\<in>set conns. s \<in> (fst ` (set xs)))" | abbreviation | in_map | camkes.adl-spec | camkes/adl-spec/Helpers_CAMKES.thy | [] | [] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
"does_provide c s \<equiv> (in_map s (provides c))" | abbreviation | does_provide | camkes.adl-spec | camkes/adl-spec/Helpers_CAMKES.thy | [] | [
"in_map"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
"does_require c s \<equiv> (in_map s (requires c))" | abbreviation | does_require | camkes.adl-spec | camkes/adl-spec/Helpers_CAMKES.thy | [] | [
"in_map"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
"does_emit c s \<equiv> (in_map s (emits c))" | abbreviation | does_emit | camkes.adl-spec | camkes/adl-spec/Helpers_CAMKES.thy | [] | [
"in_map"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
"does_consume c s \<equiv> (in_map s (consumes c))" | abbreviation | does_consume | camkes.adl-spec | camkes/adl-spec/Helpers_CAMKES.thy | [] | [
"in_map"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
"has_dataport c s \<equiv> (in_map s (dataports c))" | abbreviation | has_dataport | camkes.adl-spec | camkes/adl-spec/Helpers_CAMKES.thy | [] | [
"in_map"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
seL4RPC :: connector | where [wellformed_CAMKES_simps]:
"seL4RPC \<equiv>
\<lparr> connector_type = NativeConnector,
connector_interface = RPCInterface,
connector_access =
\<lparr> access_from_to = {DeleteDerived},
access_to_from = {Reply},
access_from_from = {},
acces... | definition | seL4RPC | camkes.adl-spec | camkes/adl-spec/Library_CAMKES.thy | [] | [
"connector",
"connector_access",
"connector_interface",
"connector_type",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
[wellformed_CAMKES_simps]: "wellformed_connector seL4RPC" | by (auto simp:wellformed_CAMKES_simps) | lemma | wellformed_connector | camkes.adl-spec | camkes/adl-spec/Library_CAMKES.thy | [] | [
"seL4RPC",
"wellformed_connector"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
seL4Notification :: connector | where [wellformed_CAMKES_simps]:
"seL4Notification \<equiv>
\<lparr> connector_type = NativeConnector,
connector_interface = EventInterface,
connector_access =
\<lparr> access_from_to = {},
access_to_from = {},
access_from_from = {},
access_to_to... | definition | seL4Notification | camkes.adl-spec | camkes/adl-spec/Library_CAMKES.thy | [] | [
"connector",
"connector_access",
"connector_interface",
"connector_type",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
[wellformed_CAMKES_simps]: "wellformed_connector seL4Notification" | by (auto simp:wellformed_CAMKES_simps) | lemma | wellformed_connector | camkes.adl-spec | camkes/adl-spec/Library_CAMKES.thy | [] | [
"seL4Notification",
"wellformed_connector"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
seL4SharedData :: connector | where [wellformed_CAMKES_simps]:
"seL4SharedData \<equiv>
\<lparr> connector_type = NativeConnector,
connector_interface = DataportInterface,
connector_access =
\<lparr> access_from_to = {},
access_to_from = {},
access_from_from = {},
access_to_t... | definition | seL4SharedData | camkes.adl-spec | camkes/adl-spec/Library_CAMKES.thy | [] | [
"Read",
"Write",
"connector",
"connector_access",
"connector_interface",
"connector_type",
"dataport",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
[wellformed_CAMKES_simps]: "wellformed_connector seL4SharedData" | by (auto simp:wellformed_CAMKES_simps) | lemma | wellformed_connector | camkes.adl-spec | camkes/adl-spec/Library_CAMKES.thy | [] | [
"seL4SharedData",
"wellformed_connector"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
seL4HardwareInterrupt :: connector | where [wellformed_CAMKES_simps]:
"seL4HardwareInterrupt \<equiv>
\<lparr> connector_type = HardwareConnector,
connector_interface = EventInterface,
connector_access =
\<lparr> access_from_to = {},
access_to_from = {},
access_from_from = {},
acces... | definition | seL4HardwareInterrupt | camkes.adl-spec | camkes/adl-spec/Library_CAMKES.thy | [] | [
"connector",
"connector_access",
"connector_interface",
"connector_type",
"label",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
[wellformed_CAMKES_simps]: "wellformed_connector seL4HardwareInterrupt" | by (auto simp:wellformed_CAMKES_simps) | lemma | wellformed_connector | camkes.adl-spec | camkes/adl-spec/Library_CAMKES.thy | [] | [
"seL4HardwareInterrupt",
"wellformed_connector"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
seL4HardwareMMIO :: connector | where [wellformed_CAMKES_simps]:
"seL4HardwareMMIO \<equiv>
\<lparr> connector_type = HardwareConnector,
connector_interface = DataportInterface,
connector_access =
\<lparr> access_from_to = {},
access_to_from = {},
access_from_from = {},
access_... | definition | seL4HardwareMMIO | camkes.adl-spec | camkes/adl-spec/Library_CAMKES.thy | [] | [
"Read",
"Write",
"connector",
"connector_access",
"connector_interface",
"connector_type",
"label",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
[wellformed_CAMKES_simps]: "wellformed_connector seL4HardwareMMIO" | by (auto simp:wellformed_CAMKES_simps) | lemma | wellformed_connector | camkes.adl-spec | camkes/adl-spec/Library_CAMKES.thy | [] | [
"seL4HardwareMMIO",
"wellformed_connector"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
"seL4RPCCall \<equiv> seL4RPC"
lemmas seL4RPCCall_def = seL4RPC_def | abbreviation | seL4RPCCall | camkes.adl-spec | camkes/adl-spec/Library_CAMKES.thy | [] | [
"seL4RPC"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
"seL4RPCSimple \<equiv> seL4RPC"
lemmas seL4RPCSimple_def = seL4RPC_def | abbreviation | seL4RPCSimple | camkes.adl-spec | camkes/adl-spec/Library_CAMKES.thy | [] | [
"seL4RPC"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
idl_symbol | = string | type_synonym | idl_symbol | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
adl_symbol | = string | type_synonym | adl_symbol | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
number | =
\<comment> \<open>High level types\<close>
UnsignedInteger
| Integer
| Real
| Boolean | datatype | number | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
textual | =
\<comment> \<open>High level types\<close>
Character
| String
\<comment> \<open>C-specific types\<close>
| char | datatype | textual | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"char"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
primitive | =
Numerical number
| Textual textual | datatype | primitive | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"number",
"textual"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
array | =
SizedArray primitive
| TerminatedArray primitive | datatype | array | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"primitive"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
param_type | =
Primitive primitive
| Array array
| CType string | datatype | param_type | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"array",
"primitive"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
param_direction | =
InParameter (* also covers 'refin' *)
| OutParameter
| InOutParameter | datatype | param_direction | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
parameter =
p_type :: param_type
p_direction :: param_direction
p_name :: idl_symbol | record | parameter | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"idl_symbol",
"param_direction",
"param_type"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
"method" =
m_return_type :: "param_type option"
m_name :: idl_symbol
m_parameters :: "parameter list" | record | method | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"idl_symbol",
"list",
"option",
"param_type",
"parameter"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
procedure | = "method list" | type_synonym | procedure | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"list",
"method"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
event | = nat | type_synonym | event | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"nat"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
dataport | = "string option" | type_synonym | dataport | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"option"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
interface | =
Procedure procedure
| Event event
| Dataport dataport | datatype | interface | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"dataport",
"event",
"procedure"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
connector_type | =
NativeConnector
| HardwareConnector
| ExportConnector | datatype | connector_type | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
connector_interface | =
RPCInterface
| EventInterface
| DataportInterface | datatype | connector_interface | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
connector_access =
\<comment> \<open>@{text access_foo_bar} means access from the "@{text foo}" label to
the "@{text bar}" label; labels may be from-components,
to-components, or the connection itself\<close>
access_from_to :: "auth set"
access_to_from :: "auth set"
\<comment> \<open>It... | record | connector_access | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"auth"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
connector =
connector_type :: connector_type
connector_interface :: connector_interface
connector_access :: connector_access | record | connector | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"connector_access",
"connector_interface",
"connector_type"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
InterfaceRequired | = InterfaceRequired | InterfaceOptional | datatype | InterfaceRequired | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
component =
control :: bool
hardware :: bool
requires :: "(adl_symbol \<times> (InterfaceRequired \<times> procedure)) list"
provides :: "(adl_symbol \<times> procedure) list"
dataports :: "(adl_symbol \<times> dataport) list"
emits :: "(adl_symbol \<times> event) list"
consumes ::... | record | component | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"InterfaceRequired",
"adl_symbol",
"bool",
"dataport",
"event",
"list",
"param_type",
"procedure"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
connection =
conn_type :: connector
conn_from :: "(adl_symbol \<times> adl_symbol) list"
conn_to :: "(adl_symbol \<times> adl_symbol) list" | record | connection | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"adl_symbol",
"connector",
"list"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
composition =
components :: "(adl_symbol \<times> component) list"
connections :: "(adl_symbol \<times> connection) list"
group_labels :: "(adl_symbol \<times> adl_symbol) list" | record | composition | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"adl_symbol",
"component",
"connection",
"list"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
get_group_label :: "composition \<Rightarrow> adl_symbol \<Rightarrow> adl_symbol" | where
"get_group_label spec c \<equiv>
case map_of (group_labels spec) c of
Some c' \<Rightarrow> c'
| None \<Rightarrow> c" | definition | get_group_label | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"adl_symbol",
"composition",
"spec",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
configuration | =
"(adl_symbol \<times> adl_symbol \<times> string) list" | type_synonym | configuration | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"adl_symbol",
"list"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
assembly =
composition :: "composition"
configuration :: "configuration option"
\<comment> \<open>This lets us shove extra policy edges into the generated integrity policy\<close>
policy_extra :: "(adl_symbol \<times> auth \<times> adl_symbol) set" | record | assembly | camkes.adl-spec | camkes/adl-spec/Types_CAMKES.thy | [] | [
"adl_symbol",
"auth",
"composition",
"configuration",
"option"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | ||
wellformed_method :: "method \<Rightarrow> bool" | where
"wellformed_method m \<equiv>
(m_name m \<notin> set (map p_name (m_parameters m)) \<and>
distinct (map p_name (m_parameters m)))" | definition | wellformed_method | camkes.adl-spec | camkes/adl-spec/Wellformed_CAMKES.thy | [] | [
"bool",
"map",
"method",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
wellformed_procedure :: "procedure \<Rightarrow> bool" | where
"wellformed_procedure i \<equiv>
(\<forall>x \<in> set i. wellformed_method x) \<and>
distinct (map m_name i)" | definition | wellformed_procedure | camkes.adl-spec | camkes/adl-spec/Wellformed_CAMKES.thy | [] | [
"bool",
"map",
"procedure",
"wellformed_method",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
wellformed_event :: "event \<Rightarrow> bool" | where
"wellformed_event e \<equiv> e < 32" | definition | wellformed_event | camkes.adl-spec | camkes/adl-spec/Wellformed_CAMKES.thy | [] | [
"bool",
"event",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 | |
wellformed_dataport :: "dataport \<Rightarrow> bool" | where
"wellformed_dataport d \<equiv> True" | definition | wellformed_dataport | camkes.adl-spec | camkes/adl-spec/Wellformed_CAMKES.thy | [] | [
"bool",
"dataport",
"where"
] | https://github.com/seL4/l4v | 7d183cdc0ba39312b56d5fc54c869c4cde79cbb4 |
Structured dataset from l4v - formal verification proofs for the seL4 microkernel.
7d183cdc0ba39312b56d5fc54c869c4cde79cbb4| Column | Type | Description |
|---|---|---|
| statement | string | Declaration signature/claim with the leading keyword removed (verbatim slice); the full declaration minus its proof |
| proof | string | Verbatim proof/body, empty if the declaration has none |
| type | string | Declaration keyword |
| symbolic_name | string | Declaration identifier |
| library | string | Sub-library |
| filename | string | Repository-relative source path |
| imports | list[string] | File-level Require/Import modules |
| deps | list[string] | Intra-corpus identifiers referenced |
| docstring | string | Preceding documentation comment, empty if absent |
| source_url | string | Upstream repository |
| commit | string | Upstream commit extracted |
| Type | Count |
|---|---|
| lemma | 45,663 |
| definition | 6,982 |
| abbreviation | 932 |
| locale | 427 |
| primrec | 404 |
| type_synonym | 311 |
| datatype | 267 |
| fun | 224 |
| instantiation | 147 |
| record | 102 |
| instance | 100 |
| theorem | 91 |
| schematic_goal | 77 |
| class | 65 |
| consts | 48 |
| axiomatization | 32 |
| inductive | 31 |
| corollary | 26 |
| function | 25 |
| inductive_set | 20 |
| termination | 13 |
| lift_definition | 9 |
| partial_function | 1 |
client :: component (* Sourced from Client.camkes *)
where
"client \<equiv> \<lparr>
control = True,
hardware = False,
requires = [(''s'', (InterfaceRequired, simple))],
provides = [],
dataports = [],
emits = [],
consumes = [],
attributes = []
\<rparr>"
client | camkes/adl-spec/Examples_CAMKES.thyEach declaration is split into a statement (signature/claim) and a proof (body) that are disjoint
and together form the complete declaration, for proof modeling, autoformalization, retrieval, and
dependency analysis via deps.
@misc{isabelle_sel4_dataset,
title = {Isabelle-seL4},
author = {Norton, Charles},
year = {2026},
note = {Extracted from https://github.com/seL4/l4v, commit 7d183cdc0ba3},
url = {https://huggingface.co/datasets/phanerozoic/Isabelle-seL4}
}