(* (c) Copyright Microsoft Corporation and Inria. All rights reserved. *) Require Import ssreflect ssrfun ssrbool eqtype ssrnat. Require Import ssralg matrix. Set Implicit Arguments. Unset Strict Implicit. Import Prenex Implicits. Local Open Scope nat_scope. Local Open Scope ring_scope. Section TestMx. Variable R : ringType. Variable M : 'M[R]_2. Goal 1%:M = M. Proof. Set Printing All. rewrite [(1%:M : 'M_(1+1)%N)]scalar_mx_block. (* Success with 1.2 *) (* With ssreflect 1.3, fails with error : *) (* Toplevel input, characters 0-44: *) (* Error: pattern (1%:M) does not match LHS of scalar_mx_block *) Admitted. Goal 1%:M = M. Proof. rewrite [1%:M](scalar_mx_block 1%N 1%N). (* Success in both ssr 1.2 and 1.3 *) Admitted. End TestMx.