FinMatrix.CoqExt.RExt.RExtPow
Convert `a ^ (n + 2)` to `(a ^ 2) * (a ^ n)`
Ltac simp_pow :=
try match goal with
| |-
context[?
a ^ 4] =>
replace (
a ^ 4)
with (
(a ^ 2
) ^ 2); [|
ring]
| |-
context[?
a ^ 3] =>
replace (
a ^ 3)
with (
(a ^ 2
) * a)%
R; [|
ring]
end;
try rewrite !
Rpow2_Rsqr in *.