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
Gaëtan Gilbert
Iris
Commits
352292a8
Commit
352292a8
authored
7 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
We usually fail faster to prove IntoPure than Absorbing/Affine.
parent
3b03bb6d
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
theories/proofmode/class_instances.v
+4
-4
4 additions, 4 deletions
theories/proofmode/class_instances.v
with
4 additions
and
4 deletions
theories/proofmode/class_instances.v
+
4
−
4
View file @
352292a8
...
@@ -613,9 +613,9 @@ Proof.
...
@@ -613,9 +613,9 @@ Proof.
apply
pure_elim_l
=>
Hφ
.
by
rewrite
-
(
exist_intro
Hφ
)
.
apply
pure_elim_l
=>
Hφ
.
by
rewrite
-
(
exist_intro
Hφ
)
.
Qed
.
Qed
.
Global
Instance
into_exist_sep_pure
P
Q
φ
:
Global
Instance
into_exist_sep_pure
P
Q
φ
:
TCOr
(
Affine
P
)
(
Absorbing
Q
)
→
IntoPureT
P
φ
→
IntoExist
(
P
∗
Q
)
(
λ
_
:
φ
,
Q
)
.
IntoPureT
P
φ
→
TCOr
(
Affine
P
)
(
Absorbing
Q
)
→
IntoExist
(
P
∗
Q
)
(
λ
_
:
φ
,
Q
)
.
Proof
.
Proof
.
intros
?
(
φ'
&
->
&
?)
.
rewrite
/
IntoExist
.
intros
(
φ'
&
->
&
?)
?
.
rewrite
/
IntoExist
.
eapply
(
pure_elim
φ'
);
[
by
rewrite
(
into_pure
P
);
apply
sep_elim_l
,
_|]=>?
.
eapply
(
pure_elim
φ'
);
[
by
rewrite
(
into_pure
P
);
apply
sep_elim_l
,
_|]=>?
.
rewrite
-
exist_intro
//.
apply
sep_elim_r
,
_
.
rewrite
-
exist_intro
//.
apply
sep_elim_r
,
_
.
Qed
.
Qed
.
...
@@ -658,10 +658,10 @@ Proof.
...
@@ -658,10 +658,10 @@ Proof.
intros
(
φ'
&
->
&
?)
.
by
rewrite
/
FromForall
-
pure_impl_forall
(
into_pure
P
)
.
intros
(
φ'
&
->
&
?)
.
by
rewrite
/
FromForall
-
pure_impl_forall
(
into_pure
P
)
.
Qed
.
Qed
.
Global
Instance
from_forall_wand_pure
P
Q
φ
:
Global
Instance
from_forall_wand_pure
P
Q
φ
:
TCOr
(
Affine
P
)
(
Absorbing
Q
)
→
IntoPureT
P
φ
→
IntoPureT
P
φ
→
TCOr
(
Affine
P
)
(
Absorbing
Q
)
→
FromForall
(
P
-∗
Q
)
%
I
(
λ
_
:
φ
,
Q
)
%
I
.
FromForall
(
P
-∗
Q
)
%
I
(
λ
_
:
φ
,
Q
)
%
I
.
Proof
.
Proof
.
intros
[|]
(
φ'
&
->
&
?);
rewrite
/
FromForall
;
apply
wand_intro_r
.
intros
(
φ'
&
->
&
?)
[|]
;
rewrite
/
FromForall
;
apply
wand_intro_r
.
-
rewrite
-
(
affine_affinely
P
)
(
into_pure
P
)
-
persistent_and_affinely_sep_r
.
-
rewrite
-
(
affine_affinely
P
)
(
into_pure
P
)
-
persistent_and_affinely_sep_r
.
apply
pure_elim_r
=>?
.
by
rewrite
forall_elim
.
apply
pure_elim_r
=>?
.
by
rewrite
forall_elim
.
-
by
rewrite
(
into_pure
P
)
-
pure_wand_forall
wand_elim_l
.
-
by
rewrite
(
into_pure
P
)
-
pure_wand_forall
wand_elim_l
.
...
...
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