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
Terraform modules
Monitor
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
Simcha van Collem
Iris
Commits
c012a2f3
Commit
c012a2f3
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Generalize iTimeless to deal with now_True hypotheses.
parent
34f9f865
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
proofmode/class_instances.v
+11
-1
11 additions, 1 deletion
proofmode/class_instances.v
proofmode/classes.v
+3
-0
3 additions, 0 deletions
proofmode/classes.v
proofmode/coq_tactics.v
+5
-5
5 additions, 5 deletions
proofmode/coq_tactics.v
proofmode/tactics.v
+2
-2
2 additions, 2 deletions
proofmode/tactics.v
with
21 additions
and
8 deletions
proofmode/class_instances.v
+
11
−
1
View file @
c012a2f3
...
@@ -327,11 +327,21 @@ Global Instance into_exist_always {A} P (Φ : A → uPred M) :
...
@@ -327,11 +327,21 @@ Global Instance into_exist_always {A} P (Φ : A → uPred M) :
IntoExist
P
Φ
→
IntoExist
(
□
P
)
(
λ
a
,
□
(
Φ
a
))
%
I
.
IntoExist
P
Φ
→
IntoExist
(
□
P
)
(
λ
a
,
□
(
Φ
a
))
%
I
.
Proof
.
rewrite
/
IntoExist
=>
HP
.
by
rewrite
HP
always_exist
.
Qed
.
Proof
.
rewrite
/
IntoExist
=>
HP
.
by
rewrite
HP
always_exist
.
Qed
.
(* IsTrueNow *)
(* IntoNowTrue *)
Global
Instance
into_now_True_now_True
P
:
IntoNowTrue
(
◇
P
)
P
.
Proof
.
done
.
Qed
.
Global
Instance
into_now_True_timeless
P
:
TimelessP
P
→
IntoNowTrue
(
▷
P
)
P
.
Proof
.
done
.
Qed
.
(* IsNowTrue *)
Global
Instance
is_now_True_now_True
P
:
IsNowTrue
(
◇
P
)
.
Global
Instance
is_now_True_now_True
P
:
IsNowTrue
(
◇
P
)
.
Proof
.
by
rewrite
/
IsNowTrue
now_True_idemp
.
Qed
.
Proof
.
by
rewrite
/
IsNowTrue
now_True_idemp
.
Qed
.
Global
Instance
is_now_True_later
P
:
IsNowTrue
(
▷
P
)
.
Global
Instance
is_now_True_later
P
:
IsNowTrue
(
▷
P
)
.
Proof
.
by
rewrite
/
IsNowTrue
now_True_later
.
Qed
.
Proof
.
by
rewrite
/
IsNowTrue
now_True_later
.
Qed
.
Global
Instance
is_now_True_rvs
P
:
IsNowTrue
P
→
IsNowTrue
(|
=
r
=>
P
)
.
Proof
.
rewrite
/
IsNowTrue
=>
HP
.
by
rewrite
-
{
2
}
HP
-
now_True_rvs
-
(
now_True_intro
P
)
.
Qed
.
(* FromViewShift *)
(* FromViewShift *)
Global
Instance
from_vs_rvs
P
:
FromVs
(|
=
r
=>
P
)
P
.
Global
Instance
from_vs_rvs
P
:
FromVs
(|
=
r
=>
P
)
P
.
...
...
This diff is collapsed.
Click to expand it.
proofmode/classes.v
+
3
−
0
View file @
c012a2f3
...
@@ -55,6 +55,9 @@ Class IntoExist {A} (P : uPred M) (Φ : A → uPred M) :=
...
@@ -55,6 +55,9 @@ Class IntoExist {A} (P : uPred M) (Φ : A → uPred M) :=
into_exist
:
P
⊢
∃
x
,
Φ
x
.
into_exist
:
P
⊢
∃
x
,
Φ
x
.
Global
Arguments
into_exist
{_}
_
_
{_}
.
Global
Arguments
into_exist
{_}
_
_
{_}
.
Class
IntoNowTrue
(
P
Q
:
uPred
M
)
:=
into_now_True
:
P
⊢
◇
Q
.
Global
Arguments
into_now_True
:
clear
implicits
.
Class
IsNowTrue
(
Q
:
uPred
M
)
:=
is_now_True
:
◇
Q
⊢
Q
.
Class
IsNowTrue
(
Q
:
uPred
M
)
:=
is_now_True
:
◇
Q
⊢
Q
.
Global
Arguments
is_now_True
:
clear
implicits
.
Global
Arguments
is_now_True
:
clear
implicits
.
...
...
This diff is collapsed.
Click to expand it.
proofmode/coq_tactics.v
+
5
−
5
View file @
c012a2f3
...
@@ -375,15 +375,15 @@ Proof.
...
@@ -375,15 +375,15 @@ Proof.
by
rewrite
right_id
always_and_sep_l'
wand_elim_r
HQ
.
by
rewrite
right_id
always_and_sep_l'
wand_elim_r
HQ
.
Qed
.
Qed
.
Lemma
tac_timeless
Δ
Δ'
i
p
P
Q
:
Lemma
tac_timeless
Δ
Δ'
i
p
P
P'
Q
:
IsNowTrue
Q
→
IsNowTrue
Q
→
envs_lookup
i
Δ
=
Some
(
p
,
▷
P
)
%
I
→
Timeless
P
P
→
envs_lookup
i
Δ
=
Some
(
p
,
P
)
→
IntoNowTrue
P
P
'
→
envs_simple_replace
i
p
(
Esnoc
Enil
i
P
)
Δ
=
Some
Δ'
→
envs_simple_replace
i
p
(
Esnoc
Enil
i
P
'
)
Δ
=
Some
Δ'
→
(
Δ'
⊢
Q
)
→
Δ
⊢
Q
.
(
Δ'
⊢
Q
)
→
Δ
⊢
Q
.
Proof
.
Proof
.
intros
????
HQ
.
rewrite
envs_simple_replace_sound
//
;
simpl
.
intros
????
HQ
.
rewrite
envs_simple_replace_sound
//
;
simpl
.
rewrite
always_if_later
right_id
HQ
-
{
2
}(
is_now_True
Q
)
.
rewrite
right_id
HQ
-
{
2
}(
is_now_True
Q
)
.
by
rewrite
(
timelessP
(
□
?p
P
))
now_True_frame_r
wand_elim_r
.
by
rewrite
(
into_now_True
P
)
-
now_True_always_if
now_True_frame_r
wand_elim_r
.
Qed
.
Qed
.
(** * Always *)
(** * Always *)
...
...
This diff is collapsed.
Click to expand it.
proofmode/tactics.v
+
2
−
2
View file @
c012a2f3
...
@@ -496,11 +496,11 @@ Tactic Notation "iNext":=
...
@@ -496,11 +496,11 @@ Tactic Notation "iNext":=
apply
_
||
fail
"iNext:"
P
"does not contain laters"
|]
.
apply
_
||
fail
"iNext:"
P
"does not contain laters"
|]
.
Tactic
Notation
"iTimeless"
constr
(
H
)
:=
Tactic
Notation
"iTimeless"
constr
(
H
)
:=
eapply
tac_timeless
with
_
H
_
_;
eapply
tac_timeless
with
_
H
_
_
_;
[
let
Q
:=
match
goal
with
|
-
IsNowTrue
?Q
=>
Q
end
in
[
let
Q
:=
match
goal
with
|
-
IsNowTrue
?Q
=>
Q
end
in
apply
_
||
fail
"iTimeless: cannot remove later of timeless hypothesis in goal"
Q
apply
_
||
fail
"iTimeless: cannot remove later of timeless hypothesis in goal"
Q
|
env_cbv
;
reflexivity
||
fail
"iTimeless:"
H
"not found"
|
env_cbv
;
reflexivity
||
fail
"iTimeless:"
H
"not found"
|
let
P
:=
match
goal
with
|
-
TimelessP
?P
=>
P
end
in
|
let
P
:=
match
goal
with
|
-
IntoNowTrue
?P
_
=>
P
end
in
apply
_
||
fail
"iTimeless:"
P
"not timeless"
apply
_
||
fail
"iTimeless:"
P
"not timeless"
|
env_cbv
;
reflexivity
|]
.
|
env_cbv
;
reflexivity
|]
.
...
...
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