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
Rodolphe Lepigre
Iris
Commits
9f597f7b
Commit
9f597f7b
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
add a (CM)RA instance for the unit type
parent
d8a82b35
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modures/cmra.v
+3
-0
3 additions, 0 deletions
modures/cmra.v
modures/ra.v
+18
-0
18 additions, 0 deletions
modures/ra.v
with
21 additions
and
0 deletions
modures/cmra.v
+
3
−
0
View file @
9f597f7b
...
...
@@ -296,6 +296,9 @@ Section discrete.
End
discrete
.
Arguments
discreteRA
_
{_
_
_
_
_
_}
.
(** CMRA for the unit type *)
Canonical
Structure
unitRA
:
cmraT
:=
discreteRA
()
.
(** Product *)
Section
prod
.
Context
{
A
B
:
cmraT
}
.
...
...
This diff is collapsed.
Click to expand it.
modures/ra.v
+
18
−
0
View file @
9f597f7b
...
...
@@ -231,3 +231,21 @@ Ltac solve_included :=
ra_reflection
.
quote
;
apply
ra_reflection
.
flatten_correct
,
(
bool_decide_unpack
_);
vm_compute
;
apply
I
.
(** An RA for the unit type *)
Instance
unit_valid
:
Valid
()
:=
λ
x
,
True
.
Instance
unit_unit
:
Unit
()
:=
λ
x
,
x
.
Instance
unit_op
:
Op
()
:=
λ
x
y
,
tt
.
Instance
unit_minus
:
Minus
()
:=
λ
x
y
,
tt
.
Instance
unit_ra
:
RA
()
.
Proof
.
split
;
done
.
Qed
.
Instance
unit_empty
:
Empty
()
:=
tt
.
Instance
unit_empty_ra
:
RAIdentity
()
.
Proof
.
split
;
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