Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
coq-pactole
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pactole
coq-pactole
Commits
bdd3e642
Commit
bdd3e642
authored
5 years ago
by
Pierre Courtieu
Browse files
Options
Downloads
Patches
Plain Diff
Cleaning instances.
parent
e9047f73
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CaseStudies/Gathering/InR2/FSyncFlexNoMultAlgorithm.v
+9
-7
9 additions, 7 deletions
CaseStudies/Gathering/InR2/FSyncFlexNoMultAlgorithm.v
with
9 additions
and
7 deletions
CaseStudies/Gathering/InR2/FSyncFlexNoMultAlgorithm.v
+
9
−
7
View file @
bdd3e642
...
@@ -48,8 +48,8 @@ Hypothesis size_G : (2 <= n)%nat.
...
@@ -48,8 +48,8 @@ Hypothesis size_G : (2 <= n)%nat.
Instance
MyRobots
:
Names
:=
Robots
n
0.
Instance
MyRobots
:
Names
:=
Robots
n
0.
Instance
Loc
:
Location
:=
make_Location
R2
.
Instance
Loc
:
Location
:=
make_Location
R2
.
Instance
Loc_VS
:
@
RealVectorSpace
location
location_Setoid
location_EqDec
:=
R2_VS
.
Local
Existing
Instance
R2_VS
.
Instance
Loc_ES
:
@
EuclideanSpace
location
location_Setoid
location_EqDec
Loc_VS
:=
R2_ES
.
Local
Existing
Instance
R2_ES
.
Remove
Hints
R2_Setoid
R2_EqDec
:
typeclass_instances
.
Remove
Hints
R2_Setoid
R2_EqDec
:
typeclass_instances
.
Instance
Info
:
State
location
:=
OnlyLocation
(
fun
_
=>
True
).
Instance
Info
:
State
location
:=
OnlyLocation
(
fun
_
=>
True
).
...
@@ -63,9 +63,7 @@ Ltac changeR2 :=
...
@@ -63,9 +63,7 @@ Ltac changeR2 :=
change
R2_Setoid
with
location_Setoid
in
*
;
change
R2_Setoid
with
location_Setoid
in
*
;
change
state_Setoid
with
location_Setoid
in
*
;
change
state_Setoid
with
location_Setoid
in
*
;
change
R2_EqDec
with
location_EqDec
in
*
;
change
R2_EqDec
with
location_EqDec
in
*
;
change
state_EqDec
with
location_EqDec
in
*
;
change
state_EqDec
with
location_EqDec
in
*
.
change
R2_VS
with
Loc_VS
in
*
;
change
R2_ES
with
Loc_ES
in
*
.
(
**
We
are
in
a
flexible
formalism
with
no
other
info
than
the
location
,
(
**
We
are
in
a
flexible
formalism
with
no
other
info
than
the
location
,
...
@@ -199,7 +197,11 @@ Lemma max_dist_obs_le :
...
@@ -199,7 +197,11 @@ Lemma max_dist_obs_le :
InA
equiv
pt0
(
elements
s
)
->
InA
equiv
pt0
(
elements
s
)
->
InA
equiv
pt1
(
elements
s
)
->
InA
equiv
pt1
(
elements
s
)
->
dist
pt0
pt1
<=
max_dist_obs
s
.
dist
pt0
pt1
<=
max_dist_obs
s
.
Proof
using
.
intros
.
now
apply
max_dist_list_list_le
.
Qed
.
Proof
using
.
intros
.
unfold
max_dist_obs
.
now
apply
max_dist_list_list_le
.
Qed
.
Lemma
max_dist_obs_ex
:
Lemma
max_dist_obs_ex
:
forall
(
s
:
observation
),
forall
(
s
:
observation
),
...
@@ -208,7 +210,7 @@ Lemma max_dist_obs_ex :
...
@@ -208,7 +210,7 @@ Lemma max_dist_obs_ex :
InA
equiv
pt0
(
elements
s
)
InA
equiv
pt0
(
elements
s
)
/
\
InA
equiv
pt1
(
elements
s
)
/
\
InA
equiv
pt1
(
elements
s
)
/
\
dist
pt0
pt1
=
max_dist_obs
s
.
/
\
dist
pt0
pt1
=
max_dist_obs
s
.
Proof
using
.
intros
.
now
apply
max_dist_list_list_ex
.
Qed
.
Proof
using
.
intros
.
unfold
max_dist_obs
.
now
apply
max_dist_list_list_ex
.
Qed
.
(
**
**
Main
result
for
termination
:
the
measure
decreases
after
a
step
where
a
robot
moves
*
)
(
**
**
Main
result
for
termination
:
the
measure
decreases
after
a
step
where
a
robot
moves
*
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment