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
f2eabe78
Commit
f2eabe78
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Close issue #299: `leibnizO` finds convoluted proof for definitions
parent
79f576aa
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
tests/algebra.v
+8
-0
8 additions, 0 deletions
tests/algebra.v
theories/algebra/ofe.v
+4
-1
4 additions, 1 deletion
theories/algebra/ofe.v
with
12 additions
and
1 deletion
tests/algebra.v
+
8
−
0
View file @
f2eabe78
From
iris
.
base_logic
.
lib
Require
Import
invariants
.
From
iris
.
base_logic
.
lib
Require
Import
invariants
.
(** Make sure that the same [Equivalence] instance is picked for Leibniz OFEs
with carriers that are definitionally equal. See also
https://gitlab.mpi-sws.org/iris/iris/issues/299 *)
Definition
tag
:=
nat
.
Canonical
Structure
tagO
:=
leibnizO
tag
.
Goal
tagO
=
natO
.
Proof
.
reflexivity
.
Qed
.
Instance
test_cofe
{
Σ
}
:
Cofe
(
iPrePropO
Σ
)
:=
_
.
Instance
test_cofe
{
Σ
}
:
Cofe
(
iPrePropO
Σ
)
:=
_
.
Section
tests
.
Section
tests
.
...
...
This diff is collapsed.
Click to expand it.
theories/algebra/ofe.v
+
4
−
1
View file @
f2eabe78
...
@@ -885,7 +885,10 @@ Section discrete_ofe.
...
@@ -885,7 +885,10 @@ Section discrete_ofe.
End
discrete_ofe
.
End
discrete_ofe
.
Notation
discreteO
A
:=
(
OfeT
A
(
discrete_ofe_mixin
_))
.
Notation
discreteO
A
:=
(
OfeT
A
(
discrete_ofe_mixin
_))
.
Notation
leibnizO
A
:=
(
OfeT
A
(
@
discrete_ofe_mixin
_
equivL
_))
.
(** Force the [Equivalence] proof to be [eq_equivalence] so that it does not
find another one, like [ofe_equivalence], in the case of aliases. See also
https://gitlab.mpi-sws.org/iris/iris/issues/229 *)
Notation
leibnizO
A
:=
(
OfeT
A
(
@
discrete_ofe_mixin
_
equivL
eq_equivalence
))
.
(** In order to define a discrete CMRA with carrier [A] (in the file [cmra.v])
(** In order to define a discrete CMRA with carrier [A] (in the file [cmra.v])
we need to determine the [Equivalence A] proof that was used to construct the
we need to determine the [Equivalence A] proof that was used to construct the
...
...
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