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
Rice Wine
Iris
Commits
4c056f5e
Commit
4c056f5e
authored
8 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Patches
Plain Diff
Counting CMRA
parent
b3d2ff9b
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
_CoqProject
+1
-0
1 addition, 0 deletions
_CoqProject
algebra/count.v
+21
-0
21 additions, 0 deletions
algebra/count.v
heap_lang/lang.v
+1
-1
1 addition, 1 deletion
heap_lang/lang.v
with
23 additions
and
1 deletion
_CoqProject
+
1
−
0
View file @
4c056f5e
...
...
@@ -55,6 +55,7 @@ algebra/upred_tactics.v
algebra/upred_big_op.v
algebra/upred_hlist.v
algebra/frac.v
algebra/count.v
algebra/csum.v
algebra/list.v
algebra/updates.v
...
...
This diff is collapsed.
Click to expand it.
algebra/count.v
0 → 100644
+
21
−
0
View file @
4c056f5e
From
iris
.
algebra
Require
Export
cmra
.
From
iris
.
algebra
Require
Import
upred
.
Notation
count
:=
nat
(
only
parsing
)
.
Section
count
.
Canonical
Structure
countC
:=
leibnizC
count
.
Instance
count_valid
:
Valid
count
:=
λ
_,
True
.
Instance
count_pcore
:
PCore
count
:=
λ
_,
None
.
Instance
count_op
:
Op
count
:=
λ
x
y
,
(
x
+
y
)
%
nat
.
Definition
count_ra_mixin
:
RAMixin
nat
.
Proof
.
by
split
;
try
apply
_
.
Qed
.
Canonical
Structure
countR
:=
discreteR
count
count_ra_mixin
.
End
count
.
(** Internalized properties *)
Lemma
count_equivI
{
M
}
(
x
y
:
count
)
:
x
≡
y
⊣⊢
(
x
=
y
:
uPred
M
)
.
Proof
.
by
uPred
.
unseal
.
Qed
.
Lemma
count_validI
{
M
}
(
x
:
count
)
:
✓
x
⊣⊢
(
True
:
uPred
M
)
.
Proof
.
by
uPred
.
unseal
.
Qed
.
This diff is collapsed.
Click to expand it.
heap_lang/lang.v
+
1
−
1
View file @
4c056f5e
...
...
@@ -34,7 +34,7 @@ Proof.
Qed
.
(** A typeclass for whether a variable is bound in a given
context. Making this a typeclass means we can use tpeclass search
context. Making this a typeclass means we can use t
y
peclass search
to program solving these constraints, so this becomes extensible.
Also, since typeclass search runs *after* unification, Coq has already
inferred the X for us; if we were to go for embedded proof terms ot
...
...
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