-
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.
- Loading branch information
Showing
20 changed files
with
1,212 additions
and
79 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -474,3 +474,5 @@ Section contents. | |
Qed. | ||
|
||
End contents. | ||
|
||
Hint Resolve inv_correct. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
Require Import hybrid.tactics. | ||
Require Import hybrid.abstract. | ||
Require Import hybrid.geometry. | ||
Require Import hybrid.square_abstraction. | ||
Require Import hybrid.flow. | ||
|
||
Require Import hybrid.examples.room_heating.conc. | ||
|
||
Set Implicit Arguments. | ||
|
||
Local Open Scope CR_scope. | ||
Local Open Scope vec_scope. | ||
|
||
Module RoomHeatingAbstract (Import RHS : RoomHeatingSpec). | ||
|
||
Module Import conc := RoomHeatingConcrete RHS. | ||
|
||
Definition two_pos: CRpos ('2) := positive_CRpos 2. | ||
|
||
Definition room_flow_inv (rs : RoomState) : OpenRange -> OpenRange -> OpenRange := | ||
match rs with | ||
| HeaterOn => flow.scale.inv two_pos (square_flow_conditions.one_axis.flow_range | ||
_ flow.positive_linear.inv_correct flow.positive_linear.mono) | ||
| HeaterOff | ||
| NoHeater => decreasing_exponential_flow.inv milli | ||
end. | ||
|
||
Lemma room_flow_ok l : range_flow_inv_spec (room_flow l) (room_flow_inv l). | ||
Proof with auto. | ||
destruct l; crunch. | ||
Qed. | ||
|
||
End RoomHeatingAbstract. |
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
Oops, something went wrong.