theory PolicySystemSAC

lemma ntfn1_affects : "subjectAffects SACAuthGraph (partition_label NTFN1) = {partition_label NTFN1, partition_label SC, partition_label NicC}" apply (rule subset_antisym) defer 
  (* backward *)
   apply (rule subsetI) apply (erule insertE, simp only:, rule affects_lrefl) apply (erule insertE, simp only:, rule ntfn1_affects_sc) apply (erule insertE, simp only:, rule ntfn1_affects_c) apply simp 
  (* forward *)
   apply (rule subsetI) apply (erule subjectAffects.induct) apply (simp add:SACAuthGraph_def, blast?)+ done

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