Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris-coq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jan
iris-coq
Commits
5863b551
Commit
5863b551
authored
7 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
use beq instead of Bool.eqb in envs_replace
parent
6b4f965e
Branches
ralf/pm_red
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/proofmode/coq_tactics.v
+1
-2
1 addition, 2 deletions
theories/proofmode/coq_tactics.v
theories/proofmode/environments.v
+1
-1
1 addition, 1 deletion
theories/proofmode/environments.v
with
2 additions
and
3 deletions
theories/proofmode/coq_tactics.v
+
1
−
2
View file @
5863b551
...
@@ -208,7 +208,7 @@ Lemma envs_replace_sound' Δ Δ' i p q Γ :
...
@@ -208,7 +208,7 @@ Lemma envs_replace_sound' Δ Δ' i p q Γ :
envs_replace
i
p
q
Γ
Δ
=
Some
Δ'
→
envs_replace
i
p
q
Γ
Δ
=
Some
Δ'
→
of_envs
(
envs_delete
true
i
p
Δ
)
⊢
(
if
q
then
□
[
∧
]
Γ
else
[
∗
]
Γ
)
-∗
of_envs
Δ'
.
of_envs
(
envs_delete
true
i
p
Δ
)
⊢
(
if
q
then
□
[
∧
]
Γ
else
[
∗
]
Γ
)
-∗
of_envs
Δ'
.
Proof
.
Proof
.
rewrite
/
envs_replace
;
destruct
(
Bool
.
eq
b
_
_)
eqn
:
Hpq
.
rewrite
/
envs_replace
;
destruct
(
b
eq
_
_)
eqn
:
Hpq
.
-
apply
eqb_prop
in
Hpq
as
->
.
apply
envs_simple_replace_sound'
.
-
apply
eqb_prop
in
Hpq
as
->
.
apply
envs_simple_replace_sound'
.
-
apply
envs_app_sound
.
-
apply
envs_app_sound
.
Qed
.
Qed
.
...
@@ -612,7 +612,6 @@ Proof.
...
@@ -612,7 +612,6 @@ Proof.
rewrite
envs_lookup_sound
//
envs_split_sound
//.
rewrite
envs_lookup_sound
//
envs_split_sound
//.
rewrite
(
envs_app_singleton_sound
Δ2
)
//
;
simpl
.
rewrite
(
envs_app_singleton_sound
Δ2
)
//
;
simpl
.
rewrite
HP1
into_wand
/=
-
(
add_modal
P1'
P1
Q
)
.
cancel
[
P1'
]
.
rewrite
HP1
into_wand
/=
-
(
add_modal
P1'
P1
Q
)
.
cancel
[
P1'
]
.
apply
wand_intro_l
.
by
rewrite
assoc
!
wand_elim_r
.
apply
wand_intro_l
.
by
rewrite
assoc
!
wand_elim_r
.
Qed
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
theories/proofmode/environments.v
+
1
−
1
View file @
5863b551
...
@@ -299,7 +299,7 @@ Definition envs_simple_replace {PROP : bi} (i : ident) (p : bool)
...
@@ -299,7 +299,7 @@ Definition envs_simple_replace {PROP : bi} (i : ident) (p : bool)
Definition
envs_replace
{
PROP
:
bi
}
(
i
:
ident
)
(
p
q
:
bool
)
Definition
envs_replace
{
PROP
:
bi
}
(
i
:
ident
)
(
p
q
:
bool
)
(
Γ
:
env
PROP
)
(
Δ
:
envs
PROP
)
:
option
(
envs
PROP
)
:=
(
Γ
:
env
PROP
)
(
Δ
:
envs
PROP
)
:
option
(
envs
PROP
)
:=
if
Bool
.
eq
b
p
q
then
envs_simple_replace
i
p
Γ
Δ
if
b
eq
p
q
then
envs_simple_replace
i
p
Γ
Δ
else
envs_app
q
Γ
(
envs_delete
true
i
p
Δ
)
.
else
envs_app
q
Γ
(
envs_delete
true
i
p
Δ
)
.
Definition
env_spatial_is_nil
{
PROP
}
(
Δ
:
envs
PROP
)
:
bool
:=
Definition
env_spatial_is_nil
{
PROP
}
(
Δ
:
envs
PROP
)
:
bool
:=
...
...
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