Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
96
Issues
96
List
Boards
Labels
Milestones
Merge Requests
14
Merge Requests
14
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iris
Iris
Commits
37a0b2b0
Commit
37a0b2b0
authored
Jul 14, 2020
by
Ralf Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove longdeprecated cofeT and dec_agree
parent
5a623192
Pipeline
#31423
passed with stage
in 15 minutes and 46 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Sidebyside
Showing
3 changed files
with
2 additions
and
91 deletions
+2
91
CHANGELOG.md
CHANGELOG.md
+2
0
_CoqProject
_CoqProject
+0
1
theories/algebra/deprecated.v
theories/algebra/deprecated.v
+0
90
No files found.
CHANGELOG.md
View file @
37a0b2b0
...
...
@@ 186,6 +186,8 @@ Coq 8.10, 8.11, and 8.12 are newly supported by this release, and Coq 8.7 and
and can be installed with opam; see
[
iris/stringident
](
https://gitlab.mpisws.org/iris/stringident
)
for details.
*
Add
`auto`
hint for
`∗∗`
.
*
Remove the longdeprecated
`cofeT`
alias (for
`ofeT`
) and
`dec_agree`
RA (use
`agree`
instead).
**Changes in `algebra`:**
...
...
_CoqProject
View file @
37a0b2b0
...
...
@@ 33,7 +33,6 @@ theories/algebra/local_updates.v
theories/algebra/gset.v
theories/algebra/gmultiset.v
theories/algebra/coPset.v
theories/algebra/deprecated.v
theories/algebra/proofmode_classes.v
theories/algebra/ufrac.v
theories/algebra/namespace_map.v
...
...
theories/algebra/deprecated.v
deleted
100644 → 0
View file @
5a623192
From
iris
.
algebra
Require
Import
ofe
cmra
.
Set
Default
Proof
Using
"Type"
.
Local
Set
Warnings
"deprecated"
.
(* Old notation for backwards compatibility. *)
(* Deprecated 20161122. Use ofeT instead. *)
#[
deprecated
(
note
=
"Use ofeT instead."
)]
Notation
cofeT
:
=
ofeT
(
only
parsing
).
(* Deprecated 20161209. Use agree instead. *)
Module
dec_agree
.
Local
Arguments
validN
_
_
_
!
_
/.
Local
Arguments
valid
_
_
!
_
/.
Local
Arguments
op
_
_
_
!
_
/.
Local
Arguments
pcore
_
_
!
_
/.
(* This is isomorphic to option, but has a very different RA structure. *)
Inductive
dec_agree_
(
A
:
Type
)
:
Type
:
=

DecAgree
:
A
→
dec_agree_
A

DecAgreeBot
:
dec_agree_
A
.
Arguments
DecAgree
{
_
}
_
.
Arguments
DecAgreeBot
{
_
}.
Instance
maybe_DecAgree
{
A
}
:
Maybe
(@
DecAgree
A
)
:
=
λ
x
,
match
x
with
DecAgree
a
=>
Some
a

_
=>
None
end
.
#[
deprecated
(
note
=
"Use agree instead."
)]
Notation
dec_agree
:
=
dec_agree_
.
Section
dec_agree
.
Context
`
{
EqDecision
A
}.
Implicit
Types
a
b
:
A
.
Implicit
Types
x
y
:
dec_agree
A
.
Instance
dec_agree_valid
:
Valid
(
dec_agree
A
)
:
=
λ
x
,
if
x
is
DecAgree
_
then
True
else
False
.
Canonical
Structure
dec_agreeO
:
ofeT
:
=
leibnizO
(
dec_agree
A
).
Instance
dec_agree_op
:
Op
(
dec_agree
A
)
:
=
λ
x
y
,
match
x
,
y
with

DecAgree
a
,
DecAgree
b
=>
if
decide
(
a
=
b
)
then
DecAgree
a
else
DecAgreeBot

_
,
_
=>
DecAgreeBot
end
.
Instance
dec_agree_pcore
:
PCore
(
dec_agree
A
)
:
=
Some
.
#[
deprecated
(
note
=
"Use agree instead."
)]
Definition
dec_agree_ra_mixin
:
RAMixin
(
dec_agree
A
).
Proof
.
apply
ra_total_mixin
;
apply
_

eauto
.

intros
[?]
[?]
[?]
;
by
repeat
(
simplify_eq
/=

case_match
).

intros
[?]
[?]
;
by
repeat
(
simplify_eq
/=

case_match
).

intros
[?]
;
by
repeat
(
simplify_eq
/=

case_match
).

by
intros
[?]
[?]
?.
Qed
.
#[
deprecated
(
note
=
"Use agree instead."
)]
Canonical
Structure
dec_agreeR
:
cmraT
:
=
discreteR
(
dec_agree
A
)
dec_agree_ra_mixin
.
Global
Instance
dec_agree_cmra_discrete
:
CmraDiscrete
dec_agreeR
.
Proof
.
apply
discrete_cmra_discrete
.
Qed
.
Global
Instance
dec_agree_cmra_total
:
CmraTotal
dec_agreeR
.
Proof
.
intros
x
.
by
exists
x
.
Qed
.
(* Some properties of this CMRA *)
Global
Instance
dec_agree_core_id
(
x
:
dec_agreeR
)
:
CoreId
x
.
Proof
.
by
constructor
.
Qed
.
#[
deprecated
(
note
=
"Use agree instead."
)]
Lemma
dec_agree_ne
a
b
:
a
≠
b
→
DecAgree
a
⋅
DecAgree
b
=
DecAgreeBot
.
Proof
.
intros
.
by
rewrite
/=
decide_False
.
Qed
.
#[
deprecated
(
note
=
"Use agree instead."
)]
Lemma
dec_agree_idemp
(
x
:
dec_agree
A
)
:
x
⋅
x
=
x
.
Proof
.
destruct
x
;
by
rewrite
/=
?decide_True
.
Qed
.
#[
deprecated
(
note
=
"Use agree instead."
)]
Lemma
dec_agree_op_inv
(
x1
x2
:
dec_agree
A
)
:
✓
(
x1
⋅
x2
)
→
x1
=
x2
.
Proof
.
destruct
x1
,
x2
;
by
repeat
(
simplify_eq
/=

case_match
).
Qed
.
#[
deprecated
(
note
=
"Use agree instead."
)]
Lemma
DecAgree_included
a
b
:
DecAgree
a
≼
DecAgree
b
↔
a
=
b
.
Proof
.
split
.
intros
[[
c
]
[=]%
leibniz_equiv
].
by
simplify_option_eq
.
by
intros
>.
Qed
.
End
dec_agree
.
Arguments
dec_agreeO
:
clear
implicits
.
Arguments
dec_agreeR
_
{
_
}.
End
dec_agree
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment