-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revive unbounded_rotator. Move it and thermostat to examples subdir. …
…Automate determination of unsafe abstract states. Further cleanup. Ignore-this: 8da9fc4c22d47dc3be404ada077decb5 darcs-hash:20090605112602-bab43-d42be25911905019acf8d97379660e50450dcb7b.gz
- Loading branch information
Showing
20 changed files
with
562 additions
and
465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Require Import c_util. | ||
Require List. | ||
Require decreasing_exponential_flow. | ||
Require abstract. | ||
Require abstract_as_graph. | ||
Require Import Program. | ||
|
||
Require thermostat.conc thermostat.abs. | ||
Module conc := thermostat.conc. | ||
Module abs := thermostat.abs. | ||
|
||
Set Implicit Arguments. | ||
|
||
Definition abs_sys := abs.system milli. | ||
|
||
Program Definition unsafe_reachable: bool := | ||
abstract_as_graph.some_reachable abs_sys (abs.unsafe_abstract milli). | ||
|
||
Theorem unsafe_correct: unsafe_reachable = false -> conc.UnsafeUnreachable. | ||
Proof with auto. | ||
unfold unsafe_reachable, conc.UnsafeUnreachable. | ||
intros srf [l [px py]] su. | ||
apply (abstract_as_graph.states_unreachable abs_sys conc.unsafe (proj1_sig (abs.unsafe_abstract milli)))... | ||
destruct_call abs.unsafe_abstract. | ||
eauto. | ||
Qed. | ||
|
||
Theorem unsafe_unreachable: conc.UnsafeUnreachable. | ||
Proof. Time apply unsafe_correct; vm_compute; reflexivity. Qed. | ||
|
||
Print Assumptions unsafe_unreachable. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.