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
b71c6f44
Commit
b71c6f44
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
have two instances for ElimInv and MakeEmbed, instead of one horrible one
parent
3627c45f
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/monpred.v
+14
-11
14 additions, 11 deletions
theories/proofmode/monpred.v
with
14 additions
and
11 deletions
theories/proofmode/monpred.v
+
14
−
11
View file @
b71c6f44
...
...
@@ -486,18 +486,21 @@ Global Instance add_modal_at_fupd_goal `{BiFUpd PROP} E1 E2 𝓟 𝓟' Q i :
AddModal
𝓟
𝓟'
(|
=
{
E1
,
E2
}=>
Q
i
)
→
AddModal
𝓟
𝓟'
((|
=
{
E1
,
E2
}=>
Q
)
i
)
.
Proof
.
by
rewrite
/
AddModal
!
monPred_at_fupd
.
Qed
.
Global
Instance
elim_inv_embed
φ
𝓟inv
𝓟in
𝓟out
𝓟close
Pin
Pout
Pclose
Q
Q'
:
(
∀
i
,
ElimInv
φ
𝓟inv
𝓟in
𝓟out
𝓟close
(
Q
i
)
(
Q'
i
))
→
Global
Instance
elim_inv_embed_with_close
φ
𝓟inv
𝓟in
𝓟out
𝓟close
Pin
Pout
Pclose
Q
Q'
:
(
∀
i
,
ElimInv
φ
𝓟inv
𝓟in
𝓟out
(
Some
𝓟close
)
(
Q
i
)
(
Q'
i
))
→
MakeEmbed
𝓟in
Pin
→
MakeEmbed
𝓟out
Pout
→
MakeEmbed
𝓟close
Pclose
→
ElimInv
φ
⎡
𝓟inv
⎤
Pin
Pout
(
Some
Pclose
)
Q
Q'
.
Proof
.
rewrite
/
MakeEmbed
/
ElimInv
=>
H
<-
<-
<-
?
.
iStartProof
PROP
.
iIntros
(?)
"(?&?&HQ')"
.
iApply
H
;
[
done
|]
.
iFrame
.
iIntros
"?"
.
by
iApply
"HQ'"
.
Qed
.
Global
Instance
elim_inv_embed_without_close
φ
𝓟inv
𝓟in
𝓟out
Pin
Pout
Q
Q'
:
(
∀
i
,
ElimInv
φ
𝓟inv
𝓟in
𝓟out
None
(
Q
i
)
(
Q'
i
))
→
MakeEmbed
𝓟in
Pin
→
MakeEmbed
𝓟out
Pout
→
match
𝓟close
,
Pclose
with
|
Some
𝓟close
,
Some
Pclose
=>
MakeEmbed
𝓟close
Pclose
|
None
,
None
=>
True
|
_,
_
=>
False
end
→
ElimInv
φ
⎡
𝓟inv
⎤
Pin
Pout
Pclose
Q
Q'
.
ElimInv
φ
⎡
𝓟inv
⎤
Pin
Pout
None
Q
Q'
.
Proof
.
rewrite
/
MakeEmbed
/
ElimInv
=>
H
<-
<-
Hclose
?
.
iStartProof
PROP
.
iIntros
(?)
"(?&?&HQ')"
.
iApply
H
;
[
done
|]
.
iFrame
.
iIntros
"?"
.
destruct
𝓟close
;
destruct
Pclose
;
try
rewrite
-
Hclose
;
iApply
"HQ'"
;
done
.
rewrite
/
MakeEmbed
/
ElimInv
=>
H
<-
<-
?
.
iStartProof
PROP
.
iIntros
(?)
"(?&?&HQ')"
.
iApply
H
;
[
done
|]
.
iFrame
.
iIntros
"?"
.
by
iApply
"HQ'"
.
Qed
.
End
sbi
.
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