fact
stringlengths
8
1.54k
type
stringclasses
19 values
library
stringclasses
8 values
imports
listlengths
1
10
filename
stringclasses
98 values
symbolic_name
stringlengths
1
42
docstring
stringclasses
1 value
mxOver0S : 0 \in S -> 0 \is a @mxOver m n _ S. Proof. exact: mxOver_const. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxOver0
Definition_ := GRing.isAddClosed.Build 'M[M]_(m, n) (mxOver_pred addS) mxOver_add_subproof.
HB.instance
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
Definition
Definition_ := GRing.isOppClosed.Build 'M[M]_(m, n) (mxOver_pred oppS) mxOver_opp_subproof.
HB.instance
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
Definition
Definition_ (zmodS : zmodClosed M) := GRing.OppClosed.on (mxOver_pred zmodS).
HB.instance
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
Definition
mxOver_scalarS c : 0 \in S -> c \in S -> c%:M \is a @mxOver n n R S. Proof. by move=> S0 cS; apply/mxOverP => i j; rewrite !mxE; case: eqP. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxOver_scalar
mxOver_scalarES c : (n > 0)%N -> (c%:M \is a @mxOver n n R S) = ((n > 1) ==> (0 \in S)) && (c \in S). Proof. case: n => [|[|k]]//= _. by apply/mxOverP/idP => [/(_ ord0 ord0)|cij i j]; rewrite ?mxE ?ord1. apply/mxOverP/andP => [cij|[S0 cij] i j]; last by rewrite !mxE; case: eqP. by split; [have := cij 0 1|have := cij 0 0]; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxOver_scalarE
mxOverZ(S : mulrClosed R) : {in S & mxOver S, forall a : R, forall v : 'M[R]_(m, n), a *: v \is a mxOver S}. Proof. by move=> a v aS /mxOverP vS; apply/mxOverP => i j; rewrite !mxE rpredM. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxOverZ
mxOver_diag(S : {pred R}) k (D : 'rV[R]_k) : 0 \in S -> D \is a mxOver S -> diag_mx D \is a mxOver S. Proof. move=> S0 DS; apply/mxOverP => i j; rewrite !mxE. by case: eqP => //; rewrite (mxOverP DS). Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxOver_diag
mxOver_diagE(S : {pred R}) k (D : 'rV[R]_k) : k > 0 -> (diag_mx D \is a mxOver S) = ((k > 1) ==> (0 \in S)) && (D \is a mxOver S). Proof. case: k => [|[|k]]//= in D * => _. by rewrite [diag_mx _]mx11_scalar [D in RHS]mx11_scalar !mxE. apply/idP/andP => [/mxOverP DS|[S0 DS]]; last exact: mxOver_diag. split; first by have /[!mxE] := DS 0 1. by apply/mxOverP => i j; have := DS j j; rewrite ord1 !mxE eqxx. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxOver_diagE
mxOverM(S : semiringClosed R) p q r : {in mxOver S & mxOver S, forall u : 'M[R]_(p, q), forall v : 'M[R]_(q, r), u *m v \is a mxOver S}. Proof. move=> M N /mxOverP MS /mxOverP NS; apply/mxOverP => i j. by rewrite !mxE rpred_sum // => k _; rewrite rpredM. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxOverM
Definition_ := GRing.isMulClosed.Build _ (mxOver_pred S) mxOver_mul_subproof.
HB.instance
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
Definition
Definition_ {R : pzRingType} {n : nat} (S : subringClosed R) := GRing.MulClosed.on (@mxOver_pred n n _ S).
HB.instance
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
Definition
sp:= (\sum_i p_ i)%N.
Notation
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
sp
sq:= (\sum_i q_ i)%N. Implicit Type (s : 'I_sp) (t : 'I_sq).
Notation
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
sq
mxblock(B_ : forall i j, 'M[T]_(p_ i, q_ j)) := \matrix_(j, k) B_ (sig1 j) (sig1 k) (sig2 j) (sig2 k). Local Notation "\mxblock_ ( i , j ) E" := (mxblock (fun i j => E)) : ring_scope.
Definition
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxblock
mxrowm (B_ : forall j, 'M[T]_(m, q_ j)) := \matrix_(j, k) B_ (sig1 k) j (sig2 k). Local Notation "\mxrow_ i E" := (mxrow (fun i => E)) : ring_scope.
Definition
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxrow
mxcoln (B_ : forall i, 'M[T]_(p_ i, n)) := \matrix_(j, k) B_ (sig1 j) (sig2 j) k. Local Notation "\mxcol_ i E" := (mxcol (fun i => E)) : ring_scope.
Definition
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxcol
submxblock(A : 'M[T]_(sp, sq)) i j := mxsub (Rank i) (Rank j) A.
Definition
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxblock
submxrowm (A : 'M[T]_(m, sq)) j := colsub (Rank j) A.
Definition
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxrow
submxcoln (A : 'M[T]_(sp, n)) i := rowsub (Rank i) A.
Definition
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxcol
mxblockEhB_ : \mxblock_(i, j) B_ i j = \mxrow_j \mxcol_i B_ i j. Proof. by apply/matrixP => k l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxblockEh
mxblockEvB_ : \mxblock_(i, j) B_ i j = \mxcol_i \mxrow_j B_ i j. Proof. by apply/matrixP => k l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxblockEv
submxblockEhA i j : submxblock A i j = submxcol (submxrow A j) i. Proof. by apply/matrixP => k l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxblockEh
submxblockEvA i j : submxblock A i j = submxrow (submxcol A i) j. Proof. by apply/matrixP => k l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxblockEv
mxblockKB_ i j : submxblock (\mxblock_(i, j) B_ i j) i j = B_ i j. Proof. apply/matrixP => k l; rewrite !mxE !Rank2K. by do !case: _ / esym; rewrite !cast_ord_id. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxblockK
mxrowKm B_ j : @submxrow m (\mxrow_j B_ j) j = B_ j. Proof. apply/matrixP => k l; rewrite !mxE !Rank2K. by do !case: _ / esym; rewrite !cast_ord_id. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxrowK
mxcolKn B_ i : @submxcol n (\mxcol_i B_ i) i = B_ i. Proof. apply/matrixP => k l; rewrite !mxE !Rank2K. by do !case: _ / esym; rewrite !cast_ord_id. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxcolK
submxrow_matrixB_ j : submxrow (\mxblock_(i, j) B_ i j) j = \mxcol_i B_ i j. Proof. by rewrite mxblockEh mxrowK. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxrow_matrix
submxcol_matrixB_ i : submxcol (\mxblock_(i, j) B_ i j) i = \mxrow_j B_ i j. Proof. by rewrite mxblockEv mxcolK. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxcol_matrix
submxblockKA : \mxblock_(i, j) (submxblock A i j) = A. Proof. by apply/matrixP => k l; rewrite !mxE !sig2K. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxblockK
submxrowKm (A : 'M[T]_(m, sq)) : \mxrow_j (submxrow A j) = A. Proof. by apply/matrixP => k l; rewrite !mxE !sig2K. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxrowK
submxcolKn (A : 'M[T]_(sp, n)) : \mxcol_i (submxcol A i) = A. Proof. by apply/matrixP => k l; rewrite !mxE !sig2K. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxcolK
mxblockPA B : (forall i j, submxblock A i j = submxblock B i j) <-> A = B. Proof. split=> [eqAB|->//]; apply/matrixP=> s t; have /matrixP := eqAB (sig1 s) (sig1 t). by move=> /(_ (sig2 s) (sig2 t)); rewrite !mxE !sig2K. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxblockP
mxrowPm (A B : 'M_(m, sq)) : (forall j, submxrow A j = submxrow B j) <-> A = B. Proof. split=> [eqAB|->//]; apply/matrixP=> i t; have /matrixP := eqAB (sig1 t). by move=> /(_ i (sig2 t)); rewrite !mxE !sig2K. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxrowP
mxcolPn (A B : 'M_(sp, n)) : (forall i, submxcol A i = submxcol B i) <-> A = B. Proof. split=> [eqAB|->//]; apply/matrixP=> s j; have /matrixP := eqAB (sig1 s). by move=> /(_ (sig2 s) j); rewrite !mxE !sig2K. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxcolP
eq_mxblockPA_ B_ : (forall i j, A_ i j = B_ i j) <-> (\mxblock_(i, j) A_ i j = \mxblock_(i, j) B_ i j). Proof. split; first by move=> e; apply/mxblockP => i j; rewrite !mxblockK. by move=> + i j => /mxblockP/(_ i j); rewrite !mxblockK. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
eq_mxblockP
eq_mxblockA_ B_ : (forall i j, A_ i j = B_ i j) -> (\mxblock_(i, j) A_ i j = \mxblock_(i, j) B_ i j). Proof. by move=> /eq_mxblockP. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
eq_mxblock
eq_mxrowPm (A_ B_ : forall j, 'M[T]_(m, q_ j)) : (forall j, A_ j = B_ j) <-> (\mxrow_j A_ j = \mxrow_j B_ j). Proof. split; first by move=> e; apply/mxrowP => j; rewrite !mxrowK. by move=> + j => /mxrowP/(_ j); rewrite !mxrowK. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
eq_mxrowP
eq_mxrowm (A_ B_ : forall j, 'M[T]_(m, q_ j)) : (forall j, A_ j = B_ j) -> (\mxrow_j A_ j = \mxrow_j B_ j). Proof. by move=> /eq_mxrowP. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
eq_mxrow
eq_mxcolPn (A_ B_ : forall i, 'M[T]_(p_ i, n)) : (forall i, A_ i = B_ i) <-> (\mxcol_i A_ i = \mxcol_i B_ i). Proof. split; first by move=> e; apply/mxcolP => i; rewrite !mxcolK. by move=> + i => /mxcolP/(_ i); rewrite !mxcolK. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
eq_mxcolP
eq_mxcoln (A_ B_ : forall i, 'M[T]_(p_ i, n)) : (forall i, A_ i = B_ i) -> (\mxcol_i A_ i = \mxcol_i B_ i). Proof. by move=> /eq_mxcolP. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
eq_mxcol
row_mxrowm (B_ : forall j, 'M[T]_(m, q_ j)) i : row i (\mxrow_j B_ j) = \mxrow_j (row i (B_ j)). Proof. by apply/rowP => l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
row_mxrow
col_mxrowm (B_ : forall j, 'M[T]_(m, q_ j)) j : col j (\mxrow_j B_ j) = col (sig2 j) (B_ (sig1 j)). Proof. by apply/colP => l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
col_mxrow
row_mxcoln (B_ : forall i, 'M[T]_(p_ i, n)) i : row i (\mxcol_i B_ i) = row (sig2 i) (B_ (sig1 i)). Proof. by apply/rowP => l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
row_mxcol
col_mxcoln (B_ : forall i, 'M[T]_(p_ i, n)) j : col j (\mxcol_i B_ i) = \mxcol_i (col j (B_ i)). Proof. by apply/colP => l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
col_mxcol
row_mxblockB_ i : row i (\mxblock_(i, j) B_ i j) = \mxrow_j row (sig2 i) (B_ (sig1 i) j). Proof. by apply/rowP => l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
row_mxblock
col_mxblockB_ j : col j (\mxblock_(i, j) B_ i j) = \mxcol_i col (sig2 j) (B_ i (sig1 j)). Proof. by apply/colP => l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
col_mxblock
tr_mxblock{T : Type} {p q : nat} {p_ : 'I_p -> nat} {q_ : 'I_q -> nat} (B_ : forall i j, 'M[T]_(p_ i, q_ j)) : (\mxblock_(i, j) B_ i j)^T = \mxblock_(i, j) (B_ j i)^T. Proof. by apply/matrixP => i j; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
tr_mxblock
sp:= (\sum_i p_ i)%N. Implicit Type (s : 'I_sp).
Notation
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
sp
tr_mxrown (B_ : forall j, 'M[T]_(n, p_ j)) : (\mxrow_j B_ j)^T = \mxcol_i (B_ i)^T. Proof. by apply/matrixP => i j; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
tr_mxrow
tr_mxcoln (B_ : forall i, 'M[T]_(p_ i, n)) : (\mxcol_i B_ i)^T = \mxrow_i (B_ i)^T. Proof. by apply/matrixP => i j; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
tr_mxcol
tr_submxblock(A : 'M[T]_sp) i j : (submxblock A i j)^T = (submxblock A^T j i). Proof. by apply/matrixP => k l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
tr_submxblock
tr_submxrown (A : 'M[T]_(n, sp)) j : (submxrow A j)^T = (submxcol A^T j). Proof. by apply/matrixP => k l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
tr_submxrow
tr_submxcoln (A : 'M[T]_(sp, n)) i : (submxcol A i)^T = (submxrow A^T i). Proof. by apply/matrixP => k l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
tr_submxcol
sp:= (\sum_i p_ i)%N.
Notation
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
sp
mxsize_recl: (p_ ord0 + \sum_i p_ (lift ord0 i) = (\sum_i p_ i))%N. Proof. by rewrite big_ord_recl. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxsize_recl
mxrow_recln (B_ : forall j, 'M[T]_(n, p_ j)) : \mxrow_j B_ j = castmx (erefl, mxsize_recl) (row_mx (B_ 0) (\mxrow_j B_ (lift ord0 j))). Proof. apply/mxrowP => i; rewrite mxrowK. apply/matrixP => j k; rewrite !(castmxE, mxE)/=. case: splitP => l /=; do [ rewrite [LHS]RankEsum big_mkcond big_ord_recl -big_mkcond/=; rewrite /bump/= -addnA cast_ord_id; under eq_bigl do rewrite add1n -ltn_predRL/=]. case: posnP => i0; last first. by move=> lE; have := ltn_ord l; rewrite /= -lE -ltn_subRL subnn. by rewrite (@val_inj _ _ _ i 0 i0) big_pred0_eq in k * => /val_inj->. case: posnP => i0. rewrite (@val_inj _ _ _ i 0 i0) big_pred0_eq in k l * => kE. by have := ltn_ord k; rewrite /= [val k]kE -ltn_subRL subnn. have i_lt : i.-1 < m by rewrite -subn1 ltn_subLR. set i' := lift ord0 (Ordinal i_lt). have ii' : i = i' by apply/val_inj; rewrite /=/bump/= add1n prednK. have k_lt : k < p_ i' by rewrite -ii'. move=> /addnI; rewrite eqRank => /val_inj/= /[dup] kl<-; rewrite mxE. rewrite Rank2K//; case: _ / esym; rewrite cast_ord_id/=. rewrite -/i'; set j' := Ordinal _; have : k = j' :> nat by []. by move: j'; rewrite -ii' => j' /val_inj->. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxrow_recl
mxcol_recu{T : Type} {p : nat} {p_ : 'I_p.+1 -> nat} m (B_ : forall j, 'M[T]_(p_ j, m)) : \mxcol_j B_ j = castmx (mxsize_recl, erefl) (col_mx (B_ 0) (\mxcol_j B_ (lift ord0 j))). Proof. by apply: trmx_inj; rewrite trmx_cast tr_col_mx !tr_mxcol mxrow_recl. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxcol_recu
mxblock_recu{p q : nat} {p_ : 'I_p.+1 -> nat} {q_ : 'I_q -> nat} (B_ : forall i j, 'M[T]_(p_ i, q_ j)) : \mxblock_(i, j) B_ i j = castmx (mxsize_recl, erefl) (col_mx (\mxrow_j B_ ord0 j) (\mxblock_(i, j) B_ (l0 i) j)). Proof. by rewrite !mxblockEv mxcol_recu. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxblock_recu
mxblock_recl{p q : nat} {p_ : 'I_p -> nat} {q_ : 'I_q.+1 -> nat} (B_ : forall i j, 'M[T]_(p_ i, q_ j)) : \mxblock_(i, j) B_ i j = castmx (erefl, mxsize_recl) (row_mx (\mxcol_i B_ i ord0) (\mxblock_(i, j) B_ i (l0 j))). Proof. by rewrite !mxblockEh mxrow_recl. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxblock_recl
mxblock_recul{p q : nat} {p_ : 'I_p.+1 -> nat} {q_ : 'I_q.+1 -> nat} (B_ : forall i j, 'M[T]_(p_ i, q_ j)) : \mxblock_(i, j) B_ i j = castmx e (block_mx (B_ 0 0) (\mxrow_j B_ ord0 (l0 j)) (\mxcol_i B_ (l0 i) ord0) (\mxblock_(i, j) B_ (l0 i) (l0 j))). Proof. rewrite mxblock_recl mxcol_recu mxblock_recu -cast_row_mx -block_mxEh. by rewrite castmx_comp; apply: eq_castmx. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxblock_recul
mxrowEblock{q : nat} {q_ : 'I_q -> nat} m (R_ : forall j, 'M[T]_(m, q_ j)) : (\mxrow_j R_ j) = castmx (big_ord1 _ (fun=> m), erefl) (\mxblock_(i < 1, j < q) R_ j). Proof. rewrite mxblock_recu castmx_comp. apply/matrixP => i j; rewrite !castmxE !mxE/=; case: splitP => //=. by move=> k /val_inj->; rewrite ?cast_ord_id ?mxE//=. by move=> [k klt]; suff: false by []; rewrite big_ord0 in klt. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxrowEblock
mxcolEblock{p : nat} {p_ : 'I_p -> nat} n (C_ : forall i, 'M[T]_(p_ i, n)) : (\mxcol_i C_ i) = castmx (erefl, big_ord1 _ (fun=> n)) (\mxblock_(i < p, j < 1) C_ i). Proof. by apply: trmx_inj; rewrite tr_mxcol mxrowEblock trmx_cast tr_mxblock. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxcolEblock
mxEmxrowm n (A : 'M[T]_(m, n)) : A = castmx (erefl, big_ord1 _ (fun=> n)) (\mxrow__ A). Proof. apply/matrixP => i j; rewrite castmxE !mxE/= cast_ord_id. congr (A i); set j' := cast_ord _ _. suff -> : j' = (tagnat.Rank 0 j) by apply/val_inj; rewrite tagnat.Rank2K. by apply/val_inj; rewrite [RHS]tagnat.RankEsum/= big_pred0_eq add0n. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxEmxrow
mxEmxcolm n (A : 'M[T]_(m, n)) : A = castmx (big_ord1 _ (fun=> m), erefl) (\mxcol__ A). Proof. by apply: trmx_inj; rewrite trmx_cast tr_mxcol [LHS]mxEmxrow. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxEmxcol
mxEmxblockm n (A : 'M[T]_(m, n)) : A = castmx (big_ord1 _ (fun=> m), big_ord1 _ (fun=> n)) (\mxblock_(i < 1, j < 1) A). Proof. by rewrite [LHS]mxEmxrow mxrowEblock castmx_comp; apply: eq_castmx. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxEmxblock
sq:= (\sum_i q_ i)%N. Implicit Type (s : 'I_sq).
Notation
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
sq
mxrowDm (R_ R'_ : forall j, 'M[V]_(m, q_ j)) : \mxrow_j (R_ j + R'_ j) = \mxrow_j (R_ j) + \mxrow_j (R'_ j). Proof. by apply/matrixP=> i j; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxrowD
mxrow0m : \mxrow_j (0 : 'M[V]_(m, q_ j)) = 0. Proof. by apply/matrixP=> i j; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxrow0
mxrow_constm a : \mxrow_j (const_mx a : 'M[V]_(m, q_ j)) = const_mx a. Proof. by apply/matrixP=> i j; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxrow_const
mxrow_sum(J : finType) m (R_ : forall i j, 'M[V]_(m, q_ j)) (P : {pred J}) : \mxrow_j (\sum_(i | P i) R_ i j) = \sum_(i | P i) \mxrow_j (R_ i j). Proof. apply/matrixP => i j; rewrite !(mxE, summxE). by apply: eq_bigr => l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxrow_sum
submxrowDm (B B' : 'M[V]_(m, sq)) j : submxrow (B + B') j = submxrow B j + submxrow B' j. Proof. by apply/matrixP => i i'; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxrowD
submxrow0m j : submxrow (0 : 'M[V]_(m, sq)) j = 0. Proof. by apply/matrixP=> i i'; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxrow0
submxrow_sum(J : finType) m (R_ : forall i, 'M[V]_(m, sq)) (P : {pred J}) j: submxrow (\sum_(i | P i) R_ i) j = \sum_(i | P i) submxrow (R_ i) j. Proof. apply/matrixP => i i'; rewrite !(mxE, summxE). by apply: eq_bigr => l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxrow_sum
sq:= (\sum_i q_ i)%N. Implicit Type (s : 'I_sq).
Notation
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
sq
mxrowNm (R_ : forall j, 'M[V]_(m, q_ j)) : \mxrow_j (- R_ j) = - \mxrow_j (R_ j). Proof. by apply/matrixP=> i j; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxrowN
mxrowBm (R_ R'_ : forall j, 'M[V]_(m, q_ j)) : \mxrow_j (R_ j - R'_ j) = \mxrow_j (R_ j) - \mxrow_j (R'_ j). Proof. by apply/matrixP=> i j; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxrowB
submxrowNm (B : 'M[V]_(m, sq)) j : submxrow (- B) j = - submxrow B j. Proof. by apply/matrixP => i i'; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxrowN
submxrowBm (B B' : 'M[V]_(m, sq)) j : submxrow (B - B') j = submxrow B j - submxrow B' j. Proof. by apply/matrixP => i i'; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxrowB
sq:= (\sum_i q_ i)%N. Implicit Type (s : 'I_sq).
Notation
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
sq
mul_mxrowm n' (A : 'M[R]_(m, n')) (R_ : forall j, 'M[R]_(n', q_ j)) : A *m \mxrow_j R_ j= \mxrow_j (A *m R_ j). Proof. by apply/matrixP=> i s; rewrite !mxE; under [LHS]eq_bigr do rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mul_mxrow
mul_submxrowm n' (A : 'M[R]_(m, n')) (B : 'M[R]_(n', sq)) j : A *m submxrow B j= submxrow (A *m B) j. Proof. by apply/matrixP=> i s; rewrite !mxE; under [LHS]eq_bigr do rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mul_submxrow
sp:= (\sum_i p_ i)%N. Implicit Type (s : 'I_sp).
Notation
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
sp
mxcolDm (C_ C'_ : forall i, 'M[V]_(p_ i, m)) : \mxcol_i (C_ i + C'_ i) = \mxcol_i (C_ i) + \mxcol_i (C'_ i). Proof. by apply/matrixP=> i j; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxcolD
mxcol0m : \mxcol_i (0 : 'M[V]_(p_ i, m)) = 0. Proof. by apply/matrixP=> i j; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxcol0
mxcol_constm a : \mxcol_j (const_mx a : 'M[V]_(p_ j, m)) = const_mx a. Proof. by apply/matrixP=> i j; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxcol_const
mxcol_sum(I : finType) m (C_ : forall j i, 'M[V]_(p_ i, m)) (P : {pred I}): \mxcol_i (\sum_(j | P j) C_ j i) = \sum_(j | P j) \mxcol_i (C_ j i). Proof. apply/matrixP => i j; rewrite !(mxE, summxE). by apply: eq_bigr => l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxcol_sum
submxcolDm (B B' : 'M[V]_(sp, m)) i : submxcol (B + B') i = submxcol B i + submxcol B' i. Proof. by apply/matrixP => j j'; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxcolD
submxcol0m i : submxcol (0 : 'M[V]_(sp, m)) i = 0. Proof. by apply/matrixP=> j j'; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxcol0
submxcol_sum(I : finType) m (C_ : forall j, 'M[V]_(sp, m)) (P : {pred I}) i : submxcol (\sum_(j | P j) C_ j) i = \sum_(j | P j) submxcol (C_ j) i. Proof. apply/matrixP => j j'; rewrite !(mxE, summxE). by apply: eq_bigr => l; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxcol_sum
sp:= (\sum_i p_ i)%N. Implicit Type (s : 'I_sp).
Notation
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
sp
mxcolNm (C_ : forall i, 'M[V]_(p_ i, m)) : \mxcol_i (- C_ i) = - \mxcol_i (C_ i). Proof. by apply/matrixP=> i j; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxcolN
mxcolBm (C_ C'_ : forall i, 'M[V]_(p_ i, m)) : \mxcol_i (C_ i - C'_ i) = \mxcol_i (C_ i) - \mxcol_i (C'_ i). Proof. by apply/matrixP=> i j; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxcolB
submxcolNm (B : 'M[V]_(sp, m)) i : submxcol (- B) i = - submxcol B i. Proof. by apply/matrixP => j j'; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxcolN
submxcolBm (B B' : 'M[V]_(sp, m)) i : submxcol (B - B') i = submxcol B i - submxcol B' i. Proof. by apply/matrixP => j j'; rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxcolB
sp:= (\sum_i p_ i)%N. Implicit Type (s : 'I_sp).
Notation
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
sp
mxcol_muln' m (C_ : forall i, 'M[R]_(p_ i, n')) (A : 'M[R]_(n', m)) : \mxcol_i C_ i *m A = \mxcol_i (C_ i *m A). Proof. by apply/matrixP=> i s; rewrite !mxE; under [LHS]eq_bigr do rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
mxcol_mul
submxcol_muln' m (B : 'M[R]_(sp, n')) (A : 'M[R]_(n', m)) i : submxcol B i *m A = submxcol (B *m A) i. Proof. by apply/matrixP=> j s; rewrite !mxE; under [LHS]eq_bigr do rewrite !mxE. Qed.
Lemma
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
submxcol_mul
sp:= (\sum_i p_ i)%N.
Notation
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
sp
sq:= (\sum_i q_ i)%N.
Notation
algebra
[ "From HB Require Import structures", "From mathcomp Require Import ssreflect ssrbool ssrfun eqtype ssrnat seq choice", "From mathcomp Require Import fintype finfun finset fingroup perm order div", "From mathcomp Require Import prime binomial ssralg countalg finalg zmodp bigop" ]
algebra/matrix.v
sq