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
Pierre Roux
Iris
Commits
98c0c5fe
Commit
98c0c5fe
authored
3 years ago
by
Ralf Jung
Browse files
Options
Downloads
Plain Diff
Merge branch 'modes-broken' into 'master'
Modes for Equiv See merge request
iris/iris!701
parents
32b4b0cc
a76fec7a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.md
+3
-0
3 additions, 0 deletions
CHANGELOG.md
iris/algebra/big_op.v
+4
-2
4 additions, 2 deletions
iris/algebra/big_op.v
iris/prelude/prelude.v
+4
-0
4 additions, 0 deletions
iris/prelude/prelude.v
tests/algebra.v
+0
-3
0 additions, 3 deletions
tests/algebra.v
with
11 additions
and
5 deletions
CHANGELOG.md
+
3
−
0
View file @
98c0c5fe
...
...
@@ -33,6 +33,9 @@ Coq 8.11 is no longer supported in this version of Iris.
algorithm.
*
Set
`Hint Mode`
for the classes
`OfeDiscrete`
,
`Dist`
,
`Unit`
,
`CmraMorphism`
,
`rFunctorContractive`
,
`urFunctorContractive`
.
*
Set
`Hint Mode`
for the stdpp class
`Equiv`
. This might require few spurious
type annotations until
[
Coq bug #14441
](
https://github.com/coq/coq/issues/14441
)
is fixed.
*
Add
`max_prefix_list`
RA on lists whose composition is only defined when one
operand is a prefix of the other. The result is the longer list.
...
...
This diff is collapsed.
Click to expand it.
iris/algebra/big_op.v
+
4
−
2
View file @
98c0c5fe
...
...
@@ -171,7 +171,8 @@ Section list.
([
^
o
list
]
k
↦
y
∈
l1
,
f
k
y
)
≡
([
^
o
list
]
k
↦
y
∈
l2
,
g
k
y
)
.
Proof
.
intros
Hl
Hf
.
apply
big_opL_gen_proper_2
;
try
(
apply
_
||
done
)
.
intros
k
.
assert
(
l1
!!
k
≡
l2
!!
k
)
as
Hlk
by
(
by
f_equiv
)
.
(* FIXME (Coq #14441) unnecessary type annotation *)
intros
k
.
assert
(
l1
!!
k
≡@
{
option
A
}
l2
!!
k
)
as
Hlk
by
(
by
f_equiv
)
.
destruct
(
l1
!!
k
)
eqn
:?,
(
l2
!!
k
)
eqn
:?;
inversion
Hlk
;
naive_solver
.
Qed
.
...
...
@@ -324,7 +325,8 @@ Section gmap.
([
^
o
map
]
k
↦
y
∈
m1
,
f
k
y
)
≡
([
^
o
map
]
k
↦
y
∈
m2
,
g
k
y
)
.
Proof
.
intros
Hl
Hf
.
apply
big_opM_gen_proper_2
;
try
(
apply
_
||
done
)
.
intros
k
.
assert
(
m1
!!
k
≡
m2
!!
k
)
as
Hlk
by
(
by
f_equiv
)
.
(* FIXME (Coq #14441) unnecessary type annotation *)
intros
k
.
assert
(
m1
!!
k
≡@
{
option
A
}
m2
!!
k
)
as
Hlk
by
(
by
f_equiv
)
.
destruct
(
m1
!!
k
)
eqn
:?,
(
m2
!!
k
)
eqn
:?;
inversion
Hlk
;
naive_solver
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
iris/prelude/prelude.v
+
4
−
0
View file @
98c0c5fe
...
...
@@ -7,3 +7,7 @@ Ltac done := stdpp.tactics.done.
(** Iris itself and many dependencies still rely on this coercion. *)
Coercion
Z
.
of_nat
:
nat
>->
Z
.
(* No Hint Mode set in stdpp because of Coq bugs #5735 and #9058, only
fixed in Coq >= 8.12, which Iris depends on. *)
Global
Hint
Mode
Equiv
!
:
typeclass_instances
.
This diff is collapsed.
Click to expand it.
tests/algebra.v
+
0
−
3
View file @
98c0c5fe
...
...
@@ -13,9 +13,6 @@ Section test_dist_equiv_mode.
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
.
End
test_dist_equiv_mode
.
(** Make sure that the same [Equivalence] instance is picked for Leibniz OFEs
...
...
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