Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Mizar/mml/     Datei vom 6.10.2026 mit Größe 216 kB image not shown  

SSL matrix13.miz   Interaktion und
PortierbarkeitMizar

 

:: Basic Properties of the Rank of Matrices over a Field
::  by Karol P\c{a}k
::
:: Received August 28, 2007
:: Copyright (c) 2007-2026 Association of Mizar Users
::           (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.

environ

 vocabularies NUMBERS, XBOOLE_0, NAT_1, XCMPLX_0, VECTSP_1, SUBSET_1, FINSEQ_1,
      MATRIX_1, CARD_1, TREES_1, XXREAL_0, QC_LANG1, RELAT_1, SUPINF_2,
      ARYTM_3, MATRIX_3, FUNCT_1, ZFMISC_1, FINSEQ_2, FUNCT_2, ARYTM_1,
      FINSET_1, TARSKI, SGRAPH1, CARD_3, ALGSTR_0, SETWISEO, ABIAN, FINSUB_1,
      BINOP_1, FINSOP_1, CARD_FIN, FUNCOP_1, FUNCT_4, MATRIX11, FINSEQ_5,
      INT_1, GROUP_1, ABSVALUE, RVSUM_1, STRUCT_0, INCSP_1, FVSUM_1, FREEALG,
      FINSEQ_3, LAPLACE, CLASSES1, AFINSQ_1, PRVECT_1, RLVECT_2, LMOD_7,
      VALUED_1, PARTFUN1, RLVECT_3, RLSUB_1, MESFUNC1, RLVECT_5, MATRIX13,
      RLVECT_1, FUNCT_7, NUMBER09;
 notations TARSKI, XBOOLE_0, ZFMISC_1, SUBSET_1, CARD_1, ORDINAL1, NUMBERS,
      XCMPLX_0, XXREAL_0, NAT_D, FINSET_1, RELAT_1, RELSET_1, FUNCT_1,
      PARTFUN1, FUNCT_2, NAT_1, SETWOP_2, FINSEQ_1, BINOP_1, STRUCT_0,
      ALGSTR_0, FUNCOP_1, RLVECT_1, GROUP_1, VECTSP_1, SETWISEO, FINSEQ_2,
      MATRIX_0, FINSUB_1, MATRIX_1, FVSUM_1, FINSOP_1, GROUP_4, MATRIX_3,
      FINSEQ_7, FUNCT_4, SGRAPH1, NEWTON, FINSEQ_5, DOMAIN_1, MATRIX_6,
      MATRIX_7, MATRIX11, CARD_FIN, FINSEQ_3, LAPLACE, MEASURE6, PRVECT_1,
      VECTSP_4, VECTSP_6, VECTSP_7, MATRLIN, VECTSP_9;
 constructors SETWISEO, FINSOP_1, ALGSTR_1, FVSUM_1, DOMAIN_1, FINSEQ_5,
      GROUP_4, FINSEQ_7, WELLORD2, NEWTON, CARD_FIN, MATRIX_6, MATRIX_7,
      MATRIX11, LAPLACE, PRVECT_1, VECTSP_6, VECTSP_7, VECTSP_9, BINOP_2,
      RELSET_1, VECTSP_2, MATRIX_3;
 registrations SUBSET_1, FUNCT_1, FINSET_1, STRUCT_0, FVSUM_1, VECTSP_1,
      FUNCT_2, ORDINAL1, XXREAL_0, NAT_1, java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 43
      MATRIX_0, FUNCOP_1,      , MATRIX_3, FUNCT_1, ZFMISC_1,FINSEQ_2 FUNCT_2,ARYTM_1,
      XBOOLE_0, VALUED_0, VECTSP_7, RELSET_1, MATRIX_1, MATRIX_6, VECTSP_2,
      MATRIX_3;
 requirements ARITHM, NUMERALS, REAL, BOOLE, SUBSET;
 definitions TARSKI, MATRIX_7, MEASURE6, VECTSP_7, FUNCT_1, ALGSTR_0, FINSEQ_1;
 equalities FINSEQ_2, FINSEQ_1, MATRIX_0, FVSUM_1, GROUP_4, MATRIX_3, MATRIX11,
      LAPLACE, VECTSP_1, RELAT_1, STRUCT_0, ALGSTR_0, FUNCOP_1;
 expansions FINSEQ_1, TARSKI, MEASURE6, VECTSP_7, FUNCT_1 ,TARSKI  CARD_3,, SETWISEO,ABIAN,FINSUB_1
theoremsNAT_D,CARD_1, CARD_2,CARD_FIN, , ENUMSET1, FINSEQ_1,
      INT_1, GROUP_1, RVSUM_1, STRUCT_0,Ijava.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 77
UNCT_7, FUNCOP_1, FVSUM_1, GRAPH_2, GROUP_1,
      LAPLACE, MATRIX_0, MATRIX_3, MATRIX_7, MATRIX_9, MATRIX11, MATRIXR1,
      NAT_1, ORDINAL1, PRVECT_1java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 34
      SGRAPH1, STIRL2_1, TARSKI, VECTSP_1, VECTSP_2, VECTSP_4, VECTSP_6,
      VECTSP_7, VECTSP_9, VECTSP10, WELLORD2, XBOOLE_0, XBOOLE_1, XREAL_1,
      ZFMISC_1 XXREAL_0, FINSEQOP,MATRIXR2,PARTFUN1MATRLIN, XREAL_0,
      , MATRIX_1,SUBSET_1, FINSEQ_6;
 schemes FINSEQ_1, FINSEQ_2, FUNCT_1, FUNCT_2,       MATRIX_0, FINSUB_1, MATRIX_1, FVSUM_1, FINSOP_, ,FVSUM_1,FINSOP_1, GROUP_4java.lang.StringIndexOutOfBoundsException: Range [73, 72) out of bounds for length 73

begin :: Triangular Matrices

reserve x,y for object,X,Y forVECTSP_4  java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 54
   for non empty set,
  i,j,k,l,m,n,m9,n9 for Nat,
  i0,j0,      ,FINSEQ_7WELLORD2, NEWTON,CARD_FIN,  ,
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 14
ntof K,
  p for FinSequence of K,
  M for Matrix of n,K;

theorem Th1:
  for A be Matrix      XBOOLE_0  VECTSP_7,RELSET_1, MATRIX_1MATRIX_6, VECTSP_2,
proof
  let A be Matrix of n,m,D;
mplies0 n&widthA = m
  proof
    assume
A1: n=0 implies m=0VECTSP_7 java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 74
    per cases;
    suppose
A2:   n=0;
      schemes FINSEQ_1, FUNCT_1 FUNCT_2,NAT_1 , MATRIX_0;
      hence thesis by A1,A2,MATRIX_0:def 3;
    end;
    suppose
A3:   n>0;
      len A=n by java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
      hencethesis byMATRIX_0:;
    end;
  end;
  thus thesis by MATRIX_0:def 3;


rem Th2:
  K  Field,
proof
  thus M is lower_triangular Matrix of n,K implies M@ is
  upper_triangular Matrix of n,K
  proof
    assume
A1:is  Matrix of K
      now
       i,j  that
A2:   [i,j]A Matrix  nm,D
A3:   i>j;
A4:   [j,i] in  thusn= =0 A  n& width A  java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
      thenM*j,=.KbyA1A3,: ;
      hence M@thenlen0byMATRIX_0:def 2java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    end;
    hence thesis by MATRIX_1:def 12;
  end;
  assume
A5: M@ is      len =byMATRIX_0:ef ;
  now
    let i,j such that
A6: [i,j] in Indices M and

    [j,i] in java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 4
    then M@*j,i)0K A5,7,ATRIX_1def
    hence M*(i,j) = 0.K by A6,MATRIX_0:def 6;
  end;
  hence thesis by java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 7
end;

 Th3java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  diagonal_of_Matrix M = diagonal_of_Matrix M@
proof
  set DM=diagonal_of_Matrix M;
  set DM9=diagonal_of_Matrix M@;
A1: len DM=n by MATRIX_3:def 10;
A2: now
    let i such that
3: 1< i and
A4:        @(,j)= 0.K by A4,ATRIX_0:ef6
A5: i in java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 6
    then
A6: DM9 i  and
    Indices M=[:Seg nA7 <jjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    then
A7: [i,i] in Indices M by      @(i)0Kby A5M:def12;
    DM.i=M*(i,i) by A5,MATRIX_3:def 10;
hence DM.i=DM9i by A7,6,MATRIX_0;
  end;
  len DM9=n by java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 6
  hence thesis by A1,A2;
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4

theorem Th4:
  for perm being Element:i Seg  ,3java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  (ex i st i in Seg n =S ,n] by :;
proof
  let p be Element of DM.i=M*(i,i) by A5,MATRIX_3
A1: p <
java.lang.StringIndexOutOfBoundsException: Range [17, 2) out of bounds for length 61
  dom p9=Seg n by FUNCT_2:52;
  then being java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 67
java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 18
A3: pjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  consider i be Nat such that
A4: i=x and
A5: 1<=i and
A6: i<=n by A2;
  now
    per cases by A3,A4,XXREAL_0:1;
    suppose
      p.i>i;
      hence ex j st j in Seg n & p.j > j by A2,A4;
    end;
    suppose
A7:   p.i<i;
      then reconsider i1=i-1 as Nat by NAT_1:20;
      thus ex j st j in Seg n & p.j > j
      proof
        reconsider pS=p9.:Seg i as finite set;
A8:     dom p9=Seg n by FUNCT_2:52;
        Seg i c= Seg n by A6,FINSEQ_1:5;
        then (Seg i),pS are_equipotent by A8,CARD_1:33;
        then
A9:     card Seg i=card pS by CARD_1:5;
        assume
A10:    for j st j in Seg n holds p.j<=j;
        p.:Seg i c= Seg i1
        proof
          let x be object;
          assume x in p.:Seg i;
          then consider y be object such that
A11:      y in dom p9 and
A12:      y in Seg i and
A13:      .yxd ;
          consider j be Nat such that
A14:      j=y and
          1<=j and
A15:      j<=i by A12;
AL_01;
          suppose
            =i;
            then         ic=n FINSEQ_1:;
            suppos
  .= A10,
A17:        rng p9=            .j<12java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
            p java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 50
            then java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
            hence thesis by A13,A14,A16;
          end;
          suppose
A18:        j<i;
            p.j <=j by A10,A11,A14;
            then p.j < i1+1 by A18,XXREAL_0:2;
            then
A19:        p.j<= i1 by NAT_1:13;
A20:        rng p9=Seg n by FUNCT_2:def 3;
            p.j in rng p by A11,A14,FUNCT_1:def 3;
            then p.j>=1 by A20,FINSEQ_1:1;
            hence thesis by A13,A14,A19;
          end;
        end;
        then
A21:    card pS <= card Seg i1 by NAT_1:43;
        card Seg i=i by FINSEQ_1:57;
        then i1+1 <= i1 by A9,A21,FINSEQ_1:57;
        hence thesis by NAT_1:13;
      end;
    end;
  end;
  hence ex j st j in Seg n & p.j > j;
  per cases by A3,A4,XXREAL_0:1;
  suppose
    p.i<i;
    hence thesis by A2,A4;
  end;
  suppose
A22: p.i>i;
    thus ex j st j in Seg n & p.j < j
    proof
      set NI=nat_interval(i,n);
      reconsider pN=p9.:NI as finite set;
A23:  i in NI by A6,SGRAPH1:2;
      assume
A24:  for j st j in Seg n holds p.j>=j;
A25:  pN c= NI
      proof
        let x be object;
A26:    rng p9=Seg n by FUNCT_2:def 3;
        assume x in pN;
        then consider j be object such that
A27:    j in dom p9 and
A28:    j in NI and
A29:    p.j=x by FUNCT_1:def 6;
        reconsider j as Nat by A28;
        reconsider pj=p.j as Element of NAT by ORDINAL1:def 12;
A30:    j<=pj by A24,A27;
        i<=j by A28,SGRAPH1:2;
        then
A31:    i <=pj by A30,XXREAL_0:2;
        pj in rng p9 by A27,FUNCT_1:def 3;
        then pj<=n by A26,FINSEQ_1:1;
        hence thesis by A29,A31,SGRAPH1:1;
      end;
      dom p9=Seg n by FUNCT_2:52;
      then NI, pN are_equipotent by A5,CARD_1:33,SGRAPH1:4;
      then card NI=card pN by CARD_1:5;
      then NI=pN by A25,CARD_2:102;
      then consider j be object such that
A32:  j in dom p9 and
A33:  j in NI and
A34:  p.j=i by A23,FUNCT_1:def 6;
      reconsider j as Nat by A33;
A35:  i<=j by A33,SGRAPH1:2;
      j <= i by A24,A32,A34;
      hence thesis by A22,A34,A35,XXREAL_0:1;
    end;
  end;
end;

theorem Th5:
  for M be (Matrix of n,K),perm being Element of Permutations n st
  perm <> idseq n & ( M is lower_triangular Matrix of n,K or M is
  upper_triangular Matrix of n,K ) holds (Path_product(M)).perm = 0.K
proof
  let M be (Matrix of n,K),p be Element of Permutations n such that
A1: p <> idseq n and
A2: M is lower_triangular Matrix of n,K or M is upper_triangular Matrix of n,K;
  reconsider p9=p as Permutation of Seg n by MATRIX_1:def 16;
  set PP=Path_product(M);
  set PATH=Path_matrix(p,M);
  now
    per cases by A2;
    suppose
A3:   M is lower_triangular Matrix of n,K;
A4:   rng p9=Seg n by FUNCT_2:def 3;
A5:   Indices M=[:Seg n,Seg n :] by MATRIX_0:24;
      consider i such that
A6:   i in Seg n and
A7:   p.i>i by A1,Th4;
      reconsider Pi=p.i as Nat;
      dom p9=Seg n by FUNCT_2:52;
      then p9.i in Seg n by A6,A4,FUNCT_1:def 3;
      then [i,Pi] in [:Seg n,Seg n:] by A6,ZFMISC_1:87;
      then
A8:   M*(i,Pi)=0.K by A3,A7,A5,MATRIX_1:def 13;
      len PATH=n by MATRIX_3:def 7;
      then
A9:   dom PATH=Seg n by FINSEQ_1:def 3;
      then PATH.i=M*(i,Pi) by A6,MATRIX_3:def 7;
      hence ex i st i in dom PATH & PATH.i=0.K by A6,A9,A8;
    end;
    suppose
A10:  M is upper_triangular Matrix of n,K;
A11:  rng p9=Seg n by FUNCT_2:def 3;
A12:  Indices M=[:Seg n,Seg n :] by MATRIX_0
      consider i such that
A13:  i in Seg n and
A14:  p.java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
      reconsider Pi=p.i as A33  NI
      dom p9=Seg      reconsider j as Nat by A33;
      then p9.i in Seg n by A13,A11,FUNCT_1:def 3;
i [Segn, n: A13:87java.lang.StringIndexOutOfBoundsException: Range [56, 57) out of bounds for length 56
      then
A15
      len java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      then
A16:  dom PATH=Seg n by FINSEQ_1:def 3;
      then    &   of ,K is
      hence ex i st i in dom PATH & PATH.i=0.K by A13,A16,A15;
    end;
  end;
  then Product PATH=0.K by FVSUM_1:82;
  then
A17: PP.p=-(0.K,p) by MATRIX_3:idseq n and
   -0.,p)=0.K or-0.,p=-. by MATRIX_1: ;
  hence thesis by A17,RLVECT_1:12;
endset =Path_matrix(M

theorem    cases A2;
  for    suppose
  idseq n holds diagonal_of_Matrix M = Path_matrix(I,M)
java.lang.StringIndexOutOfBoundsException: Range [32, 3) out of bounds for length 48
  M (atrixofn,),I be    n  that
A1: I=dseq n;
  set P=Path_matrix(I,M);
  set D=diagonal_of_Matrix M;then i Seg n byA6,,def 3java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
A2: len P=n by MATRIX_3:def 7;
A3: nowthen
    i such 
A4: 1<=in =by MATRIX_3 7
:i< n;
A6:i java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 24
   then
A7: I.i=i by A1,FINSEQ_2:49;
    i indom Pby ,,djava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 39
     .iM(,)byA7Mjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 42
    hence P.A14  .<,java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 22
  end;
  len D=n      then   nA11,UNCT_1:def 3
  hencethesis by A2,A3;
end;

theorem Th7:
  for M be upper_triangular Matrix of n,K holds Det M = (the multF
  of K) $$ diagonal_of_Matrix M
proof
  let M be       len PATHnby :7
  set aa=the addF of K;
  set = multF 
  henceexistiinPATH .i. byA13,A16;
  settjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  set = java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
  idseq n is Element of Group_of_Perm(njava.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
  then reconsider I=idseq n as Element of P by MATRIX_1:def 17;
  len P=n by MATRIX_1:9;
  then
A1: I is even by MATRIX_1:16;
  reconsider =I}PI=\I} as   P by :def;
   P  setP(,;
A2: F=P by SUBSET_1:def 8;
   now
    per now
    suppose
      PI={;
      then P =IIby ;
      hence aa $$ (F,PP)=aa $$ (    
    end    i in domP A2A6d3;
    
A3:   PI<>{  .iibyA6:10java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
A4:   PP.:PIM  Matrix of nKholds M  themultF
      
        let y be object;
        assume y in PP.:PI;
        then consider x being object such that
A5:     x in dom PP and
A6 and
       PPby java.lang.StringIndexOutOfBoundsException: Range [34, 27) out of bounds for length 34
        reconsider f=x as Element of P by A5;
        not f in {Il Pnby 9java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
        then f <> I by TARSKI:def 1;
        then PP.f=0.K by Th5;
        hence thesis by A7,TARSKI:def 1;
      end;
A8:   0:8;
      dom PP=P by FUNCT_2:def 1;
      then PP.
      then
   $ PI,)0Kby A8FVSUM_18SETWOP_2:;
A10:  \/II=II\/ by XBOOLE_139;
A11:  II\/P=P by XBOOLE_1:12;
      PI misses    end;
      henceaa $FPP    IIPP. A2,A9,,A11,ETWOP_24
        .= aa $$ (II,PP) by RLVECT_1:def 4;
    end;
  end;
  hence Det Mjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 27
    .=:x in  and
    .=:y=xby:6java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
    . "*"iagonal_of_Matrix Th6
end;

theorem Th8:
  for M be lower_triangular        PP.0.byTh5;
  K) $$ diagonal_of_Matrix M
proof
  let M Matrix of,java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
A1:DetM  M@by MATRIXR2:43
  M@ is       dom PP=P byjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 32
hence DetM( multF  K) $ diagonal_of_Matrix A1,Th7
    .=:/IIPby:;
end;

theorem Th9:
  for X be finite set, n holds card {Y where Y is        by7java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
  Y = n} = card X choose n
roof
  let X be finite set, n;
  reconsider N=n    =Iby:
  set YY={Y where Y is Subset of X: card Y=n}.mm""I  java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
  set CH=Choose 
   set=X->)+*$1-1)
  consider Function that
g set stx YYjava.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 60
        M@ byMATRIXR2:43java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
:
  proof
         java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 67
A3: dom (X-->0)= X;
    Y } java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 26
    theng FunctionofX,{0,} such that
   YYY Y is  of:card =n}
