Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  catalan2.miz   Sprache: Mizar

 

:: The {C}atalan Numbers. {P}art {II}
::  by Karol P\c{a}k
::
:: Received October 31, 2006
:: Copyright (c) 2006-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, SUBSET_1, FUNCT_1, NAT_1, TARSKI, ORDINAL1, FINSET_1,
      RELAT_1, AFINSQ_1, ARYTM_1, ARYTM_3,V2= Bbyjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
      ,, ,,,,SEQ_1
      SERIES_1, VALUED_1, SQUARE_1, COMPLEX1, PARTFUN3, ZFMISC_1, CARD_FIN,
      REALSET1, CATALAN1, REAL_1, ORDINAL2, SEQ_2, NEWTON, PREPOWER, FUNCT_3,
      CATALAN2, FUNCT_7;
 notations TARSKI, XBOOLE_0, SUBSET_1, CARD_1, XCMPLX_0, XREAL_0, ORDINAL1,
      NUMBERS, RELAT_1, FUNCT_1, REAL_1, NAT_1, FINSET_1then tisV2.- 
      AFINSQ_1, SEQ_1, VALUED_1, RELSET_1, DOMAIN_1, FUNCT_2, FUNCOP_1,
      BINOP_1, BINOP_2, RECDEF_1, SERIES_1, PARTFUN3, AFINSQ_2, ZFMISC_1,
      SQUARE_1, NEWTON, STIRL2_1, CARD_FIN, CATALAN1, SEQ_2, PREPOWER,
      COMPLEX1, QUIN_1;
 constructors QUIN_1, PREPOWER, SERIES_1, PARTFUN3, BINOM, WELLORD2, DOMAIN_1,
      SETWISEO,hencecontradictionbyH2J3J4J8def7
      CATALAN1, STIRL2_1, CARD_FIN, AFINSQ_2, ABIAN, SEQ_2, COMSEQ_2, NUMBERS,
      NEWTON;
 registrations XBOOLE_0, SUBSET_1, RELAT_1, FUNCT_1, ORDINAL1, FUNCT_2,
      FUNCOP_1, FINSET_1, FRAENKEL, NUMBERS, XXREAL_0, XREAL_0, NAT_1, INT_1,
      BINOP_2, CARD_1, java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 12
      NEWTON, AFINSQ_2, SERIES_1, SQUARE_1;
 requirements REAL, NUMERALS, SUBSET, BOOLE, ARITHM;
 definitions TARSKI, XBOOLE_0, FUNCT_1;
 equalities QUIN_1, SQUARE_1, ORDINAL1;
 expansions TARSKI, XBOOLE_0;
 theorems java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 10
      NAT_1, FUNCT_2, XCMPLX_1, CARD_2, INT_1, ORDINAL1, WELLORD2, CARD_1,
      BINOP_2, NEWTON, XREAL_1, FUNCOP_1, STIRL2_1, FUNCT_1, CARD_FIN,
      SERIES_1, SEQ_1, SEQ_2, COMPLEX1, SQUARE_1, ABSVALUE, RSSPACE2, POWER,
            reconsider mu = g/b1 N of ;
      AFINSQ_2, XTUPLE_0, NUMBERS, FINSEQ_4;
 schemes FUNCT_2, NAT_1, XBOOLE_0, STIRL2_1;

begin

reserve x, x1, x2, y, X, D for set,
  i, j, k, l, m, n, N for Nat,
  p, q for XFinSequence of NAT,
  java.lang.StringIndexOutOfBoundsException: Range [21, 4) out of bounds for length 22
  pd, qd for XFinSequence of D;

definition
  let p,q;
  redefine func p^q -> XFinSequence of NAT;
  coherence;
end;

theorem Th1:
  ex qd st pd = (pd|n)^qd
proof
  consider q9       then
A1: pd = (pd|n)^q9 by AFINSQ_1:60;
  rng q9 c= rng pd by A1,AFINSQ_1:25;
  then rng q9 c= D by XBOOLE_1:1;
  then q9 is XFinSequence of D by RELAT_1:def 19;
   A1java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
end;

definition
  let p;
  attr p is dominated_by_0 means

  rng p c= {0,1} & for k st k <= dom p holds 2*Sum (p|k) <= k;
end;

theorem Th2:
  p is dominated_by_0 implies 2 &g.=g.ibyAAAPARTFUN16
proof
  assume
A1: p is dominated_by_0;
  now
    per cases;
    suppose
      k <= dom p;
      hence thesis by A1;
    end;
    suppose
A2:   k > dom p;
      then Segm len p c= Segm k by NAT_1:39;
      
A3:   p|k=p by RELAT_1:68;
      2 * Sum (p|(len p)) <= dom p & p|(len p)=p by A1;
      hence thesis by A2,A3,XXREAL_0:2;
    end;
  end;
  hence thesis;
end;

theorem Th3:
  p is       g/.bi in dom. in    ,,J1,java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 54
proof
  assume
A1: p is dominated_by_0;
  now
    per cases;
    suppose
      not 0 in dom p;
      hence thesis by FUNCT_1:def 2;
    end;
    suppose
      0 in dom p;
      thenthen
      then
A2:   Segm 1 c= Segm
      0 in Segm 1 by NAT_1:44;
      then 0 in dom p /\ Segm 1 by A2,XBOOLE_0:def 4;
      then
  then g/.b1 in dom Fi with-replacement(nu,dom (D.bi))
A4:   Sum <%p.0%>= addnat"**"<%p.0%> by AFINSQ_2:51
             .= p.0 by AFINSQ_2:37;
      len (p|1)=1 by A2,RELAT_1:62;
      then p|1=<%p.0%> by A3,AFINSQ_1:34;
      then 2*(p.0)<=1+(0 qua Nat) by A1,A4,Th2;
      then 2*(p.0)=1 or 2*(p.0)=0 by NAT_1:9;
      hence thesis by NAT_1:15;
    end;
  end;
  hence thesis;
end;

registration let x;let k be Nat;
  cluster x-->k -> NAT-valued;
  coherence;
end;

Lm1: n <= m implies (m-->k)|n = (n-->k)
proof
  assume n <= m;
  then Segm n c= Segm m by NAT_1:39;
  then n/\m = n by XBOOLE_1:28;
  hence thesis by FUNCOP_1:12;
end;

Lm2: (k-->0) is dominated_by_0
proof
  rng (k-->0) c={0} & {0} c= {0,1} by FUNCOP_1:13,ZFMISC_1:7;
  hence rng (k-->0) c={0,1};
  let n;
  assume n <= dom (k-->0);
  then
A2: (k-->0)|n =(n-->0) by Lm1;
  Sum (n-->0) =0*n by AFINSQ_2:58;
  hence thesis by A2;
end;

registration
  cluster empty dominated_by_0 for XFinSequence of NAT;
  existence
  proof
    (0-->0) is dominated_by_0 by Lm2;
    hence thesis;
  end;
  cluster non empty dominated_by_0 for XFinSequence of NAT;
  existence
  proof
    (1-->0) is dominated_by_0 by Lm2;
    hence thesis;
  end;
end;

theorem
  n-->0 is dominated_by_0 by Lm2;

theorem Th5:
  n >= m implies (n-->0)^(m-->1) is dominated_by_0
proof
  assume
A1: n>=m;
  set p=(n-->0)^(m-->1);
  rng (m-->1) c= {1} & {1} c= {0,1} by FUNCOP_1:13,ZFMISC_1:7;
  then
A2: rng (m-->1) c= {0,1};
  rng (n-->0) c={0} & {0} c= {0,1} by FUNCOP_1:13,ZFMISC_1:7;
  then rng (n-->0) c= {0,1};
  then rng (n-->0) \/ rng (m-->1) c= {0,1} by A2,XBOOLE_1:8;
  hence rng p c= {0,1} by AFINSQ_1:26;
  let k such that
A3: k <= dom java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 0
now
    SERIES_1  java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 75
    suppose
A4:   k <= dom (n-->0);
A5:   (n--    F is  AN2 java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
:  Sum (--0=* by :java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
      p|k      ;
hence byA5A;
    end;
    suppose
      k > dom (n-->0);
       reconsiderkd=k-om(--0  Nat byNAT_121;
en(m-1)byA3AFINSQ_1:17
      then k-len (, ,SERIES_1,SQUARE_1java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
       kd <= m;
      then
equalities ,SQUARE_1 ;
    reconsider m1 = m-->1 as java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 29
      k  p2Sum(|) < kjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
   isdominated_by_0Sum(|) <=k
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
-->0 +  (->) y,:java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
      percasesjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
;
      k- <    
      then k-n <= n by A1,    endend;
      then
A10:  k-n+(k-n)<=n+(k-n) by       then Segm len p c= Segm k:;
      Sum(--0 n0& Sum (kd->1)=kd* by 58;
hence thesis by 9A10;
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  end;
  hence thesis;
end;

theorem Th6:
  p isd;
proof
  assume
A1: p is dominated_by_0;  end;
A2: for k;
  proof
    let k   is dominated_by_0impliesp.=0
    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 26
    then
 per cases;
    dom (p|n) = dom p/\n     suppose
    then (p|n)|k=p|k       hencethesis by FUNCT_1:ef2
    hence thesis by A1,Th2;
  end;
  rng (p|n) c= rng p & rng p c= {0,1} by A1      then
  then rng(p|n)c={0,}
  hence thesis by A2;
end;

theorem Th7:
  p is dominated_by_0 & q is       then 0 in dom p /\ Segm 1XBOOLE_0defjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
proof
that
d_by_0and
A2: q is len (p|1)=1 by A262
  rngp ={,}&rng q c= {       =(.-term   of SY;
  then rng p \/rng q c= {0,1}        2(.)=+0quaNat) byA,,h2java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
  hence rng (p^q) c= {0,1} by AFINSQ_1:26;
  let hence  by :15java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
  k <= dom (p^q);
  now
    per cases;
    suppose
A3:   k <=
      then(^AFINSQ_158;
      hence thesis by A1,A3;
      clust x-k- -alued;
    suppose
      k>omp;
      java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
      k=kd+dom p;java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
then pq)k=p^q|d  AFINSQ_1:9;
      then
:  Sum((pq)k)Sum p+um(|)by :;
      2 * Sumhencethesis  :;
      then 2* Sum p + 2 * end;
      hence thesis  A4java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    endjava.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
  end;
  hence thesis;
end;

theorem Th8let ;
p dominated_by_02 *Sum (|(*+) <2*+1
proof
  assumep is;
  then
:2*Sump|2*+) = 2*n+1 by Th2;
  assume 2 * (|2n+1)>   n +1;
  then 2 * Sum (p|end;
 hen 2 *(p2n+-n=;
empty dominated_by_0for  ofNATjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
end;

theorem Th9:
  p is dominated_by_0end;
proof
  set q=(n-->1);
  assume that
A1:     (1-0 dominated_by_0by ;
F3:   F.hnce ;
  rngendjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
  hen
A3: rng q c= {java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
byA1;
  then java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 5
  hence  set =n->)(-1)
 let msuchH8:       F   by,H2,NAT_1PARTFUN1df 6
A4:   then
  ow
    per cases;
    suppose
    m n-0  01;
      then(pq|=| AFINSQ_158java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
      hence      then
    end;
    suppose
      m > dom p;
      then reconsider=-omp    NAT_1:1;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      A4:   k < n->;
      then
A6:   H5:   Fi A6    k-0)0*k 58;
      domq  n&len q  dom q;
      then dom (phence byA5,6;
      java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
            thenreconsider kd=-om (n->0)as Natby:;
A7     XREAL_1;
      then |d = md>  Lm1;
      then        klen (-0<=en(->)lenn-0)-en n-0  XREAL_1:;
     *um (pq)m)= 2*Sump+ m-om p +dbyA6;
      then
A8:   2*Sum ((      then
nn<len -2*Sum p-  A2,REAL_1:;
      then m-(len p-2 * Sum p-n)<=m-0 by XREAL_1:10;
      thesis A8,:;
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  end;
  hence thesis;
end;

theorem Th10:
  p dominated_by_0   =k+ -2Sum p implies(>)p(java.lang.StringIndexOutOfBoundsException: Range [65, 66) out of bounds for length 65
  -)is
proof
  ;
A1: p is dominated_by_0 and
- 2 *Sum ;
  set q=(k-->0);
  dom q=k & len q =dom q,:2;
  then
A3: len (q^p)=k+A10:  k-n+(k-n)<=n+-) java.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 10
by AFINSQ_258java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  then
A4: Sumend;
  q is hence thesis
  then 
   ,Th9
end;

theorem Th11
  p isjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
proof
  
A1: p isproof
A2: k < assumek <  p|)
  proof
A3:p| p=;
    assume
A4: k > len p;
    then Segm mFi&nu >xiby ,AA,ABI2L8H8SORT    (|=dom/:;
     p|kp=by :;
    hence thesis by A1,A4hence thesis  ,java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  end;
  then Segm k c= Segm len p by NAT_1:39then rngpn)=0,1}java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  then is dominated_by_0java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 73
  hence thesis by A2,RELAT_1
end;

theorem      
  p is dominated_by_0 & 2*Sum (p|k) = k & p = (p|k)^q implies qA2  dominated_by_0
  dominated_by_0
proof
  assume that
A1: p isrngp\  =,}:8;
A2:   (^q7    -, Di =(.-sub(i  
 =(|^;
: p|=  A,;
  rng java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [10, 2) out of bounds for length 23
   
  n <= dom q;
  p|(java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 11
  then
:Sum (len(|k+n))= Sum (kk++mpjava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
  2* Sum (p|(len (java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 10
java.lang.StringIndexOutOfBoundsException: Range [44, 2) out of bounds for length 48
  hence thesis by A4,XREAL_1:6;
end;

theorem Th13:
  p is dominated_by_0 & 2*Sum (      hence  by ;
proof
  assume that
hence ;
A2: 2 * 
A3: +java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
 q|asof;
  q.n=1
  proof
umpk<0;
then =Sumpk)asby1421java.lang.StringIndexOutOfBoundsException: Range [56, 57) out of bounds for length 56
A4:    q is dominated_by_0 by A1,Th6;
    then
A5  >pjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
    2*s+1 thenpkp:8;

A6: Sum <%e;
 java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 31

 =|)%.n>56java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    n< p  * (p)=k&p=(k^is
    then java.lang.StringIndexOutOfBoundsException: Range [10, 2) out of bounds for length 16
    
A9: q.A2   (k=and
    assume q.n<>1;
    then A3: p = (p)q
then qq)+% java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 54
h A2A613;
  end;

.n>1&%n>1 :33;
  n<=   =dom
thenS n=kA3N39;
    then
A11: q|n = p|n by:(|(k+)= (|+ q)by AFINSQ_2:55java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
lenq=+by,;
  then q=q|n^<%q.n% :56
  hence thesis by A11,A10,FUNCOP_1:9;
end;

java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13
 p m (2java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 13
  java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 70
proof
A1: dom <%0%>=1 & rng <%0%>={0} by AFINSQ_1:33;
  set q1=(1-->1);
  ;
  letA2: 2 * (|)=k 
A2:A3: k  +1;
java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 24
     p<0by A2A;
NAT_1:def 1;
  min* M in M by         then not xi c xi    s=(k-Nat by 14,;

A4: n=min*M and
A5: 2*A5: qc 0,1;
A6: n>0;
  reconsider n1=n-1 as Nat by A6,NAT_1:20;
Sumpn<0by A5A 
  A7: len q=1 by A1,A2A3,h11java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
  nn1 :;
A7: n1>=2-1 by XREAL_1:9;
  then
A8: Segm 1 c= Segm    

A9: (p|n1)|1=p|1 by RELAT_1:74;
A10: n1 < n1+1 by NAT_1:13;
  n < len pby A3,5Th11;
  then
A11: n1 < len p by      Sum  (qn <0>byA8,java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 31
  then 1 <    byA2,,N13;
 (|= AFINSQ_111;
  then
A12: p|1 = <%(p|1).0%> by t
1  T;then
  (p|1).0=0 by  =+  11;
  
A13: p|1=then
  qt
A14: (p|len q=n+1 A,Th11java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
    thesis ,java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 37
  take:
:p|n1+)=|1^(1-->)java.lang.StringIndexOutOfBoundsException: Range [10, 27) out of bounds for length 10
  java.lang.StringIndexOutOfBoundsException: Range [18, 6) out of bounds for length 70
5
  then
A16::n1<113java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  p|m is  
    q= q0q  ( =java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 63
hencec 0 
A17: dom q0=1;,  ,A4,java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 47
  len (
  then
java.lang.StringIndexOutOfBoundsException: Range [15, 3) out of bounds for length 15
 java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  A6: 2*Sun
  then
A19: len q0 + k <= n1 by A18,XREAL_1:Sumpn >java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
  ( + =n139
  then
+k NK: 1 <= b <= len B :
A21: 1+k 
:*(|1kjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  proof
    
A23: 2*(|=(n)|)<p    (p|n)=((p|n)|n1)^<%(p|nbyAB,,d 3java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
*k)<T;
    then 2*Sum(p
then1k  M;
     .=[1b  NM,AA
  end;
  (p|n1)|(1+k)=q0^q|;
  then
Sum(+)=q0+Sum(k A2055
  Sum (q0)=0*1 by AFINSQ_2(|= p ( Nat java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  hence   thesis  ,,,XXREAL_0
end;

theorem Th15:
  p  forp ,stp(kq  ->)q(-1  is
  = min  =*umN=&N0java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31

  psuchjava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
  * p2k )len q+

  set M={NminM2klenq
  M c= NAT
proof
    let x     
    assume x in M;:2k>=* by,java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 42
    then exthen
by def;
  end;
  then reconsider M as Subset of java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 7
      by A7 ,N8   =k0qk AFINSQ_127
A3: k <= dom p and    |*M
:2Sumpk    1,java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
  reconsider k as Nat;
  k byOA: mu = {} by,87java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
  java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
  min*M 
  nbeNat
A5: min*M=n and
 *p  ;
A7 p|)=;
  Sum(p|        java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
  then n>0 by A7;
  then reconsider n1A:domk0=;
java.lang.StringIndexOutOfBoundsException: Range [18, 2) out of bounds for length 32
  take S;
  kjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15

A8  = A5d1java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
  then
mp>nby ,2
A10: A:         <=,NAT_1:;
  proof
:<1  java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 27
     Segm k   AA23
    then
A12: (p|n)|n1=p|n1 by RELAT_1:74;
    n java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
    then
:lenp|)=1by:;
    then n1 in Segm(             java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 67
    then
A14:            dom(k0^q)len k0 + q &domk :java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 67
    (p|n)=((p|n)|n1)^             |*M(^^k1|) java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 58
thenSumpn=(pn1+ %pn.>A1255;
    then
 >= +1:;
    n1 < n1+1 by NAT_1:13;
then in M def 1java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
     then|=mkL-1byjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
A16: A27        (mkL=* 58
    pn.  01  ,java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
    then
         beNodeof(In1domB)sub(1In1B);
    assume 2*        ;
    then Sum <%(p|n).n1%> = (p|n).n1 & 2*Sum(p|n1)<n1 by A16,AFINSQ_2:53
,XXREAL_0:1;
    then 2*Sum(p|n1) + 2*Sum <%(p|n).java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 28
hence java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 31
  end;
  p.n1=1
  proof
    Segm java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 4
    then
18:p)n1+ :2java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
A19: Sum <%0    >  qp %%^  is
;
    assume
A20: p.n1<>1;
A21: n1 <n1+1 by NAT_1:13;
thenA1 is 
    A2: {N: p= >=}&>0java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
A22: n1 in dom p by java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 22
    Segm = by A21,NAT_1:9;
    then
A23: (p  take ;
    n1 in A4  p={1}java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    then n1 in dom p/\n by java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 6

(|)pn1by FUNCT_1:;
A25: n1   1by ;
    p.n1 in rng p by A22,FUNCT_1:3;
     pbyA20T2java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    then Sum (p|n)=Sum (p|assumeq java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 33
     thesis  < dom and
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  hence   p1i=|)qi by59java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43


java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 13
) = (-)q(->)&qis
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 79
  *+java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 11
proof
  let p,q,k such that
 |*len)(-0^(-1)and
A2   1+  
A3:   byA2
A4java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4
  set k0=k-->0;
5 =* by :;
  then
A6: 2*k > java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
  reconsider k1=k-->1 as XFinSequence of NAT;
  setA3:x   java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
=k0k;
  Sum <0>0&i1 53:3java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
  then
A7: Sum kqk =
  Sum k1=k*1 by AFINSQ_2:58mjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  then 2*Sum (p|(A:   java.lang.StringIndexOutOfBoundsException: Range [36, 12) out of bounds for length 36
  then
:*+q A6
  M c= NAT
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      object
    assume y in M proof
    then ex i be Nat st iin;
f 12
  end;
  reconsider as  SubsetA8;
  min*M=2*k+len q
  proof
    kqk = k0^(java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    then
A9: len kqk = len k0A4 x p java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 52
kqk  + q by AFINSQ_1;
    ,ZFMISC_1:;
A11: min*M<>2*k+len q;
    min*M in M by NAT_1:def 1
    then
A12:  
A14 *+q> M,def1;
    then
A15: Segm(mintheoremTh20:
    then
:pM java.lang.StringIndexOutOfBoundsException: Range [20, 17) out of bounds for length 20
    now
      casesjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
      suppose
A17:    min*M <= k;
om  &k0^^)by:27java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
        then
A18:    thenqstqp   &q=n& q=by;
A19:    Sum (min*M-->0)=    java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
        F)-(D| =.byS4,java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
        then Sum
          ,java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
      end
      suppose
        min*M > k bejava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
        then reconsider mk=min*M-k as Nat java.lang.StringIndexOutOfBoundsException: Range [0, 44) out of bounds for length 27
        now
          per cases;
          
A20:min   c {,} ;
A21:        dom k0 = k;
      Mmk+java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
            then
A22l njava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
            dom (k0^q)=len k0+len q by AFINSQ_1:def 3;
            thenkqkmin*M=(k0^|min*M by A20,AFINSQ_1:58;
            then
A23:        Sum(ppjava.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
A24:        1 <= k by A4,NAT_1:14;
            Sum(k0)=k*0 by AFINSQ_2:58;
            S5   v
            hence contradiction by A24,NAT_1:tjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13
          end;
          suppose
            min*M > k+len q;
            then reconsider mkL=min*M-(k+len q) as Nat by NAT_1:21 
A25
            A1: Domin_0(n,m 
then*=dom0q)mkL
            then kqk|min*M=(k0^q)^(k1|mkL) java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 6
            then
A26:        Sum(p|min*M)=Sum(k0^q)+Sum (k1|mkL) by A16,AFINSQ_2:55  then considerxbeing such 
            < lenkqkby 11A10,,1
            consider psuch that
            java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 11
            then
:Sum(k1|kL)=kL* byAFINSQ_258java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
            Sumk0q=)Sum   k0=k0by :55,;
            hence contradiction by A3,A11,A26,A27,A25;
          end;
        end;
        hence contradiction;
      end;
    end;
    hence  (, = {
;
  thesis
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem Th17:
  forp st p  & {N:2Sum(p|)   &N>}={
  & len p > 0 ex     assume x in{}

  let p such java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 6
A1: p is dominated_by_0 and
   {,;
  set M={N: 2*Sum(p|N)=N & N>0};
  consider reconsider nnn Elementof by d 12;
A3 [set,et]means fork st k=1holds $2=n-p.k;
  take q;
A4: rng p c= {0,1} by A1A2: for k stkin Segm len  ex x be Element of{,}  Pk,]
 rng qclet a assume
  then
= {0,1  ;
  len p >= 1 by A2,NAT_1:14;
  Segm 1 c= Segm len p byNAT_1:;
  then
A6: dom (p|1)=1 by SK:   a in dom(((F.b) byA1,ARSKI:java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 43
A7: p|1=<%(p|1).0%> by A6,AFINSQ_1:34;
  0 in Segm 1     thesisby A3;
  then
A8: (p| ththen a java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  hence p=<%0%>^q by A1,A3,A7,Th3;
A5 for k st []holds Q[k+1]
  then consider i such that
 and
A9: 2*Sum(q|i) > i by A5;
reconsider i as Nat;
  p|(1+i)=(p|len(pk1)k1 A1262java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
  thenSD:not nuc= a    then
A10 Sum (|1+))=Sum <p.
A11: 2*Sum(q|i) >= i+1 by A9,NAT_1:13;
  Sum <%p.0%>=p.0 by AFINSQ_2:53;
  :  not ex rbeing FinSequence ofNATstr java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 67
 Sum (p|1+i))=(  Nat)+Sum (|)by A1,T;
  then 1+i >=2*Sum (q|i) by A1    then Sum (q|1= qk+<q.%> A10A:;
1+i 2Sum q|)by ,XXREAL_0XXREAL_0:;
  then 1+i in M by A12;
;
end;

theorem Th18:
  p is dominated_by_0 implies <%0%>^p is dominated_by_0 &
  {N: 2*Sum((<%0%>^p)|N)   m>
proof
  reconsider q=1-->0 as XFinSequence of NAT;
    then r nm=n-m as Nat by NAT_1:21;
A1: p is dominated_by_0;
  dom q = 1 A2:(!*nm)(m!*by XREAL_1:;
  then
A2:      a   then (n!(m!*(!)0by A2,REAL_181java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
  q is dominated_by_0by Lm2java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
then  q is dominated_by_0 theorem Th27:
  hence<0%>^ is,h7
  set M={N: 2*Sum((<%0%  card Choose(nm,,0)
  assume M<>{};
  then java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 10
   [bject,] 
  consider i be Nat such that
  xi
A4: 2*Sum((<%0%>^p)|i)=i and
;
  reconsider i1=i-1 as Nat by A5,  *+1) & p=(p|(*+)^ &(orobe Nat sto<2k+holdsSI   v.  FF..by A7S2,:def11java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
  dom <%0%>=1 by AFINSQ_1:33;
  i=dom <0> +1;
  then (<%0%>^p)|i=<%0%>^(java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 6
A6: Sum ((<%0%>^p)|i)=Sum <%0%>+ Sum (p|i1) by AFINSQ_2:55;
  Sum <%0%>=0 & i1<i1+1 by AFINSQ_2:53,NAT_1:13;
  hence thesis by A1,A4,A6,Th2;
end;

theorem
  rng p c= {0,1} & 2*k+1 = min*{N:2*Sum(p|N) > N} implies p|(2*k),CARD_FIN16java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  dominated_by_0
proof
   M=N :2Sum(|) > N};
  set q=p|(2*k);
  assume that
A1: rng p c= {0,1} and
A2: 2 *A4   Z;
  thus rng q yA4X:def java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  reconsider M as non empty Subset of NAT by A2,NAT_1:def 1;
  let m;
  assume
 m=      then a n dom(.)with-replacementnu,dom(D.b)by ,TREES_1d 9;
  then
A4: Segm m c= Segm len q by NAT_1:39;
  len q <= 2*k by AFINSQ_1:55;
  then Segm len q c= Segm(2*k) by NAT_1:39;
  then Segm m c= Segm(2*k) by A4;
  then m<2k  NAT_1:;
  then
 2*k+  NAT_1:;
  assume
A6: 2*Sum(q|m) > m;
reconsider  as    ORDINAL1def ;
  q|m=p|m & m in NAT     then consider o be Nat such hat
  then m in M by A6;
  hence thesisA9 2 * +=min*N  *mp|)>    ++1=dom     
end;

begin

definition
  let n, be Nat;
A10 =qr Th1;
  :Def2:
      x in it  =1&S[]holds[+1java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
 NATstp=x   isdominated_by_0&dom p=n & Sump =;
  existence
  proof
    defpred Q[object] means
    ex p st p=$1 & p is dominated_by_0 & dom p = n & Sum

    consider X such that
A1: for x being object java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 24
  :sch;
    X c= {0,1}^omega
    proof
      let      let i;assume
      assume x in X;
      henconsider such that
A2:   p=x and
A3:    then
      dom p = n A: dom R=n by ,AFINSQ_1 java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
      Sump=byA1java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    then rngr2c={01 by A7;
      then  is XFinSequenceof {0,1} RELAT_1def19;
      hence thesis by A2,AFINSQ_1:42;
    end;
then  X  Subsetof {0,omega
    take X;
    let x;
    thus x in X implies Q[x] by A1;
    giventhen
:p= & p is dominated_by_0 & dom p = n & Sum p=m;
    A18: *o <2o1by NAT_113java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
,ZFMISC_1:96;
    then p c= [:NAT,NAT:];
        thesisA19 q2=(*)byRELAT_174;
  end;
  uniqueness
  proof
    let ,X2be Subsetof {01}omegasuch 
A5: A22: =2o+ by ,ELAT_1:62java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
A6  inX2 iffexpn B by FINSEQ_3:25;
    for x being object holds x in X1 iff x in X2
    roof let x be object;
      x in X1 iff ex p st p=x & p is dominated_by_0&dom p=n&Sum p=m by A5;
      hence thesis by A6;
    end;
     by TARSKI:2;
  end;
end;

theorem Th20:
  p in Domin_0(n    then
proof
  thus p in Domin_0(n,m) implies p    += Sum q r2  A8,A10,FINSQ_2:;
  proof
assume p in (,m)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    then ex q st q=p & q is       reconsider      ence in  A,,ARD_FIN4java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    hence thesis;
   endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  A25  =     + 1= min*N*Sum(|)N}
end;

theorem Th21
  Domin_0(n,mc=Choose(n,m1,0)
proof
  let x        R=r1r2 &len =2*k+ & len =len q9 &p9=q9r2 A5,,,
ax (,;
  then consider p such that
A1: p = x and
A2: p is dominated_by_0 and
A3: dom p = n & Sum p = m by Def2;
  rng p c= {0,1} by A2;
  ence thesis by A1A3,CARD_FIN40java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
end;

registration
  let n,m;
  java.lang.StringIndexOutOfBoundsException: Range [17, 9) out of bounds for length 33
  coherence
  proof
    Domin_0(n,m) c      end;
    java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
  end;
end;

theorem Th22:
  Domin_0(n,m) is empty iff 2*m > n
proof
husDomin_0(n, is empty implies  * m  n
  proof
    setq=m-1java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
    assume
A1: Domin_0(n,m) is empty;
    assume
A2: 2*m <= n;
    m<m+   then consider suchthat
    thenreconsider nm=n-m as Nat by A2,NAT_1:21,XXREAL_0:2;
    set p=nm-->0;
    2*m-m <= nm by A2,XREAL_1:9;
    java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 8
A3 <+ byNAT_1:3;
        then*  *m+1)by XREAL_1:68;
    then
A4: dom (p^q)=nm+m;
A5: Sum (p^q)=Sum p+ Sum q by AFINSQ_2:55;
         2*Sum(nn<n &ninNAT by A31ORDINAL1:def 12java.lang.StringIndexOutOfBoundsException: Range [61, 62) out of bounds for length 61
      A1,A4,3Def2
  end;
  assume
A6: 2 * m > n;
  assume Domin_0(n,m) is non empty      let  be object;
  thenconsider x being object such that
A7: x in Domin_0(n,m);
  consider  such that
  p = x and

A9: dom p = n and
A10: Sum p = m by A7,Def2;
  p|n=p by A9;
  hence thesis by A6,A8,A10,Th2;
end;

theorem Th23:
  Domin_0(n,0) = {n-->0}
proof
  set p=n-->0;
 n0)c pjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
  proof
    let x be object;
    ssumex in Domin_0(0;
    then consider q such that
A2: x=q and
    q is  dominated_by_0 and
A3: dom q = n and
A4: Sum q =0 by Def2;
    len q=n & q is nonnegative-yielding by A3;
    then q = n --> 0 or (q={} & n=0) by A34:2*(|m)m1+ by A33;
    then q= n-->0;
    hence       then Segm c= Segm by :9;
  end;
  {p} c= Domin_0(n,0)
  proof
A5: p is dominated_by_0 by Lm2;
    dom  then
    then
6  in (, by A5,Def2;
    let x be object;mm <  p A29ANAT_1def1java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
    assumexi p}
    hence thesis by A6,TARSKI:defthen dom(pT:  (.2-ub(b2)=
  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  hence thesis by A1;
end;

theorem Th24:
      1<m11 NAT_113
proof      then not m1 in M by NAT_1:def 1;
  Domin_0(n,0={n->0)=;
  hence thesis by CARD_1:30;
end;

theorem Th25:
  for p,n st rng p c= {0,n} ex q st len p =   for p,n st rng p c= {0,n} ex q st len p = len
  & (for k st k <= len p holds Sumtake S;
  holds .= n-p
proof
  let p, such java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
A1:  p c= {,n}
reconsider nn=n as Element of NAT by ORDINAL1:then (|)Sum(p|m1)+Sum%.1% A38,A36,AFINSQ_2:55;
  defpred P[set,set] means for k st k=$1 java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 42
A2: for k st k in Segm 
   thenconsider k such that
    let k;
    assume k in Segm len p;
    then p.k in rng p by FUNCT_1:3;
    then p.k=0 or p.k=n by A1,TARSKI:def 2;
    then
A3: n-p.k in {0,nA     then
    P[k,n-p.k];
    hence thesis by A3;
  end;
  consider q be XFinSequence of {0,n} such that
A4: dom q= Segm len p& for k st k in Segm len p holds P[A42 Sum (|(*k+1))=and
IRL2_1 ()java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  reconsider q as XFinSequence of NAT;
  defpred Q[Nat] means $1 <= len p implies Sum (p|$1)+ Sum (q|$1)=n*$1;
    rng (| ={,}byA30;
  proof
    let ksuchthat
A6: Q[k];
     k1=+;
A7: k<k+1 by NAT_1:13;
    then
A8: Segm kA47:for  sti<  (p)holds Sum (|1)i+umr|=*
    theni i in  (|k1holds .i1(p|)i by ;
A9 pk1)pk RELAT_174;
A10: (q      suppose b1 < b;
    assume
A11A50:mk+um q by A31,A42,A44,AFINSQ_2:55;
        dom =(|k1+enq byA45,FINSQ_1d ;
A12    then
    then
A13: len    (p|1)dom(|k1(p|k1|k1) & r|dom r=r;
    then
A14: (q|k1)=((q|k1)|k)^<%(q|k1)A52  (p|k1+r=* p  A45,A47;
    len (p|k1)=k1 by    rng q c=rng p by A44,:25;
    then
A15:k  dom (|1  A7,:86;
    then
A16: (p|k1).=     henrngr/ng qc=0,}by A46,XBOOLE_1:java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
lenp|1)=k1 by A12,ELAT_162;
    then (p|k1)=((p|k1)|k)^<%(p|k1).k%> by AFINSQ_1:56;
    then A54 Segm k1 =Segm  byA43,NAT_1:39;
    then
   then
    k< len p by A11byRELAT_162java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    k inlen p by AFINSQ_1:;
    then
:q=. byA4;
    (q|k1).k= q.k by A13,A15,FUNCT_1:47;
    then Sum (q|k1)=Sum (q|k)+Sum <%q.k%> java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 33
    then A59 *Sum  >k1  A42,52,55A57
    T4:    ((.b2)-sub(D    java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 36
  end;
  take q
  thus len p=len q by A4;
  thus rng q c= {0,n} by RELAT_1:def 19;
A19: Q[0];
  for holds Q[]from :sch2A19        (h.|/1uaNodeof )by ;
h thesis by A4;
end;

theorem Th26:
  m <= n implies n choose m > 0
proof

A1: m<=n;
then reconsidernm=-mas Nat   v..b1) f1 g.in rng gby AA,,FUNCT_1:ef;
A2: (m!)*(nm!)>(m!)*0 by XREAL_1:68;
  n!0*(m!*(m));
  then (n!)/((m!)*(nm!))> then
  hence thesis A1,NEWTON:def;
end;

theorem Th27java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  2*(m+1) <= n implies card (Choose(n,m+A65: r1j1 and
  (n,m,10
proof
  defpred P[object,object] means
for p,k st $1 = p & 2 * kU5     g.b1 =nuA68  rql r1+en r2 by A66,FINSQ_1:def3
} ex r1,r2 be XFinSequence of NATA69  (r1^2)=en(|k1q)by A49,61,FINSQ_1:17;
  k+)  =p(*+1)r2&(oro  st o  2+1 r1o=-po)
  assume
A1 *m+)=n;
A2: m <= m+m by     rq|1= by A45,,AFINSQ_1:;
  m    then k1 in KbyA58;
  then 2*m <    then
  then 2m<  by A1,XXREAL_0:;
   then m<= n by A2,XXREAL_0:2;
   (ardn choose m>0 by Th26;
  then reconsider W=Choose(then
,CARD_FIN:16;
  set Z=Domin_0(n,m+1);
  set CH=Choosej1inK A60,AT_1: 1;
A3: for x being object st x in CH\Z java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 8
  proof
    let x being object such that

    x in CH by A4,XBOOLE_0:def 5;
then  p be XFinSequenceofNAT  that
A5: p = x and
A6: dom p = n and
:rngp ={1 and
A8:Sum p=,FINSQ_1:;
    not p in     j1>* (p|1  XREAL_1:java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
    then p is not dominated_by_0 by A6,A8,Def2;
    then consider o be Nat such that
73 j1=byA70,:1;
    Sum (p|(2*o)) & A74:len (p|k1q)=len rq  A49,:def3;
    set q=p|(2*o+1);
    consider r2 be XFinSequence of NAT such that
A10: p=q^r2 by Th1;
    rng q c= {0,1} by A7;
    then r1  XFinSequence of NAT such that
A11 len = r1 and
A12: rng r1 c= {0,1} andnow
A13: for i st i <=len q holds Sum (q|i)        suppose
   st  inlen qholds .=-. by Th25;
    take R=r1^r2;
    len p=        then
    then
A15:domR by A6,AFINSQ_1:def 3;
    rng r2 c= rng p by A10,AFINSQ_1:25;
ng r2 c= {0}by A7;
    then rng r1 \/ rng A79:      lenr1=en p|1) &iin 
    
A16: rng R c= {0,1} by AFINSQ_1:26;
    A80:      .=-p|1)i by ,java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
    then
A17: Sum q+Sum r1=15          (rr2).p|)i A80,77AFINSQ_1: 3;
 2* <*o+1by NAT_113java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    then Segm(2A81:     i>= len ;
    then
A19: A82      (|k1^)i=.i r byA45,A65,73,A75,FINSQ_1:;
A20: Segm(r1^r2).ir2.ilen )&rq.=.i-len r) A,,A73,A69,A74
    then
A21: dom q=2*o+1 by RELAT_1:62;
A22:  q=*+ by ,ELAT_162;
    then
A23: q=(q|(2*o))^<%q.(2*o)%> by AFINSQ_1:56;
    2*o in Segm(2*o+1) by A18,NAT_1:44;
    then q.(2*o)=p.(2*o) by A22,FUNCT_1:47;
    then Sum q=Sum (p|(
       then
A24: Sum q = o+1 by A9,AFINSQ_2:53;
    m+1= Sum q + Sum r2 by A8,,AFINSQ_2:55;;
    then Sum r1+Sum r2=m+1-(2*o+1)+2*o by A17,A21,A24;
    then Sum (r1^r2)=m byA83:r1r2|^ by A68,49,AFINSQ_1:,;
    hence R in W by A15,A16,CARD_FIN:40;
    thus P[x,R]
    proof
      let p9 beXFinSequenceof NAT,k such that
A25:  x=p9 & 2 * k + 1= minend;
      set q9=p9|(2*k+1);
      take r1,r2;
      thus R=r1^r2 &len r1=2*k+1 & len r1=len q9 &p9=q9^r2 by A5,A9,A11,A10
,A20,A25,RELAT_1:62;
      for be Nat  i < 2*k+ holdsr1.=1p9.
      proof
        let i be Nat;
        assume i <2*k+1;
        then
A26:    i in java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 13
        then r1.i=1-q.i by A14;
         by,25A,:java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
      end;
    end;
  end;
  consider   consider F be Functionjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 18
:forbeing  x CHZholds P[x,F.]  FUNCT_2sch 1(3;
  W c= rng F
  proof
    etx  object;
    assume x in W;
    then consider p such that
 p= x and
A29: dom p = n and
:  p c={, and
A31: Sum p=m by CARD_FIN:40;
    set M={N:2*Sum (p|N)<N};
m<m+ NAT_113;
    then 2*m < 2*(m+1) by XREAL_1:q=y and
by A1,XREAL_0;
    then 2*Sum (p|n)<n & n in NAT by A29,A31,ORDINAL1:def 12;
     then (omv)\ =dom(F.ub(D.;
A32: n in M;
    M=NAT
    proof
      let y be object;
      assume y in M;
      then ex i be Nat st i=y & 2*Sum(p|i)<i;
      hencethesis by ORDINAL1:12;
    end;
    then reconsider M as non empty Subset of NAT by A32;
    ex k st 2*k+1 = min*M & Sum (p|(2*k+1))=k & 2*k+1 <= dom p
    proof        by RELAT_1:62;
      set mm=min*M;
      mm in MbyNAT_1: 1;
      then
A33:  ex o be Nat st mm=o & 2*Sum(p|o)<o;
      thenreconsider m1=mm-as Nat  ,97,Def2
A34:  2*Sum(p|mm)<m1+1 by A33;
A35:  m1m1+by NAT_1:13;
      then Segm m1 c= Segm mm by NAT_1:39;
      then
A36:  (p|mm)|m1=p|m1 by RELAT_1:74;
          q|22)& q.22=  Th15
      
 mm = by:9java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
      then dom(p|mm)=mm by RELAT_1:62-ub(D.b that
       in Segmdom(pmm)by ,NAT_1:4;
      then
A38:  (p|mm).m1=p.m1s1=2*k2+and
      m1 < m1+1 by NAT_1:13A102: len s1=len qk and
      then not m1 in M by NAT_1:def 1;
      then 2*Sum(p|m1)>=m1;
      then
A39:  Sum<%p.m1%>=p.m1 & 2*Sum(p|m1)+2*p.m1 >=
A105: len q= len qk + len s2 by A103,AFINSQ_1:17;
reconsider S=Sum(p|mm) as Nat;
take S;
A40:  mm <= dom p by A29,A32,NAT_1:def 1;
      len(p|mm)=m1+1 byA37,ELAT_162java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
      then    then
      then Sum(p|mm)=Sum(p|m1)+Sum<%A106 len q=len (s1^s2) by A102,AFINSQ_1:17;
      hence thesis by A40,A39,A34,NAT_1:9;
       end;
    then consider k such that
A41: 2 * k + 1 = A41: 2 * k + 1 = min
A42: Sum p2k+1))k 
A43: 2 * k + 1 <= dom p;
    set k1=2*k+1;
    consider q such that
A44: p=p|k1^q by Th1;
    rng (p|k1) c= {0,1} by A30;
    then consider r be XFinSequence of NAT such that
A45: len r=len (p|k1) and
A46: rng r c= {0,A       then
A47: for i st i <= len (p|k1) holds Sum ((p|k1)|i)+Sum(r|i)=1*i and
A48: for i st i in len (p|k1) holds r.i=1-(p|k1).i by Th25;
    set rq=r^q;
A49:dom rq=len(p|1+ qby 45AFINSQ_1:def 3;
A50: m=k+Sum q by A31,A42,A44,AFINSQ_2:55;
    dom rq=len (p|k1)+len q by A45,AFINSQ_1:def 3;
    then
A51: dom rq=dom p by A44,AFINSQ_1:def 3;
    (p|k1)|dom (p|k1)=(p|k1) & r|dom r=r;
    then
A52:Sum (|1+Sumr=*en p|) byA45A47java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
    rng q c= rng p by A44,AFINSQ_1:25;
    then rng q c= {0,1} by A30;
    then rng r\/rng q c= {0,1} by A46,XBOOLE_1:8;
    hen
A53: rng rq c= {0,1} by AFINSQ_1:26;
A54: Segm k1 c= Segm len p by A43,NAT_1:39;
    then
A55: len (p|k1)=k1 by RELAT_1:62;
    then
A56: (r^q)|k1=r by A45,AFINSQ_1:57;
A57: k1+1> k1 by NAT_1:13;
    then
A58: k1 < 2*Sum r by A42,A52,A55;
A59: 2* Sum r > k1 by A42,A52,A55(F.b =
    then consider j be Nat such that
A60: 2 * j + 1 = min*{N : 2*Sum(rq|N) > N} & 2*j+1<=dom rq & j = Sum
    (rq|(2*j)) & rq.(2*j)=1 by A53,A56,Th2,Th15;
    set j1=2*j+1;
A61: len (p|k1^q)=len (p|k1)+ len q by AFINSQ_1:def 3;
    rq is not dominated_by_0 by A59,A56,Th2;
    then
A62: not rq in Z by Th20;
    set rqj=rq|(2*j+1);
    Sum rq=Sum r+ Sum q by AFINSQ_2:55;
   then rq in CHby A29,42,A52,55A51,A53,A50,CARD_FIN:40;
    then
A63: rq in CH\Z by A62,XBOOLE_0:def 5;
    then consider r1,r2 be XFinSequence of NAT such that
A64: F.rq=r1^r2 and
A65: len r1=j1 and
A66: len r1=len rqj & rq=rqj^r2 and
A67     by T18,U2,T21,T5,T6,T12,Lem9,TREES_2:def 11;
A68: dom rq=len r1+len r2 by A66,AFINSQ_1:def 3;
    then
A69: len (r1^r2)=len (p|k1^q) by A49,A61,AFINSQ_1:17;
    reconsider K={N : 2*Sum(rq|N) > N} as non empty Subset of NAT by A60,
NAT_1:def 1;
    rq|k1=r by A45,A55,AFINSQ_1:57;
    then k1 in K by A58;
    then
A70: k1>=j1 by A60,NAT_1:def 1;
    then Segm j1 c= Segm k1 by NAT_1:39;
    then
A71: (p|k1)|j1=p|j1 by RELAT_1:74;
    j1 in K by A60,NAT_1:def 1;
    then
A72: ex N st N=j1 & 2*Sum(rq|N) > N;
    Sum ((p|k1)|j1)+Sum(r|j1)=j1*1 by A47,A55,A70;
    then 2*Sum(r|j1)=2*j1-2*Sum (p|j1) by A71;
    then j1+(j1-2*Sum (        then
,AFINSQ_1:58;
    then j1>2*Sum (p|j1) by XREAL_1:6;
    then j1 in M;
    then j1 >= k1 by A41,NAT_1:def 1;
    then
A73: T22:    (F.b). =v. by T18,U2,T17,T19,T21,T5,T6,TREES_2:def 11;
A74: len (p|k1^q)=len rq by A49,AFINSQ_1:def 3;
    now
      let i be Nat such that
A75:  i < len (r1^r2);
      now
        per cases;
        suppose
A76:      i < len r1;
          then
A77:      i in dom r1 & r1.i=1-rq.i by A65,A67,AFINSQ_1:86;
A78:      i in len r1 by A76,AFINSQ_1:86;
A79:      len r1=len (        (g/bqua Node of v, dom(D.b))
            by A54,A65,A73,ORDINAL1:def 12,RELAT_1:62;
          then
A80:      r.i=1-(p|k1).i by A48,A78;
          p|^q)i=p|k1)i&rq.=. by A45,A78,AFINSQ_1:def 3;
          hence (r1^r2).i=(p|k1^A108 lenr112T18U2T11,REES_2:ef11
        end;
  suppose
A81:      iA111  ibe st <2*k1+1 holds r1.=-.i A27A86,A89,93;
          then
A82:      (p|k1    assume <>;
          (r1^r2).i=r2.(i-len r1) & rq.i=q.(i-len r) by A45,A55,        not ex r  FinSequenceof NATst rin dom D.)&a =g/b^&
,A75,A81,AFINSQ_1:19;
          hence (r1^r2).i=(p|k1^q).i by A113: p.i<>q.i by A89,A90,A94,A95,AFINSQ_1
        endjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
      end;
      java.lang.StringIndexOutOfBoundsException: Range [15, 11) out of bounds for length 33
    end;
    then
=p|^ by A68,A49,A61,AFINSQ_1:,java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
rq dom   ,:def 1;
    encethesis by A28,        now
  end;
  then
A84: rng F = W;
A85: F is one-to-one
  proof
    let x,y being object such that
A118       =(1^r2).i& s1i(s1^s2). by A108,A109,101,A116,
A87: y in dom F and
A88: F.x=F.y;
      x in CHby A86,XBOOLE_0:def 5java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
    then consider p such that
A89: p = x A89: p = x and
A90: dom p = n and
A91: rng p c= {0,1} and
A92:Sump=m+1 by CARD_FIN:40;
    not p in Z by A86,          suppose
  then p is not dominated_by_0by ,2,ef2;
    then consider k1 be Nat such that
A93: 2 * k1            then
 (|(*k1))&p(2*1=1 by A91,h15;
    y        reconsider nuAFINSQ_1:19
    then consider q such that
A94: q = y and
A95:dom q= and
A96: rng q c= {0,1} and
A97: Sum             hence contradiction by A88,A107,A109,A100,A115,A112,A113,A119,A120,
    not inZ A87,,BOOLE_0def 5
   then q is not dominated_by_0 by A95,A97,Def2;
    then consider k2 be Nat such that
A98: 2 * k2 + 1        end;
    2*k2)) &q(*k2)= by A96,Th15;
A99: len q=n by A95;
    reconsider M={N : 2*Sum(q|N) > N} as non empty Subset of       end;
NAT_1:def 1;
q2k2+;
             s1 <len p by A90,A95,A102,A105,NAT_1:11;
A100: F.y=s1^s2 and
A101: len s1=2*k2+1 and
A102: len s1=len qk and
A103: q=qk^s2         2*22*1by A121,XREAL_1:;
A104: for ibe Nat st i<2k2+1 s1i=1-q.i by A27,A87,A94,A98;
A105: len q= len qk + len s2 by A103,AFINSQ_1:17;
    then
A106: len q=len (s1^        then (s1^)|len  then
    reconsider K={N : 2*Sum(p|N) > N} as non emptyA124:s1r1|len s1)by AFINSQ_157;
NAT_1:def 1;
    set A125:   fork be  k <len  holds .k=p|en qk)k
iderr1r2beXFinSequence of NATsuchthat
A107:           letk be Nat such 
A108: len r1=2*A126 k<en qk;
A109: len r1=len (p|(2*k1+1)) and
A110:p=p|2*k1+))^2and
A111: for i be Nat st i < 2*k1+1 java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 14
    assume x<>y;
then i beNat  that
A112: i < len p and
A113:p.<q. by A89java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 14
114 len p=len pk+len r2 by A110,AFINSQ_1:17;
    then
A115: len p=len (r1^r2) by A130:     k<len r1 by A102,A123,XXREAL_0::;
    now
      per cases by XXREAL_0:1;
          r1.k=1-p.k by A108,A111;
A116:   k1=k2;
        now
          per cases;
          suppose
A117 i len pk;
            then i in len pk by AFINSQ_1:86;
            then
A118:       A132:    k(| s1)kby FUNCT_1:48;
AFINSQ_1:def 3;
            r1.i=-p            byA101,A124,131,,128A129FUNCT_1:
            hence contradiction by,A100,113A118;
          end;
          suppose
A119:       i>=len pk;
            then
A120:       (s1^s2).i=s2.(i-len pk) by A90,A108,A109,A95,A101,A106,A112,A116,
AFINSQ_1:;
            p.i=r2.(i-len pk) & q.i=s2.(i-len pk) by A90,A108,A109,A110,A101
,A102  lenqk=(|enqk)by 102A122,RELAT_162java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
            hencecontradictionby ,A107,A109,A100A115,112,A113,A119,,
AFINSQ_1:19;
          end;
        end;
        hence contradiction;
      end;
      suppose
A121:   k1>k2;
lenv `,`],AAAB
        then
A122:   Segm len s1 c= Segm len p by NAT_1:39;
        <* by A121,:68;
        then
r1byA108,A101,XREAL_1:6;
        then (s1^s2)|(len s1)=r1|(len s1) by A88,java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 12
        then
   s1=|len s1)by AFINSQ_1:57;
A125:   for k . V1B.]y AB,ART_1def 13
        proof
          let k be Nat suchA138:for be  st k <  k  pkk=(q| pk)k
A126:     k<len qkA       proof
:     k in lens1 by ,,AFINSQ_1:java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
          then
128     k in domq\en 1 by ,A95A,BOOLE_0:def4;
          k in dom p/\ len s1  then
          then
A129:pk=p| qk.k by A102,:48
A130:     k<len r1 by           then
          then
A131:r1=1-p. by ,java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
          k in  r1  A130,AFINSQ_1:86;
          then k in dom r1/\ len s1 by A127,XBOOLE_0:def 4;
          then
A132:     r1.k=(r1|len s1).k by FUNCT_1:48;
          s1.k=1-q.k by A101,A102,A104,A126;
        hence ((F)-ub(D.))|g/b1qua Node of v)
        end;
        2*k2+1 in M by A98,NAT_1:def 1;
        then
A133:   ex N st 2*k2+1=N & 2* Sum(q|N)>N;
len qk=len (p|enqk)by ,A122,RELAT_1:62;
        then qk=p|len qk by ,AFINSQ_1:9;
        then len qk in K by A101,A102,A133;
        hence contradiction by A93,A108,A102,java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 43
      end;
      suppose
A134:   k1<k2;
:11;
        then
A135:   Segm len r1 c= Segm len q by NAT_1:39;
        2*k1<2*k2 by A134,XREAL_1:68;
        then
A136:   len r1 < len s1 by A108,A101,        then (dom v)\rng g c= dom((F.b)-sub.));
         146   ex st2*k1+1=N&2*Sum(p|>N
        then
A137:   r1=s1|(len r1) by AFINSQ_1:57;
A138:   for k be Nat st k < len pk holds pk.k=(q|len pk).k
        proof
          let k be Nat such that
A139:k< pk;
A140:     k in len r1 by A109,A139,AFINSQ_1:86;
          then
A141:     k in dom p/\len r1 by A90,A95,A135,XBOOLE_0:def 4;
          k in dom q/\ len r1 by A135,A140,XBOOLE_0:def 4;
            end
A142:        let ajava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
143:k s1 by A109,136A139XXREAL_02java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
          esisby CARD_1:;
A144:     s1.k=1T24:a  dom((F.)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
          k in dom s1 by A143,  2*(m+1) <= n implies card Domin_0(n+1) = (n choose (m+1)) - (n choose m)
          then k in dom s1/\ len r1 by A140,XBOOLE_0:def 4;
          then
A145:     s1.k=(s1|len r1).k by FUNCT_1:48;
          r1.k=1-p.k by A108,A109,A111,A139;
cethesis by,A137AA  etCH=Choose(,m+,0)
        end;
        2k1+1 in  in K by A93NAT_1d 1
        then
146   Nst2*1N&2 (|>java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
        pk  (q|en pk)by A109,A135,RELAT_162;
        then pk=q|len pk by A138,AFINSQ_1:9;
        then len pk in M by A108,A109,A146;
        hence contradiction by A109,A98,A101,A136,NAT_1:def 1;
      end
    end;
    hence contradiction;
  end;
  dom F= C:java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  then (CH\), java.lang.StringIndexOutOfBoundsException: Range [30, 30) out of bounds for length 0
  hence thesis by CARD_1:5;
end;

theorem Th28:
  2*(m+1) <= n A1       then
proof
  set CH=Choose(n,m+1,1,0);
  set Z=Domin_0(n,m+1);
  set W=Choose(n,m,1,0);
:card       then n choosem= byNEWTON:19;
  card (CH \ Z) = card CH - card Z by Th21,CARD_2:44;

A2: card Z=cardhence thesis byTh24
  assume 2 * (m+1) <= n;
thencardZc -card  by,h27
h thesis byA1,:16;
end;

theoremTh29
  2*m <= n implies card as by A3,:20;
proof
  assume
A1: 2*m<=n;
  now
    per cases;
    java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
   m=;
      then (n choose m)=1 by NEWTON:19;
      T19    not g/b c= a:1/19*)((+)*/((*)(+)by XCMPLX_1:91
      hence thesis by A2,Th24;
    end;
    suppose
3   m>0;
A4        .=(m)/(*m9)by XCMPLX_1:90;
      then reconsider nm=n-m as Nat by A1+1/m9*nm9=((m+)1/(*nm9)(+)  XCMPLX_1:java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
      reconsider m1=-1 as Nat by A3,NAT_1:20;
      set n9=n!;
      setm9=m!
      nm19(+)!
      set nm9=nm!;
m=  A1,XXREAL_0:;
      then
A5:n choose2m/*nm9*(+)) :15
A6 2A1;
      set m19=m1!;
A7   /m19*)(m1+)1/(*m19)(1+)  :91
        .=m/(nm19*(m19*(m1+1)      m1<=+(1++) NAT_111;
.m(*m1+1)!)  NEWTON:java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
CMPLX_1:;
      1/(m9*nm9)=((nm+1)*1)/((m9*nm9)*(nm+1)) by XCMPLX_1:91
        .=(nm+1)/(m9*(nm9*(      then
        =nm+)(9nm19  NEWTON:;
      then
   /m9nm9-/(nm19)=(nm+1)/m9*m19)+(m)(9*nm19)by A7
        .=((nm+1)+(-m))/(m9*        .=9*1(9*nm9))n9*(1/m19*m19)) by 99
        .=(n+1-2*m)/(m9*(nm9*(nm+1))) by NEWTON.n9*(m9*m9-/m19*nm19)java.lang.StringIndexOutOfBoundsException: Range [38, 39) out of bounds for length 38
        =*n-*)/(*nm9)(nm+))
        .=(1/(m9*nm9))*(( .=n9*/m9*m9)))*(n+-2*)/(m1)
      m1<=m1+(1+m1+1) by NAT_1:11;
      then
A9:   m1 <= n by A1,XXREAL_0:2;
      n-m1=nm+1;
      then
A10:  n
      n9/(m9*nm9)-n9/  hence thesis;
        .=n9*(1/(m9*nm9))-n9*(1/(m19*nm19)) by XCMPLX_1:99
        .=n9*(1/(m9*nm9)-1/(m19*nm19))
        .=n9*((1/(m9*nm9
        .  card Domin_02+k,1) =k+1
        .=((n9*1)/(m9*nm9))*((n+1-2*m)/(nm+1)) by XCMPLX_1:74;
            hence(2+,)(2k121/2+k+-)*2+  1 y Th29NAT_1:
    end;
    .(k+1)(2+k)(2k by STIRL2_1:
      .=+1by XCMPLX_1:87;
end;

theorem Th30:
  card Domin_0(2+k,1) = k
proof
  Domin_0(+,1)=(+k+-*)(+k+1-1)(2k choose 1))by ,NAT_1:11
    .=(k+1)/(2+k)*(2+k) by STIRL2_1:51
.k+ :java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  hence thesis;
end;

theorem
  card 4k (+*(k+/
proof
  card Domin_0(4+k,2)=(4+k+1-2*2)/(4+k+1-2)*((4+  hence ;
    .=(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    .=((k+1)/(k+3)*(3+k))*(4+k)  card (6+,) = (+1)*(+)(+java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
   =(k+)4k)2  XCMPLX_1:java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  hence thesis;
end;

orem
  card Domin_0(6+k,3) = (k    =k1*5k)(+)6by XCMPLX_1;
proof
  card Domin_0(6+k,3)=(6+k+1-2*3)/(6+k+1-3)*((6+java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 0
    .=( card (*,n =((2*n)choosen)/(+)
    .=((proof
    .=(+)*(5+*6k)6by CMPLX_187java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41

end;

theorem Th33:
  card Domin_0(2*n,n) =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
)=2n12*)(n+-)*(*n)choosen)Th29
    .=(1*((2*n) choose n))/(proof
  hence thesis;


theorem 
  card Domin_0(2*n,n) = Catalan(n+java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
proof
:Catalan()(2(n1 '2  ((+1))- )/n+1  CATALAN1: 1;
  2*n+2 -' 2=2*      st in itholds xis  of;
  hence thesis by A1,Th33;
end;

definition
  let D;
mode    >non empty set means    hus  byAFINSQ_1d ;
    :Def3:
    for x st x in it holds x is java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 0
  existence
  proof
     D9OMEGA=^ as functionalnon  setjava.lang.StringIndexOutOfBoundsException: Range [59, 60) out of bounds for length 59
    take D9OMEGA;
    thus thesis by AFINSQ_1:def 7;
  end;
end;

java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  let D;
 redefinefunc D^mega->OMEGAof Djava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
  coherence
  proof
    Dreserve , qN  ofNAT^omega;
    of D by AFINSQ_1:def 7;
    hence thesis    {pN:om pN  * &pNthen  =i as  ofdom  AAMCART_1:def 13;
  end;


registration
  let D;
  let F be OMEGA of D;
  cluster -> finite D-valued Sequence-like for Element of F;
  coherence by Def3;
end;

reserve pN,qN for Element ofNATomega;

theorem
 2n & is dominated_by_0}= 2n)choosen
proof
  set D=bool ({0    k in Segm(+1)
  set =2*n;
  defpred P[set,set] means for i st i=$1 holds $2=    take Z
  set Z={pN:dom pN = 2* n & pN is dominated_by_0};
 for k st k in Segm(n+1) ex x be Element of D st P[k,x]
  proof
    let k such that
    k in Segm(n+1);
    reconsider Z=Domin_0(2n,k) as Element
    take Z;
thusthesis;
  end;
  consider r   hence h. = (A4 x=pN 
 r Segmn+)&  k st k inSegm(+) holds P[,r.]
     inDomin_0(*,Sum ) A5java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
A3:    then 1/2*2* < 1/(2 *n)byXREAL_164
  proof
    let x be object;
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    then consider pN such that
A4: x=pN and
A5 dompN  2   is dominated_by_0;
    pN in Domin_0(2*n,Sum pN) by A5,Th20;
    then 2*Sum pN A7 pN r.Sum ) by A5,Th20;
    then 1/2*(2*Sum pN)<= 1/2*(2 * n) by     r.Sum pN)in rngr by ,,3java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
    then Sum pN java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    then
A6: Sum pN in Segm(n+1) by NAT_1:44;
    then r.(Sum pN)=Domin_0(2n    =Domin_0(2ni) by ,A12;
    then
A7: pN in r.(Sum pN) by A5,Th20;
    r.SumpN) inrngr A2,6,:3;
    hence thesis by A4,A7,TARSKI:def 4;
  end;
A8: union rng r c= Z
  proof
    let x be object;
    assume x in union rng r;
    then consider y such that
A9: x in y and
A10: y in rng r by TARSKI:def 4;
    consider i be object such that
A11: i in dom r and
A12: ,jbe Nat            such that
    reconsider iA15 i  dom and
 y=(ni) by A2,11,A12;
    then consider p suchA17: i>;
:p &p  dominated_by_0  p =2 nd
    Sum Segm1byNAT_1:;
    p in NAT^omega by AFINSQ_1:def 7;
    hence thesis by A13;
  end;
A14: for i,j be Nat            st i in dom r & j in dom r & i<>j holds r.i
isses r.java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
  
    let i,j be Nat                dom |1)=RELAT_1:2;
A15: i in dom r and
16:j ndom r and
A17: i<>j;
    assume r.i A33: Cardr|1=<%Cardr A:;
    hen r./\r.>}java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
     considerx  object such that
A18: x in r.i/\r.j by XBOOLE_0    then  Cardr|)=1 byA33,A28A:53java.lang.StringIndexOutOfBoundsException: Range [48, 49) out of bounds for length 48
A19: x in r.j by A18,XBOOLE_0:def 4;
  r.=omin_0(n)by A2,16;
    then
A20: ex q st q = x & q is dominated_by_0 & dom q = 2*n & Sum q = j by A19,Def2;
A21: x in r.i by A18,XBOOLE_0:def 4;
    r.=Domin_0(n,)by A2,A15;
    then ex p st p = x & p is dominated_by_0 & dom p = 2n & Sum p = i by A21
,Def2;
    hence thesis
  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A22: for i st i in dom     =A23NAT_1
  proof
    let i;
    assume i in dom r;
    then r.i=Domin_0(2n,i) by A2;
    hence ;
  end;
  consider Cardr be java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 17
A23: dom   for i holds [i]  NAT_1: (A27,34)
 foristi domCardrholdsCardr.= ri java.lang.StringIndexOutOfBoundsException: Range [57, 58) out of bounds for length 57
A25: card union rng r = Sum(Cardr) by A22,A14,STIRL2_1:66;
A26: n < dom Cardr java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  defpred Q[Nat] means  for n,m,,,l st   n-*k+    -(k+1)holdscard{  
java.lang.StringIndexOutOfBoundsException: Range [8, 3) out of bounds for length 9
  proof
    0 in Segm(n+1) by NAT_1:44;
    then r.0=Domin_0(2n,0) by A2;
    then
A28: card (r.0)=A etq01->;
A29:in Segm1by NAT_1:;
    assume
A30: 0 <len Cardr;
    then 1=len Cardr by NAT_1:14;
    then
A31: Segm 1c Segm len Cardr by NAT_1:9;
    then
A32: len ex r1,r2 be XFinSequence of NAT st $1 = q0^r1^q1^r2
    dom (Cardr|1)=1 by A31,RELAT_1:62;
    then (Cardr|1).0=Cardr.0 by A29,FUNCT_1:47;
    then
A33: Cardr|1=<%Cardr.0%> by A32,AFINSQ_1set Z1=Domin_02*k,k;
    0 in len Cardr by A30,AFINSQ_1:;
set2k1=2*k+1;
    then A2 for x being object st x in F ex y being object st y in [:Z1,Z2:] & P[x,y]
    hence thesis by A3: dom q0=1 & Sum q0=0*1AFINSQ_258
  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A34: for i st Q[i] holds Q[i+1]
  proof
     is that
A35: Q[i];
    set i1=i+1;
    assume
A36:i<len ;
    then
A37: i1     r2 be XFinSequenceofNATsuchthat
    
A38: Cardr Cardr(1+))&Cardr.=(ri1
    by A24,AFINSQ_2:65;
    i1 <=n by A2A6: N|k1=q0^r1q 
    then
 *<n java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
    then
    Sum(CardrA15:r2   byA1,A13,A11,Th20;
,A38,A39,Th28,NAT_1:13;
    hence thesis;
  end;
  for i holds Q[     *k1lenq0+ r1 AFINSQ_117java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
  then Sum(Cardr)=(2n choose n) by A26;
  hence thesis by A25,A3,A8,XBOOLE_0:def 10;


theorem Th36consider   ofF,[:Z1,Z2:]such that
for,,k,j,lst  = n-2*(k+1  l = m-k+)holds card {pN :pN
 Domin_0nm  *k+)=min*N2*ump|) =N &N >0}   Domin_02*k
k  cardDomin_0(,)
proof
  set q1=1-->1;
  set q0=1-->0;
  let n,m,k,j,l such that
A1: j=n-2*(k+1) & l=m-(k+1);
  defpred P[object,object] means
ex r1,r2 be XFinSequence of NAT st $1 = q0^r1^q1^r2
  & len (q0^r1^q1) = 2*(k+1) & $2 = [r1,r2];
  set Z2=Domin_0(j,l);
  set Z1=Domin_0(2*k,k);
  set F={pN:pN in Domin_0(n,m) & 2 * (k + 1) = min*{N: 2*Sum(pN|N)=N&N>0}};
  set 2k1=2*(k+1);
A2: for x being object st x in F ex y being object st y in [:Z1,Z2:] & P[x,y]
  proof
A3: dom q0=1 & Sum q0=0*1 by AFINSQ_2:58;
    let x be object;
    assume x in F;
    then consider pN such that
A4: pN=x & pN in Domin_0(n,m) & 2k1=min*{N: 2*Sum(pN|N)=N & N>0};
    2k1>2*0 by XREAL_1:68;
    then reconsider
    M={N:2*Sum(pN|N)=N & N>0} as non empty     <{;
    consider r2 be XFinSequence of NAT such that
A5: pN = pN|2k1^r2 by Th1;
    2k1>2*0 & pN is dominated_by_0 by A4     pNst =x &pN in (,)&2=in*N:*Sum(pN|)=N&0  A19;
    then consider r1 be XFinSequence of NAT such that
A6: pN|2k1 = q0^r1^q1 and
A7: r1 is dominated_by_0 by A4,Th14;
A8: Sum q1=1*1 by AFINSQ_2:58;
M by A4,AT_1: 1;

A9: ex o be Nat st  let x be objectjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
 k1= q^r1)+   by ,:55
    java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
A10: k=Sum q0+ Sum r1 by A8,AFINSQ_2:55;
    pN is dominated_by_0 by A4,Th20;
    
 isdominated_by_0 by A5A9,;
pN dominated_by_0  A4,;
    then
A12: len (pN|2k1)=2k1 by A9,Th11;
    Sum pN=m by A4,Th20;
    then
A13: m=k+1+Sum r2 by A5,A9,AFINSQ_2:55;
    take [r1,r2];
    dom pN by A4,h20java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    then n=2k1+len r2 by A5,A12,    0=lenq0p+ lenq1 &  = by :ef 3;
    then
:r2 in  by ,,,h20;
    then (0p1^|21lenp=p1 by :;
    then 2*k+1=len q0+ len r1 by AFINSQ_1:17;
     r1 in Z1 by A7,A10,3,Th20;
    hence thesis by A4,A5,A6,A12,A15,ZFMISC_1:def 2;
end;
  consider f being Function of F,[:Z1,Z2:] such that
A16: for x being object st x in F holds    then 0p1 is dominated_by_0 A28,h10;
A17: [:Z1,Z2:]={} implies F={}
  proof
    assume [:Z1,A39: 0p1^q in NAT^omega by AFINSQ_1:def 7;
    then Z1={} or Z2={};
    then 2*l > j by Th22;
    then 2*m-2*(k+1) > n-2*(k+1) by A1;
    then
A18: 2*m > n by XREAL_1:9;
    assume F<>{};
    then consider x being object such that
A19: x in F by XBOOLE_0:def 1;
    ex pN st pN=x & pN,37,A39;
    hence thesis by A18,Th22;
  end;
  then
A20: dom f=A41:01^q =q0^r1^^r2and
  f=:1,Z2:
  proof
A22: Sum q0=1*0 & Sum q1 29;
    thus rngthen q0^=0^1by A41A42AFINSQ_12857
    let x be object;
    assume x in [:Z1,Z2:];
    then consider,x2 beingobject such that
A24: x1 in Z1 and
A25: x2 in Z2 and
:x=x1x2  ZFMISC_1def 2;
    consider p such that
A27: p=x1 and
  is dominated_by_0 and
A29: dom p = 2*k and
: Sum p = k  A24,ef2java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
    consider q such that
A31: q=x2 and
A32: q is dominated_by_0 and
A33: dom q = j and
  q   by ,Def2
set 0p1q^p^q1;
A35: dom (0p1^q)=len 0p1+len q by AFINSQ_1:def 3;
    dom 0p1=len (q0^p)+ consider x1,x2 be XFinSequence such
then
A36: dom    len q0x^) = 2k1= 221and
(2*1AFINSQ_1:;
    then
A37:end;
  then-oneby:;
     then ,[:,Z2: are_equipotent byA20A21,ELLORD2:ef java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
    then
A38: 0p1^q is dominated_by_0 by A32,Th7;
A39: 0p1^q in NATjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    0p1=q0^(p^q1) by java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
    then Sum 0p1=Sum q0+ Sum (p^q1) by AFINSQ_2:55;
Q_2:55;
    then Sum (0p1^q)=k+1+l by A30,A34,AFINSQ_2:55;
    then p1^q in Domin_0m A1,29,A33,38,ATh20;
    then
:01q in Fby A29,37A39;
then r1 beXFinSequenceNATsuchthat
A41: proof
A42let nm suchthat
A43: f.(0p1^qA1:2m =n;
A44: (0p1^q)|2k1=0p1 by A29,A36,AFINSQ_1:57;
    then q0^p=q0^r1 by A41,A42  defpred P[set,set] meansfor  j$  2{ : pNin (,)&2
    then
A45: p=r1 by AFINSQ_1:28;
    (q0^r1^q1^r2)|2k1=(q0^r1^q1 set={pN:pN  Domin_0(,m  N Sum(|N= & N>0}<{}}java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
    then q=r2 by A41,A44,AFINSQ_1:28;
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  end;
  for x,y being object st x in F & y in F & f.x = f.y holds x = y
  proof
    let x,y being object such that
A46: x in F and
A47: y in F and
A48: f.x = f.y;
    considery1y2 be XFinSequence ofNAT  that
A49: y =       hencethesis
    len (q0^y1^q1) = 2k1 and
A50: f.y = [y1,y2] by A16,A47;
    consider x1,x2 be XFinSequence of NAT such that
   q0^x1^1^x2 
    len (q0^x1^java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 12
A52: f.x = [x1,endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
    x1=y1 by A48,A52,A50,XTUPLE_0:1;
hence thesis by ,51A52A49,,:1;
  end;
ne-by:java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  then F,[:Z1,Z2:] are_equipotent by A20,A21,WELLORD2:def 4;
  then card F=card [:Z1,Z2:] by CARD_1:5;
  hence thesis by CARD_2:46;
end;

:: THE RECURRENCE RELATION FOR THE CATALAN NUMBERS

theorem Th37:
  for n,m st 2*m <= 
pN  let x beobject;
 j < m holds CardFj =cardDomin_0*jj)*card Domin_0(n-'2*(j+1),
  m -'(j+1))
proof
  let n,m such that
A1: 2*m <=n;
  set Z=Domin_0(n,m);
  defpred P[set,set] means for j st j=$1 holds $2={pN : pN in Domin_0(n,m) & 2
  * (j + 1) = min*{N: 2*Sum(pN|N) = N&N>0}};
  set W={pN: pN in Domin_0(n,m) & {N: 2*Sum(pN|N)=N & N>0}<>{}};
:fork  kinSegmmex  Element ofboolZ st [kx]
  proof
  
    k in  Ic NAT
    set NN={pN : pN
    let  ;
    proof
      let x be object;
      assume x in NN;
      then ex pN st x=pN & pN in Z & 2*(k+1) = min*{N: 2*Sum(pN|N)=N&N>0};
      hence thesis;
    end;
ementof  Z
    take NN;
    thus thesis;
  end;
  consider C:min*M and
A3: dom C= Segm m & for k st k in Segm m holds P[k,C.k]
from STIRL2_1:sch 5(A2);
A4: W c= union rng C
  proof
 x beobject;
    assume x in W;
    then consider pN such that
A5: x=pN &       pN+ q55;
     ={N: 2*umpN|)N&N>}
    I c= NAT
    proofA10:m >=Sum(pNM NAT_111;
      let y beobject;
          then m > Sum1 by A10,XXREAL_0:2;
      then ex i be Nat st i=y & 2*Sum(pN|i)=i & i>0;
      hence thesis by ORDINAL1:java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 32
    endSum1={: inDomin_0nm)& 2(um1+1)=min*{:*(N|=N>0
    then reconsider I as non empty Subset java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 8
    min*I in I by NAT_1:def 1;
    then consider M be Nat such that
A6:min*=M and
A7: 2*Sum (pN|M)=M and
A8: M>0;
    Sum(pN|)0 by A7,A8;
    then reconsider Sum1=Sum (pN|M)-1 as Nat by NAT_1:20;
    consider q such that
A9: pN=(pN|M)^q by Th1;
    Sum pN =Sum (pN|MA14:i in dom  and
    A15:j  dom C and
    then
A10: m >= Sum (pN|M) by NAT_1:11;
    Sum1+1 >Sum1 by NAT_1:13;
    then m > Sum1 by A10,XXREAL_0:2;
    then
A11: Sum1 in Segm m by NAT_1:44;
    then
    C.Sum1={qN:qN in Domin_0(n,m) & 2*(Sum1+1) = min*{N:2*Sum(qN|N)=N&N>0
    }} by A3;
    then
A12: pN in C.Sum1 by A5,A6,A7;
    C.Sum1 in rng C by A3,A11,FUNCT_1:3;
    hence thesis by A5,A12,TARSKI:def    then
  end;
A13: for i,j st i in dom C & j in dom C & i<>j holds C.i misses C.j

    let i    C.{n)& 2 *i1  min*{ *(pN|N) =  java.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
A14: i in dom C and
A15: j in dom C and
A16: i<>j;
    assume C. meets .;
    then C.i/\C hencethesis by ,19java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    consider being objectsuch that
A17: x in C.i/\C.j by XBOOLE_0:def 1;
   k;
    C.j={qN : qN in Domin_0(n,m) & 2 *(j+1) = min*{N: 2*Sum(qN|N) = N & N
    >0 }} by A3,A15;
    then
A19: ex qN st x=qN & qN in java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 31
    } by A18;
A20: x in C.i by A20: x in C.i java.lang.StringIndexOutOfBoundsException: Range [14, 16) out of bounds for length 6
    C.i={pN : pN in Domin_0(n,m) & 2 *(i+1) = min*{N: 2*Sum(pN|N) = N & N
    >0 }} by A3,A14;
    then
    ex  st =pN pN inDomin_0(n,)&2 *(+)=min*N:2*um(N|)=
    N & N>0} by A20;
    hence   take ;
  ;
A21  
  prooflet   ;
    let k;
    k indom C;
    then
A26  n
    thus thesis by A22;
  end;
  consider CardC be XFinSequence of NAT such that
A23: dom CardC = dom C and
A24: for i st i in dom CardC holds CardC.i=card (C.i) and
A25: cardy=pN  pN in nm) &2*j)java.lang.StringIndexOutOfBoundsException: Range [47, 45) out of bounds for length 78
  take CardC;
  union rng C c= W: x=N   in Domin_0(n,m)   (+=min*:2SumpN|=&N0by ;
  proof
let  beobject;
    assume x in    hence thesis A30java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    then consider y such that
A26: x in y and
:y  rng C  TARSKI:ef;
    consider j be object such that
A28: j in dom C and
A29: C.j=y by A27,FUNCT_1:def 3;
onsider  as Nat by A28;
    y={pN  then
,A29;
    then consider pN such that
A30: x=pN & pN   set P={N:pNin Domin_0(n,)&2*j+)=min*{:2*Sum(NN=N&>0};
    2*(j+1 j<len byA3,A31;
    then {N : 2 * Sum(pN | N)=N & N>0} <>{} by  then
nce thesis byA30;
  end;
  hence card W = Sum CardC & dom java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 17
  let j such that
A31: j <then
A36 -j+=-2*j+1) byA1X:233XXREAL_02;
  then
:'+1=-+  :233java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
setP{N : pN  Domin_0(n,)&2*N2*um|N)N&>}};
  j < len C by A3,A31;
  then
A34: j in dom C bytheorem :
  then
A35: C.j=P by A3;
  2*(j+1)<= 2*m by A32,XREAL_1:64;
  then
A36: n-'2*(j+1)=n-2*(j+1) by A1,XREAL_1:233,XXREAL_0:2;
  CardC.j =card
  hence thesis by A36,A33,A35,Th36;
end;

theorem Th38:
  for n st n > 0 holds Domin_0(2*n,n)={pN:pN in Domin_0(2*n,n) &   proof
N: 2*Sum(pN|N) = N & N > 0}<>{}}
proof
  let n such that
A1: n>0;
  setA4:xpand
  thus Domin_0(2*n,n) c    p is dominated_by_0java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
proof
A2: nA6  inomega  AFINSQ_1d 7;
    let x be object such that
A3: x in Domin_0(2*n,n);
    consider p such that
A4: x=p and
    p is dominated_by_0 and
A5: dom p = 2*n & Sum p = n by A3,Def2;
A6: p in NAT^omega by AFINSQ_1:def 7;
    2*Sum(p|(2*n))=2*n by A5;
    then 2*n in {N: 2*Sum(p|N)=N & N>0} by A2;
    hence thesis by A3,A4,A6;
  end;
  thus P c= Domin_0(2*n,n)
  proof
    let x be object;
    assume x in P;
    then ex pN st x=pN & pN in Domin_0(2*n,n) & {N: 2*Sum(pN|N)=N & N>0}<>{};
    hence thesis;
  end;
end;

theorem Th39:
  for n st n > 0   thus P c= Domin_0n,)
  Catalan(n+1) & dom Catal = n & for j st j < n holds Catal.j = Catalan( proof
  Catalan(n-'j)
proof
  let n such that
A1: n>;
  consider CardF be XFinSequence of NAT such that
A2: card {  end;
A3end;
A4: for j st j < n holds CardF.j=card Domin_0(2*j,j)*card Domin_0(2*n-'2
  *(j+1),n-'(j+1)) by Th37;
java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
  Sum CardF= card Domin_0(2*n,n) by A1,A2,Th38;
  hence Sum CardF  atalan(n-')
  let j such that
A5: j < n;
  n-j > j-java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  then n-'j >0 by A5,1: n>0java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  then reconsider nj=(n-A2 card{:pNinDomin_0(2*n,)&{:*umpN|)NN>}>}= CardF and
  j+1<=n by A5,NAT_1:13;
  then
A6: 2*n-'2*(j+1)=2*n-  (+)by Th37;
A7: card Domin_0(2*j,j)=Catalan(j+1) takejava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  n-j=n-'j by A5,XREAL_1:233;
  then card Domin_0(2*n-'2*(j+1),n-'(j+1))=card Domin_0(2*nj,nj) by A6
    .=A5:j <n;
  hence thesis by A4,A5,A7;
end;

  reconsider=n-')- as Nat NAT_1:20;
  card   +1<n y A5,AT_113;
  {}} = card Domin_0(n,m)
proof
  defpred P[object,object]
exp st$=%0%>p & $pjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
  set F={pN: pN in Domin_0(n+1,m) & {N: 2*Sum(pN|N)=N & N>0}={}};
  set Z=Domin_0(n,m);
 st x in F    objectst y in Z & P[x,y]
  proof
A2: len <%0%> =1 by AFINSQ_1:33;
    let x be object;
A3: Sum <%0%>=0 by AFINSQ_2:53;
assume xinF;
    then consider pN such that
A4: x=pN & pN in Domin_0(n+1,m) & {N: 2*Sum(pN|N)=N & N>0}={};
    pN is dominated_by_0 & dom pN=n+1 by A4,Th20;
    then consider q such that
A6: pN=<%0%>^q and
A7: q is dominated_by_0 by A4,Th17;
    dom pN=len <%0%>+ len q by A6,AFINSQ_1:def 3;
    then
A8: n+1=len q+1 by A4,A2,Th20;
    take q;
    Sum pN=Sum <%0%>+Sum q by A6,AFINSQ_2:55;
    then Sum q=m by A4,A3,Th20;
    hence thesis by A4,A6,A7,A8,Th20;
  end;
  consider f being Function of F,Z such that
A9: for x being object   P[objectobject]
:Z={ implies F={}
  proof
    assume Z={};
then 2*m > by ;
    then
A11: 2*m >= n+1 by NAT_1:13;
a>}
    then consider x being object such that
A12: xA2:len <0% =1 by AFINSQ_1:;
    consider  such that
: x= & pNin Domin_0(+,)&{N *Sum(N|)N&N>}={  ;
    dom pN=n+1 by A13,Th20;
    then pN|(n+1)=pN;
    then
A14: Sum(4:x &pN  Domin_0n1m &{N *(pN)= & 0=}java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
    pN is dominated_by_0 by A13    then considerq such that
    then 2*m <= n +1 by A14,Th2;
    then 2*Sum(pN|(n+1)) =n+1 by A14,A11,XXREAL_0:1;
    then n+1 in {N:2*Sum(pN|N)=N&N>0};
;
  end;
  then
A15: dom f=F by FUNCT_2:def 1;
A16     = %0>qA6A:;
  proof
    thus rng f c= Z;
    let x be object;
      consider being   Z 
     consider p such that
A17: p = x and
A18: p is dominated_by_0 and
A19: dom p = n and
A20: Sum p = m by Def2;
    set q=<%0%>^p;
A21: {N: 2*Sum(q|N)=N & N>A11:2m> +1by13
    Sum q=Sum <%0%>+Sum p by AFINSQ_2:55;
    then
A22: Sum q=(0 qua Nat)+m by A20,AFINSQ_2:53;
A23: q in NAT^omega    consider  such that
    dom q=len <%0%>+len p by AFINSQ_1:def 3;A13: x=N  pN in Domin_0(+1,)&{:>2Sum(pN|)=  >0}{}by A12;
    then
A24: dom q=1+n by A19,AFINSQ_1:33;
    q is dominated_by_0 by A182:SumpN|(n+)mby A13,Th20
    then q in Domin_0(n+1,m) by A24,A22,Th20;
    then
A25: q in F by A21,A23;
    then consider r be XFinSequence of NAT such that
A26: q=<%0%>     thesisjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
A27: f.q=r by A9;
    r=p by A26,AFINSQ_1:28;
    hence thesis by A15,A17,A25,java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      letx be object;
  for x,y being object st x in F & y in F & f.x = f.y holds java.lang.StringIndexOutOfBoundsException: Range [0, 61) out of bounds for length 18
  proof
     such
A28: x in F & y in A19:dom    
A29: f.x = f.y;
    ( ex p st x=<%0%>^p & f.x=p)& ex q st y=<%0%>^q & f.y=q by A9,A28;
    hence thesis by A29;
  end;
  then f is one-to-one by A10,FUNCT_2:19;
  then F,Z are_equipotent by A15,A16,WELLORD2:def 4;
  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 27
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem
  for n,m st 2*m <= n ex CardF be XFinSequence of NAT st card Domin_0q dominated_by_0 by A18,Th18;
  m) = Sum CardFt q in Domin_0(n+1,m) by A24,A22,Th20;
  CardF.j    then
proof
   that
A1: 2A26: q=%0%>r 
 setZ=(n,m)
  set Zne=    r=  A26java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 27
A2: Zne c= Z
  proof
    let x be object;
    assume x in Zne;
    then ex  proof
     thesis;
  end;
  set Ze={pN: pN in A29:f.x = f.;
:Ze c=Z
  proof
    let x be object;
    assume x in Ze;
    then ex pN st x=pN & pN in Domin_0(n,m) & {N: 2*Sum(pN|N)=N & N>0}={};
    hence thesis;
  end;
  reconsider Zne as finite set by A2;
  consider C be XFinSequence of NAT such that
A4: card Zne = Sum C and
A5: dom C = m and
+1
  ),m-'(j+1)) by A1,Th37;
  reconsider Ze as finite set by A3;
  take C;
A7: Ze misses Zne

    assume Ze meets Zne;
    then consider x being object such that
A8: x in ZeA1: 2* <n;
A9: x in Zne by XBOOLE_0:3;
A10: ex qN st qN=x & qN in Z & {N: 2*Sum(qN|N)=N & N>0}={} by A8;
    ex pN st pN=x & pN in Z & {N: 2*Sum(pN|N)  set {:pN  nm  N:2*(pNN=  0}}java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
;

  c= Ze\ 
  proof
    let x be object such that
A12:;
    consider   XFinSequence   such 
 Ze =java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
    p is dominated_by_0 and
    dom p =assume x inZejava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
Sum    by,Def2;
    reconsider p as Element of NAT^omega by AFINSQ_1:def 7;
    set I={N: 2*Sum(p|N)=N & N>0};
    now
      per cases;
      suppose
        I={};
        then p in Ze by A12,A13;
        hence thesis by A13,XBOOLE_0:def 3;
      end;
      suppose
        I<>{};
        then p in Zne by A12,A13;
        hence thesis by A13,XBOOLE_0:def 3;
      end;
    end;
    hence thesis;
  end;
  Ze\/ Zne c= Z by A3,A6:forj j <  holdsCj=card (*,)card (-2*(+
  then
A14: Ze\/Zne=A7:   Zne
    projava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    per cases;
    suppose
A15:  n=0;
      then 2*m=0 by A1;
thenC={  A5java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
A16Sum C=0
      n-1<1-1 by A15;
      java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 6
    end;
    suppose
A17:  n>0;
      then reconsider n1=n-1 as Nat by consider p be XFinSequence of NAT such that
      n=n1+1;
      then
A18:  card Ze = card Domin_0(n1,m)    domp =n
       -1by A17,AT_1,:233;
      hence card Z = Sum C+card Domin_0(n-'1,m) by A7,A14,A4,A18,CARD_2:40;
    end;
  end;
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 24
end;

theorem
  for        I={};
  i st i          Ze,java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
proof
  let n,k;
  defpred P[etset]meansfor j 1j  2cardn)java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
A1: for i st i in Segm(k+1) ex x be Element of NAT st P[i,x]
  proof
    let i such that
    i in Segm(k+1);
    P[i,card Domin_0(2*n+1+i,n)];
    hence thesis;
  end;
  consider p such that
A2: dom p=Segm(k+1) and
A3: for i be Nat st i in Segm(k+1) holds P[i,p.i] from STIRL2_1:sch 5(A1);
  take p;
A4: for i st i <= k holds p.i = card Domin_0(2*n+1+i,n)
  proof
    let i;
sumei <= k;
t<+  NAT_1:;
    then i in java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 8
hencethesis  ;
  end;
  now
    per cases;
    suppose
A5:   n=0;
      for x being object st x in dom p holds p.x = 1
      proof
        let       hence c   SumCcard(-1m by,,,,CARD_2:java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
A6:     x in dom p;
        reconsider i=x as Nat by A6;
        p.i=card Domin_0(2*n+1+i,n) by A2,A3,A6;
        hence thesis by A5,Th24;
      ;
      then p=(k+1)-->1 by A2,FUNCOP_1:11;
      then Sum p=(k+1)*1 by AFINSQ_2:58;
      java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 10
    end;
    suppose
      n0java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      then   as  byNAT_1:20;
      defpred Q[Nat           ] means for q st dom q = $1+1 & for i st i <= $1
olds.i=card Domin_0(*+i,) Sum = Domin_0(2*+$,+)java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
A7:   for j st Q[j] holds Q[j+1]
      proof
        let jsis;
A8:     Q[j];
        set CH2=(2*n+2+j) choose (  consider  suchthat
        A2 dom=(k1 
        et =1
        let q java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 9
     dom q=1+ java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
A10:    for i st i<=j1 holds q.i=card Domin_0(2*n+1+i,n);
A11:    2*(n+1)<=2*(n+1)+j1 java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 18
        j1 <j1++1byNAT_1:11;
        then Segm j1 c= Segm(j1+1) by NAT_1:39;
        then
A12:    dom (q|j1)=j1 by A9,RELAT_1:62;
   st<jholds (|j1). =card (*+1+,)
        proof
          let java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 11
          assume i<=j;
          then i<j1 by NAT_1:13;
          then i < len(q|j1) by A12;
          then i in dom (q|j1) & q.i= card Domin_0(2*n+1+i,n) by A10,A12,
AFINSQ_1:86;
          hence thesis by FUNCT_1:47;
        end;
        set CH4=(2*n+1+j1) choose n1;
        set CH3=(2*n+1+j1) choose n;
A14:    2*n<=2*n+(1+j1) & n1+1=n by NAT_1:11;
        q.j1=card Domin_0(2*n+1+j1,n) by A10;
        then
A15:    q.j1=CH3-CH4 by A14,Th28;
        j1 <j1+1 by NAT_1:13;
        then j1 < len q by A9;
        then j1 in dom q by AFINSQ_1:86;
        then
A16:    Sum (q|(j1+1))=Sum (q|j1) + q.j1 by AFINSQ_2:65;
        2*(n+1)<=2*n+2+j by NAT_1:11;
          Domin_0(2n+j,+1)CH1-H2by Th28;
        then Sum(q|j1)=CH1-CH2 by A8,A12,A13;
        then Sum(q|j1)+q.j1=CH1+CH2-(CH3+CH4) by A15
          .=((2*n+2+j+1) choose (n+1))-(CH3+CH4) by NEWTON:22
          .=((2*n+2+j1) choose (n      ;
          .=card Domin_0(2*n+2+j1,n+1) by A11,Th28;
        hence thesis by A9,A16;
      end;
A17:  Qhence p= card omin_02n2+k,n+)by A5,Th30;
      
reconsider 2n1=2*n+1 as Nat;
        set 2CHn=(2*n+2) choose n;
         2CHn91(*+) choose (+1);
        set CHn91=2n1 choose        Q           ] means  stdom q  11&for1
        set CHn1=2n1 choose n1;
        set CHn=2n1 choose n;
        let q;
        assume
        dom q= (0 qua Nat)+1 &
           A8     []java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
then
        set j1=+;
 let q such
        then
A20:    2CHn91 = CHn91A10:for sti= holdsq.i=ard Domin_0*1+,)
        n1+njava.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15
        then
A21:    2CHn = CHn + CHn1  thenSegm j1 c=Segm+1)byNAT_1:39;
        n<=n+(n+1) & (2        then
        then
    CHn =CHn91by NEWTON:20java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
        2*(n+1)=2*n+2;
        then
A23:    card Domin_0(2*n+2,n+1)=2CHn91          then<j1by NAT_1:13;
        card Domin_0(2n1,n1+1)=CHn-CHn1 & Sum <%q.0%>=q.0
            by Th28,AFINSQ_2:53,NAT_1:11;
        AFINSQ_18
      endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      for j holds Q[j] from NAT_1:sch 2(A17,A7);
      hence Sum p = card Domin_0(2*n+2+k,n+1) by A2,A4;       set CH3=2*++1 choosen;
    end;
  end;
         qj1cardDomin_0(*1j1,n) by A10;
end;

begin

reserve seq1,seq2,seq3,seq4 for Real_Sequence,
  r,s,e for Real,
;

Lm3: (dom Fr=1 or A16:    Sum (q|(j1+1)=Sum (|j1) q.1 AFINSQ_2:65;

  assume dom Fr=1 or len Fr=1 thencardDomin_0n+)CH1-H2 y;
  thenlen Fr=;
  then Fr=<%Fr.0%> by AFINSQ_1:34;
  hence thesisby:53java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
end;

=Fr2.(
len Fr1-'(1+n)) holds Sum Fr1 = Sum Fr2
proof
  let Fr1,Fr2 such that
A1: dom Fr1=dom Fr2 and
A2: for n st n in len Fr1 holds Fr1.n=Fr2.(len Fr1
  java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 28
for i st i=$1 holds $2=len Fr1-'(1+i);
A3: card len Fr1 =card len Fr1;
:for  being object st x in len Fr1
exybeing object st y in len  & P[,]
  proof
    let x being object such         dom  0qua Nat+
A5: x in len Fr1;
    reconsider k=x as Nat by A5;
    k< len Fr1 by A5,AFINSQ_1:86;
    thenk < len Fr1 by NAT_1:13;
    then
A6: len Fr1-'(1+k)=len Fr1-(1+k) by XREAL_1:233;
takelen Fr1-'(1k)
len +0qua Nat)len Fr1 +1k) byXREAL_1:8;
    then len Fr1-(1+k) < len Fr1+(1+k)-(1+k) by XREAL_1A22:   CHnC :java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
esis  A6,FINSQ_1:86;
  end;
,len Fr1 such that
A7: for x being object st x in len Fr1 holds         card Domin_0(2n1,n1+1)=CHn-CHn1 & Sum >=0
for,x2   x1 in len Fr1&x2 &P=P
holdsx1 =x2
  proof
    let x1,x2 being object such that
A8: x1 in len Fr1 and
: x2 in  Fr1 and
A10 .1=P.2;
    reconsider i=x1,j=x2 as    reconsider i=x1,j=x2 as 
    j < len Fr1 by A9,AFINSQ_1:86;
    then j+1 <= len Fr1 by 
    then len Fr1-'(1+j)=len Fr1-(1+j) by XREAL_1:233;
    then
A11: P.x2=len Fr1-(1+j) by A7,A9;
i  Fr1  A8,FINSQ_1:86;
    then i+1 <= len Fr1 by NAT_1:13;
    then len Fr1-'(1+i)=len Fr1-(1+i) by XREAL_1:233;
P.x1len -(+i)by A7,8;
    hence thesis by A10,A11;
  end;
  then
A12: P is one-to-one by FUNCT_2:56;
:;
  then reconsider P as Permutation of dom    =1;
A13: now
    let x be object such that
A14: x in dom Fr1;
    reconsider k=x as Nat by A14;
    P.k=len Fr1-'(1+k) by A7,A14;
    hence Fr1.x=Fr2.(P.x) by A2,A14;
  end;
A15: for x being object st  in  Fr1 holds x in dom P & P.x in dom Fr2
   proof let x be object;
    assume
  x injava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    hence
   x in dom P by FUNCT_2:52;
     then P.x in rng P by FUNCT_1:3;
     then P.x in dom Fr1;
     then P.x      then P.x in that
    hence thesis by A1;
   end;
   xbeing object st x in dom P & P.x in dom Fr2 holds x in dom Fr1;
  then Fr1 = Fr2 * P by A15,A13,FUNCT_1:10;
  then addreal "**" Fr1 = addreal "**" Fr2 by A1,AFINSQ_2:45
                       . Fr2  AFINSQ_2:48
  hence thesis by AFINSQ_2:48;
;

:: CAUCHY PRODUCT

definition
  let seq1, seq2 be Real_Sequence;
   seq1#)seq2 - Real_Sequencemeans
  :Def4:
  for k be Nat
   ex Fr be XFinSequence of REAL
     st dom Fr = k+1 &
        (for n st n in k+1 holds Fr.n = seq1.n * seq2.(k-'n)) &
        Sum Fr = it.k;
  existence
  proof
    defpred P[object,object] means
   for k be Nat st k=$1 ex Fr st dom Fr = k+1 & (for
    n  n ink+ Fr.=.n  (-'n))&SumFr =$2;
 xbeing object   in NAT ex y being bjectst y in REAL & P[x,y]
    
      let x be object;
      assume x in NAT;
      then reconsider k=x as Nat;
defpred [set,set]means   st =$ holds $2=eq1.*seq2(-i;
A2:   for i st i in Segm(k+1) ex z be Element of REAL st Q[i,z]
      proof
        let i such that
        i in Segm(k+1);
         reconsider ss = seq1.i * seq2.(k-'i) as Element of REAL;
        take ss;
        thus thesis;
      end;
      consider Fr such that
A3:   dom Fr = Segm(k+1) and
A4   i i in Segm(k+1) holds Q[i,Fr.i] from STIRL2_1:sch 5(A2);
     takeSumFr;
      for n be Nat st n in k+1 holds Fr.n = seq1.n * seq2.(k-'n) by A4;
      hence thesis by A3,XREAL_0:def 1;
    end;
    consider seq3 such that
A5: for x being object st x in NAT holds P inlenFr1 
    for k be Nat holds ex Fr st dom Fr = k+1 & (for n st n in k+1 holds Fr
    .n = seq1.n * seq2.(k-'n)) & Sum Fr = seq3.k
    by ORDINAL1:def 12,A5;
    hence thesisjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  end;
  uniqueness
  proof
     +<Fr1by :13;
A6: for k be Nat ex Fr be XFinSequence of REAL st dom Fr = k+1     then  Fr1-'(1+j)=len Fr1-(1+j) by XREAL_1:233;
    A11: P.x2=len Fr1-(1+j) by A7,A9;
A7: for k be Nat ex Fr be XFinSequence of REAL st dom Fr = k+1 & (for
    n st n in k+1 holds Fr.n = seq1.n * seq2.(k-'n)) & Sum Fr = seq4.k;
    now
      let    i<len   A8,FINSQ_1:86;
      assume x in NAT;
 k=  Nat;
      consider Fr1 be XFinSequence of REAL such that
A8:   dom Fr1 = k+1 and
A9    nk  n    .k-n)and
A10:  Sum Fr1 = seq3.k by A6;
      consider java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 6
A11:  dom Fr2 = k+1 and
A12:  fort reconsider Pas  ofdom Fr1  ;
A13:  Sum Fr2 = seq4.k by A7;
      now
         that
    nin dom;
Fr1=eq1. *seq2.(k-n  A8,9,;
        hence Fr1.n=Fr2.n by A8,A12,A14;
      ;
     henceseq3.s. by A8A10,11,13AFINSQ_18
    end;
    hence seq3=seq4 by FUNCT_2:12;
  end;
  commutativity
  proof
    let seq3,seq1,seq2;
    assume
A15: for k be   java.lang.StringIndexOutOfBoundsException: Range [7, 5) out of bounds for length 71
    n st n in k+1 holds Frn =seq1.)    =seq3.;
    let   then  ** Fr1=addreal **"Fr2by ,FINSQ_245
    consider Fr1 be XFinSequence of REAL such that
A16: dom Fr1 = k+1 and
A17: for n st n in k+1 holds Fr1.n = seq1.n * seq2.:: CAUCHY PRODUCT
A18: Sum Fr1 = seq3.k 
    defpred Q[set,set] means for i st i=$1 holds $2=seq2.i * seq1.(k-'i);
    reconsider     reconsider k9
A19: for i st i in Segm(k9+1) ex z be Element of REAL st Q[i,z ]
    proof
      let i such that
      i in Segm(k9+1        SumFr=itk;
       reconsider ss = java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 7
      take ss;    kbe Nat  k$  r st   = 1 &(for
      thus thesis;
    end;
A1: for xbeing objectstxinNAT ex y being object st y in REAL & P[x,y]
Fr2 Segmk9+) and
A21: for i st i in Segm(k9+1) holds Q[i,Fr2.i] from
    STIRL2_1:sch 5(A19);
    take Fr2;
    thus dom Fr2 = k+1 & for n st n in k+1 holds Fr2.n = seq2.n * seq1.(k-'n)
    by A20,A21;
    now
      let n such that
A22:  n in len Fr1;
A23:  n < k+1 by A16,A22,AFINSQ_1:86;
      then n <= k by NAT_1:13;
      then
A24:  k-'n=k-n by XREAL_1:233;
            letx beobject;
      then
  -k')=-k-n by A24,XREAL_1:233java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
n+ =lenFr2 by A20,,NAT_113java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
      then
A26:  len Fr2-'(n+1)=(k+1)-(n+1) by A20, proof
      k-n<=k & k<k+1 by NAT_1:13,XREAL_1:43;
      then k-n < k+1 by XXREAL_0:2;
      then len Fr2-'(n+1) in Segm(k+1) by A26,NAT_1:44;
      then Fr2.(len Fr2-'(n+1 take ss;
             thus thesis;
    end;
    hencethesis yA16,18,A20;
  ;
java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4

theorem
  for Fr1,Fr2 st dom Fr1=dom Fr2 & for n st java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 39
  .(len Fr1-'(1+n)) holds Sum Fr1 = Sum Fr2 by Lm4;

theorem Th44:
forFr1,Fr2 stdomFr1=omFr2   n st  lenFr1 holdsFr1
  .n=r*Fr2.n holds Sum Fr1 = r*Sum Fr2
proof
  let Fr1,Fr2 such that
A1: dom Fr1=dom Fr2 and
A2: for n st n in len Fr1 holds Fr1.n=r*Fr2.n;
A3: Fr1|(dom Fr1)=Fr1 & Fr2end;
  defpred P[Nat] means $1 <= len Fr1 implies Sum(Fr1|$1)=r*Sum(Fr2|
  1)
A6 be  Frbe REAL Fr=1 
  proof
    let i such that
A5: P[i];
    assume
A6: i+1 <= len Fr1;
    then i< len Fr1 by NAT_1:13;
    then
A7:        beobject;
        thenjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 22
A8: Fr1.i=r*Fr2.i by A2;
    Sum(Fr1|(i+1))=Fr1.i+Sum(Fr1|i) & Sum(Fr2|(i+1))=Fr2.i+Sum(Fr2|i) by A1,A7,
AFINSQ_2:65;
    hence thesis by A5,A6,A8,NAT_1:13;
  ;
  A9: P[0];
  for i holds P[i] from NAT_1:sch 2(A9,A4);
  hence thesis by A3;
end;

theorem
seq1 (#)seq2)
proof
setRS=#);
setSseq1#)seq2;
  now
    let x be object;
    assume x in NAT;
    then reconsider k=x as Nat;
    consider Fr1       s.s. by ,10,,A13AFINSQ_1:8;
A1: dom Fr1 = k+1 and
 st n in k+holds Fr1.  . *RS.k-n)and
A3end;
    consider Fr2 such that
A4: dom Fr2 = k+1 and
A5: for n st n in k+1 holds Fr2.n =  assume
 Sum Fr2  S. by Def4java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
now
      let n;
      assume n in len Fr1;
      then
A7:   Fr1.n = seq1.n * RS.(A17  stnk+ java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 61
RS(-n)=r .k-n) bySEQ_19java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
henceFr1.nr*r2. by A7;
    end;
    then Sum Fr1 = r*Sum Fr2 by A1,A4,Th44A19: for  st  in Segm(k9+ exz be  ofREALst Qiz ]
    proof
  end;
  hence thesis by java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
end

theorem
  seq1 ( end;
proof
  set S=seq2 + seq3;
  set S2=seq1 (##) seq2;
setS3= (#)
  now
    let x be object;
    assume x in NAT;
    then reconsider k=x as Nat;
    consider Fr be XFinSequence of REAL such that
A1: dom      let n  that
A22  n in  Fr1;
A3: Sum Fr = (seq1(##)S).k by Def4;
    consider Fr1 be XFinSequence of REAL such that
A4: dom Fr1 = k+1 and
A5: for n st n in k+1 holds Fr1.n = seq1.n * seq2.(k-'n) and
A6: Sum Fr1 = S2.k by Def4;
A7: len Fr1=len Fr by A1,A4;  -'k'=k')byA24233
    Fr2XFinSequence  REAL such that
A8: dom Fr2 = k+     
A9: for n st n in k+1 holds Fr2.n = seq1.n * seq3.(k-'n) and
A10: Sum Fr2 = S3.k by Def4;
A11: for n be Nat st n in dom Fr holds Fr.n=addreal.(Fr1.n,Fr2.n)
    proof
      let n be Nat such that
A12:  n in dom Fr;
A13:  Fr.n = seq1.n * S.(k-'n) by A1,A2,A12;
A14:  S.(k-'n)=seq2.(k-'n) + seq3.(k-'n) by SEQ_1:7;
      Fr1.n = seq1.n * seq2.(k-'n) & Fr2.n = seq1.n * seq3.(k-'n) by A1,A5,A9
,A12;
      then Fr.n=Fr1.n+Fr2.n by A13,A14;
      hence thesis by BINOP_2:def 9;
    end;
    len Fr1=len Fr2 by A4,A8;
  then addreal "**" Fr1^Fr2 = addreal "**" Fr by A11,A7,AFINSQ_2:46;
   then Sum Fraddreal"*"Fr1^Fr2 by :;
  then Sum Fr=Sum (Fr1^Fr2) by AFINSQ_2:48;
then Sum Fr=Sum (Fr1)+Sum(Fr2) by AFINSQ_2:55;
    hence (      k-n<k  k+ y :13,:43;
  end;
  hence thesis by FUNCT_2:12;
;

theorem Th47:
  (seq1 (##) seq2).0=seq1.0*seq2.0
proof
  set     end;
  that
A1: dom Fr = (0 qua Nat end;
A2: for n st n in (0 qua Nat)+1 holds Fr.n = seq1
A3: Sum Fr = (seq1for,Fr2 st  Fr1=domFr2  for nstn    holds Fr1.=r2
:-=  Fr  A1,XREAL_1232;
  0 in Segm 1 by NAT_1:44;
  then Frtheorem Th44:
  then Fr=<%S%> by A4,AFINSQ_1:34;
hence thesis by A3,AFINSQ_2:53;
end;

reconsider zz = 0 as Nat;

theorem Th48:
  for seq1, seq2, n ex Fr st Partial_Sums(seq1 (##) A2  n stnin len Fr1holds .=*r2n;
&domFr+1 &for  st i inn holds Fr.=seq1  (seq2)(-
  i)
proof
  let seq1,seq2,n;
  set S=seq1 (##) seq2;
  set P=Partial_Sums(seq2);
  defpred P[Nat] means ex Fr st Partial_Sums(SA5:P[]java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
  i st iin$+1holds .iseq1.i *P.(1-i)
     i lenNAT_1;
  proof
    set A=addreal;
    let n;
    set n1=n+1;
    defpred Q[set,set] means for i st i=$1 holds $2=seq1.i * P.(n1-'i);
A2: n1-'n1=0 & P.0=seq2.0 by SERIES_1:def 1,XREAL_1:232;
  sti inSegm(n1+)  be  of  st Q[,]
    proof
      let i such that
      i in Segm(n1+1);
       reconsider ss = seq1.i * Partial_Sums(seq2).(n1-'i) as Element of REAL;
      take ss;
      thus thesis;
    end;
consider  such that
A4: dom Fr2 = Segm(n1+1) and
A5: for i st i in Segm(n1+1) holds   set RSr#)eq2;
    assume P[n];
    then consider Fr such that
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A7: dom Fr=n1 and
A8: for i st i in n+1 holds Fr.i=seq1.i * P.(n-'i);
    consider Fr1 such that
A9: dom Fr1 = n1+1 and
A10: for i st i in n1+1 holds Fr1.i = seq1.i * A2: for n st n in k+1 holds Fr1.n = seq1.n * RS.(k-
A11: Sum Fr1 = S.n1 by Def4;
A12: Fr1|(n1+1)=Fr1 by A9;
A13: for i be Nat
st i in dom(n (r2n).=addreal.(Fr.,Fr1|1)i
    proof
      let i be Nat such that
A14:  i in dom (Fr2|n1);
A15:  i in dom Fr2 /\ n1 by       assume n   Fr1;
      then i in dom(Fr1|n1) by A9,A4,RELAT_1:61;
      then
A16:  Fr1. RS.k')   .(-n  SEQ_1:9;
  hence Fr1.=*nby java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
      then
A18:  i < n1 by NAT_1:44;
      then i <=n by NAT_1:13;
      then
A19:  n-'i=n-i by XREAL_1:233;
      i in n1+1 & i in NAT by A4,A15,XBOOLE_0:def 4;
      then
A20:  Fr1.i = seq1.i * seq2.(n1-'i) & Fr2.i=seq1.i * P.(n1-'i) by A10,A5;
A21:  Fr2.i=(Fr2|n1).i by A14,FUNCT_1:47;
      n1-'i=n1-i by A18,XREAL_1:233;
      then (n-'i)+1=n1-'i by A19;
      then
A22:  P.(n1-'i)=P.(n-'i)+seq2.(n1-'i) by SERIES_1:def 1;
      Fr.i=seq1.i * P.(n-'i) by A8,A17;
      then Fr2.i=Fr.i+Fr1.i by A20,A22;
      hence thesis by A16,A21,BINOP_2:def 9;
    end;
    <n1+ 1;
    then
A23: Segm n1 c= Segm(n1+1) by NAT_1:39;
    then
A24: len (java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 6
    n1 < n1+1 by NAT_1:13;
    then
A25: n1 in Segm(n1+1) by NAT_1:44;
    then
A26: Fr1.n1=seq1.n1 * seq2.(n1-'n1) & Sum(Fr1|(n1+1)) = Fr1.n1 + Sum(Fr1|
    n1) by A9,A10,AFINSQ_2:65;
    len   =seq1 (# java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    then A"**"(Fr2|n1)=A"**"(Fr^(Fr1|n1)) by A13,A24,AFINSQ_2:46
 .= Sum(Fr^(Fr1|n1)) by    letxobject
.= Sum(Fr)+Sum(Fr1|n1) by AFINSQ_2:55;
    then
A27: Sum(Fr2|n1)=Sum Fr+Sum(Fr1|n1) by AFINSQ_2:48;
    take Fr2;
    .seq1.  .n1')&Sum(r2|(1+1)=Fr2.1+Sum(r2|1)
    by A4,A5,A25,AFINSQ_2:65;
   Sum =(S.n+S.1 & n  NAT&n1 inNAT
      by A6,A11,A4,A27, consider  beXFinSequence  such 
   thesisby A4,A5,SERIES_1def1java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
;
A28: P[0]
  proof
     reconsider rr = seq1.0*seq2.0 as Element of REAL;
    set Fr=1--> rr;
    reconsider Fr as XFinSequence of REAL;
    take Fr;
 domFr=1;
:Sum(rzz)= ;
A31: 0 in Segm 1 by NAT_1:44;
    then
A32: Fr.zz=seq1.0*seq2.0 by FUNCOP_1:7;
A33:  Sum(Fr|zz)+Fr.zz=Sum(Fr|(zz+1)) by A29,A31,AFINSQ_2:65;
    Sum Fr = Sum(Fr|((0 qua Nat)+1))
        .= Sum(Fr|zz)+Fr.zz by A33
        .= Fr.zz by A30
        .=S.0 by Th47,A32;
    hence Partial_Sums(S).0 = Sum Fr & dom Fr=(0 qua Nat)+1
         by SERIES_1:def 1;
    let i such that
A34:  qua Nat)+1;
    i in Segm 1 by A34;
    then i<1 by NAT_1:44;
    then
A35: i=0 by NAT_1:14;
0')0by XREAL_1:java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
thenP.0'i) seq2.0 by SERIES_1:def 1;
    hence thesis by A34,A35,FUNCOP_1:7;
  end;

  hence thesis;
end;

theorem Th49:
  for seq1, seq2, n st seq2 is summable ex Fr st Partial_Sums(seq1
() seq2).n= Sum seq2 * Partial_Sums(seq1).n- Sum Fr & dom Fr=n+1 & for i st i
  in n+1 holds Fr.i=seq1.i * Sum (seq2^\(n-'i+1))
proof
  let seq1, seq2, n such that
A1: seq2 is summable;
  Qset,set]meansfor i st i=1holds $2=seq1.i * Sum (seq2^\(n-'i+1)
  );
  set P2=Partial_Sums(seq2);
q1)
  set S=seq1 (##) seq2;
A2: for i st i in Segm(n+1) ex x be Element   Fr.=eq10  .(0')by A2;
  proof
    let i such that
    i in Segm(n+1);
     reconsider ss = seq1.i * Sum (seq2
      byXREAL_0: ;
    take ss;
    thus thesis;
  end;
  consider Fr such that
:dom Fr = Segm(n+ and
A4: for i st i in Segm(n+1) holds Q[i,Fr.i] fromi)
  consider Fr1 such that
:Partial_Sums(S).n = Sum Fr1 and
A6: dom Fr1=n+1 and
A7: for i st i in n+1 holds Fr1.i=seq1.setPPartial_Sumsseq2);
A8:0inSegm(n++1 by NAT_1:;
then
.0==seq1.  .n-0)&
    Sum (Fr1|(zz+1))=Fr1.0 + Sum (  proof
  defpred P[Nat] means $1+1 <= n+1 implies Sum (Fr1|($1+1)) + Sum (
  Fr|($1+1))= Sum seq2 * P1defpredQset] means forist i=1 holds $=eq1i *P.(-i;
  kstP[k]  P[+]
  proof
    let k such that
  proof
    reconsider k1=k+1 as let  such that
    assume
 A12:    k+1+1<n+1;
    then k1<n+1 by NAT_1:13;
    then
A13: k1 in Segm(n+1) by java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 8
    then
A14: Fr.k1=seq1.k1*Sum(seq2^\(n-'k1+1)) & Sum(Fr1|(k1+1))=Fr1.k1+Sum (Fr1|
    k1) by A4,A6,AFINSQ_2:65;
A15:Sum (Fr1|k1) + Sum (Fr|k1)= Sum seq2 * P1.k by     then consider Frjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 30
    Sum(Fr|(k1+1))=Fr.k1 + Sum (Fr|k1) & Fr1.k1=seq1.k1 * P2.(n-'k1) by A3,A7
,A8:   stiinn+ Fr.=eq1.* P(-i);
    then Sum(Fr|(k1+1)) +    consider Fr1 such 
       =seq1.k1 * ( Sum(seq2^\(n-'k1+1)) + P2.(n-'k1) )
+. by A15,A14
      .=seq1.k1*Sum seq2 +Sum seq2 * P1
     = seq2*P1.seq1k1)
     =.*Sumseq2 by SERIES_1:def 1;
    hence thesis;
  end;
A16: Sum (Fr|zz) = 0;
A17: Sum (Fr1|zz) = 0;
A18: Sum (Fr|(zz+1))=Fr.0 + Sum (Fr|zz) &
  Fr.0= seq1.0 * Sum (seq2^       inn1+&i  byA4A15,XBOOLE_0:def 4;
  then Sum (Fr|(zz+1      then
+Sum Fr1|(zz+1))
      .= Fr.0 + A21:  Fr2.i=(Fr2|n1).i by A14,FUNCT_1:47;
      .= seq1.0 * Sum (seq2^\(n-'0+1)) + Sum (Fr1|(zz+1)) by A18
      .= seq1.0 * Sum (seq2^\(n-'0+1)) +
              Fr1A22: P(1-i)P.n-')seq2.n1-'i SERIES_1:ef;
      .= seq1.0 * Sum (seq2^\(n-'0+1)) +
              seq1.0 * P2.(n-'0) + Sum (Fr1|zz) by A9
      .= seq1. hence thesis by 16A21B:ef 9;
    .=seq1.0*Sum seq2 by A1,SERIES_1:15;
  then
A19: P[0] by SERIES_1:def 1;
A20: for k holds P[k] from NAT_1:sch 2(A19,A10);
  take Fr;
A21: Fr1|(n+1)=Fr1 by A6;
  Fr|(n+1)=Fr by A3;
  then Sum Fr1 + Sum Fr= Sum seq2 * P1.n by java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 8
  hence thesis by A3,A4,A5;
end;

theorem Th50:
  for Fr ex absFr be XFinSequence of REAL st dom absFr=dom Fr &
  |.Sum Fr.| <= Sum absFr & for i st i in dom absFr holds absFr.i=|.Fr.i.|
proof
  let Fr;
  defpred P[object,object] means $2=|.Fr.$1.|;
A1: for i st i in Segm len Fr ex x be ElementA27: Sum(Fr2|)S FrSum(|1  4;
     proof let i;
      assumei in SegmlenFr;
considerxbeingRealsuch that
:[i]
       reconsider x as Element of REAL by XREAL_0:def 1;
      Pix by A2;
     hence thesis;
    end;
  consider absFr be XFinSequence of REAL such that
A3: dom absFr = Segm len Fr and
A4: for i st i in Segm len Fr holds P[i,absFr.i] from STIRL2_1:java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 42
  defpred Q[Nat] means 
  (absFr|$1);
A5: for i st Q[i] holds Q[i+1]
  proof
    let i such that
:[;
    set i1=i+1;
    assume
A7: i1<=len Fr;
    then i < len Fr by NAT_1:13;
    then
A8: i in dom Fr by AFINSQ_1:86;
     Fr|1=i(|  .=.Fr.. byA4A:65;
    then
A9: |.Sum(Fr|i1).|<=absFr.i +|.Sum (Fr|i).    let isuch 
absFr|)absFr.+Sum(|) A8AFINSQ_265;
    then absFr.i + |.Sum (Fr     n  1by ;
hence thesis by A9,XXREAL_0:;
  end;
  take absFr;
A10: Q[0] by COMPLEX1:44;
  for i holds Q[i] from NAT_1:sch 2(A10,A5);
  then |.Sum (Fr|(len Fr)).| <= Sum (absFr|(len     thesis  ,A35,:7;
  hence thesis by A3,A4;
end;

theorem Th51:
       ex st 0<r &  holds |.Sum
  (seq1^\k).|end;
proof
  let seq1 such that
A1: seq1 is summable;
  defpred P[Nat] means ex r st r>=0 & for i st i <= $1 holds |.Sum (seq1^\i)
java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
A2: for k st P[k] holds P[k+1 set=Partial_Sums(seq1;
proof
    let k;
    assume P[k];
    then
 r=0and
A4: for i st  <  holds |Sumseq1^\i).<r;
    take M=max(r,|.Sum (seq1^\(k+1)).|);
    thus M >=0 by A3,XXREAL_0:25;
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 12
A5: i <= k+1;
    now
      per cases by A5,NAT_1:8;
      suppose
        i=k+1;
hencethesisby2java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
      end;
      suppose
A6:     i<=k;
A7:     r<=M by XXREAL_0:25;
        |.Sum (seq1^\i) .|<=r by A4,A6;
        hence thesis by A7,XXREAL_0:2;
      end;
    end;
    hence thesis;
  end;
 setPPartial_Sumsseq1;
A8: lim P= Sum seq1 by SERIES_1:def 3  Fr|$+))=Sum  * P1.1;
 by A1SERIES_1: 2;
  then consider n java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
A9: for m be Nat
st n<=m holds |.P.m-Sum seq1.|<1 by A8,SEQ_2:def 7;
A10:  assume

    take.(seq1)|
    thus |.Sum(seq1).|>=0 by COMPLEX1 .0(|zz1) java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
    let i;
    assume i<=0;
    then i=0;
    hence thesis by NAT_1:47;
 java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  for k holds P[k] from NAT_1:sch 2(A10,A2);
  then consider r such A19:P1;
 r=0 
A12: for i st i <= n holds |.Sum (seq1^\i) .|<=r;
  take r1=r+1;
  thus r1>0 by Fr1  ;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  now
    per cases;
    suppose
A13:  k <= n;
A14:  0 qua Nat+r< r1 by XREAL_1:8;
      |.Sum (seq1^\k) .|<=r by    ex absFrbe of REAL  domabsFr= r&
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 37
    end;
    suppose
A15:  k > n;
      java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 48
      k1+1>n by A15;
      then      assume iin Segm lenFrjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
      then
A16:  |.P.k1-Sum seq1.|<1 by A9;
      Sum seq1 = P.k1+Sum(seq1^\(k1+1)) by A1,SERIES_1:15;
      then |.-Sum(seq1^\(k1+1)).|<1 by A16;
      then
A17:  |. Sum(seq1^\(k1   absFr be XFinSequenceof such 
     1(  Nat<r1 by A11XREAL_1:6java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
      hencethesisby ,:;
    end;
  end;
  thesis;
end;

theorem Th52:
  for seq1 let   that
  Partial_Sums seq1).n <= (Partial_Sums seq1).m
proof
  let seq1, n, m such     assume
A1: n <= m and
A2: for i holds seq1.i>=0;
  set S=Partial_Sums seq1;
  defpred P[Nat] means S.n <= S.(n+$1);
A3: for i st P[i] holds P[i+1]
  proof
    let i such that
:[i;
    set ni=n+i;
    .ni+)Sni+eq1.ni+)&seq1.(+)=0 byA2,SERIES_1:def 1;
    then S.(ni+1) >= S.ni + (0 qua Nat) by      thesis XXREAL_02;
    hence thesis by A4,XXREAL_0:2;
  end;
A5: P[0];
A6: for i holds P[i] from NAT_1:sch 2(A5,A3);
  reconsider m9=m, n9=n as Nat;
A7: n9+(m9-n9)=m9;
  m9-n9 is Nat byjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  hence thesis by A6,A7;
end;

:: CAUCHY PRODUCT THEOREM

 Th53:
    .|<r;
java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 78
proof
,suchthat
A1: seq1 is  thenconsiderr  that
A2: seq2 is summable;
  setS2= seq2;
  set S1=Sum seq1;
  set PA=Partial_Sums(|.seq1.|);
  set P2P(seq2)
  set P1=    let i such i such that
S#) seq2;
n
A3per cases by A5,AT_18;
   forsuppose
  proof
    seq1 is summable by A1;
    then
A4: P1 is convergent by SERIES_1:def 2;
    let e such that
A5: 0<e;
    set e1=e/(3*(|.S2.|+1));
    (|.S2.|+1)> (0 qua Nat)+(0 qua Nat) by COMPLEX1:46,XREAL_1:8;
    then
A6: 3    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    then lim P1= S1 & e1>0 by A5,SERIES_1:def 3,XREAL_1:139end;
    then consider n0 be Nat such that
A7: for n be Nat st n0 <= n holds |.P1.n-S1  P is convergent  A1,ERIES_1:def 
      by A4,SEQ_2:def 7;
    set e3=e/(3*(Sum abs(seq1)+1));
    ..|(  Nat)+(0qua Nat)byCOMPLEX146XREAL_1:8
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A8: e1*(|.S2.|+1)=e/3 by XCMPLX_1:92;
A9: P2 is convergent      |Sum(seq1).|>0by COMPLEX1:46;
    consider r such that
A10: 0 < r and
A11: for k holds     then =java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
    set e2=e/(3*r);
A12: |.S2.|+1 > |.S2.|+(0 qua Nat) by XREAL_1:8;
A13: now
      let n;
      |.seq1.n.|=abs(seq1).n by SEQ_1:12;
      hence abs(seq1).n>=0 by COMPLEX1:46;
    end;
then A14:for n be Nat holds |.seq1.|.n>=0;
A15: abs seq1 is summable by A1,SERIES_1:def 4;
    then Sum abs(seq1)>=0 by A14,SERIES_1:18;
    then
A16: (Sum abs(seq1)+1)*e3=e/3 by XCMPLX_1:92;
A17: Sum abs seq1>=0 by A15,A14,SERIES_1:18;
    then 3*(Sum abs(seq1)+1)>0*3 by XREAL_1:68;
    then >0 by A5,XREAL_1139java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    then consider n2 be Nat such that
A18: for n be Nat st n2<=n holds |.P2.n-S2.|<e3 by A9,SEQ_2:def 7;
    3*r>0*3 by A10        k1=k-  Nat  NAT_120java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
    then e2>0 by A5,XREAL_1:139;
    then consider n1 be Nat such that
A19: for nbe Nat
     st n1 <= n holds |.PA.n-PA.n1.|      then
    reconsider M=max(max(1,n0),max(n1+1,n2)) as Nat by TARSKI:1;
A20: max(n1+1,n2)<=M by XXREAL_0:25;
    take 2M=M*2;
    letm  Nat that
A21: 2M <= m;
A22: max(1,n0)<=M by XXREAL_0:25;
    then 0<M by XXREAL_0:25;
    then      
A23: M=M1+1;
A24: n1+1 <= max(n1+1,n2) by XXREAL_0:25;
java.lang.StringIndexOutOfBoundsException: Range [19, 4) out of bounds for length 38
    then M1>= n1 by XREAL_1:8;
    then PA.M1>=PA.n1 by A13,Th52;
    then PA.m-PA.M1<=PA  end
    then
A25: r*(PA.m-PA.M1)<=r*(PA.m-PA.n1) by A10,XREAL_1:64;
    consider Fr such that
A26  for seq1, n,m st n <=m& for i holds seq1.i>=0 holds (
:domFr=+1and
:i   +1holds Fr.=eq1.*um(seq2^(-i+))by A2,Th49;
    consider   XFinSequenceof REAL suchthat
  =domFr 
A30: |.Sum Fr.| <= Sum absFr and
A31: for i st i in dom absFr holds absFr.i=|.Fr.i.| by Th50;
A32: M<=M+M by NAT_1:11;
    then
:M<m by A21,XXREAL_02;
    then M < len absFr by A27,A29,NAT_1:13;
    then
A34: len (absFr|M)=M by AFINSQ_1:11;
    n1+1 <= M by A24,A20,XXREAL_0:2;
    then n1+1<=m by A33,XXREAL_0:2;
    then
A35: n1 <= m by NAT_1:13;
    then PA.m>=PA.n1 by A13,Th52;
    then PA.m-PA.n1>=PA.n1-PA.n1 by java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 9
    then
A36:  reconsiderm9=m,n9njava.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 31
    consider Fr1 such that
A37: absFr=absFr|M^Fr1 by Th1;
A38: m+1=len (absFr|M)+ len Fr1 by A27,A29,A37,AFINSQ_1:def 3;
    then
A39: Fr1|((m-M)+1)=Fr1 by A34;
A40: n2 <= max(n1+1,n2) by XXREAL_0theorem Th53java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
    then n2 <= M by A20,XXREAL_0:2;
 <M XXREAL_0
    then n2 <= m & m in NAT by A21,XXREAL_0:2, ORDINAL1
    then
A41: |.P2.m-S2.|<e3 by A18;
    defpred S[Nat] means M+$1+1<=m+1 implies Sum  set S2=um 
    .(M+$1)-PA.M1);
A42: for k st S[k] holds S[k+1]
    proof
      let k such that
A43:  S[k];
      set k1=k+1;
      set Mk1=M+k1;
      reconsider Mk=M+k as Nat;
A44:  |.seq1.Mk1.|=abs(seq1).Mk1 by SEQ_1:12;
      assume
A45:  Mk1+1<=m+1;
      then
M m1 :13java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
      then
A47:  Mk1 in Segm(m+1) by NAT_1:44;
      then Fr.Mk1=seq1.Mk1*Sum(seq2^\(m-'Mk1+1)) by A28;
      then
A48:  |.Fr.Mk1.|=|.seq1.Mk1.|*|.Sum(seq2^\(m-'Mk1+1)).| by COMPLEX1:65;
      Mk1<m+1 by A45,NAT_1:13;
      then k1 < len Fr1 by A38,A34,XREAL_1:7;
      then k1 in len Fr1 by AFINSQ_1:86;
      then
A49:  Sum(Fr1|(k1+1))=Fr1.k1+Sum(Fr1|k1) by AFINSQ_2:65;
      m+1=len absFr by A27,A29;
      then absFr      en consider n0 be Nat such that
      then
A50:  Fr1.k1=|.Fr.Mk1.| by A27,A29,A31,A47;
:(|seq1.M+)+A.)  .(+1  SERIES_1: 1
|.Mk1|>0 &|Sum(eq2\m'Mk1+1).|<rby A11,COMPLEX1:46;
then Fr1.k1<=*|seq1.k1. by A50,XREAL_1:64;
then SumFr1|k1+)<r*.eq1.|.k1+*PA.M+)PA.)byA43AA49
, then
 SumFr1|k1+)<r((|.seq1|.k1+.(M+k)-PA.M1);
      then Sum(Fr1|(k1+1))<=r*(A9 P2 is convergent &limP2= S2 by A2,ERIES_1:def 2,def 3;
      hence thesis;
    end;
    |.PA.m - PA.n1.| < e2 by A19,A35;
    then r*(PA.m-PA.n1)<=r*e2 by A10,hence abs(seq1).n>=0 by COMPLEX1:46
    then
A52: r*(PA.m-PA.M1)<=r*e2 by A25,XXREAL_0:2;
A53: m=M+(m-  abs)0:java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
A54A17  seq1= by,A14SERIES_118
f
     > A5XREAL_1139;
A55 n2Natsuch
      
56: M <m++1 by NAT_113;
      then
A57:  M in Segm(m+1) by NAT_1:44;
      then
A58:  Fr.M=seq1.M*Sum(seq2^\(m-'M+1)) by A28;
      M+1-M<=m+1-M by     st n1 =  holds|PAPA.. <e2 by A15,SERIES_1:21;
      then Segm 1 c= Segm len Fr1 by A38,A34,NAT_1:39;
      then
A59:  dom (Fr1|1)=1 by RELAT_1:62;
      m1=enabsFr A27,A29;
      then absFr.M=Fr1.(M-M) by A37,A34,A56,AFINSQ_1:19;
      then Fr1.0=|.Fr.M.| by A27,A29,A31,A57;
      then
A60:  Fr1.0=|    be  that
61  |.seq1M|0&r|.umseq2\m-'1) .by A11,OMPLEX1:java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
      0 in Segm 1 by NAT_1:44;
      then
A62:  (Fr1|1).0=Fr1.0 by A59,FUNCT_1:47;
      PA.M1+|.seq1.|.(M1+1)=PA.(M1+1) by SERIES_1:def 1;
      then
A63:  PA.M-PA.M1=|.seq1.    then M1+1>=n1+1 by A2XXREAL_0:2
Sum(|1)(Fr1|)0byA59,Lm3;
      hence thesis by A62,    then PA.M1>=PA.n1 by A13,;
endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    for k holds S[k] from NAT_1:sch 2(A54,A42);
    A25: r*(.m-PA.M1)=r(A.m-A.)by A10XREAL_164;
    then Sum(Fr1)<=r*e2 by A52,XXREAL_0:2;

A64: A27:dom Fr=m+1 and
    ...>0 A13;
    then
A65 |.eq1|.*.P2.m=e3*|.seq1.. by A41,REAL_1:64;
A66: 0 in Segm(m+1) by NAT_1:44;
    then
A67: Fr.0=seq1.0*Sum(seq2^\(m-'0+1)) by A28;
PAM =Sum |.seq1. byA14,15,RSSPACE23;
    then
A68: e3* PA.M1 <= e3* Sum |.seq1.| by A5,A17,XREAL_1:64;
    S2=P2.(m-'0)+Sum(seq2^\(m-'0+1)) & m-'A33: M<mbyA21XXREAL_0:2;
    then
A69:(^\(m'+1)=S2-P2m;
    n0<= max(1,n0) by XXREAL_0:25;
    then n0 <= M by A22,XXREAL_0:2;
    then n0 <= m & m in NAT by A33,XXREAL_0:2, ORDINAL1:def 12;
    then
A70: |.P1.m-S1.|<e1 by A7;
    |S2(1m-).=.S2.||..m-1| &|.S2|>0 by COMPLEX146,65
    then
A71: |.S2*(P1.m-S1).|<=|.S2.|*e1 by A70,    then +1<=m by A33,:java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
A72: Sum absFr=Sum(absFr|M)+Sum Fr1 by A37,AFINSQ_2:55;
    defpred Q[Nat] means $1+1 <= M implies Sum(absFr|($1+1))<= e3 *
    PA.$1;
A73: n2 <= M by A40,A20,XXREAL_0:2;
A74: for k st Q[k] holds Q[k+1]
    proof
      let k such that
 Q[k]
      reconsider k1=k+1 as Nat;
A76:  |.seq1.k1.|=abs(seq1).k1 by SEQ_1A39:Fr1|(-+)Fr1 A34;
A77:  A40:n2 =max(n1+1,n2)XXREAL_0:5;
      assume
A78:  k+1+1<=M;
      then
  <M NAT_1:;
      then m-k1 >= m-M by XREAL_1:10;
      then m-k1 >= M by A77,XXREAL_0:2;
      then
A80:  m-k1 >= n2 by A73,XXREAL_0:2;
      e3*|.seq1.k1.|+Sum(absFr|k1) <= e3*|.seq1.k1.| + e3 * PA.k by A75,A78,
NAT_1:13,XREAL_1:6;
      then e3*|.seq1.k1.|+Sum(absFr|k1)<=e3*(abs(seq1).k1+PA.k) & k in NAT
        by A76,ORDINAL1:def 12;
      then
A81:  e3*|.seq1.k1.|+Sum(absFrA41:|.P2.m-.|<e3 by A18;
      k1<m by A33,A79,XXREAL_0:2;
      then k1 < m+1 by NAT_1:13;
      then
A82:  k1 in Segm(m+1) by NAT_1:44;
      then
A83:  Sum(absFr|(k1+1))=absFr.k1 + Sum(absFr|k1) by A27,A29,AFINSQ_2:65;
      m-k1=m-'k1 by A33,A79,XREAL_1:233,XXREAL_0:2;
      then |.P2.(m-'k1)-S2.|<e3 by A18,A80;
      then
A84:  |.S2-P2.(m-'k1).|<e3 by COMPLEX1:60;
A85:  S2=P2.(m-'k1)+Sum(seq2^\(m-'k1+1)) by A2,SERIES_1:15;
      |.seq1.k1.|>=0 by COMPLEX1:46;
      then |.S2-P2.(m-'k1).|*|.seq1.k1.| <= e3*|.seq1.k1.| by A84,XREAL_1:64;
      then
A86:
|.seq1.k1 * Sum(seq2^\(m-'k1+1)).| <= e3 * |.seq1.k1.| by A85,COMPLEX1:65;
      Fr.k1=seq1.k1*Sum(seq2^\(m-'k1+1)) & |.Fr.k1.|=absFr.k1 by A27,A28,A29
,A31,A82;
      then Sum(absFr|(k1+1))<=e3*|.seq1.k1.|+Sum(absFr|k1) by A83,A86,
XREAL_1:6;
      hence thesis by A81,XXREAL_0:2;
    end;
A87: Sum(absFr|zz) = 0;
    Sum(absFr|(zz+1))=absFr.0 + Sum(absFr|zz) & absFr.0=|.Fr.0.|
    by A27,A29,A31,A66,AFINSQ_2:65;
Sum(absFr|zz+)|seq1. .*.(^(m-0+).|byA67
COMPLEX1:65
      .=abs(seq1).0*|.Sum(seq2^\(m-'0+1)).| by SEQ_1:12
      .=abs(seq1).0*|.P2.m-S2.| by A69,COMPLEX1:60;
    then
A88: Q[0] by A65,SERIES_1:def 1;
    for k holds Q[k] from NAT_1:sch 2(A88,A74);
    then
A89: Sum(|)=e3 *PA.1by A23;
    Sum abs(seq1)+1>Sum abs(seq1)+(0 qua Nat) by XREAL_1:8;
    then e3*(Sum abs(seq1)+1) >= e3*Sum abs(seq1) by A5,A17,XREAL_1:64;
    then e3* PA.M1 <=e/3 by A68,A16,XXREAL_0:2;
    then Sum(absFr|M)<=e/3 by A89,XXREAL_0:2;
    then Sum(absFr|M)+Sum Fr1 <=e/3+e/3 by A64,XREAL_1:7;
    then
A90: |.Sum Fr.|<= e/3+e/3 by A30,A72,XXREAL_0:2;
    P.m-S1*S2=S2*(P1.m-S1)-Sum Fr by A26;
    then
A91: |.P.m-S1*S2.|<=|.S2*(P1.m-S1).|+|.Sum Fr.| by COMPLEX1:57;
    e1>0 by A5,A6,XREAL_1:139;
    then e1*(|.S2.|+1) > e1*|.S2.| by A12,XREAL_1:68;
    then |.S2*(P1.m-S1).|<e/3 by A8,A71,XXREAL_0:2;
    then |.S2*(P1A48  .Fr.Mk1||.eq1.Mk1.||Sum(seq2^\m'Mk1+1)). by COMPLEX1:65;
hence thesis by A91,XXREAL_0:2;
  end;
  then
A92: P is convergent by SEQ_2:def 6;
  hence S is summable by SERIES_1:def 2;
  lim P = S1*S2 by A3,A92,SEQ_2:def 7;
  hence thesis by SERIES_1:def 3;
end;

begin :: THE GENERATING FUNCTION FOR THE CATALAN NUMBERS

theorem
  for r ex Catal be Real_Sequence st (for n holds Catal.n = Catalan(n+1)
*r| <1/4implies Catal is absolutely_summable & Sum Catal = 1 + r
  * (Sum Catal) |^ 2 & Sum Catal = 2 / (1 + sqrt(1-4*r)) & (r<>0 implies Sum
 Catal = 1-sqrt(-4*r))/(*) java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
proof
  defpred E[object,object] means
   for rst $r Catal be Real_Sequence st for n
  holds Catal.n = Catalan(n+1) * r|^n) & (|.r.| < 1/4 implies Catal is
  absolutely_summable & Sum Catal = 1 + r * (Sum Catal) |^ 2 & $2=Sum Catal);
A1: for x being object st x in       then Sum(Fr1|(k1+1))<=r*((|.s..k1+.(M+)-A.1;
  proof
    let x be object;
A2: |.1 .|=1 by ABSVALUE:def 1;
          hence ;
    then reconsider r=x as Real;
    set a=4*|.r.|;
    deffunc C(Nat)= In(Catalan($1+1) * r|^$1,REAL);
al_Sequencesuchthat
A3: for n be Element of NAT holds Cat.n = C(n) from FUNCT_2:sch 4;
    set G=a GeoSeq;
    defpred P[Nat] means abs(Cat).$1 <= G.$1;
A4:for  stP[n] holds [n+]
    proof
A5:   |.r.|>=0 by COMPLEX1:46;
      let n;
      assume P[n];
      then
A6:   A55:  M(<=m1java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
      set n1=n+1;
A7:   |.r|^n1.      then
      Catalan(n1+57: in (m+  NAT_1:44;
      then
A8:   |.Catalan(n1+1).|=Catalan(n1+1) by ABSVALUE:def 1;
      Catalan(n1)>=0 by CATALAN1:17;
      then |.Catalan(n1).|=Catalan(n1) by ABSVALUE:def 1;      M+1M=m- byA55,XREAL_1:9;
      then |.Catalan(n1+1).| < 4*|.Catalan(n1).| by A8,CATALAN1:21 thenSegm 1c Segm lenFr1 by A38,A34,NAT_1:;
      then
A9:   |.r|^n1.|*|.Catalan(n1+1).|<=(4*|.Catalan(n1).|)*|.r*r|^n.| by A7,
XREAL_1:64;
      |.r*r|^n.| =|.r.|*|.r|^n.| by COMPLEX1:65;
      
      |.C( then
then |.n1.<a*|.atalann1).*.|n.|  A3;
      then |.Cat.n1.|<=a*|.C(n).| & n in NAT
        by COMPLEX1:65,ORDINAL1:def 12;
      then
A10:  |.Cat.n1.|<=a*|.Cat.n.| by A3;
      |.Cat.n.|=abs(Cat).n by SEQ_1:12;
      then abs(Cat).n1<=a*abs(Cat).n by A10,SEQ_1:12;
      then abs(Cat).n1<=a*G.n by A6,XXREAL_0:2;
      hence thesis by PREPOWER:3;
    end;
    Cat.0=C(0) by A3;
    then
A11: abs(Cat).0=|.r|^0.| by CATALAN1:11,SEQ_1:12;
    r|^0=1 & a|^0= 1 by NEWTON:4;
    then
A12: P[0] by A11,A2,PREPOWER:def 1;
 for n holds P[n] from NAT_1:sch 2(A12,A4);
then A13: for n be Nat holds P[n];
A14: now
      let n be Nat;
      abs(Cat).n=|.Cat.n.| by SEQ_1:12;
      hence abs(Cat).n>=0 by COMPLEX1:46;
    end;
    take Sum Cat;
    thus Sum Cat in REAL by XREAL_0:def 1;
    let s such that
A15: x=s;
    for y being object st y in NAT holds (Cat^\1).y=(Cat (##) (r(#)Cat)).y
    proof
      let y be object;
      assume y in NAT;
      then reconsider n=y as Nat;
      set n1=n+1;
      consider Fr1 such that
A16:  dom Fr1 = n1 and
A17:  for i st i in n+1 holds Fr1.i = Cat.i * (r(#)Cat).(n-'i) and
A18:  Sum Fr1 = (Cat (##) (r(#)Cat)).n by Def4;
      consider Catal be XFinSequence of NAT such that
A19:  Sum Catal = Catalan (n1+1) and
A20:  dom Catal = n1 and
A21:  for j st j<n1 holds Catal.j=Catalan(j+1)*Catalan(n1-'j) by Th39;
      reconsider CatalR=Catal as XFinSequence       hence thesis by A62,A60,A63,A61,XREAL_1:64
      defpred Q[set,set] means for k st k=$1 holds $2 = r |^ n1 * Catal.k;
A22:  for k st k in Segm n1 ex x be Element of REAL st Q[k,x]
      proof
        let k such that
        k in Segm n1;
         reconsider rr=r | n1  Catal. as Element of REAL
    by XREAL_0:def 1;
        take rr;
        thus thesis;
      end;
      consider Fr2 such that
A23:  dom Fr2 = Segm n1 and
A24:  for k be Nat st k in Segm n1 holds Q[k,Fr2.k] from STIRL2_1:sch 5(A22);
A25:  now
        let k be Nat java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 8
A26:    k in dom Fr2;
        k < len Fr2 by A26,AFINSQ_1:86;
        then
A27:    k<n+ A23;
        then
A28:    n1-'k=n1-k by XREAL_1:233;
A29:    n=k+(n-k);
        k<=n by A27,NAT_1:13;
        then
A30:    n-'k=n-k by XREAL_1:233;
        then Fr1.k = Cat.k * (r(#)Cat).(n-k) by A17,A23,A26
          .= C(k) * (r(#)Cat).(n-k) by A26,A3
          .=Catalan(k+1) * r|^k * (r(#)Cat).(n-k)
          .=Catalan(k+1) * r|^k * (r * Cat.(n-k)) by A30,SEQ_1:9
          .=Catalan(k+1) * r|^k*(r*C(n-'k)) by A3,A30
          .=Catalan(k+1) * Catalan(n1-'k) * r *(r|^k*r|^(n-'k)) by A30,A28
          .=Catalan(k+1) * Catalan(n1-'k) * r *(r|^n) by A30,A29,NEWTON:8
          .=Catal.k * r * r|^n by A21,A27

          .=Catal.k * r|^n1 by NEWTON:6
          ,A24,A26;
        hence Fr1.k=Fr2.k;
      end;
      for k st k in len Fr2 holds Fr2.k= r|^n1 * CatalR.k by A23,A24;
      then Sum Fr2 = r|^n1 * (Sum CatalR) by A20,A23,Th44
        .=C(n1) by A19
        .=Cat.n1     S2=P2.m'+Sum(seq2^\m-'0+))&-'0=m by ,NAT_D:,SERIES_115java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
        .=(Cat^\1).n by NAT_1:def 3;
      hence thesis by A16,A18,A23,A25,AFINSQ_1:8;
    end;
    then
A31: Cat^\1= Cat(##)(r(#)Cat) by FUNCT_2:12;
    |.r.|>=0 by COMPLEX1:46;
    then
A32: |.a.|=a by ABSVALUE:def 1;
    take Cat;
   hereby let  n;
  n in NAT by ORDINAL1:def 12;
    hence Cat.n = C(n) by A3
      .= Catalan(n+1) *    then n0 < m &m NAT A33,XREAL_02,ORDINAL1:def 12;
   end;
A33: r|^0=1 by NEWTON:4;
    Cat.0 = C(0) by A3
       .=Catalan((0 qua Nat)+1)*r|^0;
    then
A34: Partial_Sums(Cat).0=1 by A33,CATALAN1:11,SERIES_1:def 1;
    assume |.s.| <1/4;
    then a<4*(1/4) by A15,XREAL_1:68;
    then G is summable by A32,SERIES_1:24;
    then abs(Cat) is summable by A14,A13,SERIES_1:20;
    hence
A35 Cat isabsolutely_summable by SERIES_1:def 4;
    then Cat is summable;
    then r(#)Cat is summable & Sum(r(#)Cat)=r*Sum Cat by SERIES_1:10;
    then Sum(Cat^\((0 qua Nat)+1))=SumA72 Sum absFr=umabsFr|M+um Fr1 by A37,AFINSQ_2:;
    then Sum Cat= 1 + r*(Sum Cat*Sum Cat) by A35,A34,SERIES_1:15;
    hence thesis by A15,WSIERP_1:1;
  end;
  consider SumC be Function of REAL,REAL such that
A36: for x  object st x in REAL holds E[x,SumC.x] from FUNCT_2:sch 1(A1);
A37: for r,s st 0<s & s <= r & r < 1/4 holds SumC.s <= SumC.r
  proof
    let r,s such that
A38: 0<s and
A39: s <= r and
   /;
    r in REAL by XREAL_0:def 1;
    then consider Cr be Real_Sequence such that
A41: for n holds Cr.n = Catalan(n+1) * r|^n and
A42: |.r.| < 1/4 implies Cr is absolutely_summable & Sum Cr = 1 + r *
    (Sum Cr) |^ 2 & SumC.r=Sum Cr by A36;
    s in REAL by XREAL_0:def 1;
    then consider Cs be Real_Sequence such that
A43: for n holds Cs.n = Catalan(n+1) * sA79:k1< by NAT_113java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
A44: |.s.| < 1/4 implies Cs is absolutely_summable & Sum Cs = 1 + s *
    (Sum Cs) |^ 2 & SumC.s=Sum Cs by A36;
A45: now
      let n be Nat;
      s|^n <= r|^n & Catalan(n+1)>=0 by A38,A39,CATALAN1:17,PREPOWER:9;
      then
A46:  Catalan(n+1) * s|^n <= Catalan(n+1)*r|^n by XREAL_1:64;
      Catalan(n+1)*r|^n=Cr.n by A41;
      hence Cs.n <= Cr.n by A43,A46;
    end;
A47:  < /4by A39,40,:;
    thus thesis by A38,A39,A40,A47,A44,A42,A45,ABSVALUE:def 1,TIETZE:5;
  end;
  set R={r where r is Real:0<r & r<1/4 &
         SumC.r=(1+sqrt(1-4*r))/(2*r)};
A48: for r st r<>0 & |.r.| < 1/4 holds SumC.r=(1-sqrt(1-4*r))/(2*r) or SumC.
  r=(1+-k1 > n2 by A73,XXREAL_0:2;
  proof
    let r such that
A49: r<>0 and
A50:.r. < 1/4;
    r<=1/4 by A50,ABSVALUE:5;
    then 4*r <= (1/4)*4 by XREAL_1:64;
    then
A51: 4*r-4*r<=1-4*r by XREAL_1:9;
    r in REAL by XREAL_0:def 1;
    then consider Catal be Real_Sequence such that
    for n holds Catal.n = Catalan(n+1) * r|^n and
A52: |.r.| < 1/4 implies Catal is absolutely_summable & Sum Catal = 1
    + r * (Sum Catal) |^ 2 & SumC.r=Sum Catal by A36;
    set S=Sum Catal;
    S=1+r*S^2 by A50,A52,WSIERP_1:1;
    then
A53: r*S^2+(-1)*S+1=0;
delta,11=-4*r & -(-1)
    hence thesis by A49,A50,A52,A53,A51,FIB_NUM:6;
  end;
A54: for r,s st 0<r & r<s & s<1/4 holds (1+sqrt(1-4*r))/(2*r) > (1+sqrt(1-4*
  s))/(2*s)
  proof
    let r,s such that
A55: 0<r and
A56: r<s and
A57: s<1/4;
    4*s<4*(1/4) by A57,XREAL_1:68;
    then
A58: 4*s-4*s < 1-4*s by XREAL_1:9;
    then
A59: sqrt(1-4*s)>0 by SQUARE_1:25;
    4*r < 4*s by A56,XREAL_1:68;
    then 1-4*r >= 1-4*s by XREAL_1:10;
    then sqrt(1-4*r)>= sqrt(1-4*s) by A58,SQUARE_1:26;
    then 1+sqrt(1-4*r)>=1+sqrt(1-4*s) by XREAL_1:7;
    then
A60: (+-r)(*)=(1+qrt(-*s)(*r)by A55,XREAL_1:72;
    2*r>2*0 & 2*r<2*s by A55,A56,XREAL_1:68;
    then (1+sqrt(1-4*s))/(2*r)>(1+sqrt(1-4*s))/(2*s) by A59,XREAL_1:76;
    hence thesis by A60,XXREAL_0:2;
  end;
A61: R={}
  proof
    assume R<>{};
    then consider x being object such that
A62: x in R by XBOOLE_0:def 1;
    consider r be Real such that
    x=r and
A63: 0<r and
A64:r<1/ and
A65: SumC.r=(1+sqrt(1-4*r))/(2*r) by A62;
    consider s be Real such that
A66: r<s and
A67: s< 1/4 by A64,XREAL_1:5;
A68: |.s.|=s by A63,A66,ABSVALUE:def 1;
    4*s<4*(1/4) by A67,XREAL_1:68;
    then 4*s-4*s < 1-4*s by XREAL_1:9;
    then sqrt(1-4*s)>0 by SQUARE_1:25;
   then1-qrt(-*)< 1-bXREAL_1:;
    then
A69: (1-sqrt(1-4*s))/(2*s)<=1/(2*s) by A63,A66,XREAL_1:72;
A70: 2*r>2*0 by A63,XREAL_1:68;
    R c= {r}
    proof
      assume R c= r}
      then R{r}>{}by XBOOLE_1:37
      then consider y being object such that
A71:  y in R\{r} by XBOOLE_0:def 1;
      y in R by A71;
      then consider s be Real such that
A72:  y=s and
A73:  0<s and
A74:  s<1/4 and
A75:  SumC.s=(1+sqrt(1-4*s))/(2*s);
A76:  r<>s by A71,A72,ZFMISC_1:56;
      now
        per cases by A76,XXREAL_0:1;
        suppose
A77:      r>s;
          then SumC.s > SumC.r by A54,A64,A65,A73,A75;
          hence contradiction by A37,A64,A73,A77;
        end;
        suppose
A78:      r<s;
          then SumC.r > SumC.s by A54,A63,A65,A74,A75;
          hence contradiction by A37,A63,A74,A78;
        end;
      end;
      hence contradiction;
    end;
    then not s in R by A66,TARSKI:def 1;
    then SumC.s<>(1+sqrt(1-4*s))/(2*s) by A63,A66,A67;
    then
A79: SumC.s=(1-sqrt(1-4*s))/(2*s) by A48,A63,A66,A67,A68;
    4*r<4*(1/4) by A64,XREAL_1:68;
    then 4*r-4*r < 1-4*r by XREAL_1:9;
    then sqrt(1-4*r)>0 by SQUARE_1:25;
    then 1+(0 qua Nat)<1+sqrt(1-4*r) by XREAL_1:8;
    then
A80: 1/(2*r) < SumC.r by A65,A70,XREAL_1:74;
    2*r<2* s by A66,XREAL_1:68;
    then 1/(2*s)<1/(2*r) by A70,XREAL_1:76;
    then SumC.s<1/(2*r) by A79,A69,XXREAL_0:2;
    then SumC.s<SumC.r by A80,XXREAL_0:2;
    hence thesis by A37,A63,A66,A67;
  end;
A81: for r st 0<r & |.r.| <1/4 holds SumC.r=(1-sqrt(1-4*r))/( byA27,,A31,A66,AFINSQ_2:65;
  proof
    let r such that
A82:0r and
A83: |.r.|<1/4;
    assume SumC.r<>(1-sqrt(1-4*r))/(2*r);
    then
A84: SumC.r=(1+sqrt(1-4*r))/(2*r) by A48,A82,A83;
    |def 1;
    then r in R by A82,A83,A84;
    hence thesis by A61;
  end;
A85: for r st r<0 & |.r.|<1/4 holds SumC.r=(1-sqrt(1-4*r))/(2*r)
  proof
    let r such that
A86: r<0 and
A87: |.r.|<1/4;
    2*r<2*0 by A86,XREAL_1:68;
    then
A88: |.2*r.|=-(2*r) & 0 qua Nat-2*r > 0 qua Nat-0 by ABSVALUE:def 1;
A89: |.-r.|<1/4 by A87,COMPLEX1:52;
    then 1/4>= -r by ABSVALUE:5;
    then 4*(1/4)>=4*(-r) by XREAL_1:64;
    then 1-*-)>=4(r)4*(-r)by XREAL_1:9;
    then sqrt(1-4*(-r))>=0 by SQUARE_1:def 2;
    then
A90: 1-sqrt(1-4*(-r))<=1-0 by XREAL_1:10;
A91: sqrt(1-4*r)>0 by A86,SQUARE_1:25;
    then 1+sqrt(1-4*r)> 1+(0 qua Nat) by XREAL_1:8;
    then
A92:1sqrt(1-*-r))<1sqrt(1-*)by A90,XXREAL_0:;
    1+sqrt(1-4*r)=|.1+sqrt(1-4*r).| by A91,ABSVALUE:def 1;
    then
A93: (1-sqrt(1-4*(-r)))/(2*(-r))<|.1+sqrt(1-4*r).|/|.2*r.| bythen Sum(absFr|)<e/3 by A89,XXREAL_0:2;
XREAL_1:74;
    -r in REAL by XREAL_0:def 1;
    then E[-r,SumC.-r] by A36;
    then
for s st -r=s ex Catal be Real_Sequence st (for n
  holds Catal.n = Catalan(n+1) * s|^n) & (|.s.| < 1/4 implies Catal is
absolutely_summable&SumCatal=1 +s *(umCatal) | 2
       SumC.r=Sum Catal)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
     then consider CR be Real_Sequence such that
 A94: for n holds CR.n = Catalan(n+1) * (-r)|^n and
 A95:A90:|.umFr.| e/3+/3 by A30,A72,XXREAL_0:2;
     (-r) * (Sum CR) |^ 2 & SumC.(-r)=Sum CR;
    assume
A96: SumC.r<>(1-sqrt(1-4*r))/(2*r);
    r in REAL by XREAL_0:def 1;
    then consider Cr be Real_Sequence such that
 for n holdsCr.  Catalan(+)* r|) and
.|<1/ impliesC is absolutely_summable  SumCr=1  r *
    (Sum Cr) |^ 2 & SumC.r=Sum Cr by A36;
    now
      let x be object;
      assume x in NAT;
      then reconsider n=x as Element of NAT;
      (-r)|^n=((-1) *r)|^n .=(-1)|^n* r|^n by NEWTON:7;
      then
A99: |.(-r)|^n;
        .=1*then
      Catalan(n+1)>=0 by A92  is convergent  SEQ_2: ;
      then
A100: |.Catalan(n+1).|=Catalan(n+1) by ABSVALUE:def 1;
      (-r)|^ n>=0 by A86,POWER:3;
      then |.(-r)|^ n.|=(-r)|^ n by ABSVALUE:def 1;
      then CR.n=|.r|^n.|*|.Catalan(n+1).| by A94,A99,A100
        .=|.r|^n*Catalan(n+1).| by COMPLEX1:65
        .=|.Cr.n.| by A97
        .=abs(Cr).n by SEQ_1:12;
      hence abs(Cr).x=CR.x;
    end;
    then
A101: abs(Cr)=CR by FUNCT_2:12;
    0 qua Nat-r > 0 qua Nat-0 by A86;
    then
A102: Sum CR=(1-sqrt(1-4*(-r)))/(2*(-r)) by A81,A95,A89;
    |.Sum Cr.|<=Sum abs Cr by A87,A98,TIETZE:6;
    then |.(1+sqrt(1-4*r))/(2*r).|<= Sum
    hence thesis by A102,A93,COMPLEX1:67;
  end;
  let r;
  r REAL  XREAL_0def1;
  then consider Cat be Real_Sequence such that
A103: for n holds Cat.n = Catalan(n+1) * r|^n and
A104:|r.  /   isabsolutely_summable&Sum  = 1 + r 
  (Sum Cat) |^ 2 & SumC.r=Sum Cat by A36;
  set s=sqrt(1-4*r);
  take Cat;
  thus for n holds Cat.n = Catalan(n  Catal= (1 - sqrt(1-*) /2*) )
  assume
A105: |.r.|<1/4;
  hence Cat is absolutely_summable & Sum Cat = 1 + r*(Sum Cat)|^ 2 by A104;
A106: r<>0 implies Sum Cat = (1 - sqrt(1-4*r)) / (2*r)
  proof
    assume r<>0;
    then r>0 or r<0;
    hence thesis by A81,A85,A104,A105;
  end;
  now
    per cases;
    suppose
      r=0;
      hence 2 / (1 + s)=Sum Cat by A104,A105;
    end;
    suppose r<>0;
      then
A108: 2*r<>0;
      r<=1/4 by A105,ABSVALUE:5;
      then 4*r <=4*(1/4) by XREAL_1:64;
      then
A109: 1-4*r >= 4*r-4*r by XREAL_1:9;
      then s >=0 by SQUARE_1:def 2;
      then (1+s)/(1+s)=1 by XCMPLX_1:60;
      then  holds .n  (n+)  |n  |r.|<14implies Catal is
        .((-)*1+)  (*)*(+s) by XCMPLX_1:java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
        .=(1^2-s^2)/ ((2*r)*(1+s))
        .=(1-(1-4*r))/ ((2*r)*(1+s)) by A109,SQUARE_1:def 2
        .=((2*r)*2)/((2*r)*(1+s))
        .=((2*r)/(2*r))*2/1+) by XCMPLX_1:
        .=(1)*(2/(1+s)) by A108,XCMPLX_1:60;
      hence Sum Cat=2/1+) by A106;
    end;
  end;
  hence thesis by A106;
end;

Messung
CHZG
8110010093

¤ Dauer der Verarbeitung: 0.175 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,055
#Domains=861,552