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
d8ea8952
Commit
d8ea8952
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Make BI classes consistent: always use `PROP:Type` instead of `bi`.
parent
02d397ed
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
iris/bi/internal_eq.v
+1
-1
1 addition, 1 deletion
iris/bi/internal_eq.v
iris/bi/plainly.v
+3
-3
3 additions, 3 deletions
iris/bi/plainly.v
with
4 additions
and
4 deletions
iris/bi/internal_eq.v
+
1
−
1
View file @
d8ea8952
...
@@ -6,7 +6,7 @@ Import interface.bi derived_laws.bi derived_laws_later.bi.
...
@@ -6,7 +6,7 @@ Import interface.bi derived_laws.bi derived_laws_later.bi.
Internal equality is not part of the [bi] canonical structure as [internal_eq]
Internal equality is not part of the [bi] canonical structure as [internal_eq]
can only be given a definition that satisfies [NonExpansive2 internal_eq] _and_
can only be given a definition that satisfies [NonExpansive2 internal_eq] _and_
[▷ (x ≡ y) ⊢ Next x ≡ Next y] if the BI is step-indexed. *)
[▷ (x ≡ y) ⊢ Next x ≡ Next y] if the BI is step-indexed. *)
Class
InternalEq
(
PROP
:
bi
)
:=
Class
InternalEq
(
PROP
:
Type
)
:=
internal_eq
:
∀
{
A
:
ofe
},
A
→
A
→
PROP
.
internal_eq
:
∀
{
A
:
ofe
},
A
→
A
→
PROP
.
Global
Arguments
internal_eq
{_
_
_}
_
_
:
simpl
never
.
Global
Arguments
internal_eq
{_
_
_}
_
_
:
simpl
never
.
Global
Hint
Mode
InternalEq
!
:
typeclass_instances
.
Global
Hint
Mode
InternalEq
!
:
typeclass_instances
.
...
...
This diff is collapsed.
Click to expand it.
iris/bi/plainly.v
+
3
−
3
View file @
d8ea8952
...
@@ -6,15 +6,15 @@ Import interface.bi derived_laws.bi derived_laws_later.bi.
...
@@ -6,15 +6,15 @@ Import interface.bi derived_laws.bi derived_laws_later.bi.
(* The sections add [BiAffine] and the like, which is only picked up with "Type"*. *)
(* The sections add [BiAffine] and the like, which is only picked up with "Type"*. *)
Set
Default
Proof
Using
"Type*"
.
Set
Default
Proof
Using
"Type*"
.
Class
Plainly
(
A
:
Type
)
:=
plainly
:
A
→
A
.
Class
Plainly
(
PROP
:
Type
)
:=
plainly
:
PROP
→
PROP
.
Global
Arguments
plainly
{
A
}
%
type_scope
{_}
_
%
I
.
Global
Arguments
plainly
{
PROP
}
%
type_scope
{_}
_
%
I
.
Global
Hint
Mode
Plainly
!
:
typeclass_instances
.
Global
Hint
Mode
Plainly
!
:
typeclass_instances
.
Global
Instance
:
Params
(
@
plainly
)
2
:=
{}
.
Global
Instance
:
Params
(
@
plainly
)
2
:=
{}
.
Notation
"■ P"
:=
(
plainly
P
)
:
bi_scope
.
Notation
"■ P"
:=
(
plainly
P
)
:
bi_scope
.
(* Mixins allow us to create instances easily without having to use Program *)
(* Mixins allow us to create instances easily without having to use Program *)
Record
BiPlainlyMixin
(
PROP
:
bi
)
`
(
Plainly
PROP
)
:=
{
Record
BiPlainlyMixin
(
PROP
:
bi
)
`
(
Plainly
PROP
)
:=
{
bi_plainly_mixin_plainly_ne
:
NonExpansive
(
plainly
(
A
:=
PROP
));
bi_plainly_mixin_plainly_ne
:
NonExpansive
(
plainly
(
PROP
:=
PROP
));
bi_plainly_mixin_plainly_mono
(
P
Q
:
PROP
)
:
(
P
⊢
Q
)
→
■
P
⊢
■
Q
;
bi_plainly_mixin_plainly_mono
(
P
Q
:
PROP
)
:
(
P
⊢
Q
)
→
■
P
⊢
■
Q
;
bi_plainly_mixin_plainly_elim_persistently
(
P
:
PROP
)
:
■
P
⊢
<
pers
>
P
;
bi_plainly_mixin_plainly_elim_persistently
(
P
:
PROP
)
:
■
P
⊢
<
pers
>
P
;
...
...
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