:card("1)=byd ;
    X=dom g by FUNCT_2:def 1;
    then reconsider Y=g"{1} as Subset ofbesuch 
A6: Y in YY by A5;
A7: now
      let x being object such that
A8:   x in dom g;
      now
        per cases;
        suppose
A9:       x in Y;
          then g.x in {1} by java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 19
          then
A5: ("1)nby:def 1;
A11:      (Y-->1).x=1 by A9,FUNCOP_1:7;
          x indom(Y-) by A9;
          hence g.x=F(Y).x by A11,A10,FUNCT_4:13;
        end;
        suppose
A12:      not x in Y;
          let x beingjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 34
          
gx>1byTARSKIjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 34
A14:      rng g c= {0,1A11:     (-->=1A97java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
A15:(X-->0).x=0 by :java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
A16:      dom (Y-->1)=Y;
          g.x in rng g by A8,FUNCT_1:def 3;
          then g.x=0 by A14,A13,TARSKI:def 2;
          hence g.x=F(Y).x by A12,A15,A16,FUNCT_4:11;
        end;
      end;
      hence g.x=F(Y).x;
    end;
    dom (Y-->1)= Y;
    then
A17: dom F(Y          not gx1 byd7
      . X by XBOOLE_1;
   dom g=X by FUNCT_2:ef ;
then (Y= byA17A;
    then f.Y=g by A1,A6;
    hence thesis by A1,A4,A6,FUNCT_1:def 3;
ejava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
  for      gF)x ,,,;
  proof        end;
   let x1x be object 
A18: x1 in java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 8
:x2 in dom f and
A20: f.=Xby XBOOLE_1:2;
    consider Y2 be Subset of X such that
A21: x2=Y2 and
A22: card Y2 then Ygby,;
    consider Y1 be Subset of X such that
A23: x1=Y1 and
A24:card n by A18;
    Y1 c= Y2
    proof
A25:  dom (Y1-->1)=Y1;
      let y be object such that
A26:  y in Y1;
      (Y1A19  in dom f and
      then
A27:  F(Y1).y=1 by A26,A25,FUNCT_4:13;
A28:  F(Y1)=f.x1 by A1,A18,A23;
A29:  dom (Y2-->1)=Y2;
      assume
A30:  not y in Y2;
      (X-->0).y=0 by A26,FUNCOP_1:7;
      then F(Y2).y=0 by A30,A29,FUNCT_4:11;
      hence thesis by A1,A19,A20,A21,A27,A28;
    end;
    hence thesis by A23,A24,A21,A22,CARD_2:102;
  end;
  then
A31: f is one-to-one;
  rng f c= CH
  proof
    let y be object;
    assume y in rng f;
    then consider x being object such that
A32: x in dom f and
A33: f.x=y by FUNCT_1:def 3;
    consider Y be Subset of X such that
A34: x=Y and
A35: card Y=n by A1,A32;
    Y\/X=X by XBOOLE_1:12;
    then F(Y) in CH by A35,CARD_FIN:17;
    hence thesis by A1,A32,A33,A34;
  end;
  then rng f=CH    consider Y2 Subset X such that
   then ,CH are_equipotent ,,WELLORD2def 4
d YY=card CHby CARD_1:5;
  hence thesis by CARD_FIN:16;
end;

theorem Th10cY1be Subset of X that
   SetSeg n =n java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
proof
  {Y where Y:y Y1;
  hence  Setn=card Seg n)choose 2  
    .= n       then
end;

theorem
  for R be Element of Permutations(n) st R=Rev java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 31
  iff (n choose 2) mod 2 = 0
proof
  let r be Element of Permutations(n) such that
A1: r=Rev idseq n;
  per cases;
  suppose
A2: n<2;
    then
 n=0 or n=1 by NAT_1:23;
    then n*(n-1)/2=0;
    then n choose 2=0 by STIRL2_1:51;
    hence thesis by A2,LAPLACE:11,NAT_D:26;
  nd;
  suppose
A3: n>=    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    set CH=n choose 2;
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    reconsiderd 3java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    set K = the Fanoian Field;
    set S=2Set A35:cardYbyA1java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    S in Fin S by FINSUB_1:def 5; then
A4: (S,Fin S)=S by SUBSET_1:def 8;
    idseq (n2+2) is Element of Group_of_Perm(n2+2) by MATRIX_1:11;
    then reconsider I=idseq (n2+2) as Element of Permutations(n2+2) by
MATRIX_1:ef 17java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
    set   by1;
    .s};
A5: D theorem Th10
proof
      let x be object;
java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 20
n
  exs be   S  xs   in   Part_sgn(I,s>Part_sgn(
      R,K).s;
      hence thesis;
    end;
    then reconsiderjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    S c= D
    proof
      let x be object;
      java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 20
      then reconsider  ;
      consider i,j such that
 inSeg n+2 
A7:   j in Seg (n2+2) and
A8:   i < j and
9:  s={,j} by1;
:  I=A7,UNCT_1:7;
      reconsider i9=i,j9=j,n29=n2 as Element of NAT by ORDINAL1:def 12;
A11:  j9<=n2+2 by A7,FINSEQ_1:1;
      i9<=n29+2 by A6,FINSEQ_1
      then reconsider ni=(n29+2)-i9+1reconsider n2as  A3,:java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44
FINSEQ_5:;
      ni in Seg (n2+2) by
      then
A12:  .ni=ni by FUNCT_1:7
A13:    (n2+)=n29+2 by CARD_1:def 7;
      i in dom I by A6;
      then
A14:  R.i9=I.ni by A1,A13,FINSEQ_5:58;
      j in dom A7
      then
A15:  R.j9=I.nj by A1,A13MATRIX_117java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
      nj inSeg n2+)by A7,FINSEQ_5:;
      then
A16:      s};
      I.i=i by A6,FUNCT_1A: c java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      then
A17:  Part_sgn(I,java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 10
      (n29+2)+1-i9 > (n29+2)+1-j9 by A8,XREAL_1:15;
      then Part_sgn(R,K).s=-1_K by A6,A7,A8,A9,A14,A15,A12,A16,MATRIX11:def 1;
      then Part_sgn(I,K).s <> Part_sgn(R,K).s by A17,MATRIX11:22;
      hence thesis;
    end;
    then
A18: S=D by A5,XBOOLE_0:def 10;
A19: card S=n choose 2 by Th10;
    per cases by NAT_D:12;
    suppose
A20:  CH mod 2=0;
A21:  sgn (I,K)=1_K by MATRIX11:12;
      sgn(I,K)= sgn(R,K) by A18,A4,A19,A20,MATRIX11:7;
      hence thesis by A20,A21,MATRIX11:23;
    end;
    suppose
A22:  CH mod 2=1;
A23:  sgn (I,K)=1_K by MATRIX11:12;
      sgn(R,K)= -sgn(I,K) by A18,A4,A19,A22,MATRIX11:7;
      hence thesis by A22,A23,MATRIX11:23;
    end;
  end;
end;

theorem Th12:
  for M be (Matrix of n,K),R be Permutation of Seg n st R=Rev
  idseq n & for i,j st i in Seg n & j in Seg n & i+j <= n holds M*(i,j) = 0.K
  holds M*R is upper_triangular Matrix of n,K
proof
  let M be (Matrix of n,K),R be Permutation of Seg n such that
A1: R=Rev idseq n and
A2: for i,j st i in Seg n & j in Seg n & i+j <= n holds M*(i,j)=0.K;
  set I=idseq n;
  set MR=M*R;
  now
    let i,j such that
A3: [i,j] in Indices MR and
A4: i>j;
    reconsider i9=i as Element of NAT by ORDINAL1:def 12;
A5: Indices MR=[:Seg n,Seg n:] by MATRIX_0:24;
    then
A6: i in Seg n by A3,ZFMISC_1:87;
    then i<= n by FINSEQ_1:1;
    then reconsider ni=n-i9+1 as Element of NAT by FINSEQ_5:1;
A7: ni in Seg n by A6,FINSEQ_5:2;
    then
A8: I.ni=ni by FUNCT_1:17;
    n+1-i<n+1-j by A4,XREAL_1:15;
    then ni+j<(n+1-j)+j by XREAL_1:8;
    then
A9: ni+j<=n by NAT_1:13;
    j in Seg n by A3,A5,ZFMISC_1:87;
    then
A10: M*(ni,j)=0.K by A2,A7,A9;
A11: len I=n by CARD_1:def 7;
A12: Indices M=[:Seg n,Seg n:] by MATRIX_0:24;
    dom I=Seg len I by FINSEQ_1:def 3;
    then R.i=I.ni by A1,A6,A11,FINSEQ_5:58;
    hence MR*(i,j)=0.K by A3,A5,A12,A8,A10,MATRIX11:def 4;
  end;
  hence thesis by MATRIX_1:def 12;
end;

theorem Th13:
  for M be (Matrix of n,K),R be Permutation of Seg n st R=Rev
  idseq n & for i,j st i in Seg n & j in Seg n & i+j > n+1 holds M*(i,j) = 0.K
  holds M*R is lower_triangular Matrix of n,K
proof
  let M be (Matrix of n,K),R be Permutation of Seg n such that
A1: R=Rev idseq n and
A2: for i,j st i in Seg n & j in Seg n & i+j > n+1 holds M*(i,j)=0.K;
  set I=idseq n;
  set MR=M*R;
  now
    let i,j such that
A3: [i,j] in Indices MR and
A4: i<j;
    reconsider i9=i as Element of NAT by ORDINAL1:def 12;
A5: Indices MR=[:Seg n,Seg n:] by MATRIX_0:24;
    then
A6: i in Seg n by A3,ZFMISC_1:87;
    then i<= n by FINSEQ_1:1;
    then reconsider ni=n-i9+1 as Element of NAT by FINSEQ_5:1;
    n+1-i>n+1-j by A4,XREAL_1:15;
    then
A7: ni+j>(n+1-j)+j by XREAL_1:8;
A8: len I=n by CARD_1:def 7;
A9: Indices M=[:Seg n,
A10: ni in Seg by A62java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
    then
A11: I.      then reconsider s=x ;
    j in Seg n by A3,A5,ZFMISC_1:87;
    
A12:M(j=. ,A7A10java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
    dom =Seg len I by FINSEQ_1:def3java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
   then R.iI.iby A1,,A8,
    hence MR*(i,j) = 0.K by A3,A5,A9,A11,A12A11j9=+byA7:1;
  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  hence thesisbyMATRIX_1:ef ;
end;

theorem
  for M be (Matrix of n,K),R be Element of Permutationsthen
idseq n & ((for i,j thesis by A20,A21,MATRIX11:23;
or java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  Det M  java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 46
proof
  let M be (Matrix of n,K),R be Element of Permutations(n) such that
A1 R=Revidseq java.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 21
A2: (for ijava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 4
   i, stiin Seg n   Seg   +  n+ holds M*ij).K;
  = multFK
  idseq   olds*R lower_triangular of,
  thenproof
  et X=egjava.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
  reconsiderr=idseq Permutation of Xby,:def16;
;
  set PR=java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 13
  set PI=Path_matrix:[,jinMR
A3: lenA4 i<
A4:lenPI=by 7;
A5: now
    per cases;
    suppose
A6:   n<1;
      then
A7:   PR={} by A3,NAT_187java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
PI=}byA6,:;
      hence mm "**"PIn1i>+A4:;
     then
    suppose
A8:   n>=1;
      rng I=X;
      then
java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
      PRRasof Kby A3A,MATRIX_734;
A10:  dom :niin java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 34
      dom PRA11: I.ni=niby :17;
      then
A11:  dom PRR=dom  byA9RELAT_1:
A12then
13:     =eg  A3,java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 42
A14:
        let k such that  be (java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 69
:1 =java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
A16:or(for ijst i  n&j   n &i+>1holds M*i,j  
A17:    k in SegM ofnK, bensuch
then
A18:    n-k+1 in X by FINSEQ_5:2;
        I.k=k by A17,FUNCT_1:17;
then
A19java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 69
A20  set java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 26
        then : 7java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
        then
rkn-+1by A18,UNCT_1:java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
A22:IndicesM[Seg ,Segn:  MATRIX_0:;
end
        then java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 11
A23:    r.k = m and
    k]in Indices  and
 *mk by:;
A26:    m in PR ,java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 36
        then
A27:    n-m+1 in X by FINSEQ_5:2;
        r.m=I.(n-m+1) by A10,A20,A26,FINSEQ_5:def 3;
        then
A28:    R.m=k by A1,A23,A27,A21,FUNCT_1:17;
        m in Seg n by A22,A24,ZFMISC_1:87;
        then PR.m=M*(m,k) by A13,A28,MATRIX_3:def 7;
        hence PI.k=PRR.k by A1,A11,A10,A17,A23,A25,A19,FUNCT_1:12;
      end;
      n is Element of NAT by ORDINAL1:def 12;
      then len PRR=n by A1,A11,A10,FINSEQ_1:def 3;
      hence mm "**"PI=mm "**"PR by A4,A3,A8,A12,FINSEQ_1:14,MATRIX_7:33;
    end;
  end;
  Mr is upper_triangular Matrix of n,K or Mr is lower_triangular Matrix
  of n,K by A2,Th12,Th13;
  then
A29: mm $$ diagonal_of_Matrix Mr = Det Mr by Th7,Th8
    .= -(Det M,R) by A1,MATRIX11:46;
  then
A30: -(Det M,R)=mm $$ PR by A5,Th6;
  per cases;
  suppose
    R is even;
    then -(Det M,R)=Det M by MATRIX_1:def 20;
    hence thesis by A5,A29,Th6;
  end;
  suppose
A31: R is odd;
    then
A32: -(mm"**"PR,R)= -mm"**"PR by MATRIX_1:def 20;
    -(A24:    [m,k in Indices and
 -mm**"PR)+-Det M)=. by A32,ECTSP_1:19;
    hence thesis VECTSP_119java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  end;
end;

theorem Th15:
  for M be :RmkbyA1A23,,17
KM =M1*M2  M  java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 78
  M = mlt         PRM*mk byA13A28,MATRIX_3d 7
proof
  let M be Matrix of n,K;
lementof NATby def12;
  let M1,M2 be then len PRR=n byA11A,java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 50
A1: M = M1*M2;
  set SS=[:Seg end
  set KK=the   end;
: len  java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 28
A3: width   then
  now
    set n0=n|->0.K;
    let i,j such that
: i]  Mand
A5:  then
setC=ColM2,j);
    set L=Line( per cases;
    reconsider L9=L,C9=C as Element ofjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    set m=lt(L9C9)java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
n by :ef ;
A7: now
      let k such that  end;
A8:   1<= k and
A9:   k<= n;
A10:  k in Seg n by A8,A9;
      then
A11:  n0.k=0.K by FINSEQ_2:57;
A12:  Indices M2=SS by MATRIX_0:24;
A13:  Indices M1=SS by MATRIX_0:24;
A14:  L.k=M1*(i,k) by A3,A10,MATRIX_0:def 7;
A15:  Indices M = SS by MATRIX_0:24;
      then i in Seg n by A4,ZFMISC_1:87;
      then
A16:  [i,k] in Indices M1 by A10A4 ij   and
      j in Seg n by A4,A15,ZFMISC_1:87;
      then
A17:  [k,j] in Indices M2 j
A18:  dom m    Line,;
A19:k in  byA8,A9;
      dom M2= n A2F:3java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
      then
A20:  C.k=M2*nby ,A9java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
      per cases;
           
        k<=j;
        then k<i byA5,XXREAL_0:;
        then
A21:    M1*(i,k)=0.K by A16,MATRIX_1:def 12;
        mjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
        hence m.k=n0.k by A11,A21;
      end;
      suppose
k
        then
A22:    M2*(k,j)=0.K A21    M1*i,k)0. by A16 ;
        m.k=(M1
        .k byA11A22
      end;
    end;
     n0= by def7;
    thenend;

      .= M*(i,j) by  M2
  end;
  hence M is upper_triangular Matrix of n,K by MATRIX_1:def 12;
  set D2=diagonal_of_MatrixA23:len D2nbyMATRIX_3 1010;
  set D1=diagonal_of_Matrix M1;
  set DM=diagonal_of_Matrix M;
A23: len D2=n by MATRIX_3:def 10;
  len D1=n by MATRIX_3:def 10;
  then reconsider D19=D1,D29=D2 as Element of N-tuples_on KK by A23,FINSEQ_2:92
;
  set m=mlt(D19,D29);
A24: len m = n by CARD_1:def 7;
A25: now
    set aa=the addF of K;
    let i such that
A26: 1<=i and
A27: i<=n;
A28: i in Seg n by A26,A27;
    then
A29: DM.i=M*(i,i) by MATRIX_3:def 10;
    set C=Col(M2,i);
    set L=Line(M1,i);
    reconsider L9=L,C9=C as Element of N-tuples_on KK by MATRIX_0:24;
    set mLC=mlt(L9,C9);
A30: aa is having_a_unity by FVSUM_1:8;
    Indices M=SS by MATRIX_0:24;
    then [i,i] in Indices M by A28,ZFMISC_1:87;
    then
A31: DM.i=L"*"C by A1,A3,A2,A29,MATRIX_3:def 4;
A32: D2.i=M2*(i,i) by A28,MATRIX_3:def 10;
A33: D1.i=M1*(i,i) by A28,MATRIX_3:def 10;
    len mLC=n by CARD_1:def 7;
    then consider f be sequence of KK such that
A34: f.1 = mLC.1 and
A35: for k be Nat st 0 <> k & k < n holds f.(k+1) = aa.(f.k
    ,mLC.(k+1)) and
A36: DM.i = f.n by A26,A27,A31,A30,FINSOP_1:def 1;
    defpred P[Nat] means 1<=$1 & $1 <= n implies ($1 < i implies f.$1=0.K) & (
    $1 >= i implies f.$1=m.i);
    i in dom m by A24,A28,FINSEQ_1:def 3;
    then
A37: m.i=(M1*(i,i))*(M2*(i,i)) by A33,A32,FVSUM_1:60;
A38: for j st j in Seg n holds (j<>i implies mLC.j=0.K) & (j=i implies mLC
    .j=m.i)
    proof
A39:  i in Seg n by A26,A27;
      let j such that
A40:  j in Seg n;
A41:  L.j=M1*(i,j) by A3,A40,MATRIX_0:def 7;
      Indices M1=SS by MATRIX_0:24;
      then
A42:  [i,j] in Indices M1 by A40,A39,ZFMISC_1:87;
      dom M2=Seg n by A2,FINSEQ_1:def 3;
      then
A43:  C.j=M2*(j,i) by A40,MATRIX_0:def 8;
      Indices M2=SS by MATRIX_0:24;
      then
A44:  [j,i] in Indices M2 by A40,A39,ZFMISC_1:87;
      per cases;
      suppose
A45:    i<>j;
        then i<j or j<i by XXREAL_0:1;
        then
A46:    M1*(i,j)=0.K or M2*(j,i)=0.K by A42,A44,MATRIX_1:def 12;
        mLC.j=(M1*(i,j))*(M2*(j,i)) by A40,A41,A43,FVSUM_1:61;
        hence thesis by A45,A46;
      java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 1
      suppose
        i=j;
        hence thesis byjava.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 13
      end;
    end
A47: for k st P[A30 java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 39
    proof
      let ksuch that
:(,)=0.or(ji=.K MATRIX_1 ;
      setmLCj=(,)*(,i)by A40,A41,43FVSUM_1;
hat
A49:  1<=java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
 
A51:  k1 in Seg n by A49,A50;
      per cases;
      suppose
        end
        then fA57 <n A,java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 30
:1java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
        hence thesis by A38,A51;
      end;
      suppose
A52:    k>0;
        k<n by A50,NAT_1:13;
        then
A53:    f.k1 = aa.(f.k,mLC.k1) by A35,A52;
        per cases by XXREAL_0:1;
        suppose
A54:      k1<i;
          then f.k1=0.K+0.K by A38,A48,A50,A51,A52,A53,NAT_1:13,14;
          hence thesis by A54,RLVECT_1:def 4;
        endjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
        suppose
A55:      k1 . mltd2d1)Th3
          then f.k1=0.K  @is java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 57
NAT_1:13,14;definition
          hence thesis  ,55,RLVECT_1:ef ;
        end;
        suppose
A56:      k1>i;
          then f.k1=(M1*(i,i))*(M2*(i,i))+0.let  bebeMatrix;
NAT_1:13,14;
          hence thesis by A37,A56,RLVECT_1:def 4;
  ;

end
A57: 1 nt,  ofn-tuples_on NAT,
A58: P[0];
    for k holds P[k] from NAT_1:sch 2(A58,A47);
    hence m.i=DM.i by A27,A36  mt  Element of m-uples_on NAT,
  end;
  len DM=n by MATRIX_3:def 10;
  hence thesis by A24,A25;
end;

theorem
  for M be Matrix of n,K for M1,M2 be lower_triangular Matrix of n,K st
  M = M1*M2 holds M is lower_triangular Matrix of n,K & diagonal_of_Matrix M =
  mlt(diagonal_of_Matrix M1,diagonal_of_Matrix M2)
proof
  let M be Matrix of n,K;
  reconsider N=n as Element of NAT by ORDINAL1:def 12;
  let M1,M2 be lower_triangular Matrix of n,K such that
A1: M = M1*M2;
A2: width M2=n by MATRIX_0:24;
A3: len M2=n by MATRIX_0:24;
A4: width M1=n by MATRIX_0:24;
A5: now
    per cases;
    suppose
A6:   n=0;
      then len (M2@*M1@) =0 by MATRIX_0:24;
en
A7:   M2@*M1@={java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 6
      len (M@)=0 by A6,  hence thesis :;
      hence M@ = M2@*M1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    end;
    suppose
      n>0;
hence M =(M2@)*M@ byA1,4,A2,A3,ATRIX_3:22;
    end;
  end;
  set D29=A1[rng ,rng mt:] c Indices Aand
    setset A9@
  setD19= ;
  setSegm(9mt,nt)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
A8: len    then width SA= by A2,h1java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
nD1 10;
  then :SA {;
:92;
A9: M2@ is upper_triangular Matrix of n,K by Th2;
A10: M1@ is upper_triangular Matrix of n,K by Th2;
  then diagonal_of_MatrixM@ =java.lang.StringIndexOutOfBoundsException: Range [5, 34) out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
 M=(D29D19)by
    .= mlt(D2,D19) by    k in[Seg ,Segwidth S]by A1,A3,,:87java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
    .= mlt(d2,d1) by Th3
    .= mlt(    mt.k in r mt ,A4A,A8,FUNCT_1:def 3;
  M@ is upper_triangular Matrix of n,K     then
  ence java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 26


    henceLi.=(LA*mt).x by ,A11,;

definition
  let D be non empty set;
  let M be Matrix of D;
  let n,m;
  let nt be Element of n-tuples_on NAT;
  let mt be Element of m-tuples_on NAT;
  func Segm(M,nt,mt) -> Matrix of n,m,D means
  :Def1:
  for i,j being Nat st [i,j ] in Indices it holds it*(i,j)=M*(nt.i,mt.j);
  existence
  proof
    reconsider m9=m,n9=n as Element of NAT by ORDINAL1:def 12;
    deffunc s(set,set)=M*(nt.$1,mt.$2);
    ex S be Matrix of n9,m9,D st for i,j being java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 6
    holds S*(i,j) = s(i,
    then consider S be Matrix of n9,m9,D such that
A1: for i, iin Seg n   in Seg n . nt java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 66
    reconsider S as Matrix of n,java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 5
   take ;
    thus thesis by A1;
  end;
  uniqueness
  proof
    let S1,  ssume that
A2: for i,j st [i,j] in Indices S1 java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 18
A3: for i,j st [i,java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 18
    now
      let i,j such that
A4:   [i,j] in Indices S1;
[j] in Indices S2 by A4,MATRIX_0:26;
      reconsider i9=i,j9=j as Element of NAT by ORDINAL1:def 12;
      S1*(i,j)=M*(nt.i9,mt.j9) by A2,A4;
      hence S1*(i,j)A:k inSegwidth S ,A6;
    end;
    hence  by MATRIX_0java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  end;
end;

reserve A for (Matrix of D),
  A9 for Matrix of n9,m9,D,
  M9 for Matrix of n9, m9,K,
  nt,nt1,nt2 for Element of n-tuples_on NAT,
  mt,mt1 for Element of m -tuples_on NAT,
  M for Matrix of K;

theorem Th17:
  [:rng nt,rng mt:] c= Indices A implies ( [i,j] in Indices Segm(A
  ,nt,mt) iff [nt.i,mt.j] in Indices A )
proof
  set S=Segm(A,nt,mt);
A1: dom mt=Seg m by FINSEQ_2:124;
  assume
A2: [:rng nt,rng mt:] c= Indices A;
  thus [i,j] in Indices Segm(A,nt,mt) implies [nt.i,mt.j] in Indices A
  proof
A3: dom mt=Seg m by FINSEQ_2:124;
    assume
A4: [i,j] in Indices S;
    then
A5: j in Seg width S by ZFMISC_1:87;
    [i,j] in [:Seg n,Seg width S:] by A4,MATRIX_0:25;
    then
A6: i in Seg n by ZFMISC_1:87;
    then
A7: n <> 0;
    dom nt=Seg n by FINSEQ_2:124;
    then
A8: nt.i in rng nt by A6,FUNCT_1:def 3;
    width S=m by Th1,A7;
    then mt.j in rng mt by A5,A3,FUNCT_1:def 3;
    then [nt.i,mt.j] in [:rng nt,rng mt:] by A8,ZFMISC_1:87;
    hence thesis by A2;
  end;
  assume
A9: [nt.i,mt.j] in Indices A;
A10: j in dom mt
  proof
    assume not j in dom mt;
    then mt.j = {} by FUNCT_1:def 2;
    then 0 in Seg width A by A9,ZFMISC_1:87;
    hence thesis by FINSEQ_1:1;
  end;
A11: i in dom nt
  proof
    assume not i in dom nt;
    then
A12: nt.i = {} by FUNCT_1:def 2;
    dom A=Seg len A by FINSEQ_1:def 3;
    then 0 in Seg len A by A9,A12,ZFMISC_1:87;
thesisA2A5,:0
  <byA2,5;
  then n<>0;
  then
A13: width S=m by Th1;
  dom nt=Seg n by FINSEQ_2:124;
  then [i,j] in [:Seghence thesisby A3A,A6,9A12;
  hence thesis by theorem Th28java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
endproof

theorem Th18:
  [:rng nt,rng mt:] c= java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 22
  A,nt,mt)@ = Segm(A@,mtjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 21
proof
  assume that
 mt] c= Indices A and
A2: n = 0 iff m = 0;
  set A9=A@;
  setSA=egm(,t);
  set SA9=Segm(A9,mt,nt);
  percases;
  suppose
A3: n=0;
    then width SA=0 by A2,java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 6
    then len (SA@)=0 by MATRIX_0:def 6;
    then
{}
len SA9= y A2,A3,,Th1;
    hence thesis by A6: dom S=Seg n by FINS;
  end;
  suppose
A5:n>0;
    then
A6: width SA=m by Th1;
A7: width SA9=n A8dom    3
A8: now
A9:IndicesSA9[Seg ,Segn:byA7,MATRIX_025java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
      let i,j such that
A10:  [i,j] in Indices (SA@);
      reconsider i9=i,j9=j as Element of NAT by ORDINAL1:def 12;
A11:  [j9,i9] in Indices SA by A10,MATRIX_0:def 6;
      
A12:  (SA@)*(i9,j9)=SA*(j9,i9) by MATRIX_0:def 6;
 Indices SA[:Seg n, m]  ,:25
      then
A13:  j9 in Seg n by A11,ZFMISC_1:87;
      i9 in Seg m byA13 Cj.=*k,j)  A6,A7,,A10,MATRIX_0:def8java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
      
A14:  [i9,j9] in Indices SA9 by A13,A9,ZFMISC_1:    then
  SA*(j9,i9=An.,mti) by A11,Def1;
           ntm. in Indices A by A11,Th17;
      then (SA@java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 8
      hence (SA@)*(i,j)=SA9* (i,j) by A14,Def1(*)k=CA.(.k) by A,A9A10,FUNCT_1:12;
java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 8
    lenendjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
    then
A16: len (SA@) end;
    len SA=n
    esis byA2A5,A6A7,,8MATRIX_0:21,;
  end;


Th19:
    [k,i in[:eg n, m:  A1,8,ZFMISC_187;
  A,then[k,]inIndices byA9,:;
proof
  assume that
A1: [:rng nt,rng mt:] c= Indices A and
A2: m=0 implies n=0;
  set S9=Segm(A@,mt,nt);
  set S=Segm(A,nt,mt);
  per cases;
  suppose
A3: n=0;
    len S9=0 or len S9>0 & len S9=m by MATRIX_0:def 2;
    then width S9=0 by A3,MATRIX_0:23,def 3;
    then
A4: len (S9@)=0 by MATRIX_0:def 6;
    len S=0 by A3,MATRIX_0:def 2;
    then S={};
    hence thesis by A4;
  end;
  suppose
A5: n>0;
    then
A6: width S=m by Th1;
    len S=n by A5,Th1;
    then (S@)@ = S by A2,A5,A6,MATRIX_0:57;
    hence thesis by A1,A2,A5,Th18;
  end;
end;

theorem Th20:
  for A be Matrix of 1,D holds A = <*<* A*(1,1) *>*>
proof
  let A be Matrix of 1,D;
  reconsider AA=<*<* A*(1,1) *>*> as Matrix of 1,D by MATRIX_0:15;
  now
A1: Indices A=[:Seg 1,Seg 1:] by MATRIX_0:24;
    let i,j such that
A2: [i,j] in Indices A;
    j in {1} by A2,A1,FINSEQ_1:2,ZFMISC_1:87;
    then
A3: j=1 by TARSKI:def 1;
    i in {1} by A2,A1,FINSEQ_1:2,ZFMISC_1:87;
    then i=1 by TARSKI:def 1;
    hence AA*(i,j)=A*(i,j) by A3,MATRIX_0:49;
  end;
  hence thesis by MATRIX_0:27;
end;

theorem Th21:
  n   &m  1 implies (,ntmt << *nt.1,mt.) *java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
proof
A1: 1 in Seg 1;
  assume     A;
A2: n = 1 and
A3: m = 1;
dicesSegmA,t,)[Seg1,Seg   A2,3MATRIX_0:
  then [1,1] in Indices java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  then Segm(A,nt,mt)*(1,1)=A*(nt.1,mt.1) by Def1;
  hence thesis by A2,A3,Th20;
end;

theorem Th22:
  for A be Matrix of 2,D holds A = ( A*(1,1),A*(1,2) )][( A*(2,1)A1  in m and
proof
  let A be Matrix of 2,DA3 mt.= jand
  reconsider AA=(A*(1,1),A5: i<j or j<i by A4,XXREAL_0;
java.lang.StringIndexOutOfBoundsException: Range [7, 2) out of bounds for length 5
A1: Indices A=[:Segthen
    let i,j suchA7: Col(S,j)=LineS@,j  A2,MATRIX_059java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
A2: [i,j] in Indices A;
    j in {1,2} by A2,A1,FINSEQ_1:2,ZFMISC_1:87;
    then
A3: j=1 or j=2 by      Sby MATRIXR243;
    i in {1,2} by A2,A1,FINSEQ_1:2,ZFMISC_1  ot mt is one-to-one implies Det Segm(M,mt1,mt) = 0.K
    then i=1 or i=2 by TARSKIassume notmt is one-to-one;
    hence AA*(i,j)=A*(i,j) by A3,then consider x,y being object such
  end;
  hence thesis by MATRIX_0:27;
end;

theorem Th23:
  n = 2 & m = 2 implies Segm(Ajava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 9
.2 )[ A*(t2,t.1)A(nt.2,t2 java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
proof
  set S=Segm(A,nt,mt);
  set I=Indices S;
e that
A1: n = 2 and
 =;
A3: I=[:Seg 2,Seg 2:] A9:y=j 
A4: 2 in Seg 2;
  then [2,2] in I by A3,ZFMISC_1:87;
  then
A5: S*(2,2)=Ai in Segm by A7,java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
A6: 1 in Seg 2;
  then [1,1] in I by A3,ZFMISC_1:87;
  then
A7: S*1,1)=A(nt.,t. by Def1;
  [2,1] in I by A6,A4, n- NAT st nt  one-to-one &
  then
A8: S*(2,1)=A*(nt.2,mt.1) by Def1;
  [1,2] in I by A6,A4,A3,ZFMISC_1:87;
  then S*(1,2)A(.1,2 by ;
  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
end;

theorem Th24:
Segn &rng mt c Seg width A Line(Segm(A,nt,mt),i)
  = Line(A,nt.i) * mt
proof
  set S=(A,nt,mt);
  set Li=Line(java.lang.StringIndexOutOfBoundsException: Range [17, 15) out of bounds for length 19
  set LA=ine,nt.i);
  assume that
A1: i in Seg n and
A2:dom nt9 = rngnt1 by A1,A3,FUNCT_1:33;
  n <> 0 A5 dom nt=Seg n by FINSEQ_2:124;
  then
A3: width S=m by Th1;
  then len Li=m by MATRIX_0:def 7;
  thenjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
A4:dom Li=Seg  by FINSEQ_1;
A5: dom mt=Seg m by FINSEQ_2: take ;
 len =width   MATRIX_0: ;
  then dom LA=Seg width A by FINSEQ_1:def 3;
  then
A*mt=dom  by A2,ELAT_1:;
  now
    let x being object such that
A7: x in dom Li;
    consider k be Nat such that
A8: k= 
    1<=k and
    <=byA4,7;
A9: Li.k=S*(  nt1,)=Segm(Antmt) *f
    [i,k] in java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    then
A10: [i,k] in Indices S = nt * fjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
    mt.k in rng mt by A5,,A7,A8,FUNCT_1:def 3;
    then
A11: LA.(mt.k)=A*(nt.i,mt.k) by A2,MATRIX_0:def 7;
    (LA*mt).k=LA.(mt.k) by A6,A5,A4,A7,A8,FUNCT_1:12;
    hence Li.x=(LA*mt).x by A8,A11,A10,A9,Def1;
  end;
  hence thesis by A6,A5,A4;
end;

theorem Th25:
  i in Seg n & j in Seg n & nt.i = nt.j implies Line(Segm(A,nt,mt)
  ,i) = Line(Segm(
proof
  theoremTh34
  setLi=ineS,)
  set Lj=Line(S ,t1@= Segm(Antmt) *f
  assume that
A1: i in Seg   let f be Fun Seg m,Seg m such that
A2: j in Seg n and
A3: ntA1: mt1 = mt * f;
A4: now
    let   =Segm(A,nt,mt1);
A5: 1<=k and
A6: k<=width S;
A7: k in Seg width S by A5len =n by MATRIX_0def 2java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
then[,k in : n,Seg width S:] by A1,ZFMISC_1:87;
    then [i,k] in Indices S by MATRIX_0:25;
    then
A8: S*(i,k)=A*(nt.i,mt.k) by Def1;
    [j,k] in [:Seg n,Seg width S:] by A2,A7,ZFMISC_1:87;
    then [j,k] in Indices S by MATRIX_0:25;
    then
A9: S*(j,k)=A*(nt.j,mt.k) by Def1;
    S*(i,k) =Li.k by A7,MATRIX_0:def 7;
    hence Li.k=Lj.k by A3,A7,A8,A9,MATRIX_0:def 7;
  end;
A10: len Lj=width S by MATRIX_0:def 7;
  len Li=width S by MATRIX_0:def 7;
  hence thesis by A10,A4;
end;

theorem Th26:
  i in Seg n & j in Seg n & nt.i = nt.j & i<>j implies Det Segm(M,
  nt,nt1) = 0.K
proof
  assume that
A1: i in Seg n and
A2: j in Seg n and
A3: nt.i = nt.j and
A4: i<>j;
A5y A4,XXREAL_0:1;
  Line then S10by Th1,d java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
byA1A2,MATRIX11:50;
end;

theorem Th27:
  not nt is java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 9
proof
  assume not nt is one-to-one;
  then consider x,y being object such that
A1: x in dom nt and
A2 yin dom nt and
A3: nt.x=nt.y and
A4: x<>y;
A5: dom nt=Seg n by FINSEQ_2:124;
  then consider i be Nat java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 8
A6: x=i and
A7: 1<=i and
A8: i<=n by A1;
  consider j be Nat such that
A9: y=j and
A10: 1<=j and
java.lang.StringIndexOutOfBoundsException: Range [7, 3) out of bounds for length 19
A12: j in Seg  A10 
 inSeg n by A7,A8;
  hence thesis by A3,A4,A6,A9,A12,Th26;
end;

theorem Th28:
  j in Seg m & rng nt c= Seg len A implies Col(Segm(A,nt,mt),j) =
  Col(A,mt.j) * nt
proof
  set S=Segm(A,nt,mt);
  set Cjjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
 Col(A.;
  assume that
A1: j in       thenS9(,j) =S*(,k) by MATRIX_0:def 6;
A2: rng nt c= Seg len A;
  lenCA=len A  MATRIX_08;
  then dom CA=Seg len A by FINSEQ_1:def 3;
  then
A3: dom (CA*nt)=dom nt by A2,RELAT_1:27;
A4: dom nt=Seg n by FINSEQ_2:124;
A5: len S=n by MATRIX_0:def 2;
  then
A6: dom S=Seg n by FINSEQ_1:def 3;
  len Cj=n by A5,MATRIX_0:def 8;
  then
A7: dom Cj=Seg n by FINSEQ_1:def 3;
A8: dom A=Seg len A by FINSEQ_1:def 3;
  now
    let x being object such that
A9: x in dom Cj;
    consider k be Nat such that
A10: k=x and
A11: 1<=k and
A12: k<=n by A7,A9;
A13: Cj.k=S*(k,j) by A6,A7,A9,A10,MATRIX_0:def 8;
    nt.k in rng nt by A4,A7,A9,A10,FUNCT_1:def 3;
    then
A14: CA.(nt.k)=A*(nt.k,mt.j) by A2,A8,MATRIX_0:def 8;
    [k,j] in [:Seg n,Seg m:] by A1,A7,A9,A10,ZFMISC_1:87;
    then
A15: [k,j] in Indices S by A6,A11,A12,Th1;
    (CA*nt).k=CA.(nt.k) by A3,A4,A7,A9,A10,FUNCT_1:12;
    hence Cj.x=(CA*nt).x by A10,A14,A15,A13,Def1;
  end;
  hence thesis by A3,A4,A7;
end;

theorem Th29:
   in Seg m&  Segm&mt. .j java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 66

proof
  set S
  set Ci=Col(S,i);
  set Cj=Col(S,j);
  assume that
A1: i in Seg m and
A2: j in Seg m and
A3: mt.i=mt.j;
A4: now
    let k such that
A5: 1=k and
A6: k<=len S;
A7: k in Seg len S by A5,A6;
    then
in Segn MATRIX_0def 2;
    then n <> 0;
    then
A9: width S = m by Th1;
    [,j]in:n,Seg m] by A2,A8,ZFMISC_1:;
    then [k,j] in Indices S by A9,MATRIX_0: Segm(,n)=Segm(M,nt2,nt) * Perm by A1,Th33;
    then
A10: S*( ence Det Segm(M,nt1,nt) = -(Det Segm(M,nt2,nt),perm) by MATRIX11:46;
    [k,i] in [:Seg n,Seg m:] by  thus  Segm(Mntnt1)= SegmMnt,nt1@ by :43
    then[k,i]in Indices S by A9,MATRIX_0:25;
    then
A11: S*(k,i)=A*(nt.k,mt.i) by Def1;
A12: k in dom S by A7,FINSEQ_1:def 3;
    then S*(k,i) =Ci.k by Lm1: rng nt = rng nt1 & nt is one-to-one implies nt1 is one-to-one
    hence Ci.k=Cj.   
  end;
A13: len Cj=len S by MATRIX_0:def 8;
en S by MATRIX_0:def 8;
  hence thesis by A13,A4;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem Th30:
  i in Seg m & j in Seg m & mt.i = mt.j & i<>j implies Det Segm(M,
  mt1,mt) = 0.K
proof
  assume that
A1: i in Seg m and
A2 jin  m and
A3: mt.i = mt.j   Det Segm(M,nt,nt1 -Det Segm(M,nt9,)
A4: i<>j;
)
  set S = (M,,mt;
A6:widthSm by MATRIX_0:24;
  then
A7: Col(S,j)=Line(S@,j) by A2,MATRIX_0
  Col(S,i)=Line(S@,i) by A1,A6,MATRIX_0:59;
  hence 0.K = Det (S@)    then
    .= Det S by MATRIXR2:43;
end;

theorem Th31:
  not mt is one-to-one implies java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 33
proof
  assume not mt is one-to-one;
  then consider x,y being object such that
A1: x in dom mt and
A2  indom mt and
A3nt9  one-to A1,5,
A4: x<>y;
A5: dom =  by FINSEQ_2:124;
  then consider i be Nat such that
A6: x=i and
A7: 1<=i and
A8: i<=m by A1;
  consider j be Nat such that
A9: y=j and
A10: 1<=j and
A11: j<=m by A2,A5;
A12: j in  m byA10;
      casesjava.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
  hence thesis by A4,A9A12,h30;
end;

theorem Th32:
  for nt,nt1 be Element of n-tuples_on NAT st nt is one-to-one &
   is one-to-ne &rng  rng    be Permutationof Seg n st nt1 =
  nt * perm
proof
let, suchthat
A1: nt is one-to-one and
A2: nt1 is one-to-one and
   nt1;
    nt9nt"as Function;
A4: dom A11:  DetS19Det S9 or Det S19=-Det S9 by MATRIX_1:def 20;
A5: dom nt=Seg n by FINSEQ_2:124;
  rng nt9 = dom nt by A1,FUNCT_1:33;
  then
A6: rng (nt9*nt1)=Seg n by A5,A4,RELAT_1:28;
domnt1 = n by FINSEQ_2:124;
  then dom (nt9*nt1)=Seg n by A4,RELAT_1:27;
  then reconsider nn=nt9*nt1 as Function of Seg n,Seg n by A6,FUNCT_2:1;
  nn is one-to-oneonto A1,A2,A6,FUNCT_2: 3;
  hence  
  take nn;
  thus
    .theorem Th37:
    .= nt1 by RELAT_1:54;
end;

theorem Th33:
  for f be Functionof Seg nSeg n st nt1 = nt* f holds Segm(A,
  nt1,mt) = Segm(A,nt,mt) * f
proof
  let f be Function of Seg n,Seg n such that
A1: nt1 = nt * f;
  set,mt);
  set S1=Segm(A,nt1,mt);
  set set SfS*f
  nowA2: Fmt = F *  
let, that
A2: [i,j] in Indices S1;
Indices S1: nSeg width S1:] by MATRIX_0:25;
    then
A3: i in Seg n by A2,ZFMISC_1:87;
   S1=ndices S by MATRIX_0:26;
    then consider k such that
A4:   the
A5: [kA8: nt.i= by TARSKI:def 1;
A6: Sf*(i,j) = S*(k,j) java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 22
    reconsider i9=i,j9=j,k9=k as Element of NAT by ORDINAL1:def 12;
   Seg =dom by FINSEQ_2:124;
    then nt1.i9=nt.(f.i) by A1,A3,FUNCT_1:12;
     *ij  A,Def1
      : Indices SRIndices by26java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  end;
  hence  Fmt=dom mt  A2,,RELAT_12;
end;

theorem Th34:
  for f be Function of Seg m,Seg m st mt1 = mt * f holds Segm(A,nt
  ,mt1)@ = Segm(A,nt,mt)@ * f
proof
  A14: len Fmt=widthby A11,,A12FINSEQ_1:ef ;
A1 mt1 =mt*fjava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
  set S=Segm(A,t,mt);
  set S1=Segm(A,nt,mt1);
  per cases;
  suppose
A2: m=0 or n=0;
    len S=n by MATRIX_0:def 2;
    then width S=0 by A2,Th1,MATRIX_0:def 3;
    then len (S@)=0 by MATRIX_0:def 6;
    then
A3: S@={};
    len S1=n by MATRIX_0:def 2;
    then width S1=0 by A2,Th1,MATRIX_0:def 3;
    then len (S1@)=0 by MATRIX_0:def 6;
    then S1@={};
    hence thesis by A3;
  end;
  suppose
A4: m>0 & n>0;
    then
A5: width S1=m by Th1;
    then
A6: len (S1@)=m by A4,MATRIX_0:54;
    len S1=n by A4,Th1;
    then
A7: width (S1@)=n by A4,A5,MATRIX_0:54;
A8: width S=m by A4,Th1;
    len S=n by A4,Th1;
    then
A9: width (S@)=n by A4,A8,MATRIX_0:54;
    len (S@)=m by A4,A8,MATRIX_0:54;
    then reconsider S9=S@,S19=S1@ as Matrix of m,n,D by A4,A9,A7,A6,MATRIX_0:20
;
    set Sf=S9*f;
    now
      let i,j such that
A10:  [i,j] in Indices S19;
A11A18: Indices S=[:Seg n,Seg m:] by A13,MATRIX_0:23;
      then
:S19*i,  S1*(j) by MATRIX_0def6;
      Indices S19=[:SegA: k Seg by,17,87
      then
A13:  i in Seg m by A10,ZFMISC_1:87;
      Indices S19=Indices S9 by MATRIX_0:26;
      then consider k such that
A14:  f.i= and
A15:  [k,j]A22: l in dom mt by A9,A10,A17,A18,ZFMISC_1:87;
A16:  Sf*(i,j);
      reconsider i9=i,j9=j,k9=k as Element of NAT by ORDINAL1:def 12;
      Seg m=dom mt1 by FINSEQ_2:124;
       i9=t.f.i) by A1,A13,:12;
      then
A17:  S1*(j9,i9) = A*(nt.j9,mt.k9) by A14,A11,Def1;
A18:  [j,k] in Indices S by A15,MATRIX_0:def 6;
     S9*(,j) = S(j,) by MATRIX_0:def 6;
      hence S19*(i,j)=Sf*(i,j) by A16,A18,A12,A17,Def1;
    end;
    hence thesis by MATRIX_0:27;
;
end;

theorem Th35:
utations n st nt1 =nt2 * perm holds
  Det Segm(M,nt1,nt) = -(Det java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 10
  Segm(M,nt,nt2),perm)

 perm  ofPermutations such that
A1: nt1=nt2*perm;
  reconsider Perm=erm Permutation of  byby 16;
  Segm;
  hence Det Segm(M,nt1,nt) = -(Det Segm(M,nt2,nt)
  et (Mnt,) DetSegm,,nt1@ 43
    .= Det (Segm(M,nt,nt2)@ * Perm) by A1,Th34
    .= -(Det (Segm(M,ntjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
= -(et Segm(M,nt,nt2),erm) by MATRIXR243;
end;

proof
proof
  assume that
A1: rng nt = rng nt1 and
:nt  one-to-one;
A3: len nt1=n by CARD_1:def 7;
   =  : 7;
  hence thesis by A1,A2,A3,FINSEQ_4:61;
end;

theorem Th36:
for nt,nt1,nt19 be java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 63
rng nt9 & rng nt1 = rng nt19 holds Det Segm(M,nt,nt1) = Det Segm(M,nt9,nt19) or
  Det Segm(M,nt,nt1) = -Det Segm(M,nt9,nt19)
proof
  let nt,nt1,nt9,nt19 be Element of n-tuples_on NAT such that
A1: rng nt=rng nt9 and
A2: rng nt1=rng nt19;
  set S19=Segm(M,nt,nt19);
  set S9=Segm(M,nt9,nt19);
  set S=Segm(M,nt,nt1);
  per cases;
  suppose
A3: not nt is one-to-one or not nt1 is one-to-one;
    then
A4: Det S=0.K by Th27,Th31;
    not    len F<>width A9;
    hence thesis by A4,Th27,Th31      : ;
    end;
  suppose
A5: nt is one-to-one & nt1 is one-to-one;
thennt19  one-to-ne by A2,Lm1;
    then consider perm1 be Permutation       *(K,M)=A9*(ntK,mt A4A,;
A6: * perm1 by ,A5,Th32java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    nt9 is one-to-one by  end;
    then consider perm be Permutation of Seg n such that
A7: nt = nt9 * perm by A1,A5,Th32;
reconsider perm,perm1 as Element of Permutations n by MATRIX_1:def 16;
    per cases;
    
A8:   perm1 is even;
      Det S = -(Det S19,perm1) by A6,Th35;
      then
:DetS= S19 by,MATRIX_1
      Det S19 = -(A7   being NatstkinSeg n Pkpk FINSEQ_1sch 5A)
      hence thesis by A9,MATRIX_1:def 20;
    
    suppose
A10: perm1is odd
      Det S19 = -(Det S9,perm) by A7,Th35;
      then
A11:  Det S19=Det S9 or Det S19=-Det S9 by MATRIX_1:def 20;
DetS= -(Det S19,perm1 byA6,;
      then Det S=-Det S19 by A10,MATRIX_1:def 20;
        S- S9  Det S=0K + -Det  by A11R: 4
      then Det     then considexbe objectjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 39
      then Det S=-Det S9 or Det S +(- Det S9) =0.K byA12: x=k and
innt{} by XBOOLE_0:ef 5;
    end;
  end;
end;

theorem Th37:
for F,mtbeFinSequence ofntmt     =
  F * mt & [:rng nt,rng mt:]proof
S(9nt,t,Fmt = Segm(RLine(A9,j,F),,)
proof
  let FFmtbe FinSequence of D,nt,mt such that
A1: len     by XBOOLE_03java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
A2: Fmt = F * mt and
: [:rng ,rng mt:]=Indices;
  let i,j A16:  nt.x=y bFUNCT_1:def 3;
A4: nt"{j} = {i};
: ini  :def;
  then
 i in domnt by FUNCT_1:def 7;
nt.i in rng nt  FUNCT_1: 3;
  then rng mt={} or [:rng nt,rng mt:]<>{};
  then
7: rng mt=width A3Zjava.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 46
  nt.i in {j} by A4,A5,FUNCT_1       thesisby ,A15,A17,,FUNCT_1:def 
  then
A8: nt.i=j by TARSKI:def 1;
  set R=RLine(A9,j,F);
  set SR=Segm(R,nt,mt);
  et SSA9,nt);
A9: dom mt=Seg m by FINSEQ_2:124;
  set       x be object  that
:IndicesSR=Indices S byMATRIX_0:26;
  dom F=Seg widthp.=j by A7,A20,A21,A22,A23;
  then
A11hence thesis  A6,A20,22,A19,:def 3;
A12: width S in NAT by ORDINAL1:def 12 end;
A13: n<>0 by A6;
  then width S=m by MATRIX_0:23;
  
A14: len Fmt=width S by A11,A9   SSA,,;
: A9Indices byMATRIX_0:6;
  now
: dom nt nby FINSEQ_2:124;
    let k,l suchjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
A17: [k,A27 [,l] in  SR;
A18: Indices S=[:Seg n,Seg m:]      KkL= Element of NAT by ORDINAL1:def 12;
    then
A19: k inK,L=(t.mt.)by ,Def1
    IndicesSR=[: n width SR: by MATRIX_0:25;
A20: SR*java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A21:java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 30
A22: l in   F  D noti in Seg A9 implies
    per cases;
    suppose
A23:  k=i;
      then
A24:  RS*(k,l)= Fmt.l by A14,A10,A17,MATRIX11:def 3;
      SR*(k,l)=F.(mt.l) by A1,A8,A20,A21,A23,MATRIX11:def 3;
      hence RS*(k,l)=SR*(k,l) by A2,A22,A24,FUNCT_1:13;
    end;
    suppose
      k<>i;
      then not k in nt"{j} by A4,TARSKI:def 1;
      then not nt.k in {j} by A19,A16,FUNCT_1:def 7;
      then
A25:  nt.k<>j by TARSKI:def 1;
      then
A26:  SR*(k,l)=A9*(nt.k9,mt.l9) by A1,A20,A21,MATRIX11:def 3;
      RS*(k,l)=S*(k,l) by A8,A14,A10,A17,A25,MATRIX11:def 3;
      hence RS*(k,l)=SR*(k,l) by A10,A17,A26,Def1;
    end;
  end;
  hence thesis by MATRIX_0:27;
end;

theorem Th38:
  for F be FinSequence of D,i,nt st not i in rng nt & [:rng nt,rng
  mt:] c= Indices A9 holds Segm(A9,nt,mt) = Segm(RLine(A9,i,F),nt,mt)
proof
  let F be FinSequence of D,i
A1: not i in rng nt and
A2: [:rng nt,rng mt:] c=  set =Line(A9,i,F);
  set pcases;
  set R=RLine(A9,i,F);
  set SR=Segm(R,nt,mt);
  per cases;

    A3:now
    hence       let k suchlet  
 end;
  suppose
A3: len F=width A9;
A4:  SR = Indices S by MATRIX_0:26;
    now
A5:   dom nt=Seg n by A6:k  SeglenA9  ,A5
      let k,m such that
A6:   R.k=ine(R,kbyA6,:52
      SR=:Seg n,java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 55
      then k in Seg n by A6,ZFMISC_1:87;
      java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
A7set S=(M,nt,t;
      reconsider K=k,M=m as Element of NAT by ORDINAL1:def 12;
      [nt.K,mt.M] in Indices A9 by A2,A4,A6,Th17;
      then
A8:   A9*(nt.K,mtA2 Indices Sa=IndicesS  MATRIX_0:26;
      S*(K,M)=A9*(nt.  assume
      hence A3: [:rng nt,rng mt:] c= Indices M;
    end;
    hence 
  end;
end;

theorem Th39:
  i A5: aS(ij)=  (*j) by A2,4,MATRIX_3:def 5;
rng nt1 = rng nt\{i} \/ {j} & Segm(RLine(A9,i,Line(A9,j)),nt,mt) = Segm(A9,nt1,
  mt)
proof
  assume that
A1: i rng nt and
A2: [:rng nt,rng mt:S**(,j9j9))M*nt.i,mtj)byA2,A4,ef1;
  defpred[set] meansfor k st k=$1 holds (nt.k=i implies $2=j) & (nt.k<>
  i implies 2=nt.k);
A3: for k st k in Seg n ex x be Element of NAT st P[k,x]
  proof
    let k such that
    k in Seg n;
    per cases;
    suppose
A4:   nt.k=i;
      reconsider J=j as Element of NAT by ORDINAL1:def 12;
      take J;
      thus thesis by A4;
end;
    suppose
A5:   nt.k<>i;
reconsider ntk=nt.k as Element of NAT by ORDINAL1:def 12;
      take ntk;
      thus thesis by A5;
    end;
  end;
  consider p be FinSequence of NAT such that
A6: dom p = Seg n and
A7: for k being Nat st k in Seg n holds P[k,p.k] from FINSEQ_1:sch 5(A3);
  n in NAT by ORDINAL1:def 12;
  then len p = n by A6,FINSEQ_1:def 3;
  then reconsider p9=p as Element of n-tuples_on NAT by FINSEQ_2:92;
A8: rng p9 c= (rng nt\{i}) \/ {j}
  proof
    let y be object;
A9: dom nt=Seg n by FINSEQ_2:124;
    assume y in rng p9;
    then consider x be object such that
A10: x in dom p and
A11: p.x=y by FUNCT_1:ef 3;
    consider k be Nat such that
A12: x=k and
    1<= and
    kA7 n=0;
    p.k=j & nt.k=i or p.k=    then
UNCT_1:def 3java.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
    then p.k in {j} or p.k in rng nt & not p.k in {i} by TARSKI:def 1;
    then p.k in {j} or p.k in rng nt\{i} by XBOOLE_0:def 5;
    hence thesis by A11,A12,XBOOLE_0:def 3;
  end;
  take p9;
  (rng nt\{i}) \/ {j} c= rng p9
  proof
    let y be object such that
A13: y in (rng nt\{i}) \/ {j};
    percases  A13,XBOOLE_0:def 3;
    suppose
A14:  y in rng nt\{i};
      then consider x be object such that
A15:  x in dom nt and
A16:nt.xy by :def 3;
A17:  dom nt=Seg n java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 8
thenconsider   Nat that
: x=k and
      1<=k and
      k<=n by A15;
 y in{}byA14,: ;
      then y<>i by TARSKI:def 1;
then p.k=y by A7,A15,A16,A17,A18;
      hence thesis by A6,A15,A17,A18,FUNCT_1:def 3;
    end;
    suppose
       in j};
      then
A19:  y=j by TARSKI:def 1;
      consider x be object such that;
A20:  x in dom nt and
A21:  nt.x=i 
A22:  dom nt=Seg n by FINSEQ_2registration
      then consider k be   cluster empty without_zero Subsetof;
A23:  x=k and
      1<=k and
k= by by ;
      p.k=j by A7,A20,A21,  java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
        existence
    end;
  end;
  hence rng p9 =(rng NAT;
  set S=Segm(A9,p9,mt);
  set LA=Line(A9,j);
  set R=RLine(A9,i,LA);
  set SR=Segm(R,nt,mt);
A24: Indices A9=Indices R by MATRIX_0:26;
A25: len LA=width A9 by MATRIX_0:def 7;
A26: Indices S=Indices SR by MATRIX_0:26;
  now
    letk, such that
A27    inNAT& jin NATby;
    reconsider K=k,L=l as Element of NAT by ORDINAL1:def 12;
A28: SR*(K,L)=R*(nt.K,mt.L) by A27,Def1;
    Indices SR=[:Seg n,Seg width SR:] by MATRIX_0:25;
    then
A29: Kjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
A30: nt.K=i or nt.K<>i;
A31: [nt.K,mt.L] in Indices A9 by A2,A24,A27,Th17;
    then mt.L in Seg width A9 by ZFMISC_1:87;
    then SR*(K,L)=LA.(mt.Ljava.lang.StringIndexOutOfBoundsException: Range [67, 68) out of bounds for length 67
    nt.K,mtjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
,MATRIX_0:def 7;
    henceSR*k)=S,l) by A26,A27,Def1;
  end;
  hence thesis by MATRIX_0:27;
end;

theorem Th40:
  for F be FinSequence of D holds not i in   ({i0,j0}) = <*<* A*(i0,j0) *>*>
  RLine(A9,i,F) = A9
proof
  etF be FinSequence of D;
  assume
java.lang.StringIndexOutOfBoundsException: Range [5, 2) out of bounds for length 38
  set  assume that
  per cases;
  suppose
A2: len F=width A9;
:now
      let k such that
4:    < and
5   k = len A9;
A6:   k in Seg len A9 by A4,A5;
A7:len A9=n9 by MATRIX_0:ef 2;
      then
A8:   R.k=Line(R,k) by A6,MATRIX_0:52;
      Line,)LineA9k by A1A6,,MATRIX11:8;
      hence R.k=A9.k by A6,A7,A8,MATRIX_0:52;
    end;
    len A9=len R by A2,MATRIX11:def 3;
    hence thesis by A3;
  end;
  suppose
    len F<>width A9;
    hence thesis by MATRIX11:def 3;
  end;
end;

theorem Th41:
  [:rng nt,rng mt:] c= Indices M implies a * Segm(M,nt,mt) = Segm( a * M,nt,mt)
proof
  set Sa=Segm(a * M,nt,mt);
  set S=Segm(M,nt,mt);
  set aS=a*S;
A1: Indices (a*M)=Indices M by MATRIXR1:18;
A2: Indices Sa=Indices S by MATRIX_0:26;
  assume
A3: [:rng nt,rng mt:] c= Indices M;
  now
    let i,j such that
A4: [i,j] in Indices Sa;
A5: aS*(i,j)=a * (S*(i,j)) by A2,A4,MATRIX_3:def 5;
    reconsider i9=i,j9=j as Element of NAT by ORDINAL1:def 12;
A6: Sa*(i9,j9)=(a*M)*(nt.i,mt.j) by A4,Def1;
A7: S*(i9,j9)=M*(nt.i,mt.j) by A2,A4,Def1;
    [nt.i9,mt.j9] in Indices M by A3,A1,A4,Th17;
    hence Sa*(i,j)=aS*(i,j) by A6,A5,A7,MATRIX_3:def 5;
  end;
  hence thesis by MATRIX_0:27;
end;

theorem Th42:
  nt = idseq len A & mt = idseq width A implies Segm(A,nt,mt) = A
proof
  set S=Segm(A,nt,mt);
  assume that
A1: nt = idseq len A and
A2: mt = idseq width A;
A3: len nt=n by CARD_1:def 7;
A4: len idseq width A=width A by CARD_1:def 7;
A5: len idseq len A =len A by CARD_1:def 7;
A6: len mt=m by CARD_1:def 7;
  per cases;
  suppose
A7: n=0;
    then
A8: len S=0 by MATRIX_0:def 2;
    A={} by A1,A7;
    hence thesis by A8;
  end;
  suppose
A9: n>0;
    then
A10: width S=m by Th1;
    then
A11: Indices S=[:Seg n,Seg m:] by MATRIX_0:25;
A12: now
      let i,j such that
A13:  [i,j] in Indices S;
      reconsider i9=i,j9=j as Element of NAT by ORDINAL1:def 12;
      j in Seg m by A10,A13,ZFMISC_1:87;
      then
A14:  mt.j9=j by A2,A6,A4,FINSEQ_2:49;
      i in Seg n by A11,A13,ZFMISC_1:87;
      then nt.i9=i by A1,A3,A5,FINSEQ_2:49;
      hence S*(i,j)=A*(i,j) by A13,A14,Def1;
    end;
    len S=n by A9,Th1;
    hence thesis by A1,A2,A3,A6,A5,A4,A10,A12,MATRIX_0:21;
  end;
end;

registration
  cluster empty without_zero finite for Subset of NAT;
  existence
  proof
    {}NAT is without_zero;
    hence thesis;
  end;
  cluster non empty without_zero finite for Subset of NAT;
  existence
  proof
    {1} is Subset of NAT;
    hence thesis;
  end;
end;

registration
  let n;
  cluster Seg n -> without_zero;
  coherence
  by FINSEQ_1:1;
end;

registration
  let X be without_zero set, Y be set;
  cluster X \ Y -> without_zero;
  coherence;
end;

definition
  let i be Nat;
  redefine func {i} -> Subset of NAT;
  coherence by ORDINAL1:def 12,ZFMISC_1:31;
  let j be Nat;
  redefine func {i,j} -> Subset of NAT;
  coherence
  reserve P,P1,P2,Q,Q1,Q2 for  finite Subset ofNAT;
    i in NAT & j in NAT by ORDINAL1:def 12;
    hence thesis by ZFMISC_1:32;
  end;
end;

theorem Th43:
  for N be finite without_zero Subset of NAT holds N is included_in_Seg
proof
  let N be finite without_zero Subset of NAT;
  consider k be Nat such that
A1: for n be Nat st n in N holds n<=k by STIRL2_1:56;
  take k;
  N c= Seg k
  proof
    let x be object;
    assume
A2: x in N;
    then consider n be Element of NAT such that
A3java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
A4: n>=1java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
n<k by A1
    hence thesis by A3,A4;
  end;
  hence thesis;
end;

registration
  cluster finite without_zero -> included_in_Seg for Subset of NAT;
  coherence by Th43
end;

definition
  let N be finite without_zero Subset of NAT;
  redefine func Sgm N -> Element of (card N)-tuples_on NAT;
  coherence
  proof
    N)=card N by FINSEQ_3:39
    hence thesis    inSeg card  Q  width A implies Line(Segm(A,P,Q),i) =
  end;
end;

definition
  let D be non empty set,A be Matrix of D;
  let P,Q be without_zero finite Subset of NAT;
  func Segm(A,P,Q) ->endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
  Segm  i in Seg card P implies Line(Segm(,P,Segwidth A,i)= Line(A, P.)
  coherence;
end;

Th44:
  Segm(A,{  set =java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 20
proof
A1:card j}1by :;
A2: Sgm {i0}=<then
A3: <*j0*>.1=j0;
A4: <*i0*>.1=i0;
 {j0}=<*j0*>by :44;
  card {i0}= 1 by CARD_1:30;
  hencethesis by A1,A2,A5,A4,A3,Th21;
end;

theorem Th45:
  i0 < j0 & n0 < m0 implies Segm(A,{i0,j0},{n0,m0}) = ( A*(i0,n0),
  A*(i0,m0) )][( A*(j0,n0),A*(j0,m0) )
proof
  assume that
A1: i0 < j0 and
A2: n0 < m0;
A3: card {n0,m0}=2 by A2,CARD_2:57;
A4: Sgm {n0,m0}=<*n0,m0*> by A2,FINSEQ_3:45;
  then
A5: Sgm {n0,m0}.1=n0;
A6: Sgm {i0,j0}=<*i0,j0*> by A1,FINSEQ_3:45;
  then
A7: Sgm {i0,j0}.1=i0;
A8: Sgm {i0,j0}.2=j0 by A6;
A9: Sgm {n0,m0}.2=m0 by A4;
  card {i0,j0}= 2 by A1,CARD_2:57;
  hence thesis by A3,A5,A9,A7,A8,Th23;
end;

reserve P,P1,P2,Q,Q1,Q2 for without_zero finite Subset of NAT;

theorem Th46:
  Segm(A,Seg len A,Seg width A) = A
proof
A1: Sgm Seg width A=idseq width A by FINSEQ_3:48;
  Sgm Seg len A=idseq len A by FINSEQ_3:48;
  hence thesis by A1,Th42;
end;

theorem Th47:
  i in Seg card P & Q c= Seg width A implies Line(Segm(A,P,Q),i) =
  Line(A,Sgm P.i) * Sgm Q
proof
  rng (Sgm Q)=Q by FINSEQ_1:def 14;
  hence thesis by Th24;
end;

theorem Th48:
  i in Seg card P implies Line(Segm(A,P,Seg width A),i) = Line(A, Sgm P.i)
proof
  assume
A1: i in Seg card P;
  set S=Seg width A;
  set sP=Sgm P;
  len Line(A,sP.i)=width A by MATRIX_0:def 7;
  then
A2: dom Line(A,sP.i)=S by FINSEQ_1:def 3;
  Sgm S = idseq width A by FINSEQ_3:48;
  then Line(A,sP.i) * Sgm S = Line(A,sP.i) by A2,RELAT_1:52;
  hence thesis by A1,Th47;
end;

theorem Th49:
  j in Seg card Q & P c= Seg len A implies Col(Segm(A,P,Q),j) =
  Col(A,Sgm Q.j) * Sgm P
proof
  rng (Sgm P)=P by FINSEQ_1:def 14;
  hence thesis by Th28;
end;

theorem Th50:
  j in Seg card Q implies Col(Segm(A,Seg len A,Q),j) = Col(A,Sgm Q .j)
proof
  assume
A1: j in Seg card Q;
  set S=Seg len A;
  set sQ=Sgm Q;
  len Col(A,sQ.j)=len A by MATRIX_0:def 8;
  then
A2: dom Col(A,sQ.j)=S by FINSEQ_1:def 3;
  Sgm S = idseq len A by FINSEQ_3:48;
  then Col(A,sQ.j) * Sgm S = Col(A,sQ.j) by A2,RELAT_1:52;
  hence thesis by A1,Th49;
end;

theorem Th51:
  Segm(A,Seg len A \ {i},Seg width A) = Del(A,i)
proof
  set SLA=Seg len A;
  set Si=SLA\{i};
  set S= Segm(A,Si,Seg width A);
A1: dom A=SLA by FINSEQ_1:def 3;
  per cases;
  suppose
A2: not i in dom A;
    then
A3: Del(A,i)=A by FINSEQ_3:104;
    Si=SLA by A1,A2,ZFMISC_1:57;
    hence thesis by A3,Th46;
  end;
  suppose
A4: i in dom A;
    then consider m such that
A5: len A = m + 1   hence thesis by A1,Th47;
A6: len Del(,i = mby FINSEQ_3:104;
    reconsider m as Element of NAT by ORDINAL1:def 12;
    card SLA = m+1 by A5,FINSEQ_1:57;
    then
A7:  Col(A .)*SgmP
A8: now
      reconsider A9=A as Matrix of m+rng Sgm P)=P by FINSEQ_1:def 14;
      let j such that
end;
A10:  j<=m;
A11:  j in Seg m by A9,A10;
A12:domA= len A byFINSEQ_1:def 3;
A13: Seg cardQimplies Col(SegmA,Seg len AQ,)=Col(A,gm Q .j)
A14:  dom Del(A,i)=Seg m 
      
A15:  Sgm  setS= len A;
      Del(A,i).j=A9.(Sgm Si.j) by A14ef 8;
      hence Del(A,i).j = Line(A9,Sgm Si.j) by A5,A15,A12,MATRIX_0:52
        .= Line(S,j) by A7,A11,Th48
        .= S.j by A7,A11,MATRIX_0:52;
    end;
    len S=m by A7,MATRIX_0:def 2;
    hence thesis by A6,A8;
  end;
end;

theorem Th52:
  Segm(M,SeglenM,Seg width \{i) = DelCol(M,)
proof
  set SW=Seg width M;
  set Si=SW\{i};
  set SL=Seg len M;
  set SEGM=Segm(M,SL,Si);
  set D=DelCol(M,i);
  card SL=len M by FINSEQ_1:57;
  then
A1: len SEGM=len M by MATRIX_0:def 2;
A2: now
    let j such that
A3: 1<=j and
A4:j<=len M;
A5: j in Seg len M by A3,A4;
    then
SEQ_1:def 3;
    Sgm SL=idseq len M by FINSEQ_3:48;
    then
A7: Sgm SL.j=j by A5,FINSEQ_2:49;
    len Line(M,j)=width
en
A8: dom Line(M,j)=SW by FINSEQ_1proof
A9: cardset =Seg len Ajava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    then
A10: Line(SEGM,j)=SEGM.j by A5,MATRIX_0:52;
    Line(SEGM,j) = Line(M,Sgm SL.j) * Sgm Si java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 12
    then SEGM.j = Del(Line(M,j),i) by A7,A10,A8,FINSEQ_3:def 2;
    hence SEGM.j=D.j by A6,MATRIX_0:def 13;
  end;
  len     =SLAby A1,A2ZFMISC_157;
  hence thesis by A1,A2;
end;

theorem Th53:
  Sgm P
oof
A1: Sgm P " X c= dom    hen consider m such that
  dom (Sgm P) = SegA5: len  = m +1 and
  hennot   Sgm P P"X by A1;
  hence     reconsiderjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 54
end;

theorem Th54:
  X c= P implies Sgm X = Sgm P * Sgm (Sgm P " X)
proof
  assume
A1: X c= P;
A12:    dom A=Seg lenA : 3
:  included_in_Seg;
A4: rng Sgm P= byFINSEQ_1def14;
  rng ((Sgm P) | (Sgm P " X)) then
.  A1FUNCT_1:;
  hence thesis by A3,A2,FINSEQ_6:129;
end;

Lm2: X c= P implies card X = card (Sgm P " X)

  assume
A1: X c= P;
 rng SgmPPFINSEQ_1:def 14
  then
A3: Sgm P.:(Sgm P " X) = X by A1,FUNCT_1len S= byA7,,MATRIX_0java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 33
A4: Sgm P " X c= dom Sgm P byendjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
  Sgm  is one-to-oneby :92
then ,P   C3;
  hence thesis by


theorem Th55:
  [:Sgm P " X,Sgm Q " Y:] c= Indices Segm(A,P,Q)
proof
  set SP=Sgm P;
  set SQ=Sgm Q;
  set I=Indices Segm(A,P,Q);
A1: now
    per cases;
    suppose
A2:   card P=0;
      then Seg card P = {};
      then [:Seg card P,Seg card Q:]={} by ZFMISC_1:90;
      hence [:Seg card P,Seg card Q:]=I by A2,MATRIX_0:22;
    end;
    suppose
      card P>0;
ard P,Seg card Q:]=I by23;
    end;
  end;
  dom SQ=Seg card Q by FINSEQ_3:40;
  then
A3: SQ " Y c= Seg card Q by RELAT_1:132;A6  inin dom byjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 33
byFINSEQ_340;
  then SP " Xlen Mj=Mby: ;
  hence thesis by A3,A1,ZFMISC_1:96;
end;

theorem Th56:
  P c= P1 & Q c= Q1 & P2 = Sgm P1 " P & Q2 = Sgm Q1 " Q implies [:
rng Sgm P2,rng Sgm Q2:] c= Indices Segm(A,P1,Q1) & Segm(Segm(A,P1,Q1),P2,Q2) =
  Segm(,,Q)
proof
  ssumethat
A1: P c= 
A2: Q c= Q1 and
A3: P2 = Sgm P1 " P and
A4: Q2 = Sgm Q1 " Q;
  set SA=Segm(A,P1,Q1);
A5: card Q=card Q2 by A2,A4,Lm2;
  card P=card P2 by A1,A3,Lm2;
  then reconsider SAA=Segm(SA,P2,Q2) as Matrix of card P,card Q,D by A5;
  set Sq2=Sgm Q2;
  set Sp2=Sgm P2;
  set Sq1=Sgm Q1;
  set Sp1=Sgm P1;
  set S=Segm(A,P,Q);
A7: rng Sq2=Q2 by FINSEQ_1:def 14;
  rng Sp2=P2 by FINSEQ_1:def 14;
  hence
A9: [:rng Sp2,rng Sq2:] c= Indices SA by A3,A4,A7,Th55;
  now
A10: Sq1*Sq2=Sgm Q   len D=len M by MATR 13;
    let i,j such   hence thesis by A1java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
A11:theorem Th53:
A12: [i,j] in Indices SAA by A11,MATRIX_0:26;
    then
A13:87;
    reconsider Sp2i=Sp2.i,Sq2j=Sq2.java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A14: Sp1*Sp2=Sgm P by A1,A3,Th54;
    Indices SAA=[:Seg card P2,Seg width SAA:] by MATRIX_0:25;
    then
A15: i in Seg card P2 by A12,ZFMISC_1:87;
    then card P2 <> 0;
    then width SAA = card Q2 by Th1;
    then j in dom Sq2 by A13,FINSEQ_3:40;
    then
A16: Sq1.Sq2j=Sgm Q.j by A10,FUNCT_1:13;
    reconsider i9=ij9= as    ORDINAL1: ;
A17: [i9,j9] in Indices SAA by A11,MATRIX_0:26;
    then
A18  assume
    i in A1: X c X c= P;
    then
A19: Sp1.Sp2i=Sgm P.i by A14,FUNCT_1:13;
   Sp2i,Sq2j] in  SA by A9,A17,Th17;
    then SAA*ij=*Sp2i.)by 18Def1
    hence    =Xby A1:77;
  end;  thesis by A3,A2,FINSEQ_6:129;
  hence thesis by MATRIX_0:27;
end;

theorem Th57:
  (P = {} iff Q={}) & [:P,Q:] A1  c=P
P2,Q2 st P2 c= P1 & Q2 c= Q1 & P2 = Sgm P1.:P & Q2=Sgm Q1.:Q & card P2=card P &
  card Q2=card Q & Segm(Segm(A,P1,Q1),P,Q) = Segm(A,P2,Q2)
proof
  assume that
A1: P = {} iff Q={} and
A2: [:P,Q:] c= Indices Segm(A,P1,Q1);
  set S=Segm(A,P1,Q1);
A3: now
    per cases;
    suppose
      P={};
      hence P c= Seg card P1 & Q c= Seg card Q1 by A1;
    end;
    suppose
A4:   P<>{};
      then
A5:   Q c= Seg width S by A2,ZFMISC_1:114;
A6:   len S=card P1 by MATRIX_0:def 2;
A7:   Indices S=[:Seg len S,Seg width S:] by FINSEQ_1:def 3;
      then len S<>0 by A1,A2,A4;
      hence P c= Seg card P1 & Q c= Seg card Q1 by A1,A2,A7,A5,A6,Th1,
ZFMISC_1:114;
    end;
  end;
  set SQ=Sgm Q1;
  set SP=Sgm P1;
A9: SP is one-to-one by , card Q:Iby,ATRIX_0:22;
A11: SQ is    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  end;
  then
A13: SQ.:Q c= Q1 by RELAT_1;
  then
A14: not 0 in SQ.:Q;
SP=P1 by FINSEQ_1:def 14;
  then
5 SP.:P c= P1  :111;
  then not 0 in SP  then SP " X c= Seg card P by RELAT_1:132;
  then reconsider
  P2=SP.:P,Q2=SQ.:Q as without_zero finite Subset of NAT by A15,A13,A14,
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
A16: dom SQ=Seg card Q1 by FINSEQ_3:40;
  then
A17: SQ " Q2 = Q by A3,A11,FUNCT_1:94;
A18: dom SP=Seg card P1 by FINSEQ_3:40;
  then P,P2 are_equipotent by A3,A9,CARD_1:33;
  then
A19: card P=card P2 by CARD_1:5;
  Q,  P c=P1 & Q =Q1P2 = Sgm P1 " P  Q2=Sgm Q1 "Q implies [
  then
A20: card Q=card Q2 by CARD_1:5;
  SP " P2 = 
  then (Segm(A,)PQ)SegmAP2,2 A15,A17Th56;
  hence thesis by A12,A15,A19,A20,A1 Pc  and


theorem Th58:
  forA4 Q2   Q1"Qjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
proof
  let M be Matrix of n,K;
A1: width M=n by MATRIX_0:24;
2 len M = n by MATRIX_0:24;
  then
A3:dom MSeg n by FINSEQ_1:def 3;;
  per cases;
  suppose
A4: not i in Seg n;
    then
\i by ZFMISC_1:57;
    Del(M,i)=M by A3,A4,FINSEQ_3:104;
    hence  ng Sp2=P2by FINSEQ_1 14;
  end;
A9:[:rng Sp2,rng : c Indices SAby A3,A4,java.lang.StringIndexOutOfBoundsException: Range [50, 49) out of bounds for length 55
A6: i in Seg n;
    set Q1=Seg n;
    set Q=Seg n\{j};
    set P=Seg n\{i};
   set SS(,PQ1);
    consider m such that
: len M = m + 1 and
A8: len Del(M,i) = m by A3,A6,FINSEQ_3:104;
    per cases;
    suppose
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 10
      then len Deleting(M,i,j) = 0java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
      then
A10:  Deleting(M,i,j) = {};
A11:  Q1\{1} = {} by A2,A7,A9,FINSEQ_1:    then j in domSq2 by A13,FINSEQ_3:40
      i = 1 by A2,A6,A7,A16 .Sq2jSgm by 1;
       A11,:ef2;
      hence thesis by A10;
    end;
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
      m>0;
      then n > 1+0 by A2,A7,XREAL_1:8;
      then
A12:  n  Mi) by A2,A1,LAPLACE:4;
A13:  Q  AAi)A(.Sq1Sq2j java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 53
A14:  rng Sgmendjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
      
      then
A15:  Sgm P"P = Seg card P  P={ iff{)[:,] java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 65
        .= Seg len SS by MATRIX_0:def 2;
A16:  SS = Del(M,i) by A2,A1,Th51;
      then
A17:  Deleting(M,i,j)=Segm(SS,Seg len SS,Seg width SS\{j}) by Th52;
      Sgm Q1 =idseq n by FINSEQ_3:48;
thenSgmQ1" SegSS{}A13A,:;
      hence thesis A2 :,Q]c=Indices(,,)
    end;
  end;
end;

theorem Th59:
for ,FQbeFinSequence ofD  F   A9&
  FQ = F * Sgm Q & [:P,Q:] c= Indices A9 holds
  RLineA4:P<{}java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
proof
letF, FinSequenceD 
A1: len F = width A9 and
A2: FQ = F * Sgm Q        java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 32
= Indices A9java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
  set SQ=Sgm Q;
  set SP=Sgm P;
A4: card P=len Segm(A9,P,Q) by java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 16
A5: rng SQ=Q by FINSEQ_1:def 14;
A7: rng SP=P by FINSEQ_1:def 14;
A8: SP is one-to-one by FINSEQ_3:92;
A9: dom SP=SegA13: SQ.: c byRELAT_1111;
  per cases;
  suppose
    i    SPbyFINSEQ_1:ef 
    then SP"{SP.i} = {i} by A8,A15 SPPc P1 by RELAT_1:11java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    hence thesis by A1,A2,A3,A7,A5 thenreconsider
  end;
  suppose
A10: not i in dom SP;
A11: not 0 in Seg len A9;
    SP.i=0 by A10,A17:by,FUNCT_1
    hence Segm P, java.lang.StringIndexOutOfBoundsException: Range [29, 26) out of bounds for length 46
      .  Pcard :java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  end;
end;

theorem Th60:
  for F be FinSequence of D,i,P st not i in P & [:P   Segm(Segm(A,P1Q1),P,Q)=Segm(A,P2,Q2) by A15,A13,A17,Th56;
  holds Segm(A9,P,Q) = Segm(RLine(A9,i,F),P,Q)
proof
  let F be FinSequence of D,i,P such that
A1: not i in P and
A2: [:P,Q:] c= Indices A9;
  rng Sgm Q=Q & rng Sgm P=P by FINSEQ_1:def 14;
  hence thesis by A1,A2,Th38;
end;

theorem
  [:P,Q:] c= Indices A & (card P=0 iff card Q=0) implies
  Segm(A,P,Q)@ = Segm(A@,Q,P)
proof
  rng Sgm Q=Q & rng Sgm P=P by FINSEQ_1:def 14;
  hence thesis by Th18;
end;

theorem Th62:
  [:P,Q:] c= Indices A & (card Q=0 implies card P = 0) implies
  Segm(A,P,Q) = Segm(A@,Q,P)@
proof
  rng Sgm Q=Q & rng Sgm P=P by FINSEQ_1:def 14;
  hence thesis by Th19;
end;

theorem Th63:
 c=Indices M  a *Segm(M,P,Q) = Segm(a * M,P,Q)
proof
  rng Sgm P=P & rng Sgm Q=Q by FINSEQ_1:def 14;
  hence thesis by Th41;
end;

definition
  let D be non empty set,A be Matrix of D;
  let P,Q be without_zero finite Subset of NAT hence thesisby,,A5,h52;
  assume
A1: card P = card Q;
  func EqSegm(A,P,Q) -> Matrix of A6 Seg;
  :Def3:
  Segm(A,P,Q);
  coherence by A1;
end;

theorem Th64:
  for P,Q,i,j st i in Seg: len Del(M,i =  by A3,A6,FINSEQ_3:;
Q holds Delete(EqSegm(M,P,Q),i,j) = EqSegm(M,P\suppose
  \{Sgm P.i}) = card (Q\{Sgm Q.j})
proof
  let P1,Q1, then
A1: i in Seg card P1 and
A2: j in Seg card P1 and
A3:      i =   ,,,9,:,: 1;
   then Segm(M,,) =0by,java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 53
A5: dom SQ1=Seg card Q1 by FINSEQ_3:40;
A6: rng SQ1=Q1 by FINSEQ_1:def 14;
  then
A7: SQ1"Q1 = Seg card P1 by A3,A5,RELAT_1:134;
  set Q=Q1\{SQ1.j};
  set Q2=Seg card Q1\{j};
A8: Q c= Q1 by XBOOLE_1:36;
  set SP1= end;
A10: dom SP1=Seg card P1 by FINSEQ_3:40;
A11: rng+ byA2,A7XREAL_1:8;
  then
;
  SQ1 is one-to-one by FINSEQ_3  c   by XBOOLE_1:36java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  then SQ1"{SQ1.j}={j} by A2,A3,A5,FINSEQ_5:4;
  then
A13: Q2 = SQ1 " Q by A3,A7,FUNCT_1:69;
A14: SP1.i in P1 by A1,A10,A11,FUNCT_1:def 3;
  set P2=Seg card P1\{i};
  set P=P1\{SP1.i};
  SP1 is one-to-one by FINSEQ_3:92;
  then SP1"{SP1.i}={i} by A1,A10,FINSEQ_5:4;
  then
A15: P2 = SP1 " P by A12,FUNCT_1:69;
  set E=EqSegm(M,P1,Q1);
A16: P c= P1 by XBOOLE_1:36;
  card P1<>0 by A1;
  then reconsider      dom Sgm P = Seg  P  40;
A17: card P1=C+1;
  SQ1.j in Q1 by A2,A3,A5,A6,FUNCT_1:def 3;
  then
A18: card Q = C by A3,A17,STIRL2_1:55;
Delete(Ei,j=(E,i,j) by ,2LAPLACE:def 1
    .=Segm(E,P2,Q2) by A3,Th58
    .(egmM,P1,,P2,Q2)byA3,Def3
    .=Segm(M,P,Q) by A16,A8,A15,A13,Th56
    .=EqSegm(M,P,Q) by A14,A17,A18,Def3,STIRL2_1:55;
  hence thesis by A14end;
end;

Lm3: for M,P,Q,java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
) <0.java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
proof
  let M,  (Segm,,),,Q)=SegmA9, i,F,P,Q)
A1: i in Seg card P and
A2: Det EqSegm(M,P,Q) <> 0.K;
ard P;
  set E=EqSegm(M,P,Q);
  set LL=LaplaceExpL(E,i);
  set CC=C |-> 0.K;
  Sum CC=0.K by java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 15
  then
A3: LL<>CC by A1,A2,LAPLACE:25;
  APLACE:7java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  then
:dom LL=C byFINSEQ_1;
  consider j such that
A5: j in dom LL and
A6: LL.j  suppose
 LL.=E*(,j*Cofactor(E,i,j) by A5,LAPLACE:def 7;
  CC.j=0.K by A4,A5,FINSEQ_2:57;
  then Cofactor(E,i,j)<>0.K by A6,A7;
  then Minor(E,i,j)<>0.K;
  hence thesis by A4,A5;
end;

theorem Th65:
  for M,P,P1,Q1 st card P1 = card Q1 & P c= P1 & Det EqSegm(M,P1,
  Q1) <> 0.K ex Q st Q c= Q1 & card P = card Q & Det EqSegm(M,P,Q) <> 0.K
proof
  let M,P,P1,Q1 such that
A1: card P1 = card Q1 and
A2: P c= P1 and
A3: Det EqSegm(M,P1,Q1) <> 0.K;
  defpred Q[Nat] means for P st P c= P1 & card P=$1 ex Q st Q c= Q1 & card P=
  card Q & Det EqSegm(M,P,Q) <> 0.K;
A4: for k be Element of NAT st k < card P1 & Q[k+1] holds Q[k]
  proof
    let k be Element of NAT such that
A5: k < card P1 nd
A6:[k+];
    let P such java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 6
A7: P c= P1 and
A8: card P=k;
   P  P1 by A5,A7A8d8java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
OOLE_1:105;
    then consider x  . S(A9,)iFQ) by,10T;
A9: x in P1\P by XBOOLE_0:def 1;
    reconsider x as non zero Element of NAT
    reconsider Px=P\/{x} as without_zero finite Subset of NAT;
  xxinPbyA9,:def ;
    then
 Pxk+  ,ARD_2;
    x in P1java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    then {x} c= P1 by ZFMISC_1:31;
    then Px c= P1 by A7,XBOOLE_1:8;
    then consider Q2   rng Sgm Q=Q & rng Sgm P:def14
A12 c java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 17
A13: card Px=card Q2 and
A14: Det EqSegm(M,Px,Q2theorem
    set E=EqSegm(M,Px,Q2);
A15: Px\{x}=P by A10,ZFMISC_1:117;
    x in {x} by TARSKI:def 1;
    then
  inPx  :def 3;
A18: dom Sgm Px =   Segm(APQ) 
    rng Sgm Px = Px by FINSEQ_1:def 14;
    consider object java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
java.lang.StringIndexOutOfBoundsException: Range [9, 3) out of bounds for length 25
A20: Sgm Px.i=x by A18,A16,FUNCT_1:def 3;java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A21: k+1-'1=k+1-1 by XREAL_0:def 2[P:]c Indices A &(card Q= java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 62
    reconsider ias Element of NAT byA19;
    consider j such that
A22:jin Seg card Px and
A23: Det Delete(E,i,j) <> 0.K by A14  hence thesis by Th19 Th19;
    take Q=Q2\{Sgm Q2.j};
    Q c= Q2 by XBOOLE_1:36;
    hence thesis by A8,A11,A12,A13,A19,A20,A22,A23,A15,A21,Th64;
  end;
A24: Q[card P1]
  proof
    let P;
assume that
A25: P c= P1 and
A26: card P=card P1;
    P=P1 by A25,A26,CARD_2:102;
    hence thesis by A1,A3;
  end;
NAT st k< cardP1 holds Qk]
   from PRE_POLY:sch 1(A24,A4);
end;
end;

Lm4: for M,P,Q,i st j in Seg card P & Det EqSegm(M,P  let D be non empty set,A be Matrix of D;
card P & Det Delete   P be of NATjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
proof
  let M,P,Q,i such that
A1: j in Seg card P and
A2  SegmA,P,Q;
  set C=card P;
  set E=EqSegm(M,P,Q);
  set LC=LaplaceExpC(E,j);
  set CC=C |-> 0.K;
  Sum CC=0.K by MATRIX_3forPQ,, i card P&j inSegP& P =card
  Q holdsDelete((M,,)ij  M,\Sgmi,Q{Q.j} &card (P
A3: LC<>CC by A1,A2,LAPLACE:27;
  len LC=C by LAPLACE:def 8;
  then
A4: dom LC=Seg C by FINSEQ_1:def 3;
  consider i such that
A5: i in dom LC and
A6: LC.i <> CC.i by A3,A4;
A7: LC.i=E*(i,j)*Cofactor(E,i,j) by A5,LAPLACE:def 8;
  CC.i=0.K by A4,A5,FINSEQ_2:57;
  then Cofactor(E,i,j)<>0.K by A6,A7;
  then Minor(,,)0.java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  hence A7: SQ1"Q1 = S card P1 by A3,A5,RELAT_1:134;
end;

theorem
  for M,P1,Q,Q1 st card P1 = card Q1 & Q c= Q1 & Det EqSegm(M,P1,Q1) <>
  0.K ex P st P c= P1 & card P = card Q & Det EqSegm(M,P,Q) <> 0.K
proof
  let M,P1,Q,Q1 such that
A1: card P1 = card Q1 and
A2: Q c= Q1 and
A3: Det EqSegm then
  defpred R[Nat] means for Q st Q c= Q1 & card Q=$1 ex P st P c= P1 & card P=
  card Q & Det EqSegm(M,P,Q) <> 0.K;
A4: for k be Element of NAT st k < card Q1 & R[k+1] holds R[k]
  proof
    let k be Element of NAT such that
A5: k < card Q1 and
A6: R[k+1];
    let Q such that
A7: Q c= Q1 and
A8: card Q=k;
    Q c< Q1 by A5,A7,A8,XBOOLE_0:def 8;
    then Q1\Q<>{} by XBOOLE_1:105;
    then consider x being object such that
A9: x in Q1\Q by XBOOLE_0:def 1;
    reconsider x as non zero Element of NAT by A9;
    reconsider Qx=Q\/{x} as without_zero finite Subset of NAT;
A10: not x in Q by A9,XBOOLE_0:def 5;
    then
A11: card Qx=k+1 by A8,CARD_2:41;
    x in Q1 by A9,XBOOLE_0:def 5;
    then {x} c= Q1 by ZFMISC_1:31;
thenQxc=Q1by A7,BOOLE_18java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    then consider P2 such that
A12: P2 c= P1 and
A13: card Qx=card P2 and
A14: Det EqSegm(M,P2,Qx) <> 0.K by A6,A8,A10,CARD_2:41;
A15: k+1-'1=k+1-1 by XREAL_0:def 2;
    x in {x} by TARSKI:def 1;
    then
A16: x in Qx by XBOOLE_0:def 3A15: P2 =SP1" Pby A12,FUNCT_1:9java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
A18:dom  Qx=SegcardQx by :40
    rng   P1>  A1;
    then consider j be  reconsiderc P1    20
A19: j in Seg card Qx and
A20: Sgm Qx.j=x by A18,A16,FUNCT_1:def 3;
    set E=EqSegm(M,P2,Qx);
    A18 card Q= C by A3,A17,
    consider i such that
A21: i in Seg card Qx and
A22: Det Delete(E,i,j) <> 0.K     .=Segm(Segm(M,P1,Q1),P2,Q2) by,
    take PP2{Sgm .;
A23: P c= P2 by XBOOLE_1:36;
A24: Qx\{x}=Q by A10,ZFMISC_1:117;
    then card P=card Q by A13,A19,A20,A21,Th64;
    java.lang.StringIndexOutOfBoundsException: Range [16, 9) out of bounds for length 68
    henc thesisA17,,TIRL2_1java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
A25: R[card Q1]
  proof
et ;
    assume that
A26: Q c= Q1 and
A27: java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    Q=Q1 byA26,A27C:;
    hence thesis by A1,A3;
  end;
 for  be Element of NAT st k < card Q1 holds R[k]
   from PRE_POLY:sch 1(A25   = P
  hence thesis by A2,NAT_1:43;
end;

theorem Th67:
  card P  Sum CC=0.K by :11java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
  Q c Seg width A)
proof
A1: Indices A=[:Seg  len LL=C by LAPLACE:def 7;
  assume
A2: card P = card Q;
  thus [:P,Q:] c= Indices A implies P c= Seg len A & Q c= Seg width A
  proof
    assume
A3: [:P,Q:] c= Indices A;
    per cases;
    suppose
      [:P,Q:]<>{};
      hence thesis by A1,A3,ZFMISC_1:114;
    end;
    suppose
A4:   [:P,Q:]={};
      then
A5:   Q={} by A2,CARD_1:27,ZFMISC_1:90;
      P={} by A2,A4,CARD_1:27,ZFMISC_1:90;
      hence thesis by A5;
    end;
  end;
  thus thesis by A1,ZFMISC_1:96;
end;

theorem Th68:
  for P,Q,i,j0 st j0 in Seg n9 & i in P & not j0 in P & card P =
card Q & [:P,Q:] c= Indices M9 holds card P = card (P\{i}\/{j0}) & [:P\{i}\/{j0
},Q:] c= Indices M9 & (Det EqSegm(RLine(M9,i,Line(M9,j0)),P,Q) = Det EqSegm(M9,
P\{i}\/{j0},Q) or Det EqSegm(RLine(M9,i,Line(M9,j0)),P,Q) = -Det EqSegm(M9,P\{i
  }\/{j0},Q))
proof
  let P,Q,i,j0 such that
A1: j0 in Seg n9 and
A2: i in P and
A3: not j0 in P and
A4: card P = card Q and
A5: [:P,Q:] c= Indices M9;
  set Pi=P\{i};
A6: Pi c= P by XBOOLE_1:36;
  set SQ=Sgm Q;
  set Pij=Pi\/{j0};
  set SPij=Sgm Pij;
A7: rng SPij=Pij by FINSEQ_1:def 14;
  card P>0 by A2;
  then reconsider C=card P - 1 as Element of NAT by NAT_1:20;
  card P=C+1;
  then
A8: card Pi=C A6: LL.j <> CC.j A3,A4;
  not j0 in Pi by A3,XBOOLE_0:def 5;
  hence
=C1byA8,CARD_2:41
    .=   CC.j=0.K byA4,A5,FINSEQ_2:57
  then reconsiderSPijSQ9SQElement of (card P)- NATby A4;
A10: Segm(M9,SPij,SQ9) = Segm(M9,Pij,Q) by A4,  then MinorEij<>0.java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
    .= EqSegm(M9,Pij,Q) by A4,A9,Def3;
  P c= Seg Th65:
  then
A11:Pi= Seglen M9  A6;
  n9=len M9 by MATRIX_0:def 2;
then {0c=Seg len M9by A1,:31;
  then
:Pij=SeglenM9 by ,BOOLE_1java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  set SP=SgmA2:Pc P1
A13: rng SQ=Q by FINSEQ_1:def 14;
  rng SP=P by FINSEQ_1:def 14;
  then consider PT be Element of (card P)-tuples_on NAT such that
A14: rng PT=Pij and
A15: Segm(RLine(M9,i,Line(M9,j0)),SP,SQ) = Segm(M9,PT,SQ) by A2,A5,A13,Th39;
  Q c= Seg width M9 by A4,A5,Th67;
  hence [:Pij,Q:] c= Indices M9 by A4,A9,A12,Th67;
  EqSegm(RLine(M9,i,Line(M9,j0)),P,Q) = Segm(RLine(M9,i,Line(M9,j0)),P,Q)
  by A4,Def3
    .= Segm(M9,PT,SQ9) by A4,A15;
  hence thesis by A9,A7,A13,A14,A10,Th36;
end;

theorem Th69:
  card P = card Q implies ([:P,Q:] c= Indices A iff [:Q,P: c= Indices A@)
proof
  assume
:card = card Q;
  per cases;
suppose
A2: Q={};
    then
A3: [:Q,P:] = {} by ZFMISC_1:90;
    [:P,Q:] = {} by A2,ZFMISC_1:90;
    hence thesis by A3;
  end;
  suppose
A4: Q<>{};
    thus [:P,Q:] c= Indices A implies [:Q,P:] c= Indices A@
    proof
      assume
A5:   [:P,Q:] c= Indices A;
      then
A6:   P c= Seg len A by A1,Th67;
A7:   Q c= Seg width A by A1,A5,Th67;
      then
A8:   width A<>0 by A4;
           then
A9:    P such that
      len A=width (java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 15
1,A7A9A6,;
    end;
    thus [:Q,P:] c= Indices A@ implies [:\P>}by XBOOLE_1:105;
    proof
      assume
A10:  [:Q,P:] c= Indices A@;
      then
A11:  Q c= Seg len (A@      as   ElementNAT by;
<>0 by A4;
thenwidth A>0  MATRIX_0:def6;
      then
 =width(@ :4java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
13:len(wby:;
      P c= Seg width (A@) by A1,A10,Th67;
      hence thesis by A1,A11,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 30
    end;
  end;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem Th70:
  [:P,Q:A15:Pxx=  ZFMISC_1java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
  = Det EqSegm(M@,Q,P)
proof
  assume 
1 :,: = M
A2: card P = card Q     Px=by: ;
  EqSegm(M,P,Q)= Segm(M,P,Q) by A2,Def3
    .=Segm(M@,Q,P)@ by A1,A2,Th62
    .=EqSegmM@QP)@ by A2,Def3;
hence ,java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 33
end;

theorem Th71:
  for     
proof
  let M be Matrix of n,K;
defpred [ for  stk$  k =  aMMatrix ,  Det aM
= power(K).(a,k) * Det     ake Q=Q2\{SgmQ2.}java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  * Line(M,i)) & (i > k implies Line(aM,i)=Line(M,i));
A1: for m st P[m] holds P[m+1]
  proof
    let m such that
A2: P[m];
    let k such that
A3: k=m+1 and
A4: k <=n;
    m<=n by A3,A4,NAT_1D_2:102;
    thenconsider aM be MatrixofnK 
A5:end;
A6:   k be Elementof   =cardholds [kjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
    (i>m impliesthesis  A2,NAT_1:43;
    take R=RLine(aM,k,a*Line(aM,k));
    0+1<=k by A3,XREAL_1:7;
    then k in Seg n by A4;
    hence Det R= a *(power()(,m *DetM by A5Mjava.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 64
      .= power(K).(a,m) *a * Det M by GROUP_1:def 3
      .= power(K).(a,k) *Det M by A3,GROUP_1:def 7;
    let i such that
A7: i in Seg n;
      by XXREAL_01;
    java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 5
i<k  i>k;
      then
&k or im&ik  A3,;
      Line(R,i)=Line(aM,iA2 EqSegm(,PQ)< 0.;
     hence thesis by A6,A7,A9;
    ;
    suppose
A10:  i=k;
      len  set C|->0.;
        .    .=  aM :def
      then
A11A3 LC<>CCbyA12;
      i >  en LC= byLAPLACE ;
      hence thesis by A6,A7,A10,A11;
    end;
  end;
A12: P[0]
  proof
    A5: i in dom 
A13 LC. <>CC.i by A3,A4;
    k <=n;
take Mjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
    power(K).(a,0)=1_K by GROUP_1:def 7;
    hence Det aM = power(K).(a,k) * Det M by A13;
    let i;
    assume i in Seg n;
    hence thesis by A13;
  end;
  for m holds P[m] from NAT_1:sch 2(A12,A1);
  then consider aM be Matrix of n,K such that
A14: Det aM = power(K).(a,n) * Det M and
A15: for i st i in Seg n holdsproof
  n implies Line(  let M,P1,Q,Q1 such
  set AM=a*M;
A16: len AM = n by MATRIX_0:def 2;
A17: len M=n by MATRIX_0:defA3 Det (,, >0.K;
  defpred R[Nat] means for Q st Q c= Q1 & card Q=$1 ex P st P c= P1 & card P=
    let i such that
A19: 1<=i and
A20: i<=n;
A21: i in Seg n by A19,A20;
    hence aM.i = Line(aM,i) by MATRIX_0:52
      .= a*Line(M,i) by A15,A20,A21
      .= Line(AM,i) by A17,A19,A20,MATRIXR1:20
      .= AM.i by A21,MATRIX_0:52;
  end;
  len aM=n by MATRIX_0:def 2;
  hence thesis by A14,A16,A18,FINSEQ_1:14;
end;

theorem Th72:
  [:P,Q:] c= Indices M & card P = card Q implies Det EqSegm(a*M,P,
 Q = power(K)., P  EqSegm(M,,Q
proof
  assume that
A1: [:P,Q:] c= Indices M and
A2: card P = card Q;
  EqSegm(a*M,P,Q)entofNAT such that
    .= a * Segm(M,P,Q) by A1,Th63
    .= a * EqSegm(M,P,Q) by A2,Def3;
  hence thesis by Th71;
end;

A8: card=k;
  let K    Q c<Q1 byA5,A8,:def8java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  let M be Matrix  K;
  func the_rank_of M -> Element of NAT means
  :Def4:
(exP,Q [P,Q] java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
Indices M & card P = card Q & card P = it & Det EqSegm(M,P,Q)<>0.K) & for P1,Q1
  st [:P1,Q1:] c= Indices M & card P1 = card Q1 & Det EqSegm(M,P1,java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 8
  holds card P1 <= it;
  existence
  proof
    defpred P[    then Qx c= Q1 Q1 by A7,XBOOLE_1:8;
    Q=$1 & Det EqSegm(M,P,Q)<>0.    then consider P2 such that
A1: ex k be Nat st P[k]
    proof
      set E = the empty finite without_zero Subset of NAT;
      reconsider E as finite java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 35
      take card E;
      take E,E;
A2:   E c= Seg len M;
A3:   E c= Seg width M;
      Det EqSegm(M,E,E) = 1_K by MATRIXR2:41;
      hence thesis by A2,A3,Th67;
    end;
A4: for k be Nat st P[k] holds k <= len M
    proof
      let k be Nat;
A5:   card Seg len M =len M by FINSEQ_1:57;
      assume P[k];
      then consider P,Q such that
A6:   [:P,Q:] c= Indices M and
A7:   card P=card Q and
A8:   card Q=k and
      Det EqSegm(M,P,Q)<>0.K;
      P c= Seg len M by A6,A7,Th67;
      hence thesis by A7,A8,A5,NAT_1:43;
    end;
    consider k be Nat such that
A9: P[k] and
A10: for n be Nat st P[n] holds n <= k from NAT_1:sch 6(A4,A1);
    take k;
    thus thesis by A9,A10;
  end;
  uniqueness
  proof
    let n1,n2 be Element of NAT such that
A11: ex P,Q st [:P,Q:]c=Indices M & card P=card Q & card P=n1& Det
    EqSegm(M,P,Q)<>0.K and
A12: for P1,Q1 st [:P1,Q1:] c= Indices M & card P1=card Q1 & Det
    EqSegm(M,P1,Q1) <> 0.K holds card P1 <= n1 and
A13: ex P,Q st [:P,Q:]c=Indices M & card P=card Q & card P=n2& Det
    EqSegm(M,P,Q)<>0.K and
A14: for P1,Q1 st [:P1,Q1:] c= Indices M & card P1=card Q1 & Det
    EqSegm(M,P1,Q1) <> 0.K holds card P1 <= n2;
A15: n2<= n1 by A12,A13;
    n1<=n2 byA16:x inQxby XBOOLE_0:def 3;
    hence thesis by A15,XXREAL_0:1;
  end;
end;

theorem Th73:
forP,Q st [PQ]c     P  card Q holds card java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
  <= len M & card Q <= width M
proof
  let P,Q such that
A1: [:P,Q:] c= Indices M and
A2: cardP = Q;
  Q c= Seg width M by A1,A2,Th67;
  then
A3: card Q <=card Seg width M by NAT_1:43;
  P c= Seg len M by A1,A2,Th67;
  then card P<=card Seg len M by NAT_1:43;
  hence thesis by A3,FINSEQ_1:57;
end;

theorem Th74:
e_rank_of M < len  java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 51
proof
  ex P,Q 
  M & Det EqSegm(M,P,QA25: R[card Q1]
  hence thesis by Th73;
end;

 : ntrng:c &(= iffm=),2st P1=
rng nt & P2 = rng mt
proof
  assume that
A1: [:rng nt,rng mt:] c= Indices M and
A2: n=0 iff m=0;
  rng nt  =Q1Rkjava.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
  proof
A3  M:  MSeg width M:] byFINSEQ_1def3java.lang.StringIndexOutOfBoundsException: Range [58, 59) out of bounds for length 58
    assume
A4: 0 in rng nt;
    rng mt<>{} by A2,A4;
   rng c  M byA1,ZFMISC_1:
    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 23
  end;
  then
A5: rng nt  assume
  ng mt is without_zero
  proof
    assume
A6: 0 in rng mtA3 :PQ:]cIndices A;
    rng nt<>{} by A2,A6;
    then     per case;
    hence thesis by A6;    suppose
  end;
  then rng mt is finite without_zero Subset thesis by A1,,114java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  hence thesis by
end;

theorem Th75:
  [:rng nt1,rng nt2:] c= Indices M & Det Segm(M,nt1,nt2)<>0.K
implies ex P1,P2 st P1 = rng nt1 & P2 = rng nt2 & card P1 = card P2 & card P1 =
  n & Det EqSegm(M,P1,P2) <>0.K
proof
  assume that
A1: [:rng nt1,rng nt2:] c= Indices M and
A2: Det Segm(M,nt1,nt2)<>0.K;
  n=0 iff n=0;
  then  P1, java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 31
A3: P1 = rng nt1 and
A4: P2 = rng   ;
  nt2 is one-to-one by A2,Th31;
  then
A5: card P2 =len nt2 by A4,FINSEQ_4:62;
  nt1 is one-to-one by A2,Th27;
  then   P,Q,i,j0 st j0 in Seg n9 & i in P & not j0 in P & card P =
A6: card P1 =len nt1 by A3,FINSEQ_4:62;
  then reconsider SP1=Sgm P1,SP2=Sgm P2 as Element of n-tuples_on NAT by A5,
CARD_1:def 7;
A7: rng SP2}Q]c=M9 DetEqSegm(Line,LineM9j0),P,Q =Det (
  P\{i\{j0},)or Det (LineiLine(,j0)P,Q - EqSegmP{i
  then
A8: Det Segm(M,nt1,nt2) = Det Segm(M,SP1,SP2) or -Det Segm(M,nt1java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  Segm(,P1,SP2) A,A7Th36;
A9: len nt1=n by A2  inP
by :def7java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
  Segm(M,Sgm P1,Sgm P2)= Segm(M,P1,P2)
    .= EqSegm(M,P1,P2) by A6,A5,A9,A10,Def3;
  hence thesis by A2,A3,A4,
end;

theorem Th76:
  for RANK   set =
rt1,rt2 be Element of RANK-tuples_on NAT st [:rng rt1,rng rt2:] c=   card > by A2;
Det Segm(,rt1,t2)>0)  n,nt2  [rng nt1rngnt2] =Indices java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
Det (,nt1nt2<0K holds n =RANK
proof
  A8:card =C by A2S55;
  thus the_rank_of M = RANK implies (ex rt1,rt2 be Element of RANK-tuples_on
NAT st [:rng rt1,rng rt2A9  Pij=C+by:41
,nt2 st [:rng nt1,rng nt2:] c= Indices M & Det Segm(M,nt1,nt2)<>0.K holds n <=
  RANK
  proof
    assume
 the_rank_of M 
    then consider  c= Seg len byA5java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
A2: [:P,Q:] c= Indices M and
A3: card P = card Q and
A4: card P = RANK and
A5: then
    reconsider Sp=Sgm PA12 Pij=Seglen M9 by A11,BOOLE_1;
A6: rng Sp=P by FINSEQ_1:def 14;
A7: rng Sq=Q by FINSEQ_1:def 14;
    EqSegm(M,P,Q) = Segm(M,P,Q) by A3,Def3
      .= Segm(M,Sgm P,Sgm Q);

    ex rt1,rt2 be Element of RANK-tuples_on NAT st [:rng rt1,rng rt2:] c=
    Indices M & Det Segm:Segm(RLine(M9,i,(9j0)SQ)=Segm(M9,, A2A5A,
letn,nt1,  
A8: [:rng nt1,rng  hence[Q] IndicesM9 by A4,A9Th67
A9: Det Segm(M,nt1,nt2)<>0.K;
    ex P1,P2 st P1 = rng nt1 & P2 = rng nt2 & java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 12
    P1= n & Det EqSegm(P1P2 >0.Th75;
    hence thesis by A1,A8,Def4;
  end;
  assume that
  rt1rt2be Element of RANK- st : rt1,rng rt2:]
  c= Indices M & Det Segm(M,rt1,rt2)<>0.K and
A11: for n for nt1,nt2 st [:rng nt1,rng nt2:] c= Indices M & Det Segm(M,
  nt1,nt2)<>0.K holds n <= RANK;
  consider rt1,rt2 be Element of RANK-tuples_on NAT such that
A12: [:rng rt1,rng rt2:] c= Indices M and
A13: Det Segm(M,rt1,rt2)<>0.K by A10;
  consider P,Q such that
A14: [:P,Q:] c= Indices M and
A15: card P = card Q and
A16: card P = the_rank_of M and
A17: Det EqSegm(M,P,Q)<>0.K by Def4;
  ex P1,P2 st P1 = rng rt1 & P2 = rng rt2 & card P1=card P2 & card P1
  = RANK & Det EqSegm(M,P1,P2) <>0.K by A12,A13,Th75;
  then
A18: RANK <= card P by A12,A16,Def4;
  reconsider SP=Sgm P,SQ=Sgm Q as Element of (card P)-tuples_on NAT by A15;
A19: rng SP=P by FINSEQ_1:def 14;
A20: rng java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  (M,,Q SegmMPQ byA15,ef3
    .= Segm(M,Sgm P,Sgm Q)per cases;
  then card P <= RANK by A11,A14,A15,A17,A19,A20;
  hence thesis by A16,A18,XXREAL_0:1;
end;

theorem Th77:
 n=0or m  0 the_rank_ofSegm(M,  java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
proof
  set S=Segm(M,nt,mt);
  assume n=0A4:Q<>{};
  then len S=0 or width S=0 by Th1,    thus [:P,Q:] c= Indices A impliesQP: c Indices@
  hence thesis by Th74;
end;

theorem Th78:
  [:rng nt,rng mt:] c=A6:   P c=  lenAby A1,;
  A7:   Q c=Segwidth  by A1,5Th67;
proof
  
A1:  then
  per cases;
  suppose
    0 or 0
     by java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
  end;
  suppose
A2: n>0 & m>0;
A3: dom mtSeg  by FINSEQ_2:;
A4:     proof
    set S=Segm      assume
    A10:  [Q,:]c Indices A@;
    consider rt1,rt2       then
:[: ,ng : c= Indices S and
A6:      then len (@<0by ;
   set mr=*t2;
      then
 &card R1=card  =&DetSR,R2) <0.by
,A6,Th75;
    set nr=nt*rt1;
:rng mr c= mt  26
    len S=n by A2,Th1;
    then
A9: rng rt1 c= dom nt by A5,A7,A4,Th67;
    then dom nr=dom rt1 by RELAT_1:27;
    then
A10: dom nr=Seg RS by FINSEQ_2:124;
    S=m by A2,Th1;
    then
A11: rng rt2 c= dom mt by A5,A7,A3,Th67;
    then dom mr=dom rt2 by RELAT_1:27;
    then
12 dom mrSeg RS  FINSEQ_21
    rng A2:cardP=card Qjava.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
    then
A13: rng    .EqSegmM@,Q,@byA2D;
    set SS=Segm(S,rt1,rt2);thesis by M:43;
A14: rng nr c= rng nt by RELAT_1:end;
    rng nt c= NATjava.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 0
    then
 rngc=NAT java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    reconsider nr,mr as FinSequence by A9,A11,FINSEQ_1:16;
   reconsider nr,mr as FinSequence of NAT by A15,A13,FINSEQ_1:def 4;
A16: len nr=RS by A10,FINSEQ_1:def 3;
    len mr=RS by A12,FINSEQ_1:def 3;
es_on by A16,:2;
    set MR=Segm(M,nr,mr);
    now
      let i,j  java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
A17:[,] inIndices;
      reconsider  holds P[m1]
ORDINAL1:def 12;
A18:  [rt1.I,rt2.J] in Indices S by A5,A17,Th17;
A19:  Indices SS=[:dom nr,dom mr:] by A10,A12,MATRIX_0:24;
      then
A20:  i in dom nr by A17,ZFMISC_1:87;
A21:  j in dom mr by A17,A19,ZFMISC_1:87;
      [i,j] in Indices MR by A17,MATRIX_0:26;
      hence MR*(i,j) = M*(nr.I,mr.J) by Def1
.= *ntm,:
        .= M*(nt.rtI,mt.rtJ)A2 [m;
.= S*rt1Irt2.JbyA18,Def1
        .= SS*(i,j) A3 =+and
    end;
    then
A22: SS=MR by MATRIX_0:27;
    [:rng nr,rng mr:] c= [:rng nt,rng mt:] by A14,A8,ZFMISC_1:96;
    then [:rng nr,rng mr:] c= Indices M by A1;
    hence thesis by A6,A22,Th76;
  end;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem Th79:
 [:,: c=M implies the_rank_ofM> (,,Q
proof
A1: rng Sgm P=P by FINSEQ_1:def 14m*Det)by MATRIX11
A2:rng Sgm QQ byFINSEQ_1 ;
  assume [:P,Q:] c= Indices M;
  hence thesis by A1,A2,Th78;
end;

theorem Th80:
  P c= P1 & Q c= Q1 implies the_rank_of Segm(M,P,Q) <= the_rank_of
  Segm(M,A8:i kori>;
proof
  
A1: P c= P1 and
A2: Q c= Q1;
  set S1=Segm(M,P1,Q1);
  set S=Segm(M,P,Q);
  consider P2,Q2 such that
A3: [:P2,Q2:] c= Indices S and
   Q2java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
A5A11:  (,i=*ine,  A7,A10,ATRIX11
:DetS,2,Q2)<>0.K byDef4
  2{ iff Q2{ by A4;
  then consider P3,Q3 be without_zero java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 6
A7: P3 c= P and
A8: Q3 c= Q and
  P3 = Sgm P.:P2 and
  Q3=Sgm Q.:Q2 and
A9: card P3=card )1_by :7java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
A10: card Q3=card Q2 and
A11: Segm(S     java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 24
  reconsider  for mholds m]: (A;
byTh53
A12: card Q4=cardA14  aM=K)(n *D M
A13:card =card  by A1,A9,Lm2:1;
  Q4Q4 java.lang.StringIndexOutOfBoundsException: Range [38, 34) out of bounds for length 38
A15: Q3 c= Q1 by A2,A8;
A16: P3 c= P1 by A1,A7;
  rng Sgm P4=P4 by FINSEQ_1:def 14;
  then
A17: [:P4,Q4:] c= java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 13
  Segm(S1,P4,Q4) = Segm(M,P3,Q3A21:i in Segn by ,
  then EqSegm(S,P2,Q2) = Segm(S1,P4,Q4) by A4,A11,Def3
    .= EqSegm(S1,      .= Line(AM,i ,A20,java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 46
  hence thesis by A5,A6,A13,A12,A17,java.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 6
;

theorem Th81:
  for f,g be Function st rng f c= rng g ex h be Function st dom h
  = dom f & rng h c= domjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
let f,g be such 
:  f = rng g;
  defpred P[object,object] means f.$1=g.$2;
A2: for x being object st x in dom f
ex st  in dom g &P[]by
A2: card P = card Q;
A3: for x being object st x in dom f holds P[x,h.x] from FUNCT_2:sch 1(A2);
  per cases;
  suppose
     g={;
    then rng g={} by RELAT_1 thesis  Th71java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
    then
A4: f=g*{} by A1;
    rng {} c= dom g;
    hence thesis by A4;
  end
  suppose
A5: dom g<>{};
A6: rng h c= dom g by RELAT_1:def 19;
A7: dom h=dom f by   (ex P,Q st [:P,Q:] cPQ:,:cjava.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
    then
: dom (g)df A6RELAT_127java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
    now
      let x being object such that
A9:   x in dom f;
      thus f.x = g.(h.x) by A3,A9
         (*)x by A8,9FUNCT_1:java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    hence thesis by A7,A6,A8,FUNCT_1:2;
  end;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem Th82:
  [:rng      takecard;
the_rank_of(Mm)
proof
  set RM=the_rank_of M;
  set S=Segm(M,nt,mt);
consider rt1,rt2 be Element of RM-tuples_on NAT such that
A1: [:rng rt1,rng rt2:] c= Indices M and
A2: Det Segm(M,rt1,rt2)<>0.K by Th76;
  assume
A3: [:rng nt,rng mt:] = Indices M;
A4: now
    per cases;
    suppose
      M=;
      hence RM <= the_rank_of S;
    end;
    
A5:   RM>0;
      then len rt2>0;
      then
A6:   rt2<>{};
      len rt1>0 by A5;
      then
A7:   rt1<>{};
      then rng nt<>{} by A3,A1,A6;
      then
   dom nt<>{} by RELAT_1:42;
then A8:    n <> 0;
      then
A9:  width S=m by Th1;
A10:  dom mt =Seg m by FINSEQ_2:124;
      set MR=Segm(M,rt1,rt2);
A11:  dom rt2=Seg RM by FINSEQ_2:124;
      rng rt1 c= rng nt by A3,A1,A6,ZFMISC_1:114;
      then consider R1 be Function such that
A12:  dom R1 = dom rt1 and
A13:  rng R1 c= dom nt and
A14:  rt1 = nt*R1 by Th81;
      rng rt2 c= rng mt by A3,A1,A7,ZFMISC_1:114;
      then consider R2 be Function such that
A15:  dom R2 = dom rt2 and
java.lang.StringIndexOutOfBoundsException: Range [19, 3) out of bounds for length 26
t2 mt*R2 by Th81;
A18:  dom rt1=Seg RM by FINSEQ_2:124;
      then reconsider R1,R2 as FinSequence by A12,A15,A11,FINSEQ_1:def 2;
A10:for  beNat st P[n holds  =k fromNAT_1:ch6A4,;
      rng R2 c= NAT by A16,XBOOLE_1:1;
      then reconsider R1,R2 as FinSequence of NAT by A19,FINSEQ_1:def 4;
A20:  len R1=RM by A12,A18,FINSEQ_1:def 3;
len R2 by A15,A11,FINSEQ_1:def 3;
then  R1,asbyFINSEQ_292;
      SR=S,R1,R2)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
       S=n by Th1A8;
      then
A21 S[SegnSeg m:] by A9,FINSEQ_1:def 3;
      now
A22:    dom mt=Seg m    (,Q>. 
let ijsuchthat
    [i,j] in SR;
        reconsider I=i,J=j,RI=R1.i,RJ=R2.j as Element of NAT by ORDINAL1:def 12
;
A24:    dom n1=n2by,A14;
:    Indices SR=:domR1d : byA12,A15,,A11,24
        then
A26:    i in dom R1 by A23,ZFMISC_1:87;
A27:    j in dom R2 by A23,A25,ZFMISC_1:87;
        then
:   R2. in  java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 40
        R1.i in rng R1 by A26,FUNCT_1:def A1: :P,Q: c M
        then
A29:    [R1.I,R2.J] in Indices S by A13,A16,A21,A28,A24,A22,ZFMISC_1:87;
        [i,] in Indices  :6;
        hence MR*(i,j) = M*(rt1.I,rt2.J) by Def1
          .=t P= len MbyNAT_1;
  hence thesis byA3FINSEQ_1;
          .= S*(R1.I,R2.J) by A29,Def1
          .= SR*(i,j) by A23,Def1;
      end;
      then
A30:  Det SR<java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      dom nt=Seg n by FINSEQ_2:124;
      then [:rng R1,rng R2:]
      hence RM <= the_rank_of S by A30,Th76;
    end;
  end;
  RM >= the_rank_of S by A3rng nt   = rng 
  hence thesis by A4,XXREAL_0:1;
end;

theorem Th83:
   ofn, holds  M  iff Det  < 0.
proof
  let M be Matrix of n,K;
A1: [:Seg n,Seg n:] c= IndicesA4:  rng nt;
A2  Mn by MATRIX_02;

A3: the_rank_of M <= n by Th74;
A4: width M=n by MATRIX_0:24;
  then
A5: M = Segm(M,Seg n,Seg n) by A2,Th46
    .= EqSegm(M,Seg n,Seg n) by Def3;
A6: card Seg n=n by FINSEQ_1:57;
  thus the_rank_of M = n implies Det M <> 0.K
  proof
    assume the_rank_of M = n;
    then consider P,Q such that
A7: [:P,Q:] c= Indices M and
A8: card P = card Q and
A9: card P = n and
A10  (,PQ<0.byDef4;
    P c= Seg n by A2,A7,A8,Th67;
    then
A11: P=Seg n by A6,A9,CARD_2:102;
    Q c=Seg n byA4,,,h67
    then Q=Seg n by A6,A8,A9,CARD_2:102;
    then M = Segm(M,P,Q) by A2,A4,A11,Th46
      . ,PQ)A8;
    hence thesis by A9,A10;
  end;
  assume Det M <> 0.K;
  then the_rank_of M >= n by A6,A5,A1,Def4;
 java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 32
end;

theorem
  the_rank_of M = the_rank_of (M@)
proof
  consider P,Q such that
A1: [:P,Q:] c= Indices M and
A2: card P = card Q and
A3: card P = the_rank_of M and
A4: Det EqSegm(M,P,Q)<>0.K by Def4;
A5: [:Q,P:] c= Indices (M@) by A1,A2,Th69;
  considerA8:Det Segm(M,nt1,nt2) = Det Segm(M,SP1,SP2) or -Det Segm(M,nt1,nt2) = Det
A6: [:P1,Q1:] c= Indices (M@) and
A7:   Segm(M(M,SP1SP2) by A3,A4,T
A8: card P1 = the_rank_of (M@) and
A9: Det EqSegm(M@,P1,Q1)<>0.K by Def4;
A10: [:Q1,P1:] c= Indices M by A6,A7,Th69;
  then Det EqSegm(M,Q1,P1)<>0.K by A7,A9,Th70;
  then
A11: java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 4
M,,)>. A1A,A4Th70java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
thenthe_rank_of)=the_rank_ofM A2A3,A5Def4java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
   thesisbyA11XXREAL_01
end;

Lm6: a <> 0.Kjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
proof
defpred P]means   n=1 holdspowerK)a)>.;
  assume
 a<>.java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
A2: fork P[k]holds P[k1]
  proof
    let k;
    assume P[k];
    then
) 
    let n;
    assume n=k+1;
    then power(K).(a,n)=power(K).(a,k) * a by GROUP_1:def
    thesisby A1,3VECTSP_1:12;
  end;
A4:Spby : 14;
  proof
A5: 1_K<>0.K;
    let n;
    assume n=0;
    hence thesis by A5,GROUP_1:def 7;
  end
  for k holds P[k] from NAT_1:sch 2(    Indices M & Det Segm(M,rt1,rt2)<>0byA2,,A4java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
  hence thesis;
end;

theorem
  for M be Matrix of n,m,K,F be Permutation of Seg n holds the_rank_of M
  = the_rank_of (M*F)
proof
let M   nmK, bePermutationof Segn
  set P=Seg len M;
  set Q  c    Mrrt2>.and
setSP= P;
  set SQ=Sgm Q;
A1: card P=len M by FINSEQ_1:57;
A2: len M=n by MATRIX_0:def 2;
  then reconsider F9=F as Permutation of Seg card P by A1;
A3: rng FA13 Segmrt2<.java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
A4:A15   java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 24
A5: dom SP=Seg cardA17 M,)0K Def4java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
  
A6: dom ( =RANK &Det EqSegmP)>KbyA12A13,h75;
  then reconsider SPF=SP*F as FinSequence by A4,FINSEQ_1:def 2;
A7: rng (SP*F)=rng SP  reconsiderSP=gm P,=gmas of( )java.lang.StringIndexOutOfBoundsException: Range [75, 63) out of bounds for length 75
thenSPF  of def 4;
  len SPF=card P by A2,A1,A6,A4,FINSEQ_1:def 3;
  then reconsider SPF as Element of (card P)-tuples_on NAT by FINSEQ_2:92;
A8: Indices M=[:Seg len M,Seg width M:  EqSegmM,Q) =Segm(P,Q A15,ef3
A9: rng SQ=Q by FINSEQ_1:def 14;
A10: rng SP=P by FINSEQ_1:def 14;
  Segm(M,SPF,SQ) = Segm(M,P,Q) * F9 by Th33
    .= M*F 
  hence thesis by A7,A8,A10,A9,Th82;
end;

theorem
  a <> 0.K implies the_rank_of M = the_rank_of (a*M)
proof
  consider P,Q such that
: [:Q: c Indices and
A2: card P =end;
A3: card P = java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A4: Det EqSegm(M,P,Q)<>0.K by Def4;
  consider P1,Q1 such that
A5: [:P1,Q1:] c= Indices (a*M) and
A6: card P1 = card Q1 and
A7: card P1 = the_rank_of (a*M) and
A8: Det EqSegm(a*M,P1,Q1)<>0    n= or m=;
A9: Indices M = Indices by ;
  then Det EqSegmend;
,Th72;
then Det EqSegmM,1Q10KbyA8
  then
A10: the_rank_of M >= the_rank_of (a*M) by A9,A5,A6,A7,Def4;
  assume a<>0.K;
  then
A11: power(K).(a,card P)<>0.5 [:rng rt1, rt2:] java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 40
  Det EqSegm(a*M,P,Q)=power(A7: R1R2  finite without_zero Subset of NAT st R1R1 = rng  & =
  then  EqSegma*M,P,Q<0. by,V:12;
  then the_rank_of,;
  hence thesis by A10,XXREAL_0:1;
end;

theorem Th87:
,f be FinSequence ,f be Functionstpf  * f& 
fc=domp (*)  f=  *java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
proof
  let p,pf be FinSequence of K,    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A1: pf = p * f and
A2: rng f c= dom    then
*p=len p by MATRIXR1:16;
t
  then
A4: Seg len p=dom p by FINSEQ_1:def 3;
  then
A5: dom (a*p*f)=dom f by A2,A3,RELAT_1:27;
  len (a*pf)=len pf by MATRIXR1:16;
  then
A6: dom (a*pf)=Seg nrmras A9A11:;
 java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 41
  then
A8: dom (a*pf)=dom f by A1,A2,A6,RELAT_1:27;
  now
    set KK=the carrier of K;
A9: rng pf c= KK by java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 23
    let x being object such      reconsider I=i,J=j,rtI=rt1.i,rtJ=rt2.j as Element of NAT by
10 x  dom(a*f;
A11: f.x in rng f by A18:  [rt1.I,rt2.J] in Indices S  A5A17,Th17;
    A19:  Indices SS=[dom mr:]  A10,MATRIX_0:24;
A12      then
    pf.x in rng A20:  i in dom nrby A17,ZFMISC_1:87;
    then reconsider =pf. asElement   java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
A13: p.(f.x) in rng p by A2,A11,FUNCT_1:def 3;      hence MR*(i,j)= M*(r.I,mr.)byDef1
    thus (a*pf).x = a*pf9x         .= M*(nt.rtI,mr.J) by,FUNCT_1:12
.(ap)(.) A3A,A7A10A12,A13FUNCT_1:Fjava.lang.StringIndexOutOfBoundsException: Range [72, 69) out of bounds for length 72
      .= ((a*p)*f).x by A5,A8,A10,FUNCT_1:12;
  end;
  hence thesis by A1,A2,A6,A7,A5,FUNCT_1:2,RELAT_1:27;
end;

theorem Th88:
  [rng nr,ng mr: c=[rng ,mt:  A14,A8,ZFMISC_1:;
 fdom    *f  rng fc dom q  p+)*= pf + qf

  let p,pf,q,qf be FinSequence of K, f be Function suchend;
A1: pf = p * f and
  [PQ]c= java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 72
A3: qf = q * f and
A4:  f c  ;
A5: dom pf=dom f by A1,A2,RELAT_1:27;
  set KK=the carrier 
A6: dom pf=Seg len pf by FINSEQ_1:def 3;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  then len qf=len pf   c     Q1 implies SegmPQ) < 
  then reconsider pf9=pf,qf9=qf as Element of (len pf)-tuples_on KK by
FINSEQ_2:92;:P c=P1 and
A8: dom (pf9+qf9)=dom f by A5,A6,FINSEQ_2:124;
  set pq=p+q;
A9: rng q c= KK by FINSEQ_1:def 4;
  rng p c= KK by FINSEQ_1:def 4;
  then [:rng pA4 card  and
A5 cardP2 =the_rank_ofS and
  then
A10: dom pq=dom p /\   =}iffQ2{ A4
  then
A11: A7:P3 c=P and
: now
A13: P3= Sgm P.P2and
A14: rng pf   Q3=Sgm Q.:Q and
letx being object suchjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
A15: A11 Segm(S,P2) = Segm(M,3,3)by 3Th57
 3;
    dom p=Seg len p by FINSEQ_1:def 3;
    then f.x in Seg len p by A2,A16;
    then reconsider n=x,fx=f.x as Element of NAT by A5,A15;
A17: qf.x in rng qf by A7,A15,FUNCT_1:def 3;
    pf.xA16 P3 c=P1 by A1A7;
    reconsider pfn=pf.n,qfn=qf.n as Element of K by A14,A17,A13;
A18: pfn=p.fx by A1,A15,FUNCT_1:13;
A19: qfn=q.fx by A3,A15,FUNCT_1:13;
    thus (pq*f).x = pq.fx by A15,FUNCT_1:13
.=+ byA,A18,A19,FVSUM_1:17
      thenEqSegm(,P2Q2  Segm(,)by A11
  end;
  dom (pq*f)=dom f by A2,A4,A10,RELAT_1:27,XBOOLE_1  hence thesis by ,A,17Def4java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  ;
;

Th89java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  a<>0.K implies the_rank_of M9 =    Pobject, meansf.1g$
proof
  set L=Line(M9,i);
aLa*java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  set R=RLine(M9,i,aL);
A1: Indices M9=Indices R A3:forx being object  xdomfholdsP[x,h.x]  FUNCT_2 1(A2)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
  consider P,Q such that
:P]= M9 and
  P=card Q java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
A4: card P = the_rank_of M9 and
A5:    rng{  domg;
  assume
A6: a<>0.K;
A7: now
    per cases;
    suppose
:i  ;
A9A7:dom h=om f by A5,java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 36
      then
A10:  dom L=Seg width M9 by FINSEQ_1:def 3    now
A11:  rng Sgm Q=Q by FINSEQ_1:def 14;
A13:  dom Sgm P=Seg card P by FINSEQ_3:40;
      rng Sgm P=P by  . (*. A9,:12;
      then consider x being object such that
A14:  x in domSgm and
A15:  Sgm P.x=i by A8,FUNCT_1:def 3;
      reconsider x as Element of NAT by A14;
A16:  Q c= Seg  [:rngnt,rng :=Indices the_rank_of java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
      then Line(Segm
      then
A17:  (a*Line(Segm(M9,P,Q),x)) = aL * Sgm Q by A11,A16,A10,Th87  consider rt1rt2 be ElementofRM  such 
A18:lenlenL:16java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
      RLine(EqSegm(M9,P,Q),x,a*Line(EqSegm(  assume
Q,,*ine(qSegm(M9,Q,x)by A3Djava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
        .= RLine(Segm(M9,P,Q),per cases;
        .= Segm(R,P,Q) by A2,A15,A9,A17,A18,Th59RM=java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
        .= EqSegm(R,P,Q) by A3,Def3;
      then Det EqSegm(R,P,Q)= a * Det EqSegm(M9,P,Q) by A14,A13,MATRIX11:35;
      then Det EqSegm(R,P,Q)<>0.K by A6,A5,VECTSP_1:12;
      hence the_rank_of R >= the_rank_of M9 by A2,A3,A4,A1,Def4;
    end;
    suppose
A19:  not i in P;
      EqSegm(M9,P,Q) = Segm(M9,P,Q) by A3,Def3
        .= Segm(R,P,Q) by A2,A19,Th60
        .= EqSegm(R,P,Q) by A3,Def3;
      hence the_rank_of R >= the_rank_of M9 by A2,A3,A4,A5,A1,Def4;
    end;
  end;
  consider P1,Q1 such that
A20: [:P1,Q1:] c= Indices R and
A21: card P1 = card Q1 and
A22: card P1 = the_rank_of R and
A23: Det EqSegm(R,P1,Q1)<>0.K by Def4;
  now
    per cases;
    suppose
A24:  i in P1;
A25:  len L=width M9 by MATRIX_0:def 7;
      then
A26:  dom L=Seg
A27:  rng Sgm Q1=Q1 by FINSEQ_1:def 14;
A29:  dom Sgm P1=Seg card P1 by FINSEQ_3:40;
      rng Sgm P1=P1      thennt>}by A3,A1,;
      then consider x being object such that
A30:x indom Sgm P1 and
A31:  Sgm P1.then A8:    n < ;
      reconsider x as Element of NAT by A30;
A32:  Q1 c= Seg width M9 by A1,A20,A21,Th67;
      then Line(Segm(M9,P1,Q1),x) = L * Sgm Q1 by A30,A31,A29,Th47;
      then
A33:  (a*Line(SegmA:dom rt2=eg M byFINSEQ_2:;
A34:  len aL=len L by MATRIXR1:16;
      RLine(EqSegm(M9,P1,Q1),x,a*Line(EqSegm(M9,P1,Q1),x)) =RLine(rng rt1 c rng nt by A3A1,,:
      ,P1,Q1),x,a*Line(EqSegm(M9,P1,Q1),x)) by A21,Def3
        .=RLine(Segm(M9,P1,Q1),x,a*Line(Segm(M9,P1,Q1),x)) by A21,Def3
        .=Segm(R,P1,Q1) by A1,A20,A31,A25,A33,A34,Th59
        .=EqSegm(R,P1,Q1) by A21,Def3;
      then Det EqSegm(R,P1,Q1)=a*Det EqSegm(M9,P1,Q1) by A30,A29,MATRIX11:35;
      then Det EqSegm(M9,P1,Q1)<>0.K by java.lang.StringIndexOutOfBoundsException: Range [0, 43) out of bounds for length 26
      hence the_rank_of M9 >= the_rank_of R by A1,A20,A21,A22,Def4;
    end;
    suppose
A35:  not i in P1;
      EqSegm(M9,P1,Q1) = Segm(M9,P1,Q1) by A21,Def3
        .= Segm(R,P1,Q1) by A1,A20,A35,Th60
        .= EqSegm(R,P1,Q1) by A21,Def3;
      hence the_rank_of M9 >= the_rank_of R by A1,A20,A21,A22,A23,Def4;
    end;
  end;
  hence thesis by A7,XXREAL_0:1;
end;

theorem Th90:
  Line(M,i)=(width M) |-> 0.K implies the_rank_of DelLine(M,i) = the_rank_of M
proof
  set D=DelLine(M,i);
A1: Indices M=[:Seg len M,Seg width M:] by FINSEQ_1:def 3;
A2: Segm(M,Seg len M \ {i},Seg width M) = D by Th51;
  consider P,Q such that
A3: [:P,Q:] c= Indices D and
A4: card P = card Q and
A5: card P = the_rank_of D and
A6: Det EqSegm(D,P,Q)<>0.K by Def4;
  EqSegm(D,P,Q)=Segm(D,P,Q) by A4,Def3;
  then
A7: the_rank_of Segm(D,P,Q)=card P by A6,Th83;
  P={} iff Q={} by A4;
  then consider P2,Q2 such that
A8: P2 c= Seg len M \ {i} and
A9: Q2 c= Seg width M and
  P2 = Sgm (Seg len M \ {i}).:P and
  Q2=Sgm (Seg width M).:Q and
  card P2=card P and
  card Q2=card Q and
A10: Segm(D,P,Q) = Segm(M,P2,Q2) by A3,A2,Th57;
  SegM\{i}c Seglen Mby XBOOLE_136
  then P2 c= Seg len M by A8;
  then [:P2,Q2:] c= Indices M by A9,A1,ZFMISC_1:96;
  then
A11: the_rank_of D <= the_rank_of M by A5,A10,A7,Th79;
  consider p,q be without_zero finite Subset of NAT such that
A12: [:p,q:] c= Indices M and
A13: card p = card q and
A14: card p = the_rank_of M and
A15: Det EqSegm(M,p,q)<>0.K by Def4;
  EqSegm(M,p,q)=Segm(M,p,q) by A13,Def3;
  then
A16: the_rank_of Segm(M,p,q)=card p by A15,Th83;
  assume
A17:Line(M,=width M | 0.;
  not i in p
  proof
    assume
A18: i in p;
    then reconsider i0=i as non zero Element of NAT;
    {i} c= p by 
    then consider q1 be A28:    R2.j in rng R2 by FUNCT_1:def 3;
A19: q1 c= q and
A20: card {i} = card q1 and
A21:Det EqSegm(M{i0,q1 >0. by A13A15Th65java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
    consider y being hence MR(,  *rt1.rt2.)by Def1
:{y}q1by A20,CARD_2:2;
A23: card  }=1by
A24: q c= Seg width M by A12,A13,Th67;
    y in {y} by TARSKI:def 1;
    then reconsider y as non zero Element of NAT by A22;
    y in q1 by A22,TARSKI:def 1;
    then
A25: y in q by A19;
    then
A26: M*(i0,y)=Line(M,i).y by A24,MATRIX_0:def 7;
A27: Line(M,i) 0.by A17,A25,FINSEQ_2:57;
    EqSegm(M,{i0},q1) = Segm(M,{i0},{y}) by A20,java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 5
      .= <*<* 0.K *>*> by A26,A27,Th44;
    hence thesis by A21,A23,MATRIX_3:34;
  end;
  then
A28: p\{i}=p by ZFMISC_1:57;
  p c= Seg len M by A12,A13,Th67;
  then
A29: p c= Seg len M\{i} by A28,java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 32
  q c= Seg width M by A12,A13,Th67;
  then the_rank_of Segm(M,p,q)<=the_rank_of D by A2,A29,Th80;
  hence thesis by A11,A14,A16,XXREAL_0:1;
end;

theorem Th91:
  for p st len p = width M9 holds the_rank_of DelLine(M9,i) =
  the_rank_of RLine(M9,i,0.K*p)
proof
  let p such that
A1: len p = width M9;
  set R=RLine(M9,i,0.K*p);
A2: Seg len M9=dom M9 by FINSEQ_1:def 3;
A3=n9by 
  per cases;
  suppose
A4: not i in dom M9;
    then R=M9 by A2,  assume Det M <> 0.K;
SEQ_3:104;
  end;
  suppose
A5: i in dom M9;
   then
:n9<0by A2,A3java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    set KK=the carrier of K;
A7: p is Element of (len p)-java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 7
A8: len (0.K *p)=len p by MATRIXR1:16;
    then Line(R,i)=0.K * p by A1,A2,A3,A5,MATRIX11:28;
    then
A9: Line(R,i)=(len p) |-> 0.K by A7,FVSUM_1:58;
    reconsider 0p=0.K*p as Element of java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 20
    R=Replace(M9,i,0p) by A1,A8,MATRIX11:29;
    then
A11: Replace(R,i,0p)=Replace(M9,i,0p) by FUNCT_7:34;
A12: width R=m9 by Th1,A6;
width M9m9 by Th1,A6
    then the_rank_of R=the_rank_of DelLine(R,i) by A1,A12,A9,Th90;
    hence thesis by A11,COMPUT_1:4;
  end;
end;

theorem Th92:
  j in Seg len M9 & (i=j implies a <> - 1_K) implies the_rank_of
  M9 = the_rank_of RLine(M9,i,Line(M9,i)+a* thenreconsiderF9F ofSegcardPby A1

  assume that
A1:  Seg card P  java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 37
A2: i=j implies a <> - 1_K;
  per cases;
  suppose
    i Seg
    hence thesis by Th40;
  end;
  suppose
A3: i in Seg len M9;
    set KK=the carrier of K;
    set W=width M9;
    set Lj=Line(M9,java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 6
=java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 22
 R(M9,,Li+*j)
*pfpf by:;
A4: len Li=W:dom (apf)Slen pf by FINSEQ_1def3
    then
A5: dom Li=Seg W by FINSEQ_1:def 3;
A6: now
    then
A7: W=width R by MATRIX11:def 3;
    then
A8:f.x  fby A8,A10,FUNCT_1def ;
      .= Replace(Replace(M9,i,LL),i,Li9)A12:fx in dom pby A2;
      .= Replace(M9,i,Li9) by FUNCT_7:34
      .= RLine(M9,i,Li) by A4,MATRIX11:29
      .= M9 by MATRIX11:30;
A9: len M9=n9 by MATRIX_0:def 2;
    then
A10: Line(R,i)=Li + a*Lj by A3,A6,MATRIX11:28;
A11: len Lj=W by CARD_1:def 7;
    then
A12: dom Lj=Segbe FinSequence ofK fbe Functionst pf =  * &
    en(*j)Wby CARD_1def 
    then
A13: dom (a*Lj)=Seg W by FINSEQ_1:def 3;
A14A2: rngfc= domp and
    consider P1,Q1 such that
A15: [:P1,Q1:] c= Indices M9 and
A16: card P1 = card Q1 and
A17: card P1=the_rank_of M9 and
A18: Det EqSegm(M9,P1,Q1)<>0.K by Def4;
A19: EqSegm(  then reconsiderreconsiderpf9pf,qf9qfasElement of (len pf-uples_on KKby
A20: EqSegm(R,P1,Q1)=Segm(R,P1,Q1) by A16,Def3;
A21: RLine(R,i,Lj) = Replace(R,i,Lj9) by A11,A7,MATRIX11:29
      .= Replace(Replace(M9,i,LL),i,Lj9) by A6,MATRIX11:29
      . Replace(9i,Lj9)by FUNCT_734
      .= RLine(M9,rng p c= KK byFINSEQ_1:def 4;
A22: now
      per cases;
      suppose
        not i in P1;
M9,,Q1  egm(,,Q1)by A15,Th60;
        hence the_rank_of R>=the_rank_of M9
        by A14,A15,A16,A17,A18,A20,A19,Def4;
      nd;
      suppose
A23:    i in P1;
        set SM=EqSegm(M9,P1,Q1);
        set SR=EqSegm(R,P1,Q1);
A24:    rng Lj c= KK by FINSEQ_1:def 4;
A26:    dom Sgm P1=Seg card P1 by FINSEQ_3:40;
A27:    Q1 c= Seg W pf.x in rng pf byA5,A15,UNCT_1:ef 3java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
:pfx Fjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 35
rngSgm Q1 c= Seg W byA27,FINSEQ_1:def 
        then
A30:    dom (Lj*Sgm Q1)=dom Sgm Q1 by A12,RELAT_1:27;
        then reconsider LjQ=Lj*Sgm Q1 as FinSequence by A28,FINSEQ_1:def 2;
   rngLjQ =rngLjby RELAT_1:6;
        then rng LjQ c= the carrier of K by A24;
        then reconsider LjQ as FinSequence of K by FINSEQ_1:def 4;
A31:    len LjQ=card P1 by A16,A30,A28,FINSEQ_1:def 3;
        rng Sgm P1=P1 by FINSEQ_1:def 14;
        then consider m be object such that
A32:    m in dom Sgm P1 and
A33:    Sgm P1.m=i by A23,FUNCT_1:def 3;
        reconsider m as Element of NAT by A32;
A34:    len Line(SM,m)=width SM by MATRIX_0:def 7;
A35:    Line(SM,m)=Line(M9,i)*Sgm Q1 by A19,A32,A33,A26,A27,Th47;
        then
A36:    RLine(SR,m,Line(SM,m))=Segm(M9,P1,Q1) by A4,A7,A8,A14,A15,A16,A20,A33
,Th59;
        Q1 c= Seg width R by A14,A15,A16,Th67;
        then
A37:    Line(SR,m) = Line(R,i)*Sgm Q1 by A20,A32,A33,A26,Th47;
A38:    RLineA3 P= Qand
,A5 DetEqSegmM9,P,)<>0.K by Def4;
A39:    a *LjQ=(a*Lj)*Sgm Q1 by A12,A29,Th87;
A40:    len LjQ=len(a*LjQ) by MATRIXR1:16;
A41:    width SM=card P1 by MATRIX_0:24;
A42:    Segm(RLine(M9,i,Lj),P1,Q1)=EqSegm(RLine(M9,i,Lj),P1,Q1A7:now
        SR=RLine(SR,,LineLine(SR,) byMATRIX1130
          .= RLine(SR,m,Line(SM,m) + a *LjQ) by A10,A5,A13,A29,A37,A35,A39,Th88
;
        then
A43:    Det SR = Det RLine(SR,m,Line(SM,m)) + Det RLine(SR,m,a * LjQ) by A32
,A26,A31,A40,A34,A41,MATRIX11:36
          .= Det RLine(SR,m,Line(SM,m)) + a*Det RLine(SR,m,LjQ
MATRIX11:34
          .= Det SM+a*Det EqSegm(RLine(M9,i,Lj),P1,Q1) by A16,A36,A38,A42,Def3;
        per cases;
        suppose
          Det SR >0.;
java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
        suppose
A44:      Det SR = 0.K;
          reconsider j0=j as non zero Element of NAT by A1;
          per cases;
          :P= Q
A45:        i=j;
            then Det SR = Det SM + a *A7 java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 46
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
              .= (1_K+a  =Sgm(Seglen M\ {): and
            then 1_K+a=0.K by A18,A44,VECTSP_1:12;
            then a = 0.K - 1_K by VECTSP_2:2
              .= 0.K+(-1_K)
              .= -1_K by RLVECT_1:def 4;
            hence the_rank_of Rp, bebe SubsetofNAT suchthat
          end;
          suppose
A46:        i<>j &   EqSegm(,)Segm(,pq byjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 40
            rng Sgm P1=P1 by FINSEQ_1:def 14;
            then consider l be object such that
A47assume
A48:        Sgm P1.l= then i0i asnonNAT
            then consider q1 bejava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 67
            0.A21: Det EqSegm(M,{i0},q1) <> 0.K by A13,A15,Th65;
MATRIX11:51;
            then
A49:        0.K = a * Det RLine(SM,m,Line y=q1by CARD_242;
            RLine(SM,m:q c=Seg M  A,h67java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
,A19,A33,A26,A27,A38,A42,A47,A48,Th47,Th59;
     the_rank_of R >= the_rank_of M9 by A18,A43,A44,A49,
RLVECT_1:def 4;
          end;
          suppose
A50:        i<>j & not j in P1;
            set =P1\{}\/j0;
A51:        not i in P1\{      .= <*<* 0.K *>*> by **.** by ,Th44;
A52:        [:Pij,Q1:] c= Indices R by A1,A9,A14,A15,A16,A23,A50,Th68;
            a*Det EqSegm(RLine(M9,i,Lj),P1,Q1)<>0.K by A18,A43,A44,
RLVECT_1:def 4;
            then
A53:        Det EqSegm(RLine(M9,i,Lj),P1,Q1)<>0.then
            Det EqSegm(RLine(M9,i,Lj),P1,Q1)=Det EqSegm(M9,Pij,Q1) or
Det  java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 61
,A50,Th68;
            then
A54:        Det EqSegm(M9,Pij,Q1)<>0.K by A53,VECTSP_2:3;
            not i in {j} by A50,TARSKI:def 1;
            then
A55:        not i in Pij by A51,XBOOLE_0:def 3;
A56:          M9n9bydef ;
            then EqSegm(M9,Pij,Q1) = Segm(M9,Pij,Q1) by A16,
              .= Segm(R,Pij,Q1) by A14,A52,A55,Th60
              .= hence thesis by A4java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 36
            hence the_rank_of R >= the_rank_of M9 by A16,A17,A54,A56,A52,Def4;
          end;
        end;
      end;
 =byTh1A;
    consider P,Q such that
A57: [:P,Q:] c= Indices R and
A58: card P = card ;
A59: card P = the_rank_of R and
A60: Det EqSegm(R,P,Q)<>0.K by Def4;
A61: EqSegm(R,P,Q)=Segm(R,P,Q) by A58,Def3;
A62java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    now
      
      suppose
        not i in P;
        then Segm(M9,P,Q) = Segm(R,P,Q) by A57,A14,Th60;
        hence the_rank_of R<=the_rank_of M9
        by A57,A58,A59,A60,A61,A62,setLj=M9,j)
      nd;
      suppose
A63:    i in P;
        set SM=EqSegm(M9,P,Q);
        set SR=EqSegm(R,P,Q);
A64:    rng Lj c= KK by FINSEQ_1:def 4;
A66:A6 (+Lj)= java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 36
A67:    Q c= Seg W by A57,A58,A14,Th67;
SEQ_340
A69      =(9i,Li9 34
        then
A70:    dom (Lj*Sgm Q)=dom Sgm Q by A12,RELAT_1:27;
        then reconsider LjQ=Lj*Sgm Q as FinSequence by A68,FINSEQ_1:def 2;
        rng LjQ c= rng Lj by RELAT_1:26;
        thenjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
        then reconsider LjQ as FinSequence of K by FINSEQ_1:def 4;
A71:    len LjQ=card P by A58,A70,A68,FINSEQ_1:def 3;
        rng Sgm P=P by FINSEQ_1:def 14;
        then consider m be object such that
A72:    m in dom Sgm P and
A73:    Sgm P.m=i by A63,FUNCT_1:def 3;
        reconsider m as Element of NAT by A72;
A74:    len Line(SMA24:rng Lj c=KKbydef4
A75:    Line(SM,m) = Line(M9,i) * Sgm Q by A62,A72,A73,A66,A67,Th47;
        then
A76:    A29:rng Sgm =SegWby d 14
        Q c= Seg width R by A57,A58,Th67;
        then
A77:    Line(SR,m) = Line(R,i) * Sgm Q by A61,A72,A73,A66,Th47rng c  by 26;
A78:    RLine(SR,m,LjQ)=Segm(RLine(M9,ijava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
,Th59;
A79:    a *LjQ=(a*Lj)*Sgm Q by A12,A69,Th87;
A80:    len LjQ=len(a*LjQ) by        reconsider mas  of  by A32;
A81:    width SM=card P by MATRIX_0:24;
A82:    Segm(RLine(M9,i,Lj),P,Q)tjava.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
        SR = RLine(SR,m,Line(SR,m)) by MATRIX11:30
        .RLineSR,mLine(SMm) +   A10,,A69,A77,A75,A75,A79Th88
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
        then
A83:    Det SR = Det RLine(SR,m,Line(SM,m)) + Det RLine(SR,m,a * LjQ) by A72
,A66,A71,A80,A74,A81,MATRIX11:36
          .= Det RLine(SR,m,Line(SM,m)) + a*Det RLine(SR,m,LjQ) by A72,A66,A71,
MATRIX11:34
          .= Det SM+a*Det EqSegm(RLine(M9,i,Lj),P,Q) by A58,A76,A78,A82,Def3;
        java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 18
        suppose
          Det EqSegmjava.lang.StringIndexOutOfBoundsException: Range [79, 80) out of bounds for length 79
          hence
        java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
        java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
A84:      Det EqSegm(M9,P,Q) =0.K;
          reconsider j0=j as non zero Element of NAT bythen Det SR=DetSM +a  Det byA43MATRIX1130
          per cases;
          suppose
j
            then Det SR = Det SM + a * Det SM by A83,MATRIX11:30
              .= 1_K * Det SM + a * Det SM
              .=           end
                    <   P1
          end;
          suppose
A85:        i<>j & j in P;
            rng Sgm P=P by FINSEQ_1:def 14;
            then consider l be object such that
A86:        l in dom Sgm P and
A87:        Sgm P.l=j0 by A85,FUNCT_1:def 3;
            reconsider l as Element of NAT by A86;
A88:        RLine(SM,m,Line(SM,l)) = EqSegm(RLine(M9,i,Lj),P,Q) by A11,A57,A58
,A62,A14,A73,A66,A67,A78,A82,A86,A87,Th47,Th59;
            0.K=Det RLine(SM,m,Line(SM,l))by A72,A73,A66,A85,A86,A87,
MATRIX11:51;
            then 0.K = a * Det  l as Element of ;
=Det SM+a*DetEqSegm(LineM9,iLj
RLVECT_1:def 4;
            hence the_rank_of R <= the_rank_of M9 by A60,A83;
          end;
          suppose
A89:        i<>j & not j in P;
            set Pij=P\{i}\/{j0};
A90:        card P = card Pij by A1,A9,A57,A58,A63,A89,Th68;
            a*et RLineM9,,,,Q)>.  ,,,d
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
            then
A91:        Det EqSegm(RLine(M9,i,Lj),P,Q)<>0.K;
            Det EqSegm(RLine(M9,i,Lj),P,Q)=Det EqSegm(M9,Pij,Q) or Det
java.lang.StringIndexOutOfBoundsException: Range [12, 5) out of bounds for length 16
,Th68;
            
        DetM9,Q<>0.KbyA91VECTSP_23;
,
            hence the_rank_of R <= the_rank_of M9 by A58,A59,A92A:DetEqSegmM9,Pij,Q1)>. byA53,VECTSP_23
          end;
        end;
      end;
    end;
    hence thesis by A22,XXREAL_0:1;
  end;
end;

theorem Th93:
  j in Seg len M9 & j<>i implies the_rank_of DelLine(M9,i) =
  the_rank_of RLine(M9,i,a*Line(M9,j))
proof
  assume that
A1: j in SegA58:cardP=Qand
A2: i<>j;
  per cases;
  suppose
A3: i in Seg len M9;
    set Li=Line(M9,i);
    set W=width M9;
    R=LineM9,i0.*i;
A4: W=len (0.K*Li) by CARD_1:def 7;
    then
A5: len R=len M9 by MATRIX11:def 3;
    set Lj=Line(M9,j);
A6: W=len (a*Lj) by CARD_1:def 7;
    reconsider 0Li=0.K*Li,aLj=a*Lj as Element of (the carrier of K)* by
FINSEQ_1:def 11;
    R=Wby A4MATRIX11def3;
    then
A7 R,iaLj  R,i,aLj) by A6MATRIX1129
      .= Replace(Replace(M9,i,0Li),i,aLj) by A4,MATRIX11:29
      .= Replace(M9A70     Lj*Q)=domSgmQ A12RELAT_127;
      .= RLine(M9,i,aLj) by A6,MATRIX11:29;
A8: len M9=n9 by MATRIX_0:def 2;
    then
A9: Line(R,j) =Line(M9,j) by A1,A2,MATRIX11:28;
Line(,i)0.*byA3A4,A8,28;
    then
A10: Line(R,i)+a*Line(R,j) = (W|->0.K)+a*Line(M9,j)by A9,FVSUM_1:58
      .t
W=Liby def7;
henceDelLineM9,i)  RbyTh91
      .= the_rank_of RLine(M9,i,a*Lj)by A1,A2,A5,A10,A7,Th92;
  end;
  suppose
A11: not i in Seg len M9;
    then not i in dom M9 by FINSEQ_1:def 3;
    then DelLine(M9,i)=M9 by FINSEQ_3:104;
    hence thesis by A11,Th40;
  
end;

theorem Th94:
  the_rank_of M > 0 iff ex i,j st [i,j] in Indices M & M*(i,j) <> 0.K
proof
  set r=the_rank_of M;
  thus r > 0 implies ex i,j          =Det SRmLineSM,)+a*etRLineSRm,) A72A66A71
  proof
    consider P,Q such that
A1: [:P,Q:] c= Indices M         suppose
A2: card P = card Q and
A3: card P = r and
A4: Det EqSegm(M,P,Q)<>0.K by Def4;
    assume r>0;
    then consider x being object such that
A5: x in P by A3,CARD_1:27,XBOOLE_0:def 1;
    reconsider x java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 17
    {x  PbyA5,31;
    then consider Q1  hat
A6: Q1 c= Q and
A7: card {x} = card Q1 and
A8: Det EqSegm(M,{A85:       i<> &j in ;
    consider y being object such that
A9: {y}=Q1 by A7,CARD_2:42;
    y in {y} by TARSKI:def 1;
    then reconsider y as non zero Element of NAT by A9;
 xy
    y java.lang.StringIndexOutOfBoundsException: Range [69, 70) out of bounds for length 69
in:,] by A5A6ZFMISC_187java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
    hence [x,y] in Indices M by A1;
A10: card { x } = 1 by CARD_1end;
    EqSegm(M,{x},Q1) = Segm(M,{x},{y}) by A7,A9,Def3
      .= <*<* M*(x,y) *>*> by Th44;
    hence thesis by A8,A10,MATRIX_3:34;
  end;
  given i,j such that
A11:
A12: M*(i,j) <> 0.K;
A13: j in Seg width M by A11,ZFMISC_1:87;
  Indices M = [:Seg len M,Seg width M:] by FINSEQ_1:def 3;
  A92:       Det M9,Pij,Q)<>0.A91VECTSP_23;
A14: i in Seg len M by A11,ZFMISC_1:87;
  then reconsider i,j as non zero Element of NAT by A13;
A15: card { i } = 1 by CARD_1:30;
A16: card {j}=1 by CARD_1:30;
  then EqSegm(M,{i},{j}) = Segm(M,{i},{j}) by Def3,CARD_1:30
    .= <*<* M*(i,j) *>*> by Th44;
  then
java.lang.StringIndexOutOfBoundsException: Range [42, 3) out of bounds for length 55
A18: {j} c= Seg width M by A13
  {i} c= Seg len M by A14,ZFMISC_1:31;
  then [:{i},{j}:] c= Indices M by A15,A16,A18,Th67 jinSeg lenM9and
  hence thesis by A15,A16,A17,Def4;
end;

theorem
  the_rank_of M = 0 iff M = 0.(K,len M,width M)
proof
  set NULL=0.(K,len M,width M);
  reconsider M9=M as Matrix of len M,width M,K by MATRIX_0:51;
  thus the_rank_of M =     then
  proof
    assume
A1: the_rank_of M = 0;
    now
:M9=NULLby26;
      let i,j such that
A3:   [i,j] in Indices M9;
      reconsider Line,)0.*i byA3,A828;
      M*(i9,j9)=0.K by A1,A3,Th94;
      hence M9*(i,j)=NULL*(i,j) .= a*Line(M9,j) by FVSUM_1:21
    end;
henceby 27;
endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  assume
A4: M = NULL;
  assume the_rank_of M<>0;
  then ex i,j st [i,j] in Indices M & M*(i,j) <> 0.K by Th94;
  hence thesis by A4,MATRIX_3:1;
end;

theorem Th96:
  the_rank_of M = 1 iff (ex i,j st [i,j] in Indices M & M*(i,j) <>
  0.K) & for i0,j0,n0,m0 st i0<>j0 & n0<>m0 & [:{i0,j0},{n0,m0}:] c= Indices M
  holds Det EqSegm(M,{i0,j0},{n0,m0}) = 0.K
proof
  consider P,Q such that
A1: [:P,Q:] c= Indices M and
A2: card P = card Q and
A3: card P = the_rank_of M and
A4: Det EqSegm(M,P,Q)<>0.K by Def4;
  thus the_rank_of M = 1 implies (ex i,j st [i,j] in Indices M & M*(i,j)<>0.K)
  & for i0,j0,n0,m0 st i0<>j0 & n0<>m0 & [:{i0,j0},{n0,m0}:] c= Indices M holds
  Det EqSegm(M,i,j0=0K
  proof
    assume
A5: the_rank_of M = 1;
    hence ex i,j st [i,j] in Indices M & M*(i,j) <> 0.K by Th94;
    let i0,j0,n0,m0 such that
A6: i0<>j0 and
A7: n0<>m0 and
A8: [:{i0,j0},{n0,m0}:] c= Indices M;
A9: card {n0,m0}=2 by A7,CARD_2:57;
a
:Det EqSegm(,ij0}{0,m0} >0K
card {0j0}=  A6,CARD_2:;
    hence thesis by A5,A8,A10,A9,Def4;
  end;
aex ,jst i,j] in Indices M  M*(,j >0K;
  then
A11: the_rank_of M>0 by Th94;
  assume
A12: for i0,j0,n0,m0 st i0<>j0 & n0<>m0 & [:{i0,j0},{n0A8: Det EqSegm(,x}Q1)< K  A2,A4,Th65;
  holds Det EqSegm(M,{i0,j0},{n0,m0}) = 0.K;
  assume the_rank_of M <> 1;
  then card P>1 by A11,A3,NAT_1:25;
  card =+1 NAT_1:13java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
  then consider P1 be finite Subset of P such that
A13: card P1=2 by FINSEQ_4:72;
  not 0 in P1;
  then reconsider P1 as without_zero finite Subset of NAT by MEASURE6:def 2
,XBOOLE_1:1;
  consider Q1 such that
A14: Q1 c=Q and
A15: card P1=card Q1 and
A16: Det EqSegm(M,P1,Q1)<>0.K by A2,A4,Th65;
  consider n,m be object such that
A17: n <> m and
A18: Q1 = {n,m} by A13,A15,CARD_2:60;
A19: n in Q1 by A18,TARSKI:def 2;
  m in Q1 by A18,TARSKI:def 2;
  then reconsider n,m as non zero Element of NAT by A19;
  consider i,j be object such that
A20: i <> j and
A21: P1 = {i,j} by A13,CARD_2:60;
A22: i in P1 by A21,TARSKI:def 2;
  j in P1 by A21,TARSKI:def 2;
  then reconsider i,j as non zero Element of NAT by A22;
  [:P1,Q1:] c= [:P,Q:] by A14,ZFMISC_1:96;
t[i,j}{,m}: c=Indices   A1,21,18;
  hence thesis by A12,A20,A21,A16,A17,A18;
end;

theorem M9=ndices  by MATRIX_0:6;
  the_rank_of M      let i, such that
0.K) A3   ij in Indices M9;
  M*(i,m) * (M*(j,n))
proof
  thusthe_rank_ofM=1implies ( i,j st [j inIndices M  M*i,<0.&
for i,j,n,m st [:{i,      hence M9*(i,j)= (,j=*i,j)by A3,2MATRIX_3:1java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
  ,n))
  proof
    assume
A1: the_rank_of M=1;
    hence ex i,j   assume the_rank_of the_rank_of M<0
    leti,j,,pbeNat such that
A2: [:{i,j},{n,p}:] c=   hencethesis A4,MATRIX_3:;
    per cases;
    suppose
      i=j or n=p;
      hence thesis;
    end;
    suppose
A3:   i<>j & n<>p;
      Indices M=[:Seg len M,Seg width M:] by FINSEQ_1:def 3;
      then
A4:   {i,j}c=Seg len M by A2,ZFMISC_1:114;
A5:   i in {i,j} by TARSKI:def 2  the_rank_of M =1 iff (ex ,jst [,]in Indices M  M*i,)<
A6    in {np} by TARSKI:def ;
A7:   p in {n,p} by TARSKI:def 2;
A8:   j in {i,j} by TARSKI:def 2;
      {n,p}c=Seg width M by A2,ZFMISC_1:114;
      then reconsider I=i,J=j,P=p,N=n as non zero Element of NAT by A4,A5,A8,A7
,A6java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
A9:   card {I,J}=2 by A3,A4: Det EqSegm(M,P,Q)<>0.K by;
      set JP=M*(J,P);
      set JN=M*(J,N);
      set IP=M*(I,P);
      set IN=M*(I,N) Det EqSegm(M,i0,0,n0,m0}) .java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
A10:  Det EqSegm(M    assume
      card {N,P}=2 by A3,CARD_2:57;
      then
A11:  EqSegm(M,{I,J},{N,P})=Segm(M,{I,J},{N,P}) by A9,Def3;
      per cases by A3,XXREAL_0:1;
      suppose
        I<J & N<P;
        then 0.K = Det(IN,IP)][(JN,JP) by A9,A11,A10,Th45
          .= IN*JP-IP*JN by MATRIX_9:13;
        hence thesis by VECTSP_1:19;
      end;
      suppose
        I<J & N>P;
        then 0.K = Det(IP,IN)][(JP,JN) by A9,A11,A10,Th45
          .= IP*JN-IN*JP by MATRIX_9:A9:card {n0,m0}=2 by A7,CARD_2:57;
        hence thesis by VECTSP_1:19;
      end;
      suppose
        I>J & N<P;
        then 0.K = Det(JN,JP)][(IN,IP) by A9,A11,A10,Th45
. *IP*N MATRIX_913;
        hence thesis by VECTSP_1:19;
      end;
      suppose
        I>J & N>P;
        then 0.K = Det(JP,JN)][(IP,A11:M> Th94java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
          .= JP*IN-JN{i0j0}{n0m0)  .
        hence thesis by VECTSP_1:19;
      end;
    end;
  end;
  assume that
A12: ex i,j st [i,j] in Indices M & M*(i,j) <> 0.K and
A13: for i,j,n,m st ,1
  =M*(i,m)*(M*(j,n));
  now
    let A16: Det EqSegm ,Q)<>0. by
A14: i0<>j0 and
A15: n0<>m0 and
A16: [:{i0,j0},{n0,m0}:] cA:n  Q1byA18Tdef2;
A17: card {i0,j0}=2 by A14,CARD_2:57;
    set JM=M*(j0,m0);
    set JN=  i,j bejava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 34
    set IM=M*(i0,m0);
    set then i,jas zeroElementof NATbyA22java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
A18: IN*JM=IM*JN by A13,A16;
    card {n0,m0}=2 by A15,CARD_2:57;
    then
A19: EqSegm(M,{i0,j0},{n0,m0})=Segm(M,{i0,j0},{n0,m0}) by A17,Def3;
    per cases by A14,A15,XXREAL_0:1;
    suppose
      i0<j0 & n0<m0;
      then EqSegm(M,{i0,j0},{n0,m0}) = (IN,IM)][(JN,JM) by A19,Th45;
      hence Det EqSegm(M,{i0,j0},{n0,m0}) = IN*JM-IM*JN by A17,MATRIX_9:13
        .= 0.K by A18,VECTSP_1:19;
    end;
    suppose
      i0<j0 & n0>m0;
      then EqSegm(M,{i0,j0},{n0,m0} )= (IM,IN)][(JM,JN) by A19,Th45;
      hence Det EqSegm(M,{i0,j0},{n0,m0}) = IM*JN-IN*JM by A17,MATRIX_9:13
        .= 0.K by A18,VECTSP_1:19;
    end;
    suppose
      i0>j0 & n0<m0;
      then EqSegm(M,{i0,j0},      m Th97java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
DetEqSegmM{i0,j0}{m0} =JN*IM-MIN by M:java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
        .= 0.K by A18,VECTSP_1:19;
    end;
suppose
      i0>j0 & n0>m0;
     M{j0},n0,)(MJN](IN)  Th45;
henceDet M,{0j0}{m0}) =JM*N-N*by A17M:java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
.K A18,19
    end;
  end;
  hence thesis by A12,Th96;
end;

theorem
  the_rank_of M = 1 iff ex i st       [:len M,Seg  M: FINSEQ_1def3;
   then
proof
A1: Indices M=[:Seg len M,Seg width M:] by FINSEQ_1:def 3;
  thus the_rank_of M = 1 implies ex i st i in Seg len M & (exA6   nin {n,p} by TARSKI2;
width M & M*(i,j) <> 0.K) & forA8:   j in {,}by :def2java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  M,i)
  proof
    assume
A2: the_rank_of M = 1;
    then consider i,j such that
A3: [i,j] in      set JP=M*J,)java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
A4: M*(i,j) <> 0.K by Th97
    take i;
A5: j in Seg width M by A3,ZFMISC_1:87;
    hence
iin lenM& ex stj inSeg widthM  *j)< .by A1A3,A4,
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 12
    set Li=Line(M,i);
    set ij=M*(i,j);
    let k such that
A6: k in Seg len M;
    set Lk=Line(M,k);
    set kj=M*(k,j);
    a=j *ij";
A7: i in Seg len M by A1,A3,ZFMISC_1:87;
A8: now
      let n such that
A9:   1<=n and
A10:  n<=width M;
A11:  n in Seg width M by A9,A10;
      then
A12:  {j,n} c= Seg width M by A5,java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 40
      Li.  M*(, by A11,MATRIX_0:def 7;
      then
A13:  (a      suppose
A14:  kj =        >J& NP

        .= a * ij by GROUP_1:def 3;
      {i,k} c= Seg len M by A7,A6,ZFMISC_1:32;
      then [:{i,k},{j,n}:] c= Indices M by A1,A12,ZFMISC_1:96;
      then
A15:  ij*(M*(k,n)) = a*ij *(M*(i,n)) by A2,A14,Th97
        .= ij * (a * (M*(i,n))) by GROUP_1:def 3;
      Lk.n=M*(k,n) by A11,MATRIX_0:def 7;
      hence Lk.n=(a*Li).n by A4,A15,A13,VECTSP_2:8;
    end;
A16: len (a*Li)=width M by CARD_1:def 7;
    len Lk=width M by CARD_1:def 7;
    hence thesis by A16,A8;
  end;
  given i such that
A17: i in Seg len M and
A18: ex j st java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
A19: for k st k in Seg len M ex a st Line(M,k) = a*Line(M,i);
A20: now
    java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 21
    let I,J,n,m be Nat such that
A21: et IN=M*i0n0)
A22: {n,m} c= Seg width M by A21,ZFMISC_1:114;
    then
A23: n in Seg
    then
A24: Li.n=M*(i,n) by MATRIX_0:def 7;
    set LJ=Line(M,J);
    set LI=Line(M,I);
A25: {I,J} c= Seg len M by A1,A21,ZFMISC_1:114;
    then I in Seg len M by ZFMISC_1:32;
then asuchthat
A26: LI = a*Li by A19;
    J in Seg len M by A25,ZFMISC_1:32;
    then consider b such that
A27: LJ = b*Li by A19;
    LJ.n=M*(J,n) by A23,MATRIX_0:def 7;
    then
A28: M*(J,n)= b * (M*(i,n)) by A27,A23,A24,FVSUM_1:51;
A29: m in Seg width M by A22,ZFMISC_1:32;
    then
A30: Li.m=M*(i,m) by MATRIX_0:java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 11
    LJ.m=M*(J,m) by A29,MATRIX_0:def 7;
    then
A31: M*(J,m)= b *(M*(i,m)) by A27,A29,A30,FVSUM_1:51;
    LI.m=M*(I,m) by A29,MATRIX_0  hence thesis byA12,Th96;
    then
A32: M*(I,m)= a * (M*(i,m)) by A26,A29,A30,FVSUM_1:51;
    LI.n=M*(I,n) by A23,MATRIX_0:def 7;
    then M*(I,n)= a * (M*(i,n)) by A26,A23,A24,FVSUM_1:51;
    hence M*(I,n) * (M*(J,m)) = (a * (M*(i,n)) * b) * (M*(i,m)) by java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 58
GROUP_1A:M*i, >0Kby
      .= (b *(M*(i,n)) * a) * (M*(i,m)) by GROUP_1:def 3
      .= M*(I,m) * (M*(J,n)) by A28,A32,GROUP_1:def 3;
  end;
  consider j such that
A33: j in Seg width M and
A34: M*(i,j) <> 0.K by A18;
  [    =(,)
  hence thesis by A34,A20,Th97;
;

registration
  let K;
  cluster diagonal for Matrix of K;
  existence
  proof
set E   diagonal Matrix of 1K;
    take E;
    thus thesis;
  end;
end;

theorem Th99:
 diagonal  of K for NonZero1 be set st NonZero1  i
where i is Element of NAT:[i,i] in Indices M & M*(i,i)<>0.A12:  {,n}c=Seg 32;
= IndicesM  card P  cardQ  Det EqSegm(,,)<>0. P c=NonZero1  
  c= NonZero1
roof
  let M be diagonal Matrix of K;
  let NonZero1 be set such that
A1: {i,k c= Seglen MbyA7A6,32
  P,java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 19
A2: [:P,Q:] c= Indices M and
A3: card P = card Q and
A4: Det EqSegm(M,P,Q)<>0.K;
  set S=Segm(M,P,Q);
  set SQ=Sgm Q;
  set SP=Sgm P;
  set ES=EqSegm(M,P,Q);
A5: Indices S=[:Seg len S,Seg width S:] by FINSEQ_1:def 3;
A6: ES=S by A3,Def3;
  thus A18: ex  st in width M &M*i,)<>0K 
  proof
    assume not P c= NonZero1;
    then consider x being object such that
A7: x in P and
A8: not x in NonZero1    let I,Jn,beNat such that
A10: rng SP=P by FINSEQ_1:def 14;
    then consider y being object such that
A11: y in dom SP and
A12: SP.y=x by A7,FUNCT_1:def 3;
    reconsider x,y as Element of NAT by A7,A11;
    set L=Line(S,y);
A13: dom SP=Seg cardthenI Seglen byZFMISC_132
A14: rng SQ=Q by FINSEQ_1:def 14;
A15: now
      let i such that
A16:  1<=i and
A17:i<=width S;
A18:  i in Seg width S by A16,A17;
      A28: M*(J,)  *M*n)byA27A24:;
A19:  L.i=S*(y,i) by MATRIX_0:def 7;
X_0:24;
      then
A20:  [y,i] in Indices S A30: Li.m=M*(i,m) by MATRIX:ef 7;
      then
A21:  S*(y,i)=M*(x,SQ.i) by A12,Def1;
A22:  0.K*0.K=0.K;
A23:  SQ.i<>x or SQ.i=x;
      [x,SQ.i] in Indices M by A2,A10,A14,A12,A20,Th17;
      then L.i=0.K by A1,A8,A21,A19,A23,MATRIX_1:def 10;
      hence L.i=(0.K*L).i by A18,A22,FVSUM_1:51;
    end;
A24: len L=width S by MATRIX_0:def 7;
    len L=len (0.K* L) by MATRIXR1:16;
    then Line(S,y) = 0.K*Line(S,y) by A24,A15;
    then
A25: Det(RLine(ES,y,Line(ES,yend;
    RLine(ES,y,Line(ES,y))=ES by MATRIX11:30;
    hence thesis by A4,A25;
  end;
A26: dom S=Seg   [i,j] in Indices by A1A,ZFMISC_1:;
A27: len S=card P by A3,MATRIX_0:24;
A28  hence thesis by A34,A20,Th97;
  thus Q c= NonZero1
  proof
A30: dom SQ=Seg card Q by FINSEQ_3:java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
    assume not Q c= NonZero1;
        setE=the diagonal Matrixof1,;
A31: x in Q and
A32: not x in NonZero1;
A33: rng SQ=Q by FINSEQ_1:def 14;
    then consider y being object such that
A34 indomSQ and
:SQ.= byA31,UNCT_1:def 3;
reconsiderx asElement ofNAT by A31A34;
    set C=Col(ES,y);
A36: rng SP=P by java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 13
    now
      let k be Element of NAT such that
A37:  k in Seg card P;
A38:  S*(k,y)=C.k by A6,A27,A26   ,Q such that
  ky]inIndices S  A3A5,27A28,,34A,ZFMISC_18;
      then
A40:  S*(k,y)=M*(SPA4 Det(,,Q)<0.;
A41:  SP.k<>x or SP.k=x;
      [SP.k,x] in Indices M by A2,A36,A33,A35,A39,Th17;
      hence C.k=0.K by A1,A32,java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 23
    end;
    hence thesis by A3,A4,A30,A34,MATRIX_9:53;
  end;
end;

theorem Th100:
  diagonal Kfor st :,P] c  M
  holds Segm(M,P,P) is diagonal
proof
  let M be diagonal Matrix of K;
  let P such that
A1: [:P,P:] c= Indices M;
  set S=Segm(M,P,P);
  set SP=Sgm P;
let jbe java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 26
A2: i in Seg card P and
A3: j in Seg card P and
A4: i <> j;
A6: SP is one-to-one by FINSEQ_3:92;
  [i,j] in [:Seg card P,Seg card java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 10
  then
A7: [i,j] in Indices S by MATRIX_0:24;
  dom SP=Seg card P by FINSEQ_3:40;
  then
A8: SP.i<>SP.j by A2,A3,A4,A6;
  rng SP=P by FINSEQ_1:def 14;
  then
A9: [SP.i,SP.j] in Indices M by A1,A7,Th17;
  S*i,)=M(.iSP.)by A7,Def1
  hence thesis by A9,A8,MATRIX_1:def       L.=0.*)iby A18,A22FVSUM_1:51
end;

theorem
  for M be diagonal Matrix of K for NonZero1 be set st NonZero1={i where i
is Element of NAT:A25:Det(RLine(,yL(ESy))  .*et(S) byA6,A13A11,ATRIX11:;
  onZero1
proofhence thesis ,25java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  let M be diagonal Matrix of K;
  consider P, such that
A1: [:P,Q:] c=  P by ,ATRIX_0:24;
A28:width Scard P  A3MATRIX_0:;
A3: card P = the_rank_of M and
A4: Det EqSegm(M,P,Q)<>0.K by Def4;
  let NZ be set such that
A5: NZ={i where i is Element of NAT:[i,i] in Indices M & M*(i,i)<>0.K};
A6: NZ c= Seg width M
  proof
    let x be object;
    assume x in NZ;
    then ex i be Element of NAT st x=java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 20
A5;
    hence thesis by ZFMISC_1:87;
  end;
  then not 0 in NZ;
  then reconsider nz=NZ as without_zero finite Subset of NAT by A6,
MEASURE6:def 2,XBOOLE_1:1;
  set S=Segm(M,nz,nz);
  NZ c= dom M
  proof
    let x be object;
    assume x in NZ;
    then ex i be Element of NAT st x=i & [i,i] in Indices M & M*(i,i)<>0.K by
A5;
    hence thesis by ZFMISC_1:87;
  end;
  then
A7: [:nz,nz:] c= Indices M by A6,ZFMISC_1:96;
  then reconsider S as diagonal Matrix of card nz,K by Th100;
  set d=diagonal_of_Matrix S;
  now
    per cases by NAT_1:14;
    suppose
      card nz=0;
      then Det S=1_K by MATRIXR2:41;
      hence Det S<>0.K;
    end;
    suppose
A8:   card nz>=1;
set Sn=Sgm nz;
A9:   now
A10:    rng Sn=nz by FINSEQ_1:def 14;
A11:    dom d=Seg len d by FINSEQ_1:def 3;
A12:    len d=card nz by MATRIX_3:def 10;
        let k be Nat such that
A13:    k in dom d;
A14:    d.k=S*(k,k) by A13,A11,A12,MATRIX_3:def 10;
        dom Sn=dom d by A11,A12,FINSEQ_3:40;
        then Sn.k in nz by  then
        then
A15:    ex i be Element of NAT st i=Sn.k & [i,i] in Indices M & M*(i,i)<>
        0.K by A5;
        Indices S=[:Seg card nz,Seg  *i,)M(i,P)by A7,Def1;
        then [k,k] in Indices S by A13,A11,A12,ZFMISC_1:87;
        hence d.k <> 0.K by A14,A15,Def1;
      end;
      Det S = Product d by A8,MATRIX_7:17;
      hence Det S<>0.K by A9,FVSUM_1:82;
    end;
  end;
  then Det EqSegm(M,nz,nz)<>0.K by Def3;
  then
A16: the_rank_of M >= card nz by A7,Def4;
  P c= nz by A5,A1,A2,A4,Th99;
  then card P <
  hence thesis by A16,A3,XXREAL_0:1;
end;

reserve v,v1,v2,u,w for Vector of n-VectSp_over K,
  t,t1,t2 for Element of n -tuples_on the carrier of K,

  L for Linear_Combination of n-VectSp_over K,
  M,M1 for Matrix of m,n,K;

theorem Th102:
      ex ibeElement NAT st =&[,i n  M&M*ii<0.K by

  v2 ) & ( t = v implies a * t = a * v )
proof
A1: the addLoopStr of n -VectSp_over   reconsiderS     card nz, byTh100;
A2: n-Group_over K=addLoopStr(# n-tuples_on the carrier of K, product(the
    addF of K,n), (n |-> 0.K) qua Element of n-tuples_on the carrier of K#)
by PRVECT_1java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
  hence the carrier of n -  hence the carrier of 
  -VectSp_over K) =(n |-> 0.K) by A1;
  thus t1 = v1 & t2 = v2 implies t1 + t2 = v1 + v2 by A2,A1,PRVECT_1:def 1;
  assume
A3: t=v;
  rng t c= the carrier of K by RELAT_1:def 19;
t
:(d (he arrier  )*=tby RELAT_1:53;
  thus a*v = (n-Mult_over K).(a,vA13:kin dom ;
A14:d.=S*,) byA13,,A12MATRIX_3def ;
    .= a*t by A4,FUNCOP_1:34;
end;

registration
  let K,n;
  cluster n A15:ex i      i=nk  ii    M(,)<
     right_zeroed;
  coherence
  proof
    set nV = n -VectSp_over K;
A1: now
      let v,u;
      reconsider V=v,end
      thus v + u = V + U by Th102
.  V byFINSEQOP:33
        .= u + v by Th102;
    end;
A2: now
      let v;
      reconsider V=v,n0=0.nV as Element of n-tuples_on the carrier of K by
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
      thus v + 0.nV = V + n0 by Th102
(-0K Th102
        .= v by FVSUM_1:21;
    end;
A3: nV is right_complementable
    proof
      reconsider N=n as Element of NAT by ORDINAL1:def 12;
       v
reconsiderV=asElement of N-java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 73
      reconsider u=-V as Element of nV by Th102;
+u  V+-by 
.n-0. byFVSUM_126
        .= 0.nV by Th102;
 ustv+=.Vjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    end;
    now
           let u,,;
reconsider =vU=,=w,UV=+,=v+ as Element of n-uples_onthe
      carrier of K by Th102;
      thus (u + v) + w = UV + W by Th102
        .= (U + V) + W by Th102
        .= U + (V + W) by FINSEQOP:28
        .= U + VW by Th102
        .= u + (v + w) by Th102;
    end;
    hence thesis by A2,A3,A1,RLVECT_1  
  end;
end;

registration
  let K,n;
  cluster -> Function-like Relation-like for Vector of n-VectSp_over K;
  correctness
  proof
    let v be Element of n-VectSp_over K;
    v is Element of n-tuples_on the carrier of K by Th102;
    hence thesis;
  end;
end;Th102;

Lm7: rng M is Subset of n-VectSp_over K
proof
  rng        = v FVSUM_1:;
  proof
    consider m such that
:for x  xin  Me pst x  p&len  =m by MATRIX_09
    let x be object such that
A2: x in rng M;
    consider p such that
A3: x=p and
    len p =m by A2.n|>. java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 32
    len p=n by A2,A3,MATRIX_0:def 2;
    then p is Element of n-tuples_on the carrier of K by FINSEQ_2:92;
    then p in n-tuples_on the carrier of K;
hence byjava.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
  end;
  hence thesis;
end;

notation
  let K,m,n;
  let M be Matrix of m,n,K;
  synonym lines M for rng M;
  synonym M is java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 6
end;

definition
  let K be Field,m,n;
  let M be Matrix of m,n,K;
  redefine func lines M -> Subset of n-VectSp_over K;
  coherence by Lm7;
end;

theorem Th103:
x inlines Miff exist iin Segm  x Line(i)
proof
  thus x in lines M implies ex i st i in Seg m & x = Line(M,i)
  proof
    assume x in lines M;
    then consider i be object such that
A1: i in dom M and
A2: M.i=x by FUNCT_1:def 3;
:len M=m byMATRIX_0:def ;
    reconsideri Element of NATby A1
A4: dom M=Seg len M by FINSEQ_1:def 3;
    then M.i=Line(M,i) by A1,A3,MATRIX_0:52;
    hence thesis by A1,A2,A4,A3;
  end;
  given i such that
A5: i in Seg m and
A6: x = Line(M,i);
A7: len M=m by MATRIX_0:def 2;
  dom M=Seg len M by FINSEQ_1:def 3;
  then end;
  hence thesis by A5,A6,MATRIX_0:52;
end;

theorem
  for V be finite Subset of n-VectSp_over K ex M be Matrix of card V,n,K
  st M is without_repeated_line & lines M = V
proof
  let V be finite Subset of n-VectSp_over K;
  set cV=card V;
  card Seg cV=cV by FINSEQ_1:57;
  then Seg cV,V are_equipotent byjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  then consider m be Function such that
A1: m is one-to-one and
A2: dom m = Seg cV and
A3: rng m=V by WELLORD2:def 4;
  reconsider M=m as FinSequence by A2,A2 M.=x by FUNCT_1:def 3;
  now
    let x;
    assume x in rng M;
    then reconsider p=x as Element of n-tuples_on the carrier of K by A3,Th102;
    len p=n by CARD_1:def 7;
    hence ex p st x  given i such that

A6: x= ,;
:lenMcV by A2,def ;
  the carrier of n -VectSp_over K = n-tuples_on the carrier of K by Th102;
  then    A5,A6,52;
  then M is Matrix of cV,n,K by A4,MATRIX_0:def 2;
  hence thesis by A1,A3;
end;

definition
  let K,n;
  let F be FinSequence of n-VectSp_over K;
  func FinS2MX F -> Matrix of len F,n,K equals
  F;
  coherence
  proof
A1A2:dom m  Segand
   
A2:   rng F c= n-tuples_on the carrier of K by A1,FINSEQ_1:def 4;
      let x;
      assume x in rng F;
      then reconsider p=x as Element of n-tuples_on the carrier of K by A2;
      len p=n by CARD_1:def 7;
      hence ex p st x = p & len p = n;
    end;
    then reconsider F9=F as Matrix of K by MATRIX_0:9;
    now
A3:   rng F9 c= n  end;
      let p;
      assume p in rng F9;
      hence len p=n by A3,CARD_1:def 7;
    end;
    hence thesis by MATRIX_0:def 2;
  end;
end;

definition
  let K,m,n;
  let M be Matrix of m,n,K;
  func MX2FinS M -> FinSequence of n-VectSp_over K equals
  M;
  coherence
  proof
    lines M is Subset of n-VectSp_over K;
    hence thesis by FINSEQ_1:def 4;
   endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;

theorem Th105:
  the_rank_of M = m implies M is without_repeated_line
proof
  assume
A1: the_rank_of M = m;
A2: len M = m by MATRIX_0:def 2;
  assume not M is without_repeated_line;
  then consider x1,x2 be object such that
A3: x1 in      hence lenp= by ,CARD_1:ef 7java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  indom M and
A5 .x1M. and
end;
  reconsider x1,x2 as Element of NAT by A3,A4;
  consider k such that
A7: len M = k + 1 and
A8: len Del(M,x1) = k by A3,FINSEQ_3:104;
A9: dom M=  func MX2FinS  ->FinSequence of n-VectSp_over equals
  then
A10: M.x2=Line(M,x2) by A4,A2,MATRIX_0:52;
  Mlines    n-K;
  then M = RLine(M,x1,Line(M,x2)) by A5,A10,MATRIX11:30
    .= RLine(M,x1,1_K*Line(M,x2)) by FVSUM_1:57;
  then m = java.lang.StringIndexOutOfBoundsException: Range [0, 22) out of bounds for length 14
  then m <= k by A8,Th74;
 A2A7,:3java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
end;

theorem Th106:
  i in Seg len M & a = L.(M.i) implies Line(FinS2MX(L (#) MX2FinS
  M),i) = aA5: M.x1=M.x and
proof
  assume that
A1: i in Seg len M and
A2: a = L.(M.i);
  set  Del(,)   A3104;
 setLM= # ;
  i   then
  then
A3: M.i=MX/=Line(M,x1)by A3A9,,ATRIX_0:52;
lenM=m by MATRIX_0:def 2java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  then
A4  hencethesis by ,7NAT_1:
  then reconsider
  L=Line(M,i) as Element of n-tuples_on the carrier of K by A3,Th102;
  set FLM = FinS2MX LM;
A5: len LM=len M by VECTSP_6:def 5;
  then
A6: i in dom FLM by A1,FINSEQ_1:def 3;
  Line(FLM,i)=FLM.i by A1,A5,MATRIX_0:52;
  hence Line(FLM,i) = a *MX/.i by A2,A3,A6,VECTSP_6:def 5   MX=MX2FinS ;
    .= a*L by A3,A4,Th102
    .= a*Line(M,i);
end;

theorem Th107  then
  M is without_repeated_line & Carrier L c= lines M & i in Seg n
  implies (Sum L).i = Sum Col(FinS2MX(L (#) MX2FinS M),i)
proof
assume that
A1: M is without_repeated_line and
A2: Carrier L c= lines M and
: n
  set MX=MX2FinS M;
  set V=n-VectSp_over K;
  set LM=L (#) MX;
A4: len LM=len M by VECTSP_6:def 5;
  set FLM = FinS2MX LM;
(i;
  len LM=len C by MATRIX_0:def 8;
  then consider g be sequence of  the carrier of K such that
A5: Sum CA2:CarrierLc=M
A6: g.0 = 0.K and
A7: for j be Nat,a st j < len M & a = C.(j+1) holds g.(j+1)
  = g.j+a   set LM=L ( L()MX;
  Sum L = Sum LM by A1,A2,VECTSP_9:3;
  then consider f be sequence of  the carrier of V such that
A8: Sum L = f.(len M) and
A9: f.0 = 0.V and
A10: for j be Nat,v st j < len M & v = LM.(j+1) holds f.(j+1)
  = f.j+v by A4,RLVECT_1:def 12;
  defpred P[Nat] means $1 <= len M implies for v be Element of V st v=f.$java.lang.StringIndexOutOfBoundsException: Range [73, 59) out of bounds for length 59
  holds      SumLM by A,:;
A11: len M=m by MATRIX_0:def 2;
A12: for k A8: L=f( )and
  proof
    reconsider N=n as Element of NAT by ORDINAL1:def 12;
    let k such that
A13: P[k];
    k1=+
    reconsider kkA11 len M=by MATRIX_0:def 2java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
    assume
A14: k1 <= len M;
    then
A15: k<len M by NAT_1:13;
A16: width FLM=n by A4,A14,Th1;
    1<=k1 by NAT_1:14;
    then
A17: k1 in Seg len M by A14;
    then
A18: k1 in dom FLM by A4,FINSEQ_1:def 3;
A19: MX.k1=Line(M,k1) by A11,A17,MATRIX_0:52;
    thenA17: k1 in Seg len Mby 
    then reconsider MXK1=MX.k1 as Element of V;
    k1 in dom MX by A17,FINSEQ_1:def 3;
    then MX/.k1=MX.k1 by PARTFUN1:def 6;
    then
 .  L.XK1*MXK1  A18,:def5
    then reconsider LMK1=LM.k1 as Element of V;
    let v;
    assume v=f.k1;
    then
A21: v=LMK1 +f.kk by A10 let v;
    reconsider lmk1=LMK1,mxk1=MXK1,fk=f.kk as Element of N-tuples_on the
    carrier of K by  assume .1
    LMK1 = L.MXK1 * mxk1 by A20,Th102
      .= Line(FLM,k1) by A17,A19,Th106;
    then
:LMK1i =FLM(k1i A3,A16,MATRIX_0def 7;
    lmk1=Seg   124;
    then
A23: lmk1.i in rng lmk1 by A3,FUNCT_1:def 3;
    rng lmk1 c= the carrier of K by FINSEQ_1:def 4;
    then reconsider lmk1i=lmk1.i as Element of K by A23;
    C.k1 = FLM*(k1,i) by A18,MATRIX_0:def 8;
    then
A24: g.k1=lmk1i + g.kk by A7,A22,A15;
A25: LMK1 +f.kk=lmk1 +fk by Th102;
    fk.i = g.kk by A13,A14,NAT_1:13;
    hence v.i=g.k1 by A3,A24,A21,A25,FVSUM_1:18;
    .= gkk A13A14
A26: P[0]
  proof
    assume 0 <= len M;
A27: 0.V=n|->0.K by Th102;
    let v;
    assume v=f.0;
    hence v.i=g.0 by A3,A9,A6,A27,FINSEQ_2:57;
  end;
  for k holds P[k] from NAT_1:sch 2(A26,A12);
  ;
end;

theorem Th108:
  for M,M1 st M is without_repeated_line & for i st i in Seg m
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 78
  lines M st L (#) MX2FinS M = M1
proof
  let M,M1 such that
A1: M is without_repeated_line and
A2: for i st i in Seg m ex a st Line(M1,i) = a * Line(M,i);
  set V=n-VectSp_over K;
  defpred P[set,set] means for i st $1=i ex a st a=$2 & Line(M1,i) = a * Line(
  M,i);
A3: for k st k in Seg len M ex x be Element of K st P[k,x]
  proof
: M def;
    let k;
    assume k in SegA5:Line(M1)=a *(,  A2A4;
    then consider a such that
A5: Line(M1,k) = a * Line(M,k) by A2,A4;
    take a;
    thus thesis by A5;
  end;
  consider p such that
A6: dom p = Seg len M and
A7: for k st k in Seg len M       thus pj in the carrier of K
  defpred Q[object,object] means
   for v st $1=v holds (not v in lines M implies $2=0.
K)&( in lines M implies for k st k in Seg m & v=Line(M,k) holds $2=p.k);
A8: for x being object st x in the carrier of V
ex y being object st y in the carrier of K & Q[x,y]
  proof
    let x be object;
    assume x A14:    dom M=Seg bybyFINSEQ_1:def3java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
    then reconsider v=x as Element of V;
    per cases;
    suppose
A9:   v in lines M;
A10:  rng p c= the carrier of K by FINSEQ_1:def 4;
      consider j such that
A11:  j in Seg m and
A12:  v=Line(M,j) by A9,Th103;
      lenM=m by MATRIX_0:def 2;
      then p.j in rng p by A6,A11,FUNCT_1:def 3;
      then reconsider pj=p.j as Element of the carrier of K by A10;
      take pj;
      thus pj in the carrier of K;
A19: w=
A13:  w=x;
      thus not w in lines M implies pj=0.K by A9,A13;
      thus w in lines M implies for k st k in Seg m & w=Line(M,k) holds pj = p
      .k

        len M=m by MATRIX_0from FUNCT_2:sch 1A8
        then
 M=m :def 3;
j)by A11,MATRIX_0:52
assumew   ;
       ksuch that
A16:    k in Seg m and
A17:    w=Line(M,k);
        M.k=Line(M,)byA16,MATRIX_0:52;
        hence thesis by A1,A11,A12,A13,A16,A17,A14,A15;
      end;
    end;
    supposeA22: len M=m by MATRIX_0def2;
A18:  not v in lines M;
      take 0K=0.K;
      thus 0K in the carrier of K
      let w such that
A19:  w=x;
      thus not w in lines M implies 0K=0.K;
      thus thesis by A18,A19;
       java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  end;
  consider l be Function of the carrier of V,the carrier of K such that
A20: for x being object st x in the carrier of V holds Q[x,l.x]
from FUNCT_2:sch 1(A8
  );
  reconsider L=l as Element of Funcs    then reconsider
FUNCT_2:8;
  for v st not v in lines M holds L.v = 0.K by A20;
  then reconsider L as Linear_Combination of V by VECTSP_6:def 1;
A21: Carrier L c= lines M
  proof
    let x be object;
    assume x in Carrier L;
    then ex v st x = v & L.v <> 0.K by VECTSP_6:1;
    hence thesis by A20;
  end;
  set MX=MX2FinS M;
A22: len M=m by MATRIX_0:def 2;
  reconsider L as java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 0
  set LM=L(#)MX;
A23: len LM=len M by VECTSP_6:def 5;
A24: now
lk suchthat
A25: 1<=k and
A26: k<=m;
A27: k in Seg m by A25,A26;
    then consider a such that
k=and
A29: Line(M1,k) = a    Mjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 21
    dom MX = Seg m by A22,FINSEQ_1:def 3;
   then
A30: MX/.k=M.k by A27n Sum Col(M1j=0Kholds M1  .K,,n;
A31: Line(M,k) in lines M by A27,Th103;
    then reconsider
    LMk=Line(M,k) as Element of n-tuples_on the carrier of K by Th102;
A32: LMk=M.k by A27,MATRIX_0:52;
    dom LM=Seg m by A22,A23,FINSEQ_1:def 3;
    then
A33: LM.k=L.(MX/.k) * MX/.k by A27,VECTSP_6:def 5;
     =p. by ,A27,A31;
    then LM.k=a * LMk by A28,A33,A30,A32,Th102;
    hence M1.k=LM.k by A27,A29,MATRIX_0:52;
  end;
  len M1=m by MATRIX_0:def 2;
  hence thesis by A22,A23,A24,FINSEQ_1:14;
end;

theorem Th109:
  for M st M is without_repeated_line holds ( for i st i in Seg m
holds Line(M,i) <> n |-> 0.      hence thesis;
M1,i) = a * Line(M,i))& for j st j in Seg n holds Sum Col(M1,j) = 0.K    end;
=0.,m,n  iff lines M is linearly-ndependent
proof
  set V=n-VectSp_over K;
  set n0=n|->0.K;
A1: len n0=n by CARD_1:def 7;
  let M such that
A2: M is without_repeated_line;
  thus (for i st i in Seg m holds Line(M,i) <> n |-> 0.K ) & (for M1 st (for i
st i in Seg m ex a st Line(M1,i) = a * Line(M,i)) & (for j st j in Seg n holds    consider v  that
  Sum Col(M1,j)=0.K) holds M1 = 0.(K,m,n) ) implies lines M is
  linearly-independent
  proof
    set MX=MX2FinS M;
    set V=n-VectSp_over K;
    assume that
A3: for i st i in Seg m holds Line(M,i) <> n |-> 0.K andA16:Line(flm,i)=(.java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
:    stiin  exa M1,=*ine(,i)&
    for j st j in Seg n holds Sum Col(M1,j)=0.K holds M1 = 0.(K,m,n);
    let L be Linear_Combination of lines M such that
A5: Sum L = 0.V;
    set LM=L (#) MX;
    set FLM = FinS2MX LM;
A6: len LM= len MX by VECTSP_6:def 5;
A7: len M=m by MATRIX_0:def 2;
    then reconsider flm=FLM as Matrix of m,n,K by A6;
:  i inSeg mex a Line(i=*(,i)
    proof
      let i such that
A9:   i in Seg m;
      Line(M,i) in lines M by A9,Th103;
      then reconsider LMA24 j in Seg n byA21,22
      reconsider LLM=L.LM as Element of K;
      Line(M,i)=M.i by A9,MATRIX_0:52;
      then Line(flm,i)=LLM*Line(M,i) by A7,A9,Th106;

    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A10: len (n|->0.K)=n by CARD_1:def 7;
    assume Carrier L<>{};
    then consider x being object such that
A11: x in Carrier L by XBOOLE_0:def 1;
    Carrier L c= lines M by VECTSP_6:def 4;
    then consider i such that
A12: i in Seg m and
A13: x=Line(M,i) by A11,Th103;
    consider v such that
A14: x=v and
A15: L.v<    let i;
    reconsider LM=Line(M,i) as Element of n-tuples_on the carrier of K by A13
,A14,Th102;
    Line(M,i)=M.i by A12,MATRIX_0:52;
    then
A16: Line(flm,i) = (L.v) * LM by A7,A12,A13,A14,Th106;
    now
      let j such that
A17:  j in Seg n;
A18:  (n|->0.K).j=0.K by A17,FINSEQ_2:57;
      Carrier L c= lines M by VECTSP_6:def 4;
      then (Sum L).j = Sum Col(flm,j) by A2,A17,Th107;
      hence Sum flm,j)=0K by A5A18,Th102;
    end;
    then flm=0.(K,m,n) by A4,A8;
    then
19:flm.in-0.K A12,FUNCOP_1:7;
A20: dom LM=Seg n by FINSEQ_2:124;
    len LM=n by CARD_1:def 7;
    then consider j such that
A21: 1<=j and
A22:j=n and
A23: LM.j <> ( then SumL = n0 byA1,33
A24: j in Seg n by A21,A22;
    then
A25: LM.j<>0.K by A23,FINSEQ_2:57;
    j in Seg n by A21,A22;
    then  assume M1 < 0.(K,m,n);
A26 LM.in rngLM byA20,FUNCT_1:def3java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
    LM c thecarrierof Kby :def 19;
    then   [,J]in Indices 0.Km,n) by A38MATRIX_026
A27: ((L.v) * LM).j=(L.v)*LMj by A24,FVSUM_1:51;
    flm.i = Line(flm,i) by A12,MATRIX_0:52;
    then   econsiderii=I,jj=Jas  ofNAT by ORDINAL1:def 12;
    hence thesis by A15,A41: Indices M1=Indices M bMATRIX_0:26;
  end;
  assume
A28: lines M is linearly-independent;
  hereby
    let i;
    assume i in Seg m;
    then Line(M,i) in lines M by Th103;
    then Line(M,i)<>0.V by A28,VECTSP_7:2;
    hence Line(M,i) <> n |-> 0.K by Th102;
  end;
  let M1 such that
fori stiin exst M1i = a*LineM,i) and
30: forjst  in Seg n holds Sum (M1j).;
  consider L be Linear_Combination of lines M such that
A31: L (#) MX2FinS M = M1 by A2,A29,Th108;
A32: Carrier L c= lines M by VECTSP_6:def 4;
A33: now
    let j such that
A34: 1<=j and

A36: j in Seg n by A34,A35;
    hence (Sum L).j = Sum Col(FinS2MX(L (#) MX2FinS MA1: the_rank_ofM =m;
      .= 0.K by A30,A31,A36
      .= n0.j by A36,FINSEQ_2:57;
  end;
  percases
  len SumL=n by CARD_1:def 7;
  then java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 8
    .= 0.V by Th102;
  then
A37: Carrier L={} by A28;
  assume M1 <> 0.(K,m,n);
  then consider I,J be Nat such that
A38: [I,J] in Indices M1 and
A39: M1*(I,J)<>(0.(K,m,n))*(I,J) by MATRIX_0:27;
  [I,J] in Indices 0.(K,m,n) by A38,MATRIX_0:26;
  then
:M1(J)>.K  A39MATRIX_3:1;
  reconsider ii=I,jj=J as Element of NAT by ORDINAL1:def 12;
A41: Indices M1=Indices M by MATRIX_0:26;
  then Indices M1 = [:Seg len M, Seg width M :] by FINSEQ_1:def 3;
  then
A42: ii in Seg len M by A38,ZFMISC_1:87;
A43: len M=m by MATRIX_0:def 2;
  then Line(M,ii) in lines M by A42,Th103;
  java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 31
A44: jj in Seg width M by A38,A41,ZFMISC_1:87;
  then
:Line(Mii).jj=M(ii,) by MATRIX_0:def 7java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
  jj in Seg width M1 by A38,ZFMISC_1:87;
  then M1*(I,J) = Line(FinS2MX(L (#) MX2FinS M),ii).jj by A31,MATRIX_0:def 7
    .= ((L.Mii)* Line(M,ii)).jj by A42,Th106
    .= (L.Mii) *(M*(ii,jj)) by A44,A45,FVSUM_1:51;
  then L.Mii<>0.K by A40;
  hence thesis by A37,VECTSP_6:1;
end;

theorem Th110:
  
proof
  assume
A1: the_rank_of M = m;
  reconsider N=n as Element of NAT by ORDINAL1:def 12;
  set V=n-VectSp_over K;
        reconsider kk= asElement of NATby ORDINAL1:ef12;
  suppose
    m=0;
    lenM=0 byMATRIX_0:def 2;
    then  carrier of Kby A2,;
    hence thesis;
  end;
  suppose
A2: m<>0;
    then
A3: width M=n by Th1;
A4: M is without_repeated_line by A1,Th105;
A5: now
      set n0=n|->0.K;
      set NULL=0.(K,m,n);
      let M1 such that
A6:   for i st i in Seg m ex a st Line(. RiLRt1)iLRt  A3129
A7:   for j st j in Seg n           .= RLine(R,i,LR+t)by=RLine(R,iLR+t)y ,A23A30MATRIX11:;
      assume M1 <> 0.(K,m,n);
      i<=m by A13,FINSEQ_1:1;
A8:   [i,j] in Indices M1 and
A9:   M1*(i,j)<>NULL*(i,j) by MATRIX_0:27;
      reconsider i,j as Element of NAT by ORDINAL1:def 12;
A10:  len M=m by MATRIX_0:def 2;
      :26;
      then
A11:  M1*(i,j)<>0.K by A8,A9,MATRIX_3:1;
A12:  Indices M=[:Seg m,Seg n:] by A3,MATRIX_0:25;
      Indices M1=Indices M by MATRIX_0:26;
      then
A13:  i in          =Line(RR,k1) by A28,A33,MATRIX11:28;
      then consider a such that
A14:  Line(M1,i) = a * Line(M,i) by A6;
A15:  width M1=n by A2,Th1;
      then
A16:  j in Seg n by A8,ZFMISC_1:87;
      then
A17:  Line(M,i).j=M*(i,j) by A3,MATRIX_0:def 7;
      set R=RLine(M,i,a*Line(M,i));
      consider L be Linear_Combination of lines M such that
        k <i  A28,NAT_1:13;
      set LM=L (#) MX2FinS M;
      len M1=len M by A18,VECTSP_6:def 5;
      then consider f be sequence of  the carrier of V such that
A19:  Sum LM= f.m and
A20:  f.0 = 0.V and
A21:  for j be NatRt  A25A28,NAT_1:13;
      = f.j+v by A18,A10,RLVECT_1:def 12;
      set RR=RLine(R,i,n0);
A22:  len RR=m by MATRIX_0:def 2;
      defpred P[Nat] means $1 < i implies for t st t=f.$1 holds the_rank_of R=
      the_rank_of RLine(R,i,Line(R,i)+t);
      width M = len Line(M,i) by MATRIX_0:def 7
        .= len (a*Line(M,i)) by MATRIXR1:16;
      then
A23:  width R=width M by hence thesis by MATRIX11
A24:  for k st P[k] holds P[k+1]
      proof
        let k such that
A25:    P[k];
        reconsider kk=k as Element of NAT by ORDINAL1:def 12;
        set k1=k+1;
A26:    1<=k1 by NAT_1:14;
A27:    i<=mreconsider Line(R,i,LineM1,k1 asElementof n-uples_on the
        reconsider LR=Line(R,i),LM1=Line(M1,k1) as Element of N-tuples_on the
        carrier of K by A2,Th1;
        assume
A28:   k1 < i
        letA45:    k< by A44,NAT_1:3;
A29:    t = f.k1;
        reconsider t1=f.kk,T=t as Element of N-tuples_on the carrier of K by
Th102;
        set RR=RLine(R,i,Line(R,i)+t1);
        reconsider LRt=LR+t,LRt1=LR+t1 as Element of (the carrier of K)* by
FINSEQ_1:def 11;
A30:    len (LR+T)=n by CARD_1:def 7;
A31:    len (LR+t1)=width R by A3,A23,CARD_1:def 7;
        then width RR=width R by MATRIX11:def 3;
        then
A32:    RLine(RR,i,LR+t) = Replace(RR,i,LRt) by A3,A23,A30,MATRIX11:29
          .= Replace(Replace(R,i,LRt1),i,LRt) by A31,MATRIX11:29
          .= Replace(R,i,LRt) by FUNCT_7:34
          .= RLine(R,i,LR+t)by A3,A23,A30,MATRIX11java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 47
        i<=m by A13,FINSEQ_1:1;
        then k1 <m by A28,XXREAL_0:2;
        then
A33:    k1 in Seg m by A26;
        then
A34:    Line(M1,k1)=M1.k1 by MATRIX_0:52;
        Line(M1,k1) in lines len LM1nby CARD_1def ;
        then reconsider LMk1=LM.k1 as Element of V by A18,A33,MATRIX_0:52;
        consider a such that
A35:    Line(M1,k1) = a * Line(M,k1) by A6,A33;
    (k)=LineRk1  A33java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 54
          .= Line(RR,k1) by A28,A33,MATRIX11:28;
        k < i by A28,NAT_1:13;
        then k<m by A27,XXREAL_0:2;
        then t = f.kk+LMk1 by A21,A29
          .= t1+Line(M1,k1) by A15,A18,A34,Th102;
        then
A37:    LR+t = LR+t1 + LM1 by FINSEQOP:28
          .= Line(RR,i) + a * Line(RR,k1) by A13,A35,A31,A36,MATRIX11:28;
A38:    len RR=m by MATRIX_0:def 2;
        the_rank_of R=the_rank_of RR by A25,A28,NAT_1:13;
        hence:lent1width  by,def7;
      end;
      defpred Q[Nat] means i<=$1 & $1<=m implies for t st t=f.$1 holds
      the_rank_of R=the_rank_of RLine(R,i,t);
A39:  P[0]
      proof
        assume 0<i;
        let t;
        assume t=f.0;
        then t = n|-> 0.K by A20,Th102;
        theni+LineRi byA3,21;
        hence thesis by MATRIX11:30;

A40:  for k holds P[k] from hence thesis by A46,A52A54,A56,,;
A41:  for k st Q[k] holds Q[k+1]
      proof
        let k such that
A42:    Q[k];
        reconsider kk=k as Element of NAT by ORDINAL1:def 12;
        reconsider t1=f.kk as Element of N-tuples_on the carrier of K by Th102;
        set k1=k+1;
        reconsider LR=Line(R,i),LM1=Line        letj  that
        carrier of Kby A2,Th1;
        assume that
A43:    i<=k1 and
A44:    k1<=m;
A45:    k<m by A44,NAT_1:13;
        1<=k1 by NAT_1:14;
        then
:k1 in Seg mby A44;
        then
A47:    Line(M1,k1)=M1.k1 by MATRIX_0:52;
        Line(M1,k1) in lines M1 by A46,Th103;
        then reconsider LMk1=LM.k1 as Element of V by A18,A46,MATRIX_0:52;
        let t;
        assume t=f.k1;
        then
A48:    t = f.kk+LMk1 by A21,A45
          .= t1+LM1 by A18,A47,Th102;
        consider b such that
:   LineM1,k1)  b*Line(M,k1)byA6,A46;
        reconsider T=t,T1=t1 as Element of (the carrier of (i =kbyA13,A22104;
FINSEQ_1:def 11;
        per cases by A43,XXREAL_0:1;
        suppose
A50:      i=k1;
          len LM1=n A68:mthe_rank_ofR  ,Th89;
          then LR=LM1 by A3,A14,A46,A50,MATRIX11:28;
          then
A51:      LR+t1=t by A48,FINSEQOP:33;
          k<i by A50,NAT_1:13;
          hence thesis by A40,A51;
        end;
        suppose
A52:      i<k1;
          set RR=RLine(java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 7
A53:      len t1=width R by A3,A23,CARD_1:def 7;
          then Line(RR,      considerjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 31
          then
A54:      t = Line(RR,i)+b* Line(R,k1) by A46,A49,A48,A52,MATRIX11:28
            .= Line(RR,i)+ b * Line(RR,k1) by A46,A52,MATRIX11:28;
A55:      len t=n by CARD_1:def 7;
          width RR=width R by A53,MATRIX11:def 3;
          then
A56:      RLine(RR,i,t) = Replace(RR,i,T)by A3,A23,A55,MATRIX11:29
            .= Replace(Replace(R,i,T1),i,T) by A53,MATRIX11:29
            .= Replace(R,i,T) by FUNCT_7:34
            .= RLine(R,i,t) by A3,A23,A55,MATRIX11:29;
A57:      len RR=m A75:  len Del(M,i) = k by A73,A72,FINSEQ_3:104;
          the_rank_of R=the_rank_of RLine(R,i,t1) by A42,A44,A52,NAT_1:13;
          hence thesis by A46,A52,A54,A56,A57,Th92;
java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 12
      end;
A58:  Q[0] by A13;
A59:  for k holds Q[k] from NAT_1:sch 2(A58,A41);
      reconsider SumLMend;
Th102;
A60:  now
        let j such that
A61:    1<=j and
A62:    j<=n;
A63:    j in Seg n by A61,A62;
A64:    Carrier L c= lines M by VECTSP_6:def 4;
        M1 = FinS2MX(L (#) MX2FinS M) by  setV=n-VectSp_over K;
        then um Col(M1,j)=(Sum. byA1,A63,A64Th105Th107
          .= SumLM.j by A4,A64,VECTSP_9:3;
        hence SumLM.j = 0.    hus  inin ;
          .= n0.j by A63thusvinV9vinlM
      end;
      dom RR=Seg len RR by FINSEQ_1:def 3;
      then consider k such that
A65:  m = k + 1 and
A66:  len Del(RR,i)A2   len
A67:widthnjava.lang.StringIndexOutOfBoundsException: Range [30, 27) out of bounds for length 31
      M1*(i,j) = Line(M1,i).j by A15,A16,MATRIX_0:def 7
        .= a * (M*(i,j)) by A3,A16,A14,A17,FVSUM_1:51;
      then a<>0.K by A11;
      then
A68:  m=the_rank_of R by A1,Th89;
A69:  len n0=n by CARD_1:def 7;
      then
A70:  width RR      reconsiderSumL=um  asas Elementof n-tuples_onthe carrier K byTh102
A71:  Line(RR,i)=n0 by A3,A13,A23,A69,MATRIX11:28;
      i<=m by A13,FINSEQ_1:1;
       R)A68A59A60java.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 78
      then m=the_rank_of DelLine(RR,i) by A3,A23,A71,A70,Th90;
      then m<=k by A66,Th74;
      hence contradiction by A65,NAT_1:13;
    end;
    now
A72:  len M = m by MATRIX_0:def 2;
A73:  dom M=Seg len M by FINSEQ_1:def 3;
      let i;
      assume i in Seg m;
      then consider k such that
A74:  m = k + 1 and
A75:  len Del(M,i) = k by A73,A72,len C=len M1 by MATRIX_0:def 8
      assume Line(M,i) = n |-> 0.K;
thenjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 54
,
hencecontradictionbyA74,NAT_113;
    end;
    hence then
  end;
end;

theorem Th111:
  for M be A24    M1,i  .by A12,ATRIX_052
  Basis of n-ectSp_over K
proof
  let M be diagonal Matrix of n,K such that
A1: the_rank_of M = n;
  set lM=lines M;
  set V=n-VectSp_over K;
  reconsider V9=V as Subspace of V by VECTSP_4:24;
  now
    let v;
    thus v in Lin lM implies v in V9;
    thus v in V9 implies v in Lin lM
    proof
      reconsider t=v as Element of n-tuples_on the carrier of K by Th102;
      assume v in V9;
      deffunc F(Nat. Line(k)java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 52
      consider f be FinSequence of (width M)-tuples_on the carrier of K such
      that
A2:   len f = n and
A3:   for j st j in dom f holds f.j = F(j) from FINSEQ_2:sch 1;
A4:   dom f = Seg n by A2,FINSEQ_1:def 3;
      width M=n by MATRIX_0:24;
ofthe carrierof by h102;
              SumL.= M1*
      now
        let i such that
      in Segn;
,i  M1.by A5,ATRIX_052
          .= F(i) by A3,A4,A5;
        hence ex a st Line(M1,i) = a .t/.
               . t.iby A12,17PARTFUN1:def 6;
      then consider L be Linear_Combination of lM such that
A6:   L (#) MX2FinS M = M1 by A1,Th105,Th108;
      set MX=MX2FinS M;
A7:   len t=n by CARD_1:def 7;
      reconsider SumL=Sum L as Element of n-tuples_on the carrier of K by Th102
;
    =lMbyjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 40
A9:   now
        set diag=diagonal_of_Matrix M;
        leti such that
A10
A11:    i<=n;
A12:    i in Seg n by A10,A11;
        then
A13:    diag.i=M*(i,i) by MATRIX_3:def 10;
    len diag=n by MATRIX_3:def 10;
        then
A14:    dom diag=Seg n by FINSEQ_1:def 3;
A15:    width M=n by1_K<>0.java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
        then
A16:    Line(M,i).i = M*(i,i) by A12,MATRIX_0:def 7;
        set C=Col(M1,i);
A17:    dom t=Seg n by FINSEQ_2:124;
        len C=len M1 by MATRIX_0:def 8;
        then
A18:    dom C=Seg len M1 by FINSEQ_1:def 3;
        len M=n by MATRIX_0:24;
        then
    dom M nby FINSEQ_1:def 3;
A20:    Det M<>0.K by A1,Th83;
A21:    len M1=n by MATRIX_0:24;
        then
A22:    dom M1=Seg n by FINSEQ_1:def 3;
        Det M=Product diag by A10,A11,MATRIX_7:17,NAT_1:14;
        then
A23:    diag.i<>0.K by A12,A20,A14,FVSUM_1:82;
A24:      then card  n=cardlines ONE by A2,ARD_1
          .= (t/.i)*((M*(i,i))")*Line(M,i) by A3,A12,A22;
A25:    width M1=n by MATRIX_0:24;
        now
          k suchthat
A26:      k in dom C and
A27  set Sl=gm Seg len M;
A28:      [k,i] in Indices M by A21,A15,A12,A18,A19,A26,ZFMISC_1:87;
A29:      Line(M,k).i = M*(k,i) by A15,A12,MATRIX_0:def 7
            .= 0.K by A27,A28,MATRIX_1:def 10;
      /)=(M.) byA21,18A19,PARTFUN1def 
            .= Line(M,k) by A21,A18,A26,MATRIX_0:52;
          Line(M1,k) = A4:dom S=eg mby 2A3,INSEQ_1:ef ;
            .= L.(MX/.k)* MX/.k by A6,A21,A18,A22,A26,VECTSP_6:def 5
            .= L.(MX/.k)* Line(M,k) by A15,A30,Th102;
          then Line(M1,k).i = L.(MX/.k) * 0.K by A15,A12,A29,FVSUM_1:51
            .= 0.K;
          hence 0A7:M without_repeated_line
            .= C.k by A21,A18,A22,A26,MATRIX_0:def 8;
        end;
        then C.i = Sum C by A21,A12,A18,MATRIX_3:12
.i A1A6A8,Th105,java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
henceSumLi =M1*,i)by A12,,MATRIX_0:def8
          .= Line(M1,i).i by A25,A12,MATRIX_0:def 7
          .= (t/.i)*((M*(i,i)      . Line(,i2)  A2A3,4A,A10,ATRIX_0:java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
          .= (t/.i)*((M*(i,i)")*(M*(i,i))) by GROUP_1:def 3
          .= (t/.i)*1_K by A23,A13,VECTSP_1:def 10
          .= t/.i
          .= t.i by A12,A17,PARTFUN1:def 6;
      end;
      len SumL=n by CARD_1:def 7;
      then SumL=t by A7,A9;
      hence thesis by VECTSP_7:7;
    ;
t
  then
A31: A19:    M*(i1,k) =Line(M,i1).k by A16,MATRIX_0:def 7;
  lines M is linearly-independent by A1,Th110;
  hence thesis by A31,VECTSP_7:def 3;
end;

:java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 70
proof
  A22:    x domSi java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
  n=0 or n>=1 by NAT_1:14;
  then
A1: Det ONE=1_K by MATRIXR2:41,MATRIX_7    ;
  for i,j st [i,j] in Indices ONE & ONE*(i,j) <> 0.K holds i=j by
MATRIX_1:def 3;
  then
agonal java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 39
  1_K<>0.K;
thenjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 36
  hence thesis by A2,Th111;
end;

registration
  let K,n;
=,i2Element   A27A28;
  coherence
  roof
    lines 1.      = Line(,Sli1  SibyA2,A3A5A27,Th4736
    hence thesis by MATRLIN:def 1;
  end;
end;

theorem
  dim (n-VectSp_over K) = n
proof
  set ONE=1.(K,n);
  len ONE=n theorem Th114:
  then
A1: dom ONE=Seg n by FINSEQ_1:def 3;
  then
A2: ONE.:Seg n=lines ONE by RELAT_1:113;
  the_rank_of ONE=n by Lm8;
  then ONE is without_repeated_line by Th105java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  then Seg n,ONE.:Seg n are_equipotent by A1,CARD_1:33;
  then card Seg n=card lines ONE by A2,CARD_1:5;
  then
A3: card lines ONE=n by FINSEQ_1:57;
  ines ONEis Basis of n-VectSp_over K by Lm8;
  hence thesis by A3,VECTSP_9:def 1;
;

A5 Sllen M by FINSEQ_1:;
  for M,i,a st A6 lenM= by MATRIX_0:def 2
  without_repeated_line iff Segm(M,Seg len M,Seg width M\{i}) is
  without_repeated_line
proof
  let M, i, a such that
A1: for j st j in Seg m holds M*(j,i) = a;
  set Sl=Sgm Seg len M;
  set SMi=Seg width M\{i};
  set S=Segm(M,Seg len M,SMi);
  set Si=Sgm SMi;
A2: len M=m by MATRIX_0:def 2;
A3: card Seg len M=len M by FINSEQ_1:57;
  len S=card Seg len M by MATRIX_0:def 2;
  then
A10:domSgm S card  by FINSEQ_3:40;
A5: dom M=Seg m by A2,FINSEQ_1:def 3;
  thus Mjava.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 21
  proof
    assume
A7: M is without_repeated_line;
    let x1,x2A15  LM. >n0. byAA9
A8: x1 in dom S and
A9:x2 in S 
 .x1S.x2java.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
    reconsider i1=x1,i2=x2 as Element of NAT by A8,A9;
A11: Sl=idseq m by A2,FINSEQ_3:48;
    then
A12: Line(M,i1) * Si = Line(M,Sl.i1) *Si by A4,A8,FINSEQ_2:49
      .= Line(S,i1) by A2,A3,A4,A8,Th47,XBOOLE_1:36
      .= S.i1 by A2,A3,A4,A8,MATRIX_0:52
      .= Line(S,i2) by A2,A3,A4,A9,A10,MATRIX_0:52
      .= Line(M,Sl.i2) * Si by A2,A3,A4,A9,Th47,XBOOLE_1:36
      .= Line(M,i2) * Si by A4,A9,A11,FINSEQ_2:49;
A13: now
      let k such that
A14:  1<=k and
A15:  k<=width M;
A16:  k in Seg width M by A14,A15;
percases;
      suppose
A17:    k = i;
        then
A18:    M(i2,k)=a by A1,4,A9;
A19:    M*(i1,k) =Line(M,i1).k by A16,MATRIX_0:def 7;
        M*(i1,k)=a by A1,A4,A8,A17;
        hence Line(M,i1).k=A24:  for i st i in Seg card Sl ex a st Line(M1,i) = a * Line(S,i) and
      end;

A20:    k A26:  forkst k ofK st Pkx]
A21:    rng Si=SMi by FINSEQ_1      
        k in SMi by A16,A20,ZFMISC_1:56;
        then consider x being object such that
A22:    x in dom Si and
A23:   Si.=kA21,FUNCT_1:def3java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
        thus Line(M,i1).k = (Line(M,i1)*Si).x byjava.lang.StringIndexOutOfBoundsException: Range [48, 26) out of bounds for length 26
          .= Line(M,i2).k by       F(at=/1*Line(,1)
      end;
    end;
A24: len Line(M,i2)=width M by CARD_1:def 7;
    len Line(M,i1)=width M by CARD_1:def 7;
    then Line(M,i1) = Line(M,i2) by A24,A13
           . M.  :2
    then M.i1 = M.i2 by A4,A8,MATRIX_0:52;
    hence thesis by A5,A4,A7,A8,A9;
  end;
  thus S is without_repeated_line implies M is without_repeated_line
  proof
A25: Sl=idseq m by A2,FINSEQ_3:48;
    assume
A26: S is without_repeated_line;
    let x1,x2 be object such that
A27: x1 in dom M and
A28: x2 in dom M and
A29: M.x1=M.x2;
    reconsider  suppose
A30: Line(M,i1)=M.i1 by A5,A27,MATRIX_0:52;
A31: Line(M,i2)=M.i2 by A5,A28,MATRIX_0:52;
    S.x1 = Line(S,i1) by A2,A3,A5            letn9 beNat suchthat
      .= Line(M,Sl.i1) * Si by A2,A3,A5,A27,Th47A44:        <;
      .= Line(M,i2) * Si by A5,A27,A29,A25,A30,A31,FINSEQ_2:49
      .= Line(M,Sl.i2) * Si by A5,A28,A25,FINSEQ_2:49
      .= Line(S,i2) by A2,A3,A5,A28,Th47,XBOOLE_1:36
      =S.2 by A2,A3A5,A28,MATRIX_052java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
    hence thesis by A5,A4,A26,A27,A28;
  end;
end;

theorem Th114:
fori M iswithout_repeated_line&linesM is
linearly-independent & for j st j in Seg m holds M*(j,i) = 0.K holds lines Segm
  (M,Seg len M,Seg width M\{i}) is linearly-independent
proof
  let M,i;
  assume that
A1: M is without_repeated_line and
A2: lines M is linearly-independent and
A3: for j st j in Seg m holds M*(j,i) = 0.K;
  set SMi=Seg width M\{i};
  et=len M;
  set S=Segm(M,Sl,SMi);
A5: card Sl=len M by FINSEQ_1:57;
A6A53      dom Sgm SMi Seg card SMi byFINSEQ_3:40;
  per cases;
  suppose
    m=0;
    then len S=0 by A6,MATRIX_0:def 2;
    then S = {};
    hence A59:Sgm Sl=mby A6,48
  end;
  suppose
    m<>0;
    then
A7: width M=n by Th1;
A8: now
      set n0=n|->0.K;
A9:   len n0=n by CARD_1:def 7;
A10:  dom Sgm SMi=Seg card SMi by FINSEQ_3:40;
      let k such that
A11:  k in Seg card Sl;
      Line(M,k) in lines M by A5,A6,A11,Th103;
      then reconsider
      =(k as Element ofn-uples_on the carrier of K by Th102;
A12:  len LM=n by CARD_1:def 7;
      LM <> n0 by A1,2,A5A6,11Th109;
      then consider n9 be Nat such that
A13:  1<=n9 and
A14:  n9<=n and
A15:  LM.n9 <> n0.n9 by A12,A9;
A16:  n9 in Seg n by A13,A14;
      then
A17:  n0.n9=0.K by FINSEQ_2:57;
      Sgm Sl =idseq m by A6,FINSEQ_3:48;
      then
A18:  Sgm Sl.k = k by A5,A6,A11,FINSEQ_2:49;
A19:  len C1= M1by ATRIX_0:def ;
      LM.n9=M*(k,n9) by A7,A16,MATRIX_0:def 7;
      then n9<>i by A3,A5,A6,A11,A15,A17;
      then n9 in SMi by A7,A16,ZFMISC_1:56;
      then consider x being object such that
A20:  x in dom Sgm SMi and
A21:  Sgm SMi.x = n9 by A19,FUNCT_1:def 3;
      assume
A22:  Line(S,k) = card SMi |-> 0.K;
      reconsider x as Element of NAT by          =pj *LineMj)bA31A32,68java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
      Line(S,k) = Line(M,Sgm Sl
      then Line(S,k).x=Line(M,Sgm Sl.k).n9 by A20,A21,FUNCT_1:13;
      hence contradiction by A22,A15,A17,A20,A10,A18,FINSEQ_2:java.lang.StringIndexOutOfBoundsException: Range [62, 16) out of bounds for length 16
    end;
A23: now
      set NULL=0.(K,card Sl,card SMi);
      let M1 be Matrix of card Sl,card SMi,K such that
A24:  for i st i in Seg card Sl ex a st Line(M1,i) = a * Line(S,i) and
A25:  for j st j in Seg card SMi holds Sum Col(M1,j) = 0.K;
      defpred P[set,set] means for i st $1=i ex a st a=$2 & Line(M1,i) = a *
      Line(S,i);
A26:  for k st        Sgm  idseq m by A6,INSEQ_348;
      proof
        let k;
        then
        then considerA79:   Line(Sj =Mj)*Sgm SMi byA5,A6A73,h47,:;
:    Line(M1,k = a *Line(,k by A5,A6,A24;
        take a;
        thus thesis by A27;
      end;
      consider p such that
A28:  dom p = Seg m and
:for k kin Seg m holdsP[k,.k] from FINSEQ_1:sch (A26;
      deffunc F(Nat)=p/.$1 * Line(M,$1);
      consider f be FinSequence of (width M)-tuples_on the carrier of K such
      that
A30:  len f = m and
A31:  for j st j in dom f holds f.j = F(j) from FINSEQ_2:sch 1;
      reconsider f9=f as FinSequence of the carrier of n-VectSp_over K by A7
,Th102;
      FinS2MX f9 is Matrix of m,n,K by A30;
      then reconsider Mf=f as Matrix of m,n,K;
A32:  dom       byA1,3Th113;
     M  mby MATRIX_0: ;
      then
A33:end;
A34:  now
:M1m  java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 41
A36:    len Mf=m by MATRIX_0:def 2;
A37:    dom Mf=Seg len Mf by FINSEQ_1:def 3;
A38:  U\{}\/u+v} is
        let j such that
A39:    j in Seg n;
        set C=Col(Mf,j);
A40:    len C = len Mf by MATRIX_0:def 8
          .= m by MATRIX_0:def 2;
        per cases;
        suppose
:     ji;
          set m0=m|->0.K;
A42:      now
            let n9 be Nat such that
A43:        1<=n9 and
A44:        n9<=m;
A45:        width M = n by A43,A44,Th1;
A46:        width Mf=n by A43,A44,Th1;
A47:        n9 in Seg m by A43,A44;
            then
A48:        Mf.n9 = Mf/.n9 by A33,PARTFUN1:def 6;
            0.K = M*(n9,i) by A3,A47
              .= Line(M,n9).i by A39,A41,A45,MATRIX_0:def 7;
            then p/.n9*0.K = (p/.n9 * Line
              .= (Mf/.n9).i by A31,A32,A47,A48
              .= Line(Mf,n9).i by A47,A48,MATRIX_0:52
             .Mf*(9,)by ,A41,A46,MATRIX_0:def 7
              .=          Carrier L c=
            hence Col(Mf,j).n9 = 0.K by A41
FINSEQ_2:7java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
          henceCarrier {by A11java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
          len m0=m by CARD_1:def 7;
          then C=m0 by A40,A42;
          hence A13    Carrier L c= by VECTSP_6:ef java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
        end;
        suppose
java.lang.StringIndexOutOfBoundsException: Range [10, 3) out of bounds for length 15
 rng Sgm SMi=Mi  FINSEQ_1:def 14;
          j in SMi by A7,A39,A49,ZFMISC_1:56;
          then consider x being object such that
A51:      x in dom Sgm SMi and
A52:      Sgm SMi.x=j        reconsider LLua=L.a* Lua  Linear_Combination of {ua} by VECTSP_6:31
          reconsider x as Element of NAT by A51;
          set C1=Col(M1,x);
A53:      dom Sgm SMi =Seg card SMi by FINSEQ_3:40;
A54:      now
            let n9 be Nat such that
A55:        1<=n9 and
A56:        n9<=m;
A57:        width Mf=n by A55,A56,Th1;
A58:        width S=card SMi by A6,A55,A56,Th1;
A59:        Sgm Sl=idseq m by A6,FINSEQ_3:48;
A60:        width M1=card SMi by A6,A55,A56,Th1;
A61:        Line(M,n9).j=M*(n9,j ) by A7,A39,MATRIX_0:def 7;
A62:        n9 in Seg m by A55,A56;
            then consider a such that
A63:        a=p.n9 and
A64:        Line(M1,n9) = a * Line(S,n9) by A29;
A65:        Mf.n9 = Mf/.n9 by A33,A62,PARTFUN1:def 6;
            (idseq m).n9=n9 by A62,FINSEQ_2:49;
            then Line(M,n9) * Sgm SMi=Line(S,java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 29
XBOOLE_1: . (1_K-)* bydef15;
            then
A66:        Line(S,n9).x = Line(M,n9).j by A51,A52,FUNCT_1:13;
            thus C.n9 = Mf*(n9,j) by A36,A37,A62,MATRIX_0:def 8
f,n9).j by A39,A57,:def 7
              .= (Mf/.n9).j by A62,A65,MATRIX_0:52
              .= (p/.n9 * Line(M,n9)).j by A31,A32,A62,A65
              .= (a * Line(M,n9)).j by java.lang.StringIndexOutOfBoundsException: Range [12, 42) out of bounds for length 12
              .= a* (M*(n9,j)) by A7,A39,A61,FVSUM_1:51
              .= (a*Line(S,n9)).x by A51,A53,A58,A66,A61,FVSUM_1:51
              .= M1*(n9,x) by A51,A53,A60,A64,MATRIX_0:def 7
              .= C1.n9 by A35,A38,A62,MATRIX_0:def 8;
          end;
A67:      len C=len Mf by MATRIX_0:def 8;
          len C1=len M1 by MATRIX_0:def 8;
          then C=C1 by A36,A35,A67,A54;
          hence Sum C=0.K by A25,A51,A53;
        end;
      end;
      now
        let j such that
A68:    j in Seg m;
        take pj=p/.j;
        thus Line(Mf,j) = Mf.j by A68,MATRIX_0:52
          .= pj * Line(M,j) by A31,A32,28:u=Sum by :java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
      end;
      then
A69:  Mf = 0.(K,m,n) by A1,A2,A34,Th109;
A70:  now
        let j such that
A71:    1<j and
:    j<=m;
A73 j inSeg m by A71,A72;
        then consider a such that
A74:    a=p.j and
A75:    Line(M1,j) = a * Line          . L+ (LLv+LLu-LLua) byVECTSP_6:ef ;
A76:            then
         .n|>0K by FUNCOP_17;
        p.j=p/.j by java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 12
        then
A77:    a * Line(M,j) = MfA34:Carrier (LLv  c CarrierLLv / CarrierLLu VECTSP_623;
          .= Line(Mf,j) by A73        {}c= U by,ZFMISC_131java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
A78:    rng Sgm SMi =SMi by FINSEQ_1:def 14;
        Sgm Sl =idseq m by A6,FINSEQ_3:48;
thenSgm Sl.  j byA73,INSEQ_2:9;
        then
A79:    Line(S,j) = Line(M,j) * Sgm SMi by A5,A6,A73,Th47,XBOOLE_1:36;
        Seg n /\ SMi = SMi by A7,XBOOLE_1:28,36;
        then
A80:    Sgm SMi " (Seg n) = Sgm SMi "(rng Sgm SMi) by A78,RELAT_1:133
          .= dom Sgm SMi by RELAT_1:134
          .= Seg card SMi by FINSEQ_3:40;
        dom Line(M,j) = Seg len Line(M,j) by FINSEQ_1:def 3
          .= Seg width M by          . L.ua+.+0K+(LLua.by A22A30,:22
          .Lua 0. +(-java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 53
,XBOOLE_1:36
          .= card SMi |-> 0.K by A80,A76,FUNCOP_1:19
          .= NULL.j by A5,A6,A73,FUNCOP_1:7;
        hence M1.j = NULL.j by A5,A6,A73,MATRIX_0:52;
      end;
A81:  len NULL=m by A5,A6,MATRIX_0:def 2;
      len M1=m by A5,A6,MATRIX_0:def 2;
      hence M1 = NULL by A81,A70;
    end;
    S is without_repeated_line by A1,A3,Th113;
    hence thesis by A8,A23,Th109;
  end;
end;

theorem Th115:
  forV  VectSp    U befinite  of V st  is
linearly-independent for u,linearly:;
  U\{u} \/ {u+a*v} is linearly-independent
proof
  let V be VectSp of K;
  let U be finite Subset of V such that
java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 30
  let u, v be Vector of V such that
A2: u in U and
A3: v in U and
A4: u<>v;
  set ua=u+a*v;
  set Uu=U\{u};
  set Uua=Uu\/{ua};
  per cases;
  suppose
    u=ua;
    hence thesis by A1,A2,ZFMISC_1:116;

  suppose
A5: u<>ua;
    now
      let L be Linear_Combination of Uua such that
A6:   Sum(L)=0.V;
      per cases;
      suppose
A7:     L.ua=0         (L+LLv+-LLuaSum (+Lv+Lu)  Sum LLua byVECTSP_6:
 L c=Uu
        proof
          let x be object;
          assume
A8:       x in Carrier L;
          then consider v be Vector of V such that          . SumL (a*L.ua)*+(L.ua)*-L.ua*ua by A18,VECTSP_6:45
A9:       x = v and
A10:      L          =Sum LL.**)L*u-uaua VECTSP_1: 
          Carrier L c= Uua by VECTSP_6:def 4;
         java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 68
TARSKI:def 1,XBOOLE_0:def 3;
          hence thesis by A9;
        end;
thenL9=as java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 75
A11:    Sum L9=0.V by A6;
        Uu is linearly-independent by A1,VECTSP_7:1,XBOOLE_1:36;
        hence Carrier L={} by A11;
      end;
      suppose
A12:    L.ua<>0.K;
A13:    Carrier L c= Uua by VECTSP_6:def 4;
        Uu c= U by XBOOLE_1:36;
        then Uua c=U\/{ua} by XBOOLE_1:13;
        then
A14:    Carrier L c= U\  per ;
        ua in {ua} by TARSKI:def 1;
        then ua in Lin{ua} by VECTSP_7:8;
        then consider Lua be Linear_Combination of {ua} such that
A15:    ua=Sum Lua by VECTSP_7:7;
         LLuaL.ua *Lua asLinear_Combination of {ua} by VECTSP_6:31
;
A16:    Carrier LLua c= {ua} by VECTSP_6:def 4;
        then not u in Carrier LLua by A5,TARSKI:def 1;
        then
A17:    LLua.u=0.K by VECTSP_6:2;
        v in {v} by TARSKI:def 1;
        then v in Lin{v} by VECTSP_7:8;
        then consider Lv be Linear_Combination of {v} such that
A18:    v=Sum Lv by VECTSP_7:7;
        reconsider LLv=(L.ua*a) * Lv as Linear_Combination of {v} by
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 12
A19:    Carrier LLv c= {v} by VECTSP_6:def 4;
        then not u in Carrier LLv by A4,TARSKI:def 1;
        then
:=0.:;
        v <> ua
        proof
          assume v=u+a*v;
          then v-a*v = u+(a*v-a*v) by RLVECT_1:def 3
            .= u+0.V by VECTSP_1:16
            .= u by RLVECT_1:def 4;
          then u = 1_K*v+-a*v
            .= 1_K*v+(-a)*v by VECTSP_1:21
            .= (1_K-a)*v by VECTSP_1:def 15;
          then
A21:      {v,u} is linearly-dependent by A4,VECTSP_7:5;
          {v,u} c= U by A2,A3,ZFMISC_1:32;
          hence thesis by A1,A21,VECTSP_7:1;
        end;
        then not ua in Carrier LLv by A19,TARSKI:def 1;
       java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
A22:    LLv.ua=0.K by VECTSP_6:2;
A23:    u + a * v <> 0.V
        
          {v,u} c= U by A2,A3,ZFMISC_1:32;
          then
A24:      {v,u} is linearly-independent by A1,VECTSP_7:1;
A25:      1_K*u = u;
              Carrier L c=uv}
          then 1_K=0.K by A4,A24,A25,VECTSP_7:6;
          hence thesis;
        end;
A26:    u<>0.V by A1,A2,VECTSP_7:2;
Lua. *ua =ua byA15VECTSP_617
          .= 1_K*ua;
        then
:    Lua.a=1_Kby 23VECTSP10:;
        u in {u} by    L)=x by ,A7A8,:18java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
        then u in Lin{u} by VECTSP_7:8;
        then consider Lu be Linear_Combination of {u} such that
A28theorem :
 of {u}byVECTSP_6:
A29without_repeated_linefor i, st j  SegM&i<>j holdsRLine(,iLineM
,TARSKIdef 1;
        then
A30:    LLu.ua=0.K by VECTSP_6:2;
        {u} c= U by A2,ZFMISC_1:31;
        then
A31:    Carrier LLu c= U by A29;
        L+ LLv+LLu-LLua = L+(LLv+LLu)-LLua by VECTSP_6:26
          .= L+(LLv+LLu)+(-LLua) by VECTSP_6:def 11
          .=    LjLine(M);
. L+(LLv+LLua) byVECTSP_6:ef11;
        then
A32:    Carrier (Lcases;
VECTSP_6:;
A33:    Carrier (LLv+LLu-LLua) c= Carrier (LLv+LLu) \/Carrier LLua by
VECTSP_6:41;
A34:    Carrier (LLv+ LLu) c= Carrier LLv \/ Carrier LLu by VECTSP_6:23;
        {v} c= U by A3,ZFMISC_1:31;
        then Carrier LLv c= U by A19;
        then Carrier LLv \/ Carrier LLu c= U by A31,XBOOLE_1:8;
        then Carrier (LLv+ LLu) c= U by A34;
        then Carrier(LLv+LLu)\/java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 8
        then Carrier (LLv+LLu-LLua) c= U\/{ua} by A33;
        then Carrier L\/Carrier (LLv+LLu-LLua)c=U\/{ua} by A14,XBOOLE_1:8;
        then
A35:    Carrier (L+ LLv+LLu-LLua) c= U\/{ua} by A32;
A36:    (L+ LLv+LLu-LLua).ua=(L+ LLv+LLu+(-LLua)).ua by VECTSP_6:def 11
          .= (L+ LLv+LLu).ua + (-LLua).ua by VECTSP_6:22
          .= (L+ LLv).ua+ LLu.ua + (-LLua).ua by VECTSP_6:22
          .= L.ua+ 0.K+ 0.K + (-LLua).ua by A22,A30,VECTSP_6:22
          .= L.ua+ 0.K + (-LLua).ua by RLVECT_1:def 4
          .= L.ua+(-LLua).ua by RLVECT_1:def 4
          .= L.ua-LLua.ua by VECTSP_6:36
          .= L.ua - L.      then
          .= L.ua - L.ua
                let k suchthat
        Carrier (L+ LLv+LLu-Lua)c java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
        proof
          let x be object;
          
A37:      x in Carrier (L+ LLv+LLu-LLua);
          assume not x in U;
          then
A38:      x in {ua} by A35,A37,XBOOLE_0:def 3;
A21    {I,J} is linearly-independent by A1,VECTSP_7:;
VECTSP_6:1;
          hence contradiction by A36,A38,TARSKI:def 1;
        end;
        then A23:    (1_K+(-1_K*a)LJ(1_K+-1_K)*)lj Th102;
VECTSP_6:def 4;
A39:    not u in Uu by ZFMISC_1:56;
        not u in {ua} by A5,TARSKI:def 1;
         not u in Carrier L by A13,A39,XBOOLE_0:def 3;
        then
 =lj+(-_)*i-*j)byFVSUM_1
        Lu.u * u = u by A28,VECTSP_6:17
          .= 1_K*u;
        then
A41:    Lu.u=1_K by A26,VECTSP10:4;
        LLL.u = (L+ LLv+LLu+(-LLua)).u by VECTSP_6:def 11
          .= (L+ LLv+LLu).u + (-LLua).u by VECTSP_6:22
          .= (L+
          .= L.u+ LLv.u+ LLu.u + (-LLua).u by java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 36
          .= 0.K+ 0.K + LLu.u -0.K by A20,A17,A40,VECTSP_6:36
          .= 0.K+LLu.u -0.K by RLVECT_1:def 4
          .= LLu.u-0.K by RLVECT_1:def 4
          .= LLu.u by VECTSP_1:18
. L.ua*1_KA41,def
A28  .LkbyA16MATRIX_052;
then
:uin A12VECTSP_61;
        Sum      hencethesisby A19,A18,A27,26,ECTSP_914;
.    LLua4
          .A37  .i1Line(,i1 by,A32MATRIX_0:
          .= Sum L+ Sum LLv+ Sum LLu - L.uaA38:R.i2=Line(,i2i2 byA34,A36,A32M52java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
          .= Sum L+ Sum LLv+ (L.ua)*u - L.ua * ua by A28,VECTSP_6:45
          .= Sum L        encex1=2
          .= Sum L+L.ua*(a*v)+L.ua*u-L.ua*ua by VECTSP_1:def 16
          .= Sum L+(L.ua*(a*v) + L.ua*u)-L.ua*ua by RLVECT_1:def 3
          .= Sum L+ L.ua*(a*v+ u)- L.ua*ua by VECTSP_1:def 14
          .= Sum L+ (L.ua*ua- L.ua*ua) by RLVECT_1:def 3
          .= 0.V+ 0.V by A6,VECTSP_1:16
          .= 0.V          en
        hence Carrier L={} by A1,A42;
      end;
    end;
    hence thesis;
  end;
end;

theorem Th116:
  for V be VectSp of K for u, v be Vector of V holds x in Lin {u,
  v} iff ex    hence Ris without_repeated_line
proof
  let    linesM\LI}/+a*}is linearly-ndependentby A1,,A11A13
  let u, v be Vector of V;
  per cases;
  suppose
java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 8
    then
A2: {u,v}={u} by java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    thus x in Lin {u,v} implies ex a,b st x = a * u + b * v
    proof
      assume x in Lin{u,v};
      then consider a such that
A3:   x=a*u by A2,VECTSP10:3;
      x = a*u+0.V by A3,RLVECT_1:def 4
        .= a*u+0.K*v by VECTSP10:1;
      hence thesis;
    end;
    givenbtjava.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
A4: x = a * u + b * v;
    x=(a+b)*u by A1,A4,VECTSP_1:def 15;
    hence thesis by A2,VECTSP10:3;
  end;
    assume that
A5: u<vjava.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
    thus x in Lin {u,v} implies ex a,b st x = a * u + b * v
    proof
      assume x in Lin {u,v};
      then consider L be Linear_Combination of {u
A6:   x=Sum L by VECTSP_7:7;
      x=L.u*u+L.v*v by A5,A6,VECTSP_6:18;
      hence thesis;
    end;
    deffunc F(set) = 0.K;
    given a,b such that
A7: x = a * u + b * v;
    consider L be Function of the carrier of V, the carrier of K such that
A8: L.u = a & L.v=b and
:for be Element  V stz >u  z> holds.z =Fz from
    FUNCT_2:sch 7(A5);
    reconsider L as Element of Funcs(java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 33
FUNCT_2:8;
   now
      let z Si1=.i1byA3
A10Line(S,2)=i2 byA4,6MATRIX_052;
A11:  z<>u by A10,TARSKI:def 2;
      z <> v by A10,TARSKI:def 2;
      hence L.z = 0.K by A9,A11;
endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    then reconsider L as Linear_Combination of V by VECTSP_6:def 1;
    Carrierthen  >0
    proof
      let x be object such that
A12:  x in Carrier L;
      L.x <> 0.K by A12,VECTSP_6:2;A14 lenMmbydef 2;
      then x = v or x=u by A9,A12;
      hence thesis by TARSKI:def 2;
    end;
    then reconsider L as Linear_Combination of {u,v} by VECTSP_6:def 4;
    Sum(L) = x by A5,A7,A8,VECTSP_6:18;
    hence thesis by VECTSP_7:7;
  end;
end;

em 
    defpred PNat]means form,n st m=1for M be Matrix of nK   M
without_repeated_line for i,j st j in Seg len M & i <> j holds   is linearly-independent & M is without_repeated_line iff the_rank_ofindependent &M
  ,i) +
  Line(M,j)) is linearly-independent
proof
  let M such that
 linesM  linearly- and
A2: M is without_repeated_line;
  set V=n-VectSp_over K;
  let i,j such that
A3: j in Seg len M and
A4: i<>j;
  set Lj=
  set Li=Line(M,i);
  set R=RLine(M,i,Li+a*Lj);
  per cases;
  suppose
    not     not in 
    hence thesis by A1,A2,Th40;
  end;
  suppose
A5: i in Seg len M;
    reconsider N=n as Element of NAT by ORDINAL1:def 12;
A6: dom M=Seg len M by FINSEQ_1:def 3;
    then
:M.<>.j by A2,A3,A4,A5java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
A8: len M=m by MATRIX_0:def 2;
    then
A9: Lj in lines M by A3,Th103;
A10: Li in lines M by A5,A8,Th103;
    thenjava.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 7
   reconsiderLI ElementN-java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 79
A11: M.i=Li by A5,A8,MATRIX_0:52;
,A8;
    then
A12: n=width M by Th1;
M.=jby A3,A8,MATRIX_0:52;
A14: for k st k in Seg m & k<>i holds Line(R,k)<>Li + a*Lj
    proof
      a*lj = a*LJ by Th102;
      then li+a*lj = LI+a*LJ by Th102
        .= (1_K)*LI+a*LJ;
      then
: +aljinLin{, Th116java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
      let k such that
A16:  k in Seg m and
A17:  k<>i;
      set Lk=Line(M,k);
      assume
A18:  MATRIX1128;
A19:  Line(R,k) = Line(         LMm=Line(M1,)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
A20:  Lj<>Lk
      proof
        {LI,LJ} c= lines M by A10,A9,ZFMISC_1:32;
        then
A21:    {LI,LJ} is linearly-independent by A1,VECTSP_7:1;
        assume
A22:    Lj=Lk;
A23:    (1_K+(-1_K)*a)*LJ=(1_K+(-1_K)*a)*lj by Th102;
A24:    (-1_K)*LI=(-1_K)*li by Th102;
        0.V = n|->0.K by Th102
          .= lj+-(li+a*lj) by A19,A18,A22,FVSUM_1:26
          .= lj+(-li+-a*lj) by FVSUM_1:31
          .= lj+((-1_K)*li+-a*lj) by FVSUM_1:59
          .= lj+((-1_K)*li+(-1_K)*(a*lj)) by FVSUM_1:59
          .= lj+((-1_K)*li+((-1_K)*a)*lj) by FVSUM_1:54
          .= lj+(((-1_K)*a)*lj+(-1_K)*li) by FINSEQOP:33
          .= lj+((-1_K)*        then
          .= 1_K*lj+((-1_K)*a)*lj+(-1_K)*li by FVSUM_1:57
          .= (1_K+(-1_K)*a)*lj+(-1_K)*li by FVSUM_1:55
          .= (1_K+(-1_K)*a)*LJ+(-1_K)*LI by A24,A23,Th102;
        then -1_K=0.K by A7,A11,A13,A21,VECTSP_7:6;
hence thesisby VECTSP_1:28;
      end;
A25:  Lk in lines M by A16,Th103;
      then reconsider LK=Lk as Vector of V;
      reconsider KIJ={LK,LI,LJ} as Subset of V;
:is linearly-independentby ,A10A9,A25VECTSP_7:1ZFMISC_1:133;
A27:  Lk in KIJ by ENUMSET1:def 1;
A28:  M.k=Lk by A16,MATRIX_0:52;
      M.i<>M.k by A2,A5,A8,A6,A16,A17;
      then KIJ \ {LK} = {LI, LJ} by A11,java.lang.StringIndexOutOfBoundsException: Range [40, 31) out of bounds for length 31
      hence thesis by A19,A18,A15,A27,A26,VECTSP_9:14;
    end;
    reconsider LiaLj=li+a*lj as Element of (thesuppose
FINSEQ_1:def 11;
    reconsider LL=LiaLj as set;
    set iLL=i.-->LL;
A29: len (li+a*end;
en RLine(ili+lj)=Replace(,i,LiaLj) A12,ATRIX1129
      .= M+A33      j<L;
    then
A30: lines RLine(M,i,Li+a*Lj) = M.:(dom MA34      jL1 by13;
      .= M.:(dom M\{i})\/rng iLL
.M.( \i)/LL}by :
      .= (M.:dom M\M.:{i})\/{LL} by A2,FUNCT_1:64
      .= (lines M\Im(M,i))\/{LL} by RELAT_1:113
      .= (lines M\{LI})\/{li+a*lj} by A5,A6,A11,FUNCT_1:59        end;
A31: Line(R,i)=Li+a*Lj by A5,A8,A29,A12,MATRIX11:28;
    now
A32:  len R=m by MATRIX_0:def 2;
      let x1,x2 be object such that
A33:  x1 in dom R and
A34:  x2 in dom R and
A35:  R.x1=R.x2;
      reconsider i1=x1,i2=x2 as Element of NAT by A33,A34;
A36:  dom R=Seg len R by FINSEQ_1:def 3;
then
A37:  R.i1=Line(R,i1) by A33,A32,MATRIX_0:52;
A38::lines M1islinearlyindependentand
      per cases;
A40:  for st j< k&j Seg m  *ji)0.by ;
java.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 20
        hence x1=x2;
      end;
      suppose
2=;
        hence x1=x2 by A14,A31,A33,A34,A35,A36,A32,A37,A38;
      end;
      suppose
A39:    i1<>i & i2<>i;
        then
A40:    R.i2=Line(M,i2) by A34,A36,A32,A38,MATRIX11:28;
A41:    Line(M,i1) = M.i1 by A33,A36,A32,MATRIX_0:52;
A42:    Line(M,i2) = M.i2 by A34,A36,A32,MATRIX_0:52;
        R.i1=Line(M,i1) by A33,A36,A32,A37,A39,MATRIX11:28;
        hence x1=x2 by A2,A8,A6,A33,A34,A35,A36,A32,A41,A40,A42        then[,i inIndices Sby A42,FINSEQ_1def ;
      end;
    end;
    hence R is without_repeated_line;
A43: a*lj = a*LJ by Th102;
    lines M\{LI}\/{LI+a*LJ} is linearly-independent by A1,A7,A11,A13,A10,A9
,Th115;
byA43A30,h102;
  end;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem Th118:
  P c= Seg m implies lines Segm(M,P,Seg n) c= lines M
proof
  set S=Segm(M,P,Seg n);
  assume
A1: P c= Seg m;
A2: rng Sgm P = P by FINSEQ_1:def 14;
  let x be object;
  assume x in lines S;
  then consider i such that
A3: i in Seg card P and
A4: x = Line(S,i) by Th103;
  Seg m <> {} by A1,A3;
  then m <> 0;
  then width M=n by Th1;
  then
A5: Line(S,i)=Line(M,Sgm P.i) by A3,Th48;
  dom Sgm P=Seg card P       then [:P1,Q1:] c= [k,Seg widthS: byA55,:;
  then Sgm P.i in rng Sgm P by A3,FUNCT_1:def 3;
  hence thesis by A1,A4,A2,A5,Th103;
end;

theorem Th119:
  P c= Seg m & lines M is linearly-independent   P c= Seg m & lines M is linearly-independent implies lines Segm
  (M,P,Seg n) is linearlyend;
proof
  assume that
A1: P c= Seg m and
A2: lines M is linearly-independent;
  card Seg n=n by FINSEQ_1:57;
  hence thesis by A1,A2,Th118,VECTSP_7:1;
end;

Th120java.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
  P c= Seg m & M is without_repeated_line implies Segm(M,P,Seg n)
  is without_repeated_line
proof
  assume that
A1: P c= Seg m and
A2: M is without_repeated_line;
   SSegm(M,P,Seg n);
  let x1,x2 be object such that
A3: x1 in dom S and
A4: x2 in dom S and
A5: S.x1=S.x2;
  reconsider i1=x1,i2=x2 as Element of NAT by A3,A4;
  len S=card P by MATRIX_0:def 2;
 
A6: dom S=Seg card A75  EqSegm(SSS,,  (SP1,Q1)byA52AD
  then
A7: Line(S,i1)=S.i1 by A3,MATRIX_0:52;
A8: Line(S,i2)=S.i2 by A4,A6,MATRIX_0:52;
A9: Sgm P is one-to-one by FINSEQ_3:92;
A10: dom Sgm P=dom S by A6,FINSEQ_3:40;
  Seg m<>{} by A1,A3,A6;
  then m <> 0;
  then
A11: width M=n by Th1;
  then
A12: Line(S,i1) = Line(M,Sgm P.i1) by A3,A12   then
A13A80:i Q2i byXBOOLE_0:ef ;
A14: len M=m by MATRIX_0:def 2;
A15: rng Sgm P=P by FINSEQ_1:def 14;
  then
A16: Sgm P      then
  then
A17: Line(M,Sgm P.i2)=M.(Sgm P.i2) by A1,MATRIX_0:52;
A18: Sgm P.i1 in P by A3,A10,A15,FUNCT_1:def 3;
  then Sgm P.i1 in Seg m by A1;
  then
A19: Sgm P.i1 in dom M by A14,FINSEQ_1:def 3;
  Sgm P.i2 in Seg m by A1,A16;
  then
A20: Sgm P.i2 in dom M by A14,FINSEQ_1:def 3;
  Line(M,Sgm P.i1)=M.(Sgm P.i1) by A1,A18,MATRIX_0:52;
  then Sgm P.i1=Sgm P.i2 byA87:len (,,m- :java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 49
  hence thesis by A3,A4,A10,A9;
end;

theorem Th121:
  for M be Matrix of m,n,K holds lines M is linearly-independent
  & M is without_repeated_line iff the_rank_of M = m
proof
defpred PNat]means for m,nst m=$ for M be Matrix of m,n,K  lines M
  is linearly-independent & M is without_repeated_line iff the_rank_of M = m;
A1: for k st P[k] holds P[k+1]
  proof
    let k such that
:P[k;
    let m,n such that
A3: m=k+1;
    let M be Matrixjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
    thus       len LC LC=m  d8;
    the_rank_of M = m
    proof
A4:   k<m by A3,NAT_1:13;
A5:   len (n|->0.K)=n by CARD_1:def 7;
      k<m by A3,NAT_1:13;
        java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 60
A6:   Seg k c= Seg m by FINSEQ_1:5;
A7:   m in Seg m by A3,FINSEQ_1:4;
      then Line(M,m) in lines M by Th103;
      then reconsider
      LM=Line(M        hence .K =ES*(j,Si)Cofactor(S,J,Si)
A8:   len LM=n by CARD_1:def 7;
      assume that
A9:   lines M is linearly-independent and
A10:  M is without_repeated_line;
      LM <> n |->A100 LC.  Sum LC by A7,A97,MATRIX_3:12
      then consider i such that
A11:  1<=i and
 
A13:  LM.i<>(n|->0.K).i by A8,A5;
      defpred Q[Nat] means $1<m implies ex M1 be Matrix of m,n,K st 
=Line(M,m) & lines M1 is linearly-independent & M1 is without_repeated_line &
the_rank_of M& forj j < 1&j  Segm  M1*ji=0.
      ;
A14:  i in Seg n by A11,A12;
      then
A15:  LM.i<>0.K by A13,FINSEQ_2:57;
len Line(m=width by MATRIX_0def 7;
      then
A16:  LM.i=M*(m,i) by A8,A14,MATRIX_0:def 7;
A17:  for Syxbydef 3;
      proof
        set Mmi=M*(m,i);
        let L be Nat such that
A18:    Q[L];
        set L1=L+1;
        assume
A19:    L1<m;
        then consider M1 be Matrix of m,n,K such that
A20:    Line(M1,m)=Line(M,m) and
A21:    linesP.by A9FUNCT_1;
A22:    M1 is without_repeated_line and
A23:    the_rank_of M1=the_rank_of M and
A24:    for j st j <= L & j in Seg m holds M1*(j,i) = 0.K by A18,NAT_1:13;
        set MLi=M1*(L1,i);
        take R=RLine(M1,L1,Line(M1,L1)+((-(Mmi"*MLi))*Line(M1,m)));
        len M1=m by MATRIX_0:def 2;
        hence LineA19:  in Ujava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
without_repeated_line &A20:i inSeg mand
,Th92,Th117,MATRIX11:28;
        set LMm=Line(M1,m);
        set LML=Line(M1,L1);
        let j such that
A25:    j <= L1 and
A26:    j in Seg m;
        m dom gm Pand
        then
A27:    width M1=n by Th1;
        then
    LMLi=MLi by A14 ;
        0+1<=L1 by NAT_1:13;
        then
A29:    L1 in Seg m by A19;
        len (LML+(-(Mmi"*MLi))*LMm) = width M1 by CARD_1:def 7;
        then
A30:    Line(R,L1) = LML+(-(Mmi"*MLi))*LMm by A29,MATRIX11:28;
        m <> 0 by A26;
        then
        width M=n by Th1;
        then LMm.i=M*(m,i) by A14,A20,MATRIX_0:def 7;
        then ((-(Mmi"*MLi))*LMm).i=(-(Mmi" * MLi)) *Mmi by A14,A27,FVSUM_1:51;
        then
A31:    Line(R,L1) dom Sgm P = Seg cardP byFINSEQ_340;
          .= MLi+(-(1_K*(Mmi" * MLi))) *Mmi
          .= MLi+(-1_K)*(Mmi" * MLi) *Mmi by VECTSP_1:9
          .= MLi+(-1_K)*(Mmi" * MLi *Mmi) by GROUP_1:def 3
          .= MLi+(-1_K)*(Mmi" * Mmi* MLi ) by GROUP_1:def   then consider y1 be object such that
          .= MLi+(-1_K)*(1_K* MLi) by A15,A16,VECTSP_1:def 10
          .= MLi+(-1_K)*MLi
          .= MLi+(-(1_K)*MLi) by VECTSP_1:9
          .= MLi+(-MLi)
          .= 0.K by RLVECT_1:5;
        m <> 0 by A26;
        then
A32:    width R=n by Th1;
        thenconsider y2 be objectsuch that
     
          j=L1;
          hence thesis by A14,A32,A31,MATRIX_0:def 7;
        end;
        suppose
A33:     <L;
          then
A34:      j<L1 by NAT_1:13;
          thus 0.K = M1*(j,i) by A24,A26,A33
            .= Line(M1,j).i by A14,A27,MATRIX_0:def 7
            .= Line(R,j).i by A26,A34,MATRIX11:28
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
        end;
      end;
A35:  Q[0]
      proof
        assume 0<m;
        take M;
        thus thesis by A9,A10;
      end;
      for l holds Q[l] from NAT_1:sch 2(A35,A17);
      ,nK that
A36:  Line(M1,m)=Line(M,m) and
A37:  lines M1 is linearly-independent and
A38:  M1 is without_repeated_line and
A39:  the_rank_of M1=the_rank_of M andA5 W c lines Mjava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
A40:  for j st j <= k & j in Seg m holds M1*(j,i)=0.K by A4;
      set S=Segm(M1,Seg k,Seg n);
A41:  card Seg k=k by FINSEQ_1:57;
      then
A42:  len S=k by MATRIX_0:def 2;
A43:  card Seg n=n by FINSEQ_1:57;
A44: now
A45:    (Sgm Seg n).i = (idseq n). card Seglen by FINSEQ_1def 3
          .= i by A14,FINSEQ_2.= cardSegcard P1byMATRIX_0: 2
        let j       .= card P1 b FINSEQ_1:7;
A46:    j in Seg k;
A47:    j<=k by A46,FINSEQ_1:1;
A48:    (Sgm Seg k).j = (idseq k).j by FINSEQ_3:48
          .= j by A46,FINSEQ_2:49;
        width S=n by A43,A46,Th1;
        then [j,i] in [:Seg k,Seg width S:] by A14,A46,ZFMISC_1:87;
        then [j,i] in Indices S by A42,FINSEQ_1:def 3;
        hence S*(j,i) = M1*((Sgm Seg k).j,(Sgm Seg n).i) by Def1
          .= 0.K by A40,A6,A46,A48,A45,A47;
      end;
      set SwS=Seg width S;
      set SSS=Segm(S,SegA12:  lenM=m by Th1;
A49:  width M1=n by A3,Th1;
Sis without_repeated_line by A38,A6,Th120;
      then
A50:  SSS is without_repeated_line by A41,A42,A44,Th113;
      lines S is linearly-independent by A37,A6,Th119;
      then lines SSS is linearly-independent by A38,A6,A41,A42,A44,Th114,Th120;
      then the_rank_of SSS=k by A2,A41,A50;
      then consider P,Q such that
A51:  [:P,Q:] c= Indices SSS and
A52:  card P = card Q and
A53:  card P = k and
A54:  Det EqSegm(SSS,P,Q)<>0.K by Def4;
      P={} iff Q={} by A52;
      then consider P1,Q1      hence Seg width M c=Seg 
A55:  P1 c= Seg k and
A56:  Q1 c= Seg width S\{i} and
      P1 = (Sgm Seg k).:P and
      Q1=Sgm (Seg width S\{i}).:Q and
A57:  cardP1=ardPand
A58:  card Q1=card Q and
A59:  Segm(SSS,P,Q) = Segm(S,P1,Q1) by A51,Th57;java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 6
      Seg width S\{i} c= Seg width S by XBOOLE_1:36;
      then
A60:  Q1 c=Seg width S by A56;
      then [:P1,Q1:] c= [:Seg k,Seg width S:] by A55,ZFMISC_1:96;
      then
A61:  [:P1,Q1:] c= Indices S by A42,FINSEQ_1:def 3;
A62:  now
        per cases;
        suppose
          k=0;
          then width S=0 by A42,MATRIX_0:def 3;
          then Seg width S c= Seg n;
          hence Q1 c= Seg n by A60;
        end;
        suppose
          k>0;
          hence Q1 c= Seg n by A43,A60,Th1;
        end;
      end;
    {}iff Q1=}byA52,57A58;
      considerP2,Q2 such 
A63 isindependent& c= linesM& cardU= &forW be finiteSubset
A64:  Q2 c= Seg n and
A65:  P2= Sgm (Seg k).:P1 and
A66:  Q2=Sgm (Seg n).:Q1 and
A67:  cardP2=cardP1 and
A68:  card Q2=card Q1 and
A69:  Segm(S,P1,Q1) = Segm(M1,P2,Q2) by A61,Th57;
A70:  Q2 = (idseq n).:Q1 by A66,FINSEQ_3:48
        .= Q1 by A62,FRECHET:13;
      reconsider i,m as non zero Element of NAT by A3,A11, linearly-independent &W c lines M holds card W <= R;
      set Q2i=2\{i};
      set SQ2i=Sgm Q2i;
      {i} c= Seg n by A14,ZFMISC_1:31;
      then
A72:  Q2i c= Seg n by A64,XBOOLE_1:8;
A73:  rng SQ2i=Q2i by FINSEQ_1:def 14;
A74:  P2 = (idseq k).:P1 by A65,FINSEQ_3:48
        .= P1 by A55,FRECHET:13;
A75:  EqSegm(SSS,P,Q) = Segm(S,P1,Q1) by A52,A59,Def3
        .= EqSegm(M1,P1,Q1) by A52,A57,A58,A69,A74,A70,Def3;
A76:  len EqSegm(M1,P2,Q2)=k by A53,A57,A67,MATRIX_0:def 2;
A77:  len M1=m by Th1;
      then
A78:  the_rank_of M1 <= m by Th74;
      set P2m=P2\/{m};
      set ES=EqSegm(M1,P2m,Q2i);
A79:  P2 c= Seg m by A6,A63;
      i in {i} by TARSKI:def 1;
      then
A80:  i in Q2i by XBOOLE_0:def 3;
      i in {i} by TARSKI:def 1;
      then
A81:  not i in Q2 by A56,A70,XBOOLE_0:def 5;
      then
A82:  card Q2i=m by A3,A52,A53,A58,A68,CARD_2:41;
      then dom SQ2i=Seg m by FINSEQ_3:40;
      then consider Si be object such that
A83:  Si in Seg m and
A84:  SQ2i.Si=i by A80,A73,FUNCT_1:def 3;
      reconsider Si as Element of NAT by A83;
      k<m by A3,NAT_1:13;
      then
A85:  not m in P2 by A55,A74,FINSEQ_1:1;
      then
A86:  card P2m=m by A3,A53,A57,A67,CARD_2:41;
      then
A87:  len Delete(ES,m,Si)=m-'1 by MATRIX_0:def 2;
A88:  {m} c= Seg m by A7,ZFMISC_1:31;
      then P2m c= Seg m by A79,XBOOLE_1:8;
      then [:P2m,Q2i:] c= [:Seg m,Seg n:] by A72,ZFMISC_1:96;
      then
A89:  [:P2m,Q2i:] c= Indices M1 by A77,A49,FINSEQ_1:def 3;
      card Seg m=m by FINSEQ_1:57;
      then
A90:  P2m=Seg m by A88,A79,A86,CARD_2:102,XBOOLE_1:8;
A91:  now
A92:    dom ES=Seg len ES by FINSEQ_1:def 3;
A93:    dom M1=Seg len M1 by FINSEQ_1:def 3;
A94:    m=len ES by A86,MATRIX_0:def 2;
        let j such that
A95:    j in Seg m;
        Col(M1,i) = Col(Segm(M1,P2m,Q2i),Si) by A77,A82,A83,A84,A90,Th50
          .= Col(ES,Si) by A3,A53,A57,A67,A85,A82,Def3,CARD_2:41;
        hence ES*(j,Si) = Col(M1,i).j by A95,A94,A92,MATRIX_0:def 8
          .= M1*(j,i) by A77,A95,A93,MATRIX_0:def 8;
      end;
      then
A96:  ES*(m,Si) = M1*(m,i) by A3,FINSEQ_1:4
        .= Line(M,m).i by A14,A36,A49,MATRIX_0:def 7;
      set LC=LaplaceExpC(ES,Si);
      len LC = m by A86,LAPLACE:def 8;
      then
A97:  dom LC=Seg m by FINSEQ_1:def 3;
      now
        let j such that
A98:    j in Seg m and
A99:    j<>m;
        reconsider J=j as Element of NAT by ORDINAL1:def 12;
        j<=m by A98,FINSEQ_1:1;
        then j<=k by A3,A99,NAT_1:9;
        then 0.K = M1*(j,i) by A40,A98
          .= ES*(j,Si) by A91,A98;
        hence 0.K = ES*(j,Si)*Cofactor(ES,J,Si)
          .= LC.j by A97,A98,LAPLACE:def 8;
      end;
      then
A100: LC.m = Sum LC by A7,A97,MATRIX_3:12
        .= Det ES by A86,A83,LAPLACE:27;
      reconsider mSi=m+Si as Element of NAT;
      -1_K<>0.K by VECTSP_1:28;
      then
A101: power(K).(-1_K,mSi)<>0.K by Lm6;
      Sgm P2m.m = (idseq m).m by A90,FINSEQ_3:48
        .= m by A7,FINSEQ_2:49;
      then Delete(ES,m,Si) = EqSegm(M1,P2m\{m},Q2i\{i}) by A7,A86,A82,A83,A84
,Th64
        .= EqSegm(M1,P2,Q2i\{i}) by A85,ZFMISC_1:117
        .= EqSegm(M1,P2,Q2) by A81,ZFMISC_1:117;
      then power(K).(-1_K,mSi)*Minor(ES,m,Si)<>0.K by A53,A54,A74,A70,A75,A86
,A87,A76,A101,VECTSP_1:12;
      then ES*(m,Si)* Cofactor(ES,m,Si)<>0.K by A15,A96,VECTSP_1:12;
      then Det ES<>0.K by A7,A97,A100,LAPLACE:def 8;
      then the_rank_of M1 >= m by A89,A86,A82,Def4;
      hence thesis by A39,A78,XXREAL_0:1;
    end;
    thus thesis by Th105,Th110;
  end;
A102: P[0]
  proof
    let m,n such that
A103: m=0;
    let M be Matrix of m,n,K;
 len M=0 by A103,MATRIX_0:def 2;
    then M={};
    hence thesis by A103,Th74;
  end;
  for k holds P[k] from NAT_1:sch 2(A102,A1);
  hence thesis;
end;

theorem Th122:
  for U be Subset of n-VectSp_over K st U c= lines M ex P st P c=
  Seg m & lines Segm(M,P,Seg n) = U & Segm(M,P,Seg n) is without_repeated_line
proof
  defpred P[object,object] means
    ex i st i in Seg m & Line(M,i)=$1 & $2=i;
  let U be Subset of n-VectSp_over K such that
A1: U c= lines M;
A2: for x being object st x in U ex y being object st y in Seg m & P[x,y]
  proof
    let x be object;
    assume x in U;
    then consider i such that
A3: i in Seg m and
A4: x=Line(M,i) by A1,Th103;
    take i;
    thus thesis by A3,A4;
  end;
  consider f be Function of U,Seg m such that
A5: for x being object st x in U holds P[x,f.x] from FUNCT_2:sch 1(A2);
A6: rng f c= Seg m by RELAT_1:def 19;
  then not 0 in rng f;
  then reconsider P=rng f as without_zero finite Subset of NAT by A6,
MEASURE6:def 2,XBOOLE_1:1;
  set S=Segm(M,P,Seg n);
A7: rng Sgm P=P by FINSEQ_1:def 14;
A8: lines S c= U
  proof
A9: rng Sgm P=P by FINSEQ_1:def 14;
    let x be object;
A10: dom S = Seg len S by FINSEQ_1:def 3
      .= Seg card P by MATRIX_0:def 2;
    assume
A11: x in lines S;
    then consider y being object such that
A12: y in dom S and
A13: S.y=x by FUNCT_1:def 3;
    lines S c= lines M by A6,Th118;
    then
A14: M<>{} by A11;
    len M=m by MATRIX_0:def 2;
    then
A15: width M=n by A14,Th1;
    reconsider y as Element of NAT by A12;
    dom Sgm P = Seg card P by FINSEQ_3:40;
    then Sgm P.y in rng Sgm P by A12,A10,FUNCT_1:def 3;
    then consider z be object such that
A16: z in dom f and
A17: f.z=Sgm P.y by A9,FUNCT_1:def 3;
    ex i st i in Seg m & Line(M,i)=z & f.z=i by A5,A16;
    then z = Line(S,y) by A12,A10,A17,A15,Th48
      .= x by A12,A13,A10,MATRIX_0:52;
    hence thesis by A16;
  end;
  take P;
  thus P c= Seg m by RELAT_1:def 19;
  U c= lines S
  proof
    let x be object;
A18: dom Sgm P=Seg card P by FINSEQ_3:40;
    assume
A19: x in U;
    then consider i such that
A20: i in Seg m and
A21: Line(M,i)=x and
A22: f.x=i by A5;
    dom f=U by A20,FUNCT_2:def 1;
    then i in P by A19,A22,FUNCT_1:def 3;
    then i in rng Sgm P by FINSEQ_1:def 14;
    then consider y being object such that
A23: y in dom Sgm P and
A24: Sgm P.y=i by FUNCT_1:def 3;
    reconsider y as Element of NAT by A23;
    m <> 0 by A20;
        then
    width M=n by Th1;
    then Line(S,y)=x by A21,A23,A24,A18,Th48;
    hence thesis by A23,A18,Th103;
  end;
  hence U=lines S by A8,XBOOLE_0:def 10;
  let x1,x2 be object such that
A25: x1 in dom S and
A26: x2 in dom S and
A27: S.x1=S.x2;
A28: dom S = Seg len S by FINSEQ_1:def 3
    .= Seg card P by MATRIX_0:def 2;
  then
A29: dom Sgm P=dom S by FINSEQ_3:40;
  reconsider i1=x1,i2=x2 as Element of NAT by A25,A26;
A30: dom Sgm P = Seg card P by FINSEQ_3:40;
  then Sgm P.i1 in rng Sgm P by A25,A28,FUNCT_1:def 3;
  then consider y1 be object such that
A31: y1 in dom f and
A32: f.y1=Sgm P.i1 by A7,FUNCT_1:def 3;
A33: ex j1 be Nat st j1 in Seg m & Line(M,j1)=y1 & f.y1=j1 by A5,A31;
        then m <> 0;
        then
A34: width M=n by Th1;
  Sgm P.i2 in rng Sgm P by A26,A28,A30,FUNCT_1:def 3;
  then consider y2 be object such that
A35: y2 in dom f and
A36: f.y2=Sgm P.i2 by A7,FUNCT_1:def 3;
  ex j2 be Nat st j2 in Seg m & Line(M,j2)=y2 & f.y2=j2 by A5,A35;
  then
A37: Line(S,i2)=y2 by A26,A28,A36,A34,Th48;
A38: Sgm P is one-to-one by FINSEQ_3:92;
A39: Line(S,i1)=S.i1 by A25,A28,MATRIX_0:52;
  Line(S,i1)=y1 by A25,A28,A32,A33,A34,Th48;
  then Sgm P.i1=Sgm P.i2 by A26,A27,A28,A32,A36,A37,A39,MATRIX_0:52;
  hence thesis by A25,A26,A29,A38;
end;

theorem
  for RANK be Element of NAT holds the_rank_of M = RANK iff (ex U be
finite Subset of n-VectSp_over K st U is linearly-independent & U c= lines M &
  card U = RANK) & for W be finite Subset of n-VectSp_over K st W is
  linearly-independent & W c= lines M holds card W <= RANK
proof
  let R be Element of NAT;
A1: len M=m by MATRIX_0:def 2;
A2: card Seg n=n by FINSEQ_1:57;
A3: for W be finite Subset of n-VectSp_over K st W is linearly-independent
  & W c= lines M holds card W <= the_rank_of M
  proof
    let W be finite Subset of n-VectSp_over K such that
A4: W is linearly-independent and
A5: W c= lines M;
    consider P1 such that
A6: P1 c= Seg m and
A7: lines Segm(M,P1,Seg n) = W and
A8: Segm(M,P1,Seg n) is without_repeated_line by A5,Th122;
    set S1=Segm(M,P1,Seg n);
A9: S1.:dom S1=lines S1 by RELAT_1:113;
    dom S1,S1.:dom S1 are_equipotent by A8,CARD_1:33;
    then
A10: card W = card dom S1 by A7,A9,CARD_1:5
      .= card Seg len S1 by FINSEQ_1:def 3
      .= card Seg card P1 by MATRIX_0:def 2
      .= card P1 by FINSEQ_1:57;
    per cases;
    suppose
      card P1=0;
      hence thesis by A10;
    end;
    suppose
      card P1>0;
      then
  Seg m <>{} by A6;
        then
A11:      m <> 0;
        then
A12:  len M=m by Th1;
      width M=n by Th1,A11;
      then [:P1,Seg n:] c= [:Seg len M,Seg width M:] by A6,A12,ZFMISC_1:96;
      then [:P1,Seg n:] c= Indices M by FINSEQ_1:def 3;
      then the_rank_of S1 <= the_rank_of M by Th79;
      hence thesis by A2,A4,A7,A8,A10,Th121;
    end;
  end;
A13: now
    per cases;
    suppose
      len M=0;
      then width M=0 by MATRIX_0:def 3;
      hence Seg width M c= Seg n;
    end;
    suppose
      len M>0;
      then m>0 by MATRIX_0:def 2;
      hence Seg width M c= Seg n by Th1;
    end;
  end;
  consider P,Q such that
A14: [:P,Q:] c= Indices M and
A15: card P = card Q and
A16: card P = the_rank_of M and
A17: Det EqSegm(M,P,Q)<>0.K by Def4;
  Q c= Seg width M by A14,A15,Th67;
  then
A18: Q c= Seg n by A13;
  set S=Segm(M,P,Seg n);
A19: len S=card P by MATRIX_0:def 2;
  Segm(M,P,Q)=EqSegm(M,P,Q) by A15,Def3;
  then
A20: the_rank_of EqSegm(M,P,Q) <= the_rank_of S by A18,Th80;
A21: the_rank_of S<=len S by Th74;
  the_rank_of EqSegm(M,P,Q) = card P by A17,Th83;
  then
A22: the_rank_of S = card P by A20,A19,A21,XXREAL_0:1;
  then
A23: lines S is linearly-independent by Th121;
  S is without_repeated_line by A22,Th121;
  then
A24: dom S,S.:dom S are_equipotent by CARD_1:33;
  S.:dom S=lines S by RELAT_1:113;
  then
A25: card lines S = card dom S by A24,CARD_1:5
    .= card Seg len S by FINSEQ_1:def 3
    .= card Seg card P by MATRIX_0:def 2
    .= card P by FINSEQ_1:57;
A26: P c= Seg len M by A14,A15,Th67;
  then lines S c= lines M by A1,Th118;
  hence the_rank_of M = R implies (ex U be finite Subset of n-VectSp_over K st
U is linearly-independent & U c= lines M & card U = R) & for W be finite Subset
of n-VectSp_over K st W is linearly-independent & W c= lines M holds card W <=
  R by A16,A23,A25,A2,A3;
  assume that
A27: ex U be finite Subset of n-VectSp_over K st U is
  linearly-independent & U c= lines M & card U = R and
A28: for W be finite Subset of n-VectSp_over K st W is
  linearly-independent & W c= lines M holds card W <= R;
A29: R <= the_rank_of M by A3,A27;
  the_rank_of M <= R by A16,A23,A25,A26,A1,A2,A28,Th118;
  hence thesis by A29,XXREAL_0:1;
end;

Messung
CHZG
8010010093

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.281Angebot  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-11-24) ¤

*Eine klare Vorstellung vom Zielzustand