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
5ab66faa
Commit
5ab66faa
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Comment.
parent
65dec1a0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!452
Add scalar multiplication for multisets.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stdpp/gmultiset.v
+3
-0
3 additions, 0 deletions
stdpp/gmultiset.v
with
3 additions
and
0 deletions
stdpp/gmultiset.v
+
3
−
0
View file @
5ab66faa
...
...
@@ -2,6 +2,9 @@ From stdpp Require Export countable.
From
stdpp
Require
Import
gmap
.
From
stdpp
Require
Import
options
.
(** Multisets [gmultiset A] are represented as maps from [A] to natural numbers,
which represent the multiplicity. To ensure we have canonical representations,
the multiplicity is "minus 1". *)
Record
gmultiset
A
`{
Countable
A
}
:=
GMultiSet
{
gmultiset_car
:
gmap
A
nat
}
.
Global
Arguments
GMultiSet
{_
_
_}
_
:
assert
.
Global
Arguments
gmultiset_car
{_
_
_}
_
:
assert
.
...
...
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