Skip to content
Snippets Groups Projects

Remove `left associativity` of `scalar_mult` to be compatible with math-comp.

Merged Robbert Krebbers requested to merge robbert/scalar_mult_assoc into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -1086,7 +1086,7 @@ in that. Hence, the value of [Params] is 3. *)
Global Instance: Params (@scalar_mul) 3 := {}.
(** The notation [*:] and level is taken from ssreflect, see
https://github.com/math-comp/math-comp/blob/master/mathcomp/ssreflect/ssrnotations.v *)
Infix "*:" := scalar_mul (at level 40, left associativity) : stdpp_scope.
Infix "*:" := scalar_mul (at level 40) : stdpp_scope.
Notation "(*:)" := scalar_mul (only parsing) : stdpp_scope.
Notation "( x *:.)" := (scalar_mul x) (only parsing) : stdpp_scope.
Notation "(.*: x )" := (λ y, scalar_mul y x) (only parsing) : stdpp_scope.
Loading