section‹Instantiating Our Secure Service Example› theory
ServiceExample imports
Service begin text‹
In the following, we briefly present an instantiations of our secure service example
from the last section. We assume three different members of the health care staff and
two patients: ›
subsection‹Access Control Configuration› definition alice :: user where"alice = 1" definition bob :: user where"bob = 2" definition charlie :: user where"charlie = 3" definition patient1 :: patient where"patient1 = 5" definition patient2 :: patient where"patient2 = 6"
definition UC0 :: υ where "UC0 = Map.empty(alice↦Nurse, bob↦ClinicalPractitioner, charlie↦Clerical)"
definition entry1 :: entry where "entry1 = (Open,alice, dummyContent)"
definition entry2 :: entry where "entry2 = (Closed,bob, dummyContent)"
definition entry3 :: entry where "entry3 = (Closed,alice, dummyContent)"
definition SCR1 :: SCR where "SCR1 = (Map.empty(1↦entry1))"
definition SCR2 :: SCR where "SCR2 = (Map.empty)"
definition Spine0 :: DB where "Spine0 = Map.empty(patient1↦SCR1, patient2↦SCR2)"
definition LR1 :: LR where "LR1 =(Map.empty(1↦{alice}))"
definition Σ0 :: Σ where "Σ0 = (Map.empty(patient1↦LR1))"
lemma"SE_LR_RBAC_Policy ((createSCR alice Clerical patient1),σ0)= Some (deny ())" by (simp add: PolSimps)
lemma exBool[simp]: "∃a::bool. a" by auto
lemma deny_allow[simp]: " ⌊deny ()⌋∉ Some ` range allow" by auto
lemma allow_deny[simp]: " ⌊allow ()⌋∉ Some ` range deny" by auto
text‹Policy as monad. Alice using her first urp can read the SCR of patient1.› lemma "(σ0 ⊨ (os ← mbind [(createSCR alice Clerical patient1)] (PolMon); (return (os = [(deny (Out) )]))))" by (simp add: PolMon_def MonSimps PolSimps)
text‹Presenting her other urp, she is not allowed to read it.› lemma"SE_LR_RBAC_Policy ((appendEntry alice Clerical patient1 ei d),σ0)= ⌊deny ()⌋" by (simp add: PolSimps)
end
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.1 Sekunden
(vorverarbeitet am 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.