Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
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
Ike Mulder
Iris
Commits
9aed61c5
Commit
9aed61c5
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
more f_equiv work.
parent
8d983adf
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
prelude/tactics.v
+3
-3
3 additions, 3 deletions
prelude/tactics.v
program_logic/hoare.v
+1
-1
1 addition, 1 deletion
program_logic/hoare.v
program_logic/viewshifts.v
+1
-1
1 addition, 1 deletion
program_logic/viewshifts.v
with
5 additions
and
5 deletions
prelude/tactics.v
+
3
−
3
View file @
9aed61c5
...
...
@@ -236,17 +236,17 @@ Ltac f_equiv :=
try
lazymatch
goal
with
|
|
-
pointwise_relation
_
_
_
_
=>
intros
?
end
;
(* Normalize away equalities. *)
subst
;
(* repeatedly apply congruence lemmas and use the equalities in the hypotheses. *)
first
[
reflexivity
|
assumption
|
symmetry
;
assumption
|
match
goal
with
(* We support matches on both sides, *if* they concern the same
or provably equal
variable
s
.
variable.
TODO: We should support different variables, provided that we can
derive contradictions for the off-diagonal cases. *)
|
|
-
?R
(
match
?x
with
_
=>
_
end
)
(
match
?x
with
_
=>
_
end
)
=>
destruct
x
;
f_equiv
|
|
-
?R
(
match
?x
with
_
=>
_
end
)
(
match
?y
with
_
=>
_
end
)
=>
subst
y
;
f_equiv
(* First assume that the arguments need the same relation as the result *)
|
|
-
?R
(
?f
?x
)
(
?f
_)
=>
let
H
:=
fresh
"Proper"
in
...
...
This diff is collapsed.
Click to expand it.
program_logic/hoare.v
+
1
−
1
View file @
9aed61c5
...
...
@@ -27,7 +27,7 @@ Import uPred.
Global
Instance
ht_ne
E
n
:
Proper
(
dist
n
==>
eq
==>
pointwise_relation
_
(
dist
n
)
==>
dist
n
)
(
@
ht
Λ
Σ
E
)
.
Proof
.
by
intros
P
P'
HP
e
?
<-
Φ
Φ'
HΦ
;
rewrite
/
ht
HP
;
setoid_rewrite
HΦ
.
Qed
.
Proof
.
solve_proper
.
Qed
.
Global
Instance
ht_proper
E
:
Proper
((
≡
)
==>
eq
==>
pointwise_relation
_
(
≡
)
==>
(
≡
))
(
@
ht
Λ
Σ
E
)
.
Proof
.
by
intros
P
P'
HP
e
?
<-
Φ
Φ'
HΦ
;
rewrite
/
ht
HP
;
setoid_rewrite
HΦ
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
program_logic/viewshifts.v
+
1
−
1
View file @
9aed61c5
...
...
@@ -30,7 +30,7 @@ Qed.
Global
Instance
vs_ne
E1
E2
n
:
Proper
(
dist
n
==>
dist
n
==>
dist
n
)
(
@
vs
Λ
Σ
E1
E2
)
.
Proof
.
by
intros
P
P'
HP
Q
Q'
HQ
;
rewrite
/
vs
HP
HQ
.
Qed
.
Proof
.
solve_proper
.
Qed
.
Global
Instance
vs_proper
E1
E2
:
Proper
((
≡
)
==>
(
≡
)
==>
(
≡
))
(
@
vs
Λ
Σ
E1
E2
)
.
Proof
.
apply
ne_proper_2
,
_
.
Qed
.
...
...
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