theory PolicySystemSAC

lemma ep_affects: "subjectAffects SACAuthGraph (partition_label EP) = {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls" apply (rule subset_antisym) defer 
  (* backward *)
   apply (rule subsetI) apply (erule UnE) apply (erule insertE, simp only:, rule affects_lrefl) apply (erule insertE, simp only:, rule ep_affects_sc) apply (erule insertE, simp only:, rule ep_affects_c) apply (erule insertE, simp only:, rule ep_affects_ntfn2) apply simp apply (rule ep_affects_rm_controls, simp) 
  (* forward *)
   apply (rule subsetI) apply (erule subjectAffects.induct) by (simp, blast?)+

(* Proof state trace *)
proof (prove)
goal (1 subgoal):
 1. subjectAffects SACAuthGraph (partition_label EP) = {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls proof (prove)
goal (2 subgoals):
 1. subjectAffects SACAuthGraph (partition_label EP) \<subseteq> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls
 2. {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls \<subseteq> subjectAffects SACAuthGraph (partition_label EP) proof (prove)
goal (2 subgoals):
 1. {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls \<subseteq> subjectAffects SACAuthGraph (partition_label EP)
 2. subjectAffects SACAuthGraph (partition_label EP) \<subseteq> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls proof (prove)
goal (2 subgoals):
 1. {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls \<subseteq> subjectAffects SACAuthGraph (partition_label EP)
 2. subjectAffects SACAuthGraph (partition_label EP) \<subseteq> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label EP)
 2. subjectAffects SACAuthGraph (partition_label EP) \<subseteq> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls proof (prove)
goal (3 subgoals):
 1. \<And>x. x \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label EP)
 2. \<And>x. x \<in> RMControls \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label EP)
 3. subjectAffects SACAuthGraph (partition_label EP) \<subseteq> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls proof (prove)
goal (3 subgoals):
 1. \<And>x. x \<in> {partition_label SC, partition_label NicC, partition_label NTFN2} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label EP)
 2. \<And>x. x \<in> RMControls \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label EP)
 3. subjectAffects SACAuthGraph (partition_label EP) \<subseteq> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls proof (prove)
goal (3 subgoals):
 1. \<And>x. x \<in> {partition_label NicC, partition_label NTFN2} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label EP)
 2. \<And>x. x \<in> RMControls \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label EP)
 3. subjectAffects SACAuthGraph (partition_label EP) \<subseteq> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls proof (prove)
goal (3 subgoals):
 1. \<And>x. x \<in> {partition_label NTFN2} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label EP)
 2. \<And>x. x \<in> RMControls \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label EP)
 3. subjectAffects SACAuthGraph (partition_label EP) \<subseteq> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls proof (prove)
goal (3 subgoals):
 1. \<And>x. x \<in> {} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label EP)
 2. \<And>x. x \<in> RMControls \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label EP)
 3. subjectAffects SACAuthGraph (partition_label EP) \<subseteq> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> RMControls \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label EP)
 2. subjectAffects SACAuthGraph (partition_label EP) \<subseteq> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls proof (prove)
goal (1 subgoal):
 1. subjectAffects SACAuthGraph (partition_label EP) \<subseteq> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls proof (prove)
goal (1 subgoal):
 1. subjectAffects SACAuthGraph (partition_label EP) \<subseteq> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls proof (prove)
goal (1 subgoal):
 1. \<And>x. x \<in> subjectAffects SACAuthGraph (partition_label EP) \<Longrightarrow> x \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls proof (prove)
goal (12 subgoals):
 1. \<And>x. partition_label EP \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls
 2. \<And>x auth l'. \<lbrakk>(partition_label EP, auth, l') \<in> SACAuthGraph; auth \<in> {Control, Write}\<rbrakk> \<Longrightarrow> l' \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls
 3. \<And>x auth l'. \<lbrakk>(partition_label EP, auth, l') \<in> SACAuthGraph; auth \<in> {Receive, Notify, SyncSend, Call, Reset}\<rbrakk> \<Longrightarrow> l' \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls
 4. \<And>x auth ep l' l''. \<lbrakk>(partition_label EP, auth, ep) \<in> SACAuthGraph; auth \<in> {SyncSend, Notify, Call}; (l', Receive, ep) \<in> SACAuthGraph; (l', Write, l'') \<in> SACAuthGraph\<rbrakk> \<Longrightarrow> l'' \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls
 5. \<And>x ep l'. \<lbrakk>(partition_label EP, Receive, ep) \<in> SACAuthGraph; (l', SyncSend, ep) \<in> SACAuthGraph\<rbrakk> \<Longrightarrow> l' \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls
 6. \<And>x l'. (l', Reply, partition_label EP) \<in> SACAuthGraph \<Longrightarrow> l' \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls
 7. \<And>x l' l''. \<lbrakk>(partition_label EP, Reply, l') \<in> SACAuthGraph; (l', Write, l'') \<in> SACAuthGraph\<rbrakk> \<Longrightarrow> l'' \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls
 8. \<And>x l'. (partition_label EP, DeleteDerived, l') \<in> SACAuthGraph \<Longrightarrow> l' \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls
 9. \<And>x l' l''. \<lbrakk>(partition_label EP, DeleteDerived, l') \<in> SACAuthGraph; (l'', DeleteDerived, l') \<in> SACAuthGraph\<rbrakk> \<Longrightarrow> l'' \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls
 10. \<And>x ep l' auth l''. \<lbrakk>(partition_label EP, Reset, ep) \<in> SACAuthGraph; (l', auth, ep) \<in> SACAuthGraph; auth \<in> {SyncSend, Receive}; (l', Write, l'') \<in> SACAuthGraph\<rbrakk> \<Longrightarrow> l'' \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN2} \<union> RMControls
A total of 12 subgoals...