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
f42a673b
Commit
f42a673b
authored
8 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
Inhabited instance for any Empty instance.
parent
340afd90
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
algebra/cmra.v
+0
-2
0 additions, 2 deletions
algebra/cmra.v
prelude/base.v
+2
-0
2 additions, 0 deletions
prelude/base.v
proofmode/weakestpre.v
+1
-1
1 addition, 1 deletion
proofmode/weakestpre.v
with
3 additions
and
3 deletions
algebra/cmra.v
+
0
−
2
View file @
f42a673b
...
...
@@ -504,8 +504,6 @@ Section ucmra.
Context
{
A
:
ucmraT
}
.
Implicit
Types
x
y
z
:
A
.
Global
Instance
ucmra_unit_inhabited
:
Inhabited
A
:=
populate
∅.
Lemma
ucmra_unit_validN
n
:
✓
{
n
}
(
∅:
A
)
.
Proof
.
apply
cmra_valid_validN
,
ucmra_unit_valid
.
Qed
.
Lemma
ucmra_unit_leastN
n
x
:
∅
≼
{
n
}
x
.
...
...
This diff is collapsed.
Click to expand it.
prelude/base.v
+
2
−
0
View file @
f42a673b
...
...
@@ -567,6 +567,8 @@ intersection [(∩)], and difference [(∖)], the singleton [{[_]}], the subset
Class
Empty
A
:=
empty
:
A
.
Notation
"∅"
:=
empty
:
C_scope
.
Instance
empty_inhabited
`
(
Empty
A
)
:
Inhabited
A
:=
populate
∅.
Class
Top
A
:=
top
:
A
.
Notation
"⊤"
:=
top
:
C_scope
.
...
...
This diff is collapsed.
Click to expand it.
proofmode/weakestpre.v
+
1
−
1
View file @
f42a673b
...
...
@@ -30,7 +30,7 @@ Proof. by rewrite /ElimVs pvs_frame_r wand_elim_r pvs_wp. Qed.
(* lower precedence, if possible, it should always pick elim_vs_pvs_wp *)
Global
Instance
elim_vs_pvs_wp_atomic
E1
E2
e
P
Φ
:
atomic
e
→
ElimVs
(|
=
{
E1
,
E2
}=>
P
)
P
ElimVs
(|
=
{
E1
,
E2
}=>
P
)
P
(
WP
e
@
E1
{{
Φ
}})
(
WP
e
@
E2
{{
v
,
|
=
{
E2
,
E1
}=>
Φ
v
}})
%
I
|
100
.
Proof
.
intros
.
by
rewrite
/
ElimVs
pvs_frame_r
wand_elim_r
wp_atomic
.
Qed
.
End
weakestpre
.
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