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
b1fa82f0
Commit
b1fa82f0
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
proofmode: show that quantifiers preserve purity
parent
997c3ed8
No related branches found
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
+13
-0
13 additions, 0 deletions
theories/proofmode/class_instances.v
with
13 additions
and
0 deletions
theories/proofmode/class_instances.v
+
13
−
0
View file @
b1fa82f0
...
@@ -31,6 +31,19 @@ Global Instance into_pure_cmra_valid `{CMRADiscrete A} (a : A) :
...
@@ -31,6 +31,19 @@ Global Instance into_pure_cmra_valid `{CMRADiscrete A} (a : A) :
@
IntoPure
M
(
✓
a
)
(
✓
a
)
.
@
IntoPure
M
(
✓
a
)
(
✓
a
)
.
Proof
.
by
rewrite
/
IntoPure
discrete_valid
.
Qed
.
Proof
.
by
rewrite
/
IntoPure
discrete_valid
.
Qed
.
Global
Instance
into_pure_exist
{
X
:
Type
}
(
Φ
:
X
→
uPred
M
)
φ
:
(
∀
x
,
@
IntoPure
M
(
Φ
x
)
(
φ
x
))
→
@
IntoPure
M
(
∃
x
,
Φ
x
)
(
∃
x
,
φ
x
)
.
Proof
.
rewrite
/
IntoPure
=>
Hx
.
apply
exist_elim
=>
x
.
rewrite
Hx
.
apply
pure_elim'
=>
Hφ
.
apply
pure_intro
.
eauto
.
Qed
.
Global
Instance
into_pure_forall
{
X
:
Type
}
(
Φ
:
X
→
uPred
M
)
φ
:
(
∀
x
,
@
IntoPure
M
(
Φ
x
)
(
φ
x
))
→
@
IntoPure
M
(
∀
x
,
Φ
x
)
(
∀
x
,
φ
x
)
.
Proof
.
rewrite
/
IntoPure
=>
Hx
.
rewrite
-
pure_forall_2
.
by
setoid_rewrite
Hx
.
Qed
.
(* FromPure *)
(* FromPure *)
Global
Instance
from_pure_pure
φ
:
@
FromPure
M
⌜
φ
⌝
φ
.
Global
Instance
from_pure_pure
φ
:
@
FromPure
M
⌜
φ
⌝
φ
.
Proof
.
done
.
Qed
.
Proof
.
done
.
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