Add scalar multiplication for multisets.
All threads resolved!
All threads resolved!
The operation n *: X
multiplies the multiplicity of each element x ∈ X
with n
This MR:
- Introduces a type class
ScalarMul N A := N → A → A
with associated notations for scalar multiplication. The notation*:
is taken from ssreflect, see https://github.com/math-comp/math-comp/blob/master/mathcomp/ssreflect/ssrnotations.v - Provides an instance
ScalarMul nat (gmultiset A)
. - Provides a bunch of lemmas for
*:
on multisets - Extends
multiset_solver
and adds a couple of tests.
Edited by Robbert Krebbers
Merge request reports
Activity
- Resolved by Robbert Krebbers
I don't like the name
Scalar
. That sounds like it would describe a scalar, not a scalar multiplication. I thinkMul
or something like that needs to appear in the name.
- Resolved by Robbert Krebbers
added 16 commits
-
aa225cb8...3af97445 - 12 commits from branch
master
- bb1d27f6 - Add `ScalarMul` operational type class.
- 65dec1a0 - Add scalar multiplication for multisets.
- 5ab66faa - Comment.
- c81e49b5 - CHANGELOG.
Toggle commit list-
aa225cb8...3af97445 - 12 commits from branch
- Resolved by Robbert Krebbers
enabled an automatic merge when the pipeline for 4b789013 succeeds
mentioned in commit 0528f023
Please register or sign in to reply