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
William Mansky
Iris
Commits
ac3ddfda
Verified
Commit
ac3ddfda
authored
3 years ago
by
Paolo G. Giarrusso
Browse files
Options
Downloads
Patches
Plain Diff
Add suggested test
parent
d1d87f19
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
tests/algebra.v
+28
-0
28 additions, 0 deletions
tests/algebra.v
with
28 additions
and
0 deletions
tests/algebra.v
+
28
−
0
View file @
ac3ddfda
From
iris
.
algebra
Require
Import
auth
excl
lib
.
gmap_view
.
From
iris
.
base_logic
.
lib
Require
Import
invariants
.
Section
test_dist_equiv_mode
.
Local
Unset
Mangle
Names
.
(* check that the mode for [Dist] does not trigger https://github.com/coq/coq/issues/14441.
From https://gitlab.mpi-sws.org/iris/iris/-/merge_requests/700#note_69303. *)
(* succeeds *)
Lemma
list_dist_lookup
{
A
:
ofe
}
n
(
l1
l2
:
list
A
)
:
l1
≡
{
n
}
≡
l2
↔
∀
i
,
l1
!!
i
≡
{
n
}
≡
l2
!!
i
.
Abort
.
Lemma
list_equiv_lookup_ofe
{
A
:
ofe
}
(
l1
l2
:
list
A
)
:
l1
≡
l2
↔
∀
i
,
l1
!!
i
≡
l2
!!
i
.
Abort
.
Lemma
list_equiv_lookup_equiv
`{
Equiv
A
}
(
l1
l2
:
list
A
)
:
l1
≡
l2
↔
∀
i
,
l1
!!
i
≡
l2
!!
i
.
Abort
.
Local
Hint
Mode
Equiv
!
:
typeclass_instances
.
(* succeeds *)
Lemma
list_equiv_lookup_ofe
{
A
:
ofe
}
(
l1
l2
:
list
A
)
:
l1
≡
l2
↔
∀
i
,
l1
!!
i
≡
l2
!!
i
.
Abort
.
(* fails *)
Fail
Lemma
list_equiv_lookup_equiv
`{
Equiv
A
}
(
l1
l2
:
list
A
)
:
l1
≡
l2
↔
∀
i
,
l1
!!
i
≡
l2
!!
i
.
End
test_dist_equiv_mode
.
(** 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 *)
...
...
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