theory PolicySystemSAC

lemma sc_affects : "subjectAffects SACAuthGraph (partition_label SC) = {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1}" apply (rule subset_antisym) defer 
  (* backward *)
   apply (rule subsetI) apply (erule insertE, rule sc_affects_all_rm_controls, simp) apply (erule insertE, rule sc_affects_all_rm_controls, simp) apply (erule insertE, rule sc_affects_all_rm_controls, simp) apply (erule insertE, rule sc_affects_all_rm_controls, simp) apply (erule insertE, rule sc_affects_all_rm_controls, simp) apply (erule insertE, simp only:, rule_tac l="partition_label SC" and auth="SyncSend" in affects_ep, simp, simp) apply (erule insertE, simp only:, rule affects_lrefl) apply (erule insertE, simp only:, rule_tac l="partition_label SC" and auth="Write" in affects_write, simp, simp) apply (erule insertE, simp only:, rule_tac l="partition_label SC" and auth="Receive" in affects_ep, simp, simp) apply simp 
  (* forward *)
   apply (rule subsetI) apply (erule subjectAffects.induct) apply (simp, blast?)+ done

(* Proof state trace *)
proof (prove)
goal (1 subgoal):
 1. subjectAffects SACAuthGraph (partition_label SC) = {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (2 subgoals):
 1. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1}
 2. {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} \<subseteq> subjectAffects SACAuthGraph (partition_label SC) proof (prove)
goal (2 subgoals):
 1. {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} \<subseteq> subjectAffects SACAuthGraph (partition_label SC)
 2. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (2 subgoals):
 1. {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} \<subseteq> subjectAffects SACAuthGraph (partition_label SC)
 2. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label SC)
 2. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label SC)
 2. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label SC)
 2. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label SC)
 2. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label SC)
 2. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label SC)
 2. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label SC, partition_label NicC, partition_label NTFN1} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label SC)
 2. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label NicC, partition_label NTFN1} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label SC)
 2. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {partition_label NTFN1} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label SC)
 2. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (2 subgoals):
 1. \<And>x. x \<in> {} \<Longrightarrow> x \<in> subjectAffects SACAuthGraph (partition_label SC)
 2. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (1 subgoal):
 1. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (1 subgoal):
 1. subjectAffects SACAuthGraph (partition_label SC) \<subseteq> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (1 subgoal):
 1. \<And>x. x \<in> subjectAffects SACAuthGraph (partition_label SC) \<Longrightarrow> x \<in> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1} proof (prove)
goal (12 subgoals):
 1. \<And>x. partition_label SC \<in> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1}
 2. \<And>x auth l'. \<lbrakk>(partition_label SC, auth, l') \<in> SACAuthGraph; auth \<in> {Control, Write}\<rbrakk> \<Longrightarrow> l' \<in> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1}
 3. \<And>x auth l'. \<lbrakk>(partition_label SC, auth, l') \<in> SACAuthGraph; auth \<in> {Receive, Notify, SyncSend, Call, Reset}\<rbrakk> \<Longrightarrow> l' \<in> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1}
 4. \<And>x auth ep l' l''. \<lbrakk>(partition_label SC, 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 NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1}
 5. \<And>x ep l'. \<lbrakk>(partition_label SC, Receive, ep) \<in> SACAuthGraph; (l', SyncSend, ep) \<in> SACAuthGraph\<rbrakk> \<Longrightarrow> l' \<in> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1}
 6. \<And>x l'. (l', Reply, partition_label SC) \<in> SACAuthGraph \<Longrightarrow> l' \<in> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1}
 7. \<And>x l' l''. \<lbrakk>(partition_label SC, Reply, l') \<in> SACAuthGraph; (l', Write, l'') \<in> SACAuthGraph\<rbrakk> \<Longrightarrow> l'' \<in> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1}
 8. \<And>x l'. (partition_label SC, DeleteDerived, l') \<in> SACAuthGraph \<Longrightarrow> l' \<in> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1}
 9. \<And>x l' l''. \<lbrakk>(partition_label SC, DeleteDerived, l') \<in> SACAuthGraph; (l'', DeleteDerived, l') \<in> SACAuthGraph\<rbrakk> \<Longrightarrow> l'' \<in> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1}
 10. \<And>x ep l' auth l''. \<lbrakk>(partition_label SC, Reset, ep) \<in> SACAuthGraph; (l', auth, ep) \<in> SACAuthGraph; auth \<in> {SyncSend, Receive}; (l', Write, l'') \<in> SACAuthGraph\<rbrakk> \<Longrightarrow> l'' \<in> {partition_label NicB, partition_label RM, partition_label R, partition_label NicA, partition_label NicD, partition_label EP, partition_label SC, partition_label NicC, partition_label NTFN1}
A total of 12 subgoals... proof (prove)
goal:
No subgoals!