theory PolicySystemSAC

lemma rm_affects : "subjectAffects SACAuthGraph (partition_label RM) =
                    {partition_label NicA, partition_label NicB, partition_label NicD,
                     partition_label R, partition_label SC, partition_label EP,
                     partition_label RM, partition_label NTFN2,
                     partition_label NTFN3 \<comment> \<open>added for NTFN binding\<close>}" apply (rule subset_antisym) defer 
  (* backward *)
   apply (rule subsetI) apply (erule insertE, simp only:, rule rm_affects_via_control, simp) apply (erule insertE, simp only:, rule rm_affects_via_control, simp) apply (erule insertE, simp only:, rule rm_affects_via_control, simp) apply (erule insertE, simp only:, rule rm_affects_via_control, simp) apply (erule insertE, simp only:, rule rm_affects_sc) apply (erule insertE, simp only:, rule rm_affects_ep) apply (erule insertE, simp only:, rule affects_lrefl) apply (erule insertE, simp only:, rule rm_affects_ntfn2) apply (erule insertE, simp only:, rule rm_affects_ntfn3) apply 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 RM) = {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (2 subgoals):
 1. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3}
 2. {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} \<subseteq> subjectAffects SACAuthGraph (partition_label RM) proof (prove)
goal (2 subgoals):
 1. {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} \<subseteq> subjectAffects SACAuthGraph (partition_label RM)
 2. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (2 subgoals):
 1. {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} \<subseteq> subjectAffects SACAuthGraph (partition_label RM)
 2. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label RM)
 2. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label RM)
 2. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label RM)
 2. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label RM)
 2. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label RM)
 2. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label RM)
 2. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label RM, partition_label NTFN2, partition_label NTFN3} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label RM)
 2. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label NTFN2, partition_label NTFN3} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label RM)
 2. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label NTFN3} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label RM)
 2. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label RM)
 2. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (1 subgoal):
 1. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (1 subgoal):
 1. subjectAffects SACAuthGraph (partition_label RM) \<subseteq> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (1 subgoal):
 1. \<And>x. x \<in> subjectAffects SACAuthGraph (partition_label RM) \<Longrightarrow> x \<in> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3} proof (prove)
goal (12 subgoals):
 1. \<And>x. partition_label RM \<in> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3}
 2. \<And>x auth l'. \<lbrakk>(partition_label RM, auth, l') \<in> SACAuthGraph; auth \<in> {Control, Write}\<rbrakk> \<Longrightarrow> l' \<in> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3}
 3. \<And>x auth l'. \<lbrakk>(partition_label RM, auth, l') \<in> SACAuthGraph; auth \<in> {Receive, Notify, SyncSend, Call, Reset}\<rbrakk> \<Longrightarrow> l' \<in> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3}
 4. \<And>x auth ep l' l''. \<lbrakk>(partition_label RM, 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 NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3}
 5. \<And>x ep l'. \<lbrakk>(partition_label RM, Receive, ep) \<in> SACAuthGraph; (l', SyncSend, ep) \<in> SACAuthGraph\<rbrakk> \<Longrightarrow> l' \<in> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3}
 6. \<And>x l'. (l', Reply, partition_label RM) \<in> SACAuthGraph \<Longrightarrow> l' \<in> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3}
 7. \<And>x l' l''. \<lbrakk>(partition_label RM, Reply, l') \<in> SACAuthGraph; (l', Write, l'') \<in> SACAuthGraph\<rbrakk> \<Longrightarrow> l'' \<in> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3}
 8. \<And>x l'. (partition_label RM, DeleteDerived, l') \<in> SACAuthGraph \<Longrightarrow> l' \<in> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3}
 9. \<And>x l' l''. \<lbrakk>(partition_label RM, DeleteDerived, l') \<in> SACAuthGraph; (l'', DeleteDerived, l') \<in> SACAuthGraph\<rbrakk> \<Longrightarrow> l'' \<in> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3}
 10. \<And>x ep l' auth l''. \<lbrakk>(partition_label RM, Reset, ep) \<in> SACAuthGraph; (l', auth, ep) \<in> SACAuthGraph; auth \<in> {SyncSend, Receive}; (l', Write, l'') \<in> SACAuthGraph\<rbrakk> \<Longrightarrow> l'' \<in> {partition_label NicA, partition_label NicB, partition_label NicD, partition_label R, partition_label SC, partition_label EP, partition_label RM, partition_label NTFN2, partition_label NTFN3}
A total of 12 subgoals...