Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
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
Tej Chajed
iris
Commits
f50cfd4e
Commit
f50cfd4e
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.mpi-sws.org:FP/iris-coq
parents
6beb51d3
714cc8ca
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
heap_lang/heap.v
+2
-2
2 additions, 2 deletions
heap_lang/heap.v
prelude/tactics.v
+2
-1
2 additions, 1 deletion
prelude/tactics.v
with
4 additions
and
3 deletions
heap_lang/heap.v
+
2
−
2
View file @
f50cfd4e
...
@@ -47,7 +47,7 @@ Section heap.
...
@@ -47,7 +47,7 @@ Section heap.
(** Conversion to heaps and back *)
(** Conversion to heaps and back *)
Global
Instance
of_heap_proper
:
Proper
((
≡
)
==>
(
=
))
of_heap
.
Global
Instance
of_heap_proper
:
Proper
((
≡
)
==>
(
=
))
of_heap
.
Proof
.
by
intros
??;
fold_leibniz
=>
->
.
Qed
.
Proof
.
solve_proper
.
Qed
.
Lemma
from_to_heap
σ
:
of_heap
(
to_heap
σ
)
=
σ
.
Lemma
from_to_heap
σ
:
of_heap
(
to_heap
σ
)
=
σ
.
Proof
.
Proof
.
apply
map_eq
=>
l
.
rewrite
lookup_omap
lookup_fmap
.
by
case
(
σ
!!
l
)
.
apply
map_eq
=>
l
.
rewrite
lookup_omap
lookup_fmap
.
by
case
(
σ
!!
l
)
.
...
@@ -96,7 +96,7 @@ Section heap.
...
@@ -96,7 +96,7 @@ Section heap.
(** Propers *)
(** Propers *)
Global
Instance
heap_inv_proper
:
Proper
((
≡
)
==>
(
≡
))
heap_inv
.
Global
Instance
heap_inv_proper
:
Proper
((
≡
)
==>
(
≡
))
heap_inv
.
Proof
.
intros
h1
h2
.
by
fold_leibniz
=>
->
.
Qed
.
Proof
.
solve_proper
.
Qed
.
(** General properties of mapsto *)
(** General properties of mapsto *)
Lemma
heap_mapsto_disjoint
l
v1
v2
:
(
l
↦
v1
★
l
↦
v2
)
%
I
⊑
False
.
Lemma
heap_mapsto_disjoint
l
v1
v2
:
(
l
↦
v1
★
l
↦
v2
)
%
I
⊑
False
.
...
...
This diff is collapsed.
Click to expand it.
prelude/tactics.v
+
2
−
1
View file @
f50cfd4e
...
@@ -188,6 +188,7 @@ Tactic Notation "simplify_eq" := repeat
...
@@ -188,6 +188,7 @@ Tactic Notation "simplify_eq" := repeat
|
H
:
?x
=
_
|
-
_
=>
subst
x
|
H
:
?x
=
_
|
-
_
=>
subst
x
|
H
:
_
=
?x
|
-
_
=>
subst
x
|
H
:
_
=
?x
|
-
_
=>
subst
x
|
H
:
_
=
_
|
-
_
=>
discriminate
H
|
H
:
_
=
_
|
-
_
=>
discriminate
H
|
H
:
_
≡
_
|
-
_
=>
apply
leibniz_equiv
in
H
|
H
:
?f
_
=
?f
_
|
-
_
=>
apply
(
inj
f
)
in
H
|
H
:
?f
_
=
?f
_
|
-
_
=>
apply
(
inj
f
)
in
H
|
H
:
?f
_
_
=
?f
_
_
|
-
_
=>
apply
(
inj2
f
)
in
H
;
destruct
H
|
H
:
?f
_
_
=
?f
_
_
|
-
_
=>
apply
(
inj2
f
)
in
H
;
destruct
H
(* before [injection] to circumvent bug #2939 in some situations *)
(* before [injection] to circumvent bug #2939 in some situations *)
...
@@ -237,7 +238,7 @@ Ltac f_equiv :=
...
@@ -237,7 +238,7 @@ Ltac f_equiv :=
|
|
-
pointwise_relation
_
_
_
_
=>
intros
?
|
|
-
pointwise_relation
_
_
_
_
=>
intros
?
end
;
end
;
(* Normalize away equalities. *)
(* Normalize away equalities. *)
s
ubst
;
s
implify_eq
;
(* repeatedly apply congruence lemmas and use the equalities in the hypotheses. *)
(* repeatedly apply congruence lemmas and use the equalities in the hypotheses. *)
try
match
goal
with
try
match
goal
with
|
_
=>
first
[
reflexivity
|
assumption
|
symmetry
;
assumption
]
|
_
=>
first
[
reflexivity
|
assumption
|
symmetry
;
assumption
]
...
...
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