Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
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
Model registry
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
Iris
stdpp
Commits
d25bd6a6
Commit
d25bd6a6
authored
4 months ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
make levels consistent between propset notation and singleton notation
parent
f3091cc3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!578
make levels consistent between propset notation and singleton notation
Pipeline
#109594
passed
4 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stdpp/propset.v
+4
-3
4 additions, 3 deletions
stdpp/propset.v
with
4 additions
and
3 deletions
stdpp/propset.v
+
4
−
3
View file @
d25bd6a6
...
...
@@ -6,13 +6,14 @@ Record propset (A : Type) : Type := PropSet { propset_car : A → Prop }.
Add
Printing
Constructor
propset
.
Global
Arguments
PropSet
{_}
_
:
assert
.
Global
Arguments
propset_car
{_}
_
_
:
assert
.
(** Here we are using the notation "
at level 200
as pattern" because we want to
(** Here we are using the notation "as pattern" because we want to
be compatible with all the rules that start with [ {[ TERM ] such as
records, singletons, and map singletons. See
https://coq.inria.fr/refman/user-extensions/syntax-extensions.html#binders-bound-in-the-notation-and-parsed-as-terms
and https://gitlab.mpi-sws.org/iris/stdpp/-/merge_requests/533#note_98003 *)
and https://gitlab.mpi-sws.org/iris/stdpp/-/merge_requests/533#note_98003.
We don't set a level to be consistent with the notation for singleton sets. *)
Notation
"{[ x | P ]}"
:=
(
PropSet
(
λ
x
,
P
))
(
at
level
1
,
x
at
level
200
as
pattern
,
format
"{[ x | P ]}"
)
:
stdpp_scope
.
(
at
level
1
,
x
as
pattern
,
format
"{[ x | P ]}"
)
:
stdpp_scope
.
Global
Instance
propset_elem_of
{
A
}
:
ElemOf
A
(
propset
A
)
:=
λ
x
X
,
propset_car
X
x
.
...
...
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