(* * Copyright 2014, General Dynamics C4 Systems * * SPDX-License-Identifier: GPL-2.0-only *) (* Definition of access rights. *) chapter "Access Rights" theory CapRights_A imports Main begin text \The possible access-control rights that exist in the system. Note that some rights are synonyms for others.\ datatype rights = AllowRead | AllowWrite | AllowGrant | AllowGrantReply definition "AllowSend \ AllowWrite" definition "AllowRecv \ AllowRead" definition "CanModify \ AllowWrite" text \Cap rights are just a set of access rights\ type_synonym cap_rights = "rights set" text \The set of all rights:\ definition all_rights :: cap_rights where "all_rights \ UNIV" end