Skip to content
This repository has been archived by the owner on Feb 5, 2022. It is now read-only.

Commit

Permalink
Overhaul the `Filtering_On_Receipt_Forwarding_Broadcasting_Equivalenc…
Browse files Browse the repository at this point in the history
…e` theory
  • Loading branch information
javierdiaz72 committed Oct 23, 2019
1 parent d67b33e commit 0a3e9d2
Show file tree
Hide file tree
Showing 6 changed files with 693 additions and 2,359 deletions.
5 changes: 5 additions & 0 deletions Isabelle/Chi_Calculus/Basic_Transition_System.thy
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,10 @@ private lift_definition new_channel' :: "(chan \<Rightarrow> basic_behavior) \<R
is NewChannel
using basic_new_channel_preservation .

private lift_definition guard' :: "[bool, basic_behavior] \<Rightarrow> basic_behavior"
is guard
using basic.guard_preservation .

private lift_definition general_parallel' :: "['a \<Rightarrow> basic_behavior, 'a list] \<Rightarrow> basic_behavior"
is general_parallel
using basic.general_parallel_preservation .
Expand All @@ -626,6 +630,7 @@ lemmas [equivalence_transfer] =
receive'.abs_eq
parallel'.abs_eq
new_channel'.abs_eq
guard'.abs_eq
general_parallel'.abs_eq

end
Expand Down
6 changes: 6 additions & 0 deletions Isabelle/Chi_Calculus/Basic_Weak_Transition_System.thy
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ private
is NewChannel
using basic_weak_new_channel_preservation .

private
lift_definition guard' :: "[bool, basic_weak_behavior] \<Rightarrow> basic_weak_behavior"
is guard
sorry

private
lift_definition general_parallel' :: "['a \<Rightarrow> basic_weak_behavior, 'a list] \<Rightarrow> basic_weak_behavior"
is general_parallel
Expand All @@ -107,6 +112,7 @@ lemmas [equivalence_transfer] =
receive'.abs_eq
parallel'.abs_eq
new_channel'.abs_eq
guard'.abs_eq
general_parallel'.abs_eq

end
Expand Down
5 changes: 5 additions & 0 deletions Isabelle/Chi_Calculus/Natural_Transition_Systems.thy
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ locale natural_transition_system =
"\<And>P Q. (\<And>a. P a \<sim> Q a) \<Longrightarrow> \<nu> a. P a \<sim> \<nu> a. Q a"
begin

lemma guard_preservation:
assumes "p \<sim> q"
shows "\<phi> ? p \<sim> \<phi> ? q"
using assms by simp

lemma general_parallel_preservation:
assumes "\<And>x. f x \<sim> g x"
shows "general_parallel f xs \<sim> general_parallel g xs"
Expand Down
5 changes: 5 additions & 0 deletions Isabelle/Chi_Calculus/Proper_Transition_System.thy
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ private lift_definition new_channel' :: "(chan \<Rightarrow> proper_behavior) \<
is NewChannel
using proper_new_channel_preservation .

private lift_definition guard' :: "[bool, proper_behavior] \<Rightarrow> proper_behavior"
is guard
using proper.guard_preservation .

private lift_definition general_parallel' :: "['a \<Rightarrow> proper_behavior, 'a list] \<Rightarrow> proper_behavior"
is general_parallel
using proper.general_parallel_preservation .
Expand All @@ -313,6 +317,7 @@ lemmas [equivalence_transfer] =
receive'.abs_eq
parallel'.abs_eq
new_channel'.abs_eq
guard'.abs_eq
general_parallel'.abs_eq

end
Expand Down
6 changes: 6 additions & 0 deletions Isabelle/Chi_Calculus/Proper_Weak_Transition_System.thy
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,11 @@ private
is NewChannel
using proper_weak_new_channel_preservation .

private
lift_definition guard' :: "[bool, proper_weak_behavior] \<Rightarrow> proper_weak_behavior"
is guard
sorry

private
lift_definition general_parallel' :: "['a \<Rightarrow> proper_weak_behavior, 'a list] \<Rightarrow> proper_weak_behavior"
is general_parallel
Expand All @@ -114,6 +119,7 @@ lemmas [equivalence_transfer] =
receive'.abs_eq
parallel'.abs_eq
new_channel'.abs_eq
guard'.abs_eq
general_parallel'.abs_eq

end
Expand Down
Loading

0 comments on commit 0a3e9d2

Please sign in to comment.