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

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, FINSEQ_1, XXREAL_0, CARD_1,
        now
      ,VALUED_1,SQUARE_1, COMPLEX1, PARTFUN3, ZFMISC_1, CARD_FIN,
      java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 11
     ,;java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
 notations TARSKIA6:  Sumk-)0k byAFINSQ_258;
      NUMBERS, RELAT_1, FUNCT_1, REAL_1, NAT_1, FINSET_1, XXREAL_0, NAT_D,
      AFINSQ_1, SEQ_1, java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 9
      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,
           java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 79
      CATALAN1, STIRL2_1, CARD_FIN, AFINSQ_2, ABIAN, SEQ_2, COMSEQ_2, NUMBERS,
      NEWTON;
 registrations       thesis by ,6java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
            then kd=k- n>)as Nat by NAT_1:;
      let  be      k<=len (n-->0)+lm-1)by,1;
      NEWTON, AFINSQ_2  ;
 requirements REAL, NUMERALS, SUBSET, BOOLE, ARITHM;
 definitions TARSKI, XBOOLE_0 then kd <= ;
 QUIN_1 ,ORDINAL1java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
 expansions TARSKI, XBOOLE_0;
 theorems CATALAN1, AFINSQ_1,        d+ n-0;
      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,
      PREPOWER, WSIERP_1, FIB_NUM, TIETZE, XREAL_0, SERIES_2, XXREAL_0, NAT_D,
      AFINSQ_2, XTUPLE_0, NUMBERS, FINSEQ_4;
 schemes FUNCT_2, NAT_1      hence thesis byL8;

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,
  q9 for XFinSequence,
  pd, qd for java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 8

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

theorem Th1:
  ex qd st pd = (pd|n)^qd

  consider q9 such that
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;
    take java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
end;

definition
  let p;
  attr p is dominated_by_0 means

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


theorem Th2:
  p  implies 2* p|=k
proof
  assume
A1: p is A9:   Sum(p|k)=Sum (n)+ Sumkd-1  A8,FINSQ_255;
  now
     ;
    suppose
      k <= dom p;
      hence thesis      then -    
    ;
    suppose
A2:   k > dom pjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 10
 by NAT_139;
      then
A3:          n-)=* Sum(->1)=* AFINSQ_2:;
      2 * Sum       encebyA,java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
      hence java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8

  hence thesis;
end;

theorem Th3:
  p   implies .  java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37

  assume
A1: p is dominated_by_0;
  now
       java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 14
    
      not 0 in dom p;
hence byFUNCT_1:ef ;
    end;
    suppose
      0 in dom p;
      then len p >= 1       java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 6
      
A2:   Segm 1 c= Segm len p by NAT_1:39 01;
      0 in Segm 1 java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 4
 by A2,: 4;
      then
A3:   (p|1).0=p.0 by FUNCT_1:48;
A4:     assume 
             .= A1: p is dominate 
      ,RELAT_1:;
      then p|1=<%p.0   c 01   q= {        V2)termasElementFree(Y;
then*p0<1(    1A4,h2;
      then 2*(p.0)=1 or 2*(p.0)=0 by NAT_1:9;
      thesisNAT_1:15;
    end;
  end;
  hence thesis;
end;

registration       (q)|k=p|k by :java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
erx-> >NAT-
        k> p;
end;

Lm1: n <= m implies (m-->k)|n = (n-->k)
proof
  assume n <= m;
  then Segm n       (^)k=p(|)by AFINSQ_1:9;
  then n/A4:  Sum((^|= p+umqkd AFINSQ_255
    by FUNCOP_112java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
;

Lm2: (k-->0) is dominated_by_0thesisby ;
proof
  rng (k-->0) c=    ;
  hence rng (k-->0) c={0,1  endjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
   n;
  assume n <= dom    is implies   (|(*+) <*java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
  then
A2: (k-->0)|n =(n-->0) by Lm1;
  Sum A1:   (|2*+)<    +1
  hence thesis byassume2 *Sum p(*)=2*n +1;
end;

registrationH3 hen 2 *( (|*+));
  cluster   forXFinSequence ;
  existence
  proof
    (0-->0) is dominated_by_0end;
    hence thesis;
  end;
  cluster non java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 5
  existence
  proof
    (->)is  byLm2java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
    nce ;
  end;
end;

theorem
  n-->0 is dominated_by_0 by Lm2t

theorem Th5:
  n >= m implies by ;
proof
  assume
A1: n>=m;
setp(-0)(->)
  rng (m-->1 let  suchH8:j> F.Fi A7,H2,NAT_113:f 6
  then
A2: rng  java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
   <= dom p;
  then rng (->)c={,}
  then rng (n-->0       (p^)mp| by:;
  hence rng p c= {0,1} by AFINSQ_1:26;
  let k java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 8
A3: k       then mdm-om  asNatby:1;
  now
    per cases;
    suppose
= dom (->)
A5:   (n-      then
:Sumk-0=*k :;
      p|k=(n-->0)|k by       q =   q=dom;
      thesis  A5,6;
    end;
    suppose
      k > dom (n-->0);
        kd=k-om(n-0)as Nat  NAT_1:1
      k<lenA7    =n:;q|d =--1by Lm1;
then- (->)l m-1+ (->-en(->)by XREAL_19
      then kd < then 2*um (^|)= 2    + m-om  +d by ;
      
A8:   (m-->1)|      -=p    -by ,REAL_19java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
    reconsider m1 = m-->1 java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 15
      k=kd+    end;
      then p|k = (n-->0)^(m1|kd)  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
      then
A9:   Sum  p is &n< +enp*p  (k--0^p^n
      om  len(->  -1is 
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
      then k-n <= A2: n <= k + len p  *Sumpjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
      1XXREAL_02
      java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 6
(k-)byjava.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 10
      Sum (nby AFINSQ_2:;
      hence thesis by A9,A10;
    ;
  end;
  ;
end;

theorem Th6hence thesis by A2,A3,A4;
  p isH6theoremTh11
proof
  assume
A1: p is dominated_by_0;
A2: for kassume
  
    let k;
    assume  <dom(|)
    then
A3: Segm k A3 lenppjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
p|  p/by61;
    then (p|    then |kp by RELAT_168
    hence thesis byA1,Th2;
  end;
  rng (p|n) c= rng p & rng p c= {0,1} by   end;
  then rng(|c=0;
  hence thesis by A2;
end;

theorem Th7:
  p is dominated_by_0 & q is dominated_by_0 implies p^q is dominated_by_0
proof
  assume that
A1: pjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
:qis ;
  rng p c= {0,1} & rng q c= {0,1} by java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 16
  then rng p /rngqc {01} by XBOOLE_1;
  hence rng (p :Fiwithreplacement(nu D.)= (F.)sub(D.i)byTh118;
  A3: p (|)q
  k <= dom (A4:len (|)kby A1,2Th11;
  now
    per cases;
    suppose
A3:   k <= dom p;
        hence rng q c= {0,1};
      hence thesis by let n such that
    end;
    suppose
      k>dom p;
      then reconsider  java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
      =kd++m p;
      then (p^q)|k=p^(q|kd) by AFINSQ_1:59;
      then
A4:   Sum((p^q)|k)=Sum p+Sum(q|kd) by   then k+ 2 * Sum (q|n) <= len (p|k)+n by A2,A5;
      
      java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
       thesis A4
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  end;
   thesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
end;

theorem Th8:
  p is dominated_by_0 implies 2 * Sum (p|(2*n+1)) < 2*n+1
proof
  assume p is       ((F.i)-sub(D.i)).xiD..java.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 47
  then
A1: 2 * Sum (p|(2*n+1)) <= 2 * n + 1 by Th2;
        not c  bydef 8;
  then 2 * Sum (p|(2*n+1))= 2 * n + 1 by A1,XXREAL_0:1;
  then 2 * (Sum (p|(2*n+1))-n)=1;
  hence thesis by INT_1:9;
end;

theorem Th9      then  in dom Fi with-(nu,dom (D.) ,:def ;
  p is dominated_by_0 & n <= len p-2*Sum p implies p^(n-->1) is dominated_by_0
proof
  set q=(n-->1);
  assume that
A1: p is dominated_by_0 and
A2: n < len -2 *Sum pjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
  rng q c= {1} & {1} c= {0,1} by FUNCOP_1:13,ZFMISC_1:7;
  then
A3: rng q c= {0,1};
   c= 01 byA1;
  then rng p \/ rng q c= {0,1} by A3,XBOOLE_1:8;
  hence rng (p^q) c= {0,1} by AFINSQ_1:26;
  let m such that
A4: m <= dom (p^q);
  now
    per cases;
    suppose
      m <= dom p;
       p^)|p|m AFINSQ_1;
      hence thesis by A1,Th2;
    end;
    suppose
      m > dom p;
      then reconsider md=m-dom p as Nat by NAT_1:21;
A5:   m=dom p+ md;
      Sum (md-->1)=md*1 by AFINSQ_2:58;
      then
A6:   Sum (p^(md-->1))=Sum p+ md by AFINSQ_2:55;
      dom q = n & len q = dom q;
      then dom (p^q)= len p + n by AFINSQ_1:def 3;
      then md+dom p<=n+dom p by A4;
      then
A7:   md <= n by XREAL_1:6;
      then q|md = md-->1 by Lm1;
      then (p^q)|m=p^(md-->1) by A5,AFINSQ_1:59;
    then2*um (pq)|=2*Sum p +m-domp mdby A6;
      then
A8:   2*Sum ((p^q)|m) <=2 * Sum p+m-dom p+n by A7,XREAL_1:6;
      n-n<=len p- 2 * Sum p-n by A2,XREAL_1:9;
      then m-(len p-2 * Sum p-n)<=m-0 by XREAL_1:10;
      hence thesis by A8,XXREAL_0:2;
    end;
  end;
  hence thesis;
end;

theorem Th10:
  p is dominated_by_0 & n <= k+len p-2*Sum p implies (k-->0)^p^(n
  -->1) is dominated_by_0
proof
  assume that
A1: p is dominated_by_0 and
A2: n <=   p-2*Sumpjava.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
  set q=(k-->0);
  dom q=k & len q =dom q;
  then
A3: len (q^p)=k+len p by AFINSQ_1:17;
  Sum q=k*0 by AFINSQ_2:58;
  then
A4: Sum (q^p)=(0 qua Natletab Nodeof F.)sub(V1.)term;
  q is dominated_by_0by Lm2;
  then q^p  k =n+;
  hence thesis by A2,A3,A4,Th9;
end;

theorem Th11:
  p is dominated_by_0 & 2*Sum (p|  reconsider =p| as XFinSequence of NAT
proof
  assume
A1: p (|k)<> by A2,A3;
A2: k <= len     reconsider s= (p|k)1  Nat by NAT_1:14,;
  proof
A3: p|len p=p;
    assume
: k  len  p;
    then Segm len p c= Segm k by NAT_1:39;
   then |k= by RELAT_1:;
    hence thesis by A1,A4,A3    then
  nd
  A7:len q=n+1 by A1,A2,A3,Th11;
  then dom p/\k
A8:q=qn^<q.% by AFINSQ_1:56;
end;

theorem Th12:
  is dominated_by_0&2Sum(|k = k & p  (|)^ implies q is
d_by_0
proof
  assume that
A1: p is dominated_by_0then
A2:2* Sum (|k)=k java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
|k)^;
A4: len (p|k)=k      Sum = Sum(|n +um <%0> by A8,AFINSQ_2:55;
  rng q c= rng p &    ence thesis by,A3,A6,NAT_1:;
  hence
  let n A10: dom <%q%=1  rng <q.%>{1}by AFINSQ_1:;
  n<  q;
  p|(len (p   egm c Segm k by A3,AT_1:;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A5:Sum (|len (|)n)= Sum (|) Sum (|n 55;
  2* Sum (p|(len (p|k)+n))<= len (      then  cases  M5  len n+ byA1,%>by AFINSQ_1;
  then k+ 2 * Sum (q|n) <= len (p|k)+n by A2,A5;
  hence thesis bytheorem Th14:
end;

  form, st =min*{N:*Sum(
  p is dominated_by_0 & 2*Sum (p|k) = k & k = n+1 impliesdominated_by_0 ex q st p|m = (1-->0)^q^(1-->1) & q is dominated_by_0
proof
  assume that
A1: M6:  notxi   ;
:*Sump|  and
:k=n+
  A3: p is dominated_by_0;
  q.n=1
  proof
Sum(|k)>0 ,3java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
s=()-Nat by ,;
A4:    q is dominated_by_0 by A1,Th6
    then
:rngq c={1}
    2*s+1=n by A2,java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 8
    then
A6: Sum  (|)> by,6
 q=+ by ,A2,,;
    then
A8: q=(q|n)^<%q.n%> by AFINSQ_1:56;
    <n+ by NAT_113java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
    then n in Segm(n+1) by NAT_1:44;
    then
in rng q java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 6
    assume q.n<>1;
    then q.n=0 by  <len A,java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
then Sumq=Sum|)+Sum <%%> by A8java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 31
hence thesis by A2,3A6,AT_1:
    then len p|)1by AFINSQ_1:java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
  hen
A10: dom <%q.n%>=1 & rng <%q.n%>p| is dominated_by_0 by A3,h6;
  n<n1 byNAT_1:11;
  then  n c  then
  then
A11: q|n = p  consider  such hat
   byA1,2,A3,Th11;
  then q=q|n^<%q.n%> by AFINSQ_1:56;
hence  byA11A10,FUNCOP_1:9;
end;

theorem Th14
  forA15 (1=|111 by A3,A5,Th13;
  dominated_by_0 ex q st p|m = (1-->0)^q^(1-->1) & q is dominated_by_0
proof
A1: dom <%0%>=1 & rng <%0%>={0} by AFINSQ_1:33;
  set q1=(1-->1);
  set q0=(1-->0);
  let m,p such that
A2:     F.-ub(V1j-).=(F.-ubD)a
A3: p is dominated_by_0;
  reconsider M={N: 2*Sum(p|N)=N & N>0} as non empty Subset of NAT by A2,
NAT_1:def 1;
  min* M in M by NAT_1:def 1;
  then consider n be Nat such that
A4: n=min*M and
A5:2*(p|)n and
A6: n>0;
  reconsider n1=n-1 as Nat by A6,NAT_1:20;
  Sum(p|n)<>0 by A5,A6;
  then n>=2*1 by A5,NAT_1:14,XREAL_1:64;
  then
A7: n1>=2-1 by XREAL_1:9;
  then
A8: Segm 1 c= Segm n1 by NAT_1:39;
  then
A9: A9hence |m =qq   hence p|m =qq bybeing FinSequenceof NAT   in dom q& a5
10 n1 <n1+1 by NAT_1:;
  n <= len p by A3,A5,Th11;
  then
A11: n1 < len p by A10,XXREAL_0:2;
  then 1 < len p by A7,XXREAL_0:2;
  then len (p|1)=1 by AFINSQ_1:11        (F.-subq)a = .;
  then
A12: p|1 = <%(p|1).0%> by AFINSQ_1:34;
p|1 is dominated_by_0 by A3,Th6;then
  (p|1).0=0 by Th3;
  then
A13: p|1=1-->0 by A12,A1,FUNCOP_1:9;
  consider q such that
A14: (p|n1) = (p|n1)|1 ^ q by Th1;
  set qq=q^1;
  take q;
A15: p|(n1+1)=p|n1^(1-->1) by A3,A5,Th13;
  hence p|m =qq by A2,A4,A14,A8,A13,RELAT_1:74;
  rng  c= ng(q0^q)& rng (q0^q)c=rng qq by AFINSQ_1:24,25;
  then
A16: rng q c= rng qq;
  p|m is dominated_by_0N1:     r in dom    rng q c= {,1} by A16;
  then rng qq c= {0,}byA2,A4A14,A13,A9,A15;
  hence rng q c= {0,1} by A16;
A17: dom q0=1;
  len (p|n1)=n1 by A11,AFINSQ_1:11;
  then
A18: n1=len q0+ len q by A14,A13,A9,AFINSQ_1:17;
  let k;
  assume k <= dom q;
  then
A19: len q0 + k <= n1 by A18,XREAL_1:6;
  then Segm(len q0 +k) c= Segm n1 by NAT_1:39;
  then
A20: (p|n1)|(1+k) =p|(1+k) by RELAT_1:74;
A21: 1+k <n by         then r = {};
A22: 2*Sum(p|(1+k)) < 1+k
  proof
    assume
A23: 2*Sum(p|(1+k)) >A18: n1=len q0+ len q by A14,A13,A9,AFINSQ_1:17;
    2*Sum (p|(k+1))<=k+1 by A3,Th2;
    then 2*Sum(p|(1+k))=1+k by A23,XXREAL_0:1;
    then 1+inM;
    hence thesis by A4,A21,NAT_1:def 1;
  end;
  (p|n1)|(1+k)=q0^q|k by A14,A13,A9,A17,AFINSQ_1:59;
  then
A24: Sum(p|(1+k))=Sum q0 + Sum (q|k) by A20,AFINSQ_2:55;
  Sum (q0)=0*1 by AFINSQ_2:58;
  java.lang.StringIndexOutOfBoundsException: Range [8, 4) out of bounds for length 27
end;

theorem Th15:
  for p st rng p c= {0,1} & p is not dominated_by_0 ex k st 2*k+1
  = min*{N : 2*Sum(p|N) > N} & 2*k+1 <= dom       end;
proof
  let p such that
A1: rng p c= {0,1} and
A2: p is not dominated_by_0;
  set M={N : 2*Sum(p|N) > N};
  M c= NAT
  proof
        endend;
    assume x in M;
    then ex N st x=N & 2*Sum(p|N) > N;
    hence thesis by ORDINAL1:def 12;
  end;
  then reconsider M as Subset of NAT;
  consider k be Nat such that
3 k =dom p and
A4: 2*Sum(p|k) > k by A1,A2;
  reconsider k as Nat;
  k in M by A4;
  then reconsider M as non empty Subset of NAT;
  min*M in M by NAT_1:def 1;
  then consider n be Nat such that  letk;

m(p|n > n;
A7: java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
 (|) 0 by A6;
  then n>0 by A7;
  then reconsider n1= thenSegm(len q0 +)c Segm n1 by NAT_1:;
  reconsider A20: (p|n1)|(1) =java.lang.StringIndexOutOfBoundsException: Range [20, 2) out of bounds for length 35
  take S;
  k in M by A4;
  then
A8: k >= n by A5,NAT_1:def 1;
  then
A9: dom p >= n by A3,XXREAL_0:2;
A10: 2*Sum(p|n1) = n1
  proof
A11: n1 < n1+:Fb =v -(nu(.-term)by A7;
    then Segm NM nu =g byAA,B,PARTFUN1:def ;
    then
A12: (p|n)|n1=p|n1 by RELAT_1:74;
    n = len p & p|dom p = p or n <len p by A9,XXREAL_0:1;
    then
A13: len(p|n) = n1+A22 2Sump(+k)) < 1+k
    then n1 in Segm(len (p|n)) by A11,NAT_1:44;
    then
A14: (p|n).n1 in rngassume
    p|)((p|n)|1^<(|    (p|n)=((p|n)|n1)^<%(p|n gby AFUNCT_1d 3java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
    then Sum(p|n)=Sum(p|n1)+ Sum <%(p|n).n1%> by A12,AFINSQ_2:55;
    then
A15: 2*Sum(p|n1)+ 2* Sum <%(p|n).n1%> >= n+1 by A6,NAT_1:13;
     NAT_1:13;
    then not n1 in M by A5,NAT_1:def 1;
    then
A16: 2*Sum(p|n1) <= n1;
    (p|n).n1 in {0,1} by A1,A14;
    then
A17: (p|n).n1 =0 or (p|n).n1 = 1 by TARSKI:def 2;
    N5: nu = mu &ex ,  v.mu = [y,]by AA;
    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).n1%> < n1+2 by A17,XREAL_1:8;
    hence contradiction by A15;
  end;
  p.n1=1
  proof
    Segm n     2*um (p|(+1)<=k+1 by A3,h2;
    then
A18: dom(p|n)     + inM;
A19: Sum henceN7:v=[,]NMBjava.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
    assume
A20: p.n1<>1;
A21: n1 <n1+1 by NAT_1:13;
    then n1 < len p by A9,XXREAL_0:2;
    then
java.lang.StringIndexOutOfBoundsException: Range [17, 3) out of bounds for length 32
    Segm n1 c= Segm n by A21,NAT_1:39;
    then
A23: (p|n)|n1=p|n1 by RELAT_1:74;
    n1 in Segm n by A21,NAT_1:44;
    then n1 in dom p/\n by A22,XBOOLE_0:def 4;
    then
4:(p|n).n1=p.n1 by FUNCT_1:48
A25: n1 <n1+1 by NAT_1:13;
    p.n1 in rng p by A22,FUNCT_1:3;
    then p.n1=0 byA24: Sum(p|1k)=um q0 + (q|)by ,AFINSQ_2:;
    then Sum p|)Sum (|n1)+(0qua ) by A19,A24,java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 8
    hence thesis by A6,A10,A25;
  end;
hence by A3A5A8A10,XXREAL_0:2;
end;

theorem Th16:
 p,q k st |(2*k+len q)=(k-0)^^k->)&q is
dominated_by_0 & 2*um q=len  holdsmin{:*ump|N=N N>0 java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
  2*k+len q
proof
  let p,q,k such that
A1: p|(2*k+len q)=(k-->0)^q^(k-->1) and
A2: q is dominated_by_0 and
A3: 2*Sum q=len q and
A4: k>0;
  set k0=k-0;
A5: Sum k0=k*0 by AFINSQ_2:58;
  then
A6: 2*k > 0 by A4,XREAL_1:68;
  reconsider k1=k-->1 as XFinSequence of NAT;
  set M{N:2*(p|)= & N>};
  set kqk=k0^q^k1;
  Sum kqk = Sum (k0^q) + Sum k1 by AFINSQ_2:55;
proof
A7: Sum  let p  that
  Sum k1=k*1 by AFINSQ_2:58;
  2um(|*+lenq)= ++k by ,A7,5;
  then
A8: 2*k+len q in M by A6;
  M c= NAT
  proof
    let y be object;
    assume y in M;
    then ex i be Nat st i=y & 2*Sum(p|i)=i & i>0;
        by A7by A7,TREES_2:def 11;
  end;
  then reconsider M as non empty Subset of NAT
  min*=*k+len q
  proof
    kqk = k0^(q^  proof
    then
A9: len kqk = len k0+len (q^k1) by AFINSQ_1:17;
A10: len kqk = kthen consider mubeingNAT  that
    assume
A11: min*M<>2*k+len q;
    min*M in M by NAT_1:def 1;
    then
A12: ex i be Nat st i=min*M & 2*Sum(p|i)=i & i>0;
A14 2*+len q > min*M  A8NAT_1:def 1;
    then
A15: Segm(min*M) c= Segm(2*k+len q) by NAT_1:39;
    
A16: p|min*M= A16: p|min*M= kqkORDINAL1:def 12java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
    now
      per cases;
      suppose
A17:    min*M <= k;
domk0&kqk=(^1  AFINSQ_1:27
        then
A18:kqkmin*=k0|min*M by A17,AFINSQ_1:58;
A19:    Sum (min*M-->0)=A4 *Sum(p|)>kbyA1,A2;
        k0|min*M =min*M-->0 by A17,Lm1;
        then Sum (   in M by   k in M by A4FINSEQ_1:7;
        hence contradiction by y Subset of NAT;
      end;
      suppose
        min*  then consider n be  such that
        then reconsider mkA6:2Sum(|n)>njava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
        now
          per cases;
          suppose
A20:        min*M <= k+len q;
21:        k0 =k
            min*  reconsider S=Sum(p|n1) as Nat;
            then
A22:        (k0^ in M by A4;
            dom (k0^q)=len k0+ then
            then kqk|min*MA8:k> n by,NAT_1:ef 1;
            then
A23:A9: do p > n byA3XXREAL_0::;
24 < k by A414;
            Sum(k0)=k*0 by A11 n1  n1+1 byNAT_1:13;
henmk+<mk by A2,,,Th2;
            hence contradiction by A24,NAT_1:19;
          end;
          suppose
            min*M > k+len qA13 len(|n)  n1+ by AFINSQ_111;
thenreconsider mkL=min*Mhence
A25:        2*Sum(p|min*M)=min*M by A12;
             q= k0 +len   k0=k by AFINSQ_1:def 3;
            then min*M=dom(k0^q)+mkL;
thenkqkmin=(0q)(k1|kL by AFINSQ_1:59;
            
A26:     (p|n)Sum|n1) Sum <(|)n1% by A12,AFINSQ_2:;
            min*M < len kqk by A11,A15: 2*Sum(p|n1)+ 2* Sum <%(p|n).n1%>n by A6,NAT_1:13;
            then mkL < 2*k+len q-(k+len q    then not n1 in  byA5,NAT_1:def 1;
           then k1| k1|kL=->1 by Lm1;
            then
A27:Sum(k1|mkL)mkL*1by AFINSQ_2:;
            Sum((|)n1in{,1}byA1A14;
            hence contradiction by A3,A11,A26,A27,A25;
                 herebylet a be Node  (.In(, B)-sub(V1.(,dom )-term)
        end;
        hence contradiction by;
      end;
    end;
    hence contradiction;
  end;
  hence thesis;
end;

theorem Th17:
  orpA18 dom(|=n1+1byRELAT_1:2;
  &len p >0exq st  =<0%>q &q  dominated_by_0
proof
  let pjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A1: p is dominated_by_0 and
2*Sum(|N)= &N0}{ &len p >0;
  set M={N: 2*Sum(p|N)=N & N>0};
  consider q such that
A3: p=p|1^q by     n1c Segmn 3;
   q
A4:rng c {,1 by A1;
  rng q c= rng p by A3,AFINSQ_1:25;
  then
A5: rng q c= {0,1} by A4;
  len p >= 1 by A2,NAT_1:14;
  then Segm 1 c= Segm len p by NAT_1:39;
  then
A6: dom (ot nuc=a &(Fb)sub t).=F
A24: p|n).n1=p.n1 by FUNCT_148;
  0in Segm   NAT_1:44java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
  then
A8: (p|1).0=pthen.n1=0 by A1,20,ARSKI:def 2;
  hence p=<%0%>^q by A1,A3,A7,Th3;
  assume q is not dominated_by_0;
  then consider i such that
  i  =dom   
A9: 2*Sum(q| end;
reconsider i as Nat;
|(+i)=p1^(|i) A3,A6,AFINSQ_1:59;
  then
A10: Sum (p|(1+i))=Sum <%p.0%end;
A11: 2*Sum(q|theorem Th16:
  Sum <%p.0%>=p.0 by   Sum <%p.0%>=p.0 by AFINSQ_2(k--0^q^k-1 & q is
  then
A12:  2klen q
  then 1+i >=2*Sum (java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  then 1+iA1:p(2k+ q)=k-->)^q^(k->) and
then 1iinM by A12;
hence thesis  A2;


theorem Th18:
  p is dominated_by_0 implies <%5:Sum k0k*AFINSQ_258java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
  {N: 2*Sum((<%0%>^p)|N) = N & N > 0} = { by A7,N8,,,O5TREES_2:def java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
proof
  reconsider q=1-->0 as java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 10
  assume
A1: p is dominated_by_0;FinSequence of NAT   in
  dom q = 1 & len q = dom q;
  then
A2: q = <%q.0%> by AFINSQ_1:34;
  q is dominated_by_0 by Lm2;
then  q is dominated_by_0 & q        ((Fb)-ubt)=tr;
  hence <%0%>^p is dominated_by_0 by A1,A2,Th7;
  set M={N: 2*Sum((<%0%>^p)|N)=N & N>0};
  assume M<>{};
  then consider x being object such that
A3       then consider r being FinSequence of NAT such that
  consider i be Nat such that
  x=i and
A4: 2*Sum((<%0%>^p)|i)=i and
A5: i>0 by A3;
  reconsider i1=i-1 as Nat by A5,NAT_1:20;
  dom <%O6:    r in dom &a  r&(Fbjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 54
  then i=dom <%0%> +i1;
  then (<%0%>^p)|i=<%0%>^(p|i1) by AFINSQ_1:59;
  then
A6: Sum (%%^|) <%%+Sum (p  set kqkq^1
  Sum%0%>= & i1<+1by AFINSQ_2:53,NAT_1:3;
  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|(         r= {};
  dominated_by_0
proof
  set M={N : 2*Sum(p|N) > N};
  set q=p|(2*k);
  assume that
A1: rng p c= {0,1} and
A2: 2 * k + 1 = min*M;
  thus rng q c= {0,1} by A1;
  reconsider M as non empty Subset of NAT by A2,NAT_1:def 1;
  let ;
  assume
A3  m < q;
  then
4Segm mc= 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<=2*k by NAT_1:39;
  then
A5: m < 2*k+1 by NAT_1:13;
  assume
A6mq|)>mjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  reconsider m as Element of NAT by ORDINAL1:def 12;
  q|m=p|m & m in NAT by A4,RELAT_1:74,XBOOLE_1:1,A3;
  then m in M by A6;
  thesis byA2,NAT_1:def 1;
end;

begin

definition
  let n,m be A8 2*+en q in M by ;
  func Domin_0(n,m) -> Subset of {0,1}^omega means
  :Def2:
  x in itiff ex p be
  XFinSequence of NAT st p = x & p is dominated_by_0 & dom p = n & Sum p = m;
  existence
  proof
    defpred Q[object] means
    ex p st p=$1 & p is dominated_by_0((.)sub(.)|(om v\ g) v|dom v)rngg)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
    p=m;
    consider X such that
A1: for  proof
    from S1 S1
    X c= {    letybe ;
   
      let x be object;
      assume x  X;
      then consider p such     hence thesis by ORDINAL1:de;
A2:   p  then reconsider M asnon empty Subset of NAT by A8java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
A3:   p is dominated_by_0 and
      dom p = n and
      Sum p=m by A1;
      3;
      then p is XFinSequence of {0,1} by RELAT_1:def 19;
      hence thesis by A2,AFINSQ_1:42;
    end;
    then reconsider X as Subset of {0,1}^omega;
    ake X;
    let x;
    thus x in X implies Q[x] by A1;
    given p such that
A4:p=x & isdominated_by_0 & dom p = n & Sum p=m;
    p c= [      en kqk =k+lenqlen k1  A9,AFINSQ_117
,ZFMISC_196java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
    then p c= [:NAT,NAT:];
    hence thesis by A1,A4;
  end;
  uniqueness
  proof
    let X1,X2 be Subset of {0,1}^omega such that
A5: x in X1 iff ex p st p=x & p is dominated_by_0 & dom p = n &Sum p= m and
A6: x in X2 iff ex p st p=x & p is java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 10
    for x being object holds x in X1 iff x in X2
    proof let x be object;
      x in S3:  b1  1 byS2,XXREAL_01;
      hence thesis by A6;

    hence thesis by TARSKI:2;
  end;
end:2klen  = min* by A8,NAT_1:def 1;

theorem Th20:
  p in Domin_0(n,m) iff p A16 p|min*=kqk|min*M by A1,RELAT_1      java.lang.StringIndexOutOfBoundsException: Range [19, 13) out of bounds for length 19
proof
  thus p   thus p ink0&kqk=^qk1 by AFINSQ_127;
  proof
    assume p in java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 10
     ex  st q= &qisdominated_by_0 &dom q =  & Sum  =m  Def2java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
    hence thesis;
  end;
  thus thesis by Def2        k0S7:   ((.ub.b)|u  .bby S4,;
end;

theorem Th21hencecontradictionby A12,A19;
  Domin_0(n,m) c= Choose(      end;
proof
  let x be object;
  assume x in Domin_0(n,m);
  then consider p such that
A1: p = x and
A2: p is dominated_by_0 and
A3:          suppose
  rngp c= {  A2java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
        min*=mk +k;
end;

registration
  et,m;
  cluster Domin_0(n, |min^)java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 59
  coherence
  roof
    Domin_0(n,m) c= Choose(n,m,1,0) by Th21;
    hence thesis;
  end;


heorem Th22:
  Domin_0(n,m) is empty iff 2*m > n
proof
  thus Domin_0(n,m) is             >+java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
 proof
    set q=m-->1;
    assume
) is empty;
    assume
A2: 2*m <= n;
    m<=m+m by NAT_1:12;
    then reconsider nm=n-m as Nat by A2,NAT_1:21,XXREAL_0:2;
    set p=nm->;
    2*m-m <= nm by A2,XREAL_1:9;
    then
A3: p^q is dominated_by_0 by Th5;
    dom (p^q)=len p+len q & dom p=nm by AFINSQ_1:def 3;
    then
      reconsider fb=f.  objectby SDS,AA,AB;
A5: Sum (p^q)=Sum p+ Sum q by AFINSQ_2:55;
    Sum p=0*nm & Sum q =1*m by AFINSQ_2:58;
    hence thesis by A1,SC:             min*Mk^)+mkL
  end;
  assume
A6: 2 * m > n;
  java.lang.StringIndexOutOfBoundsException: Range [12, 5) out of bounds for length 16
  then consider x  objectthat
A7:x in Domin_0(< len  A14XREAL_0
  consider p  that
  p = x and
A8: p is dominated_by_0 and
A27        (|)m* by :;
A10: Sum p = m by            (^)Sum(k0)+q&Sum =k* byAFINSQ_25558
  p|n=p by A9;
  hence           end;
end;

theorem Th23;
  Domin_0n0) {n-->0}
proof
 p-0;
A1: Domin_0(n,0) c= {p}
  proof
    let x be object;
    assume x in Domin_0(n,0);
    then consider q such that
A2=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 =      hence ((F.)sub(D.))|g.b1 qua Node ofv)
    then q= n-->0;
    hence thesis by A2,TARSKI:def 1;
  end;
  {p} c= Domin_0(n,0)
  proof
A5:  end;
    dom p=n end;
    then
A6: p in Domin_0(n,0) by A5,Def2
    st pis dominated_by_0 {N:2*(p|)N &N  0 =}
    assumex in p;
    ence
  end;
  hence thesis by A1;
end;

theorem Th24:
  card Domin_0(n,0) = 1
proof
  Domin_0(n,0)={n-->0} by Th23;
  hence thesis by CARD_1:30;
end;

theorem Th25:
  for p,n st rng p c= {0,n} ex q st len p = len q & rng q c= {0,n}
  & (for k st k <= len p holds Sum (p|k)+Sum (q|k) = n*k) & for k st k in len p
  holds q.  n-.
proof
  let p,n such that
A1: rngp c={,n}java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
nn= as  NATORDINAL1:efjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
defpredPset,et  for  $ java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 56
    px   0n}st P[,]
  proof
     rng q c  assume
    assumeA5: rng q c 0,}byA4java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    then p.k  then Segm1 c=Segm len p  NAT_139
nTdef;
    then
A3: n-p.k in {0,n} by TARSKI:def 2;
    P[k,n-p.k];
hence  by A3;
  end;then
  considerq beXFinSequence of 0n such that
A4: dom q= Segm len p& for k st k in Segm len p holds P[k,q.k]
   from STIRL2_1:sch 5(A2);
  reconsider q as XFinSequence of NAT;
  defpred Q[Nat] means $1 <= len p implies Sum (p|$1)+ Sum (q|$1)=n*$1;
:forQk java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 30
  proof
    let k such that
A6: Q[k];
    set k1=k+1;
A7: k<k+1 by NAT_1:13;
    
A8: Segm k c= Segm(k+1) by NAT_1:39;
    then
A9: (p|k1)|k=p|k by RELAT_1:74;
A10: (q|k1)|k=q|k by A8,RELAT_1:74;
    assume
A11: k+1 <= len p;
    then
A12: Segm k1 c= Segm len p by NAT_1:39;
    then
A13: len (q|k1)=k1 by A4,RELAT_1:62;
    then
A14: (q|k1)=((q|k1)|k)^<%(q|k1).k%> by AFINSQ_1:56;
    len |k1)k1 by A12,RELAT_1:;
    then
A15: k in dom (p|k1) by A7,AFINSQ_1:86;
    
A16: (:((+)Sum%.0%>+Sum (q|i) by A7,A8,AFINSQ_2:55;
 len (p|k1)=k1 by A12,RELAT_1:62;
    then (p|k1)=((p|k1)|k)^<%(p|k1).k%> by AFINSQ_1:56;
    then Sum (p|k1)=Sum (p|k)+Sum <%p.k%> by A16,A9,AFINSQ_2:55;
    then
A17: Sum (p|k1)=Sum (p|k)+p.k by AFINSQ_2:53;
    k< len p by A11,NAT_1:13;
    then k in len p by AFINSQ_1:86;
    then
A18: q.k=n-p.k by    r       ((.)-erm)&
    (q|k1).k= q.k by A13,A15,FUNCT_1:47;A12: (p|0qua Natqi) A1A10,h3
    then (q|1)Sum(|)Sum %q.k%> by A14,,FINSQ_255
    then   then 1+i=*(| A11,1
    hence thesis by java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
  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 k holds Q[k] from NAT_1:sch 2(SG:not c< bySDXBOOLE_0def ;
  hence thesis by A4;
end;

theorem Th26:
  m <= nimplies n choosem  0
proof
  assume
A1: m<=n;
econsider=-java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 44
 m)(m!>m!*0 XREAL_168;
  n!  then
(n!(m!*nm)>  A2,REAL_1:;
  hence thesis by A1,NEWTON:def 3;
 q is by Lm2;

 Th27:
  2*(   %0%>^p  dominated_by_0 by A1,A2T;
  card Choose,10java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
proof
defpredP[bject,bject] means
for p,k st $1 = p & 2 * k + 1= minx= and
} ex r1,r2 A5: i>0 by A3
  k) &p=(p|(*+)r2 &f   Nat   *k+ SI   v.=(F..by A7,2SE,:def ;
  assume
A1: 2 * (m+1) <= n;
A2: m <= m+m by XREAL_1: theni=dom<0% +1
  m<=m+1 by NAT_1:13;
  then 2*m <= 2*(m+1) by XREAL_1:64;
  then 2*m <= n by A1,XXREAL_0:2;
  then m<= n by A2,XXREAL_0:2;
  then (card n) choose m>0 by Th26;
  then java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
:;
  set Z=Domin_0(n,m+1);
  set CH=Choose(  
A3: for x being set M{N  *pN> N};
  proof
    let x being object such that
:x inCH\;
 A4,BOOLE_0 5;
    then consider p be XFinSequence of NAT such that
A5: p = x and
A6: dom p = n and
A7:  m < java.lang.StringIndexOutOfBoundsException: Range [13, 1) out of bounds for length 76
A8: Sum p=m+1 m=* by39
    not2*kby NAT_113java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
      m  ElementofNATby : 12
 be tjava.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
 2  +=min*:*mp  N   *  +1<domp  o=
    Sum (p|(2*o)) & 
    set q
m;
:p=q^2 byby Th1;
    rng q c= {  x in sti>  i  Si]
    then   XFinSequence of   = &p is  &  p  &  p =m;
A11:len java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 8
A12: rng r1 c= {0,1} and
   fromXBOOLE_0 1java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
A14: for i st    proof
    take R=r1^r2;
    len p=len r1+len r2 t  p suchthat
    
15 domR=n byA6,:def3;
        r2 c=rng p y        p=  ;
then rng  c= ,}by A7;
          thenpis  of {0,1 by: 19;
    then
A16: rng R c= {    reconsiderXas of {0,}^;
    q|dom q=q     letxjava.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
    
A4 px& java.lang.StringIndexOutOfBoundsException: Range [14, 11) out of bounds for length 52
2*o <2*+ :;
    then Segm(2*o) c= Segm(2*o+1) by NAT_1:39;
    then
 q|*)=p|2*)  :;
A20: Segm(;
    then
A21: dom q=    X1,   of {0,^ suchthat
: len q*o+ A20,ELAT_1:62;
    then
A23: :x X2   java.lang.StringIndexOutOfBoundsException: Range [25, 1) out of bounds for length 26
    2*o in Segm(2*o+1) by A18,NAT_1:44;
    then q.( hencethesisby TARSKI2;
    then Sum q=Sum (pjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    
A24: Sum java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
m1 q +Sum  by A8A10,FINSQ_255java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
    then Sum     p inDomin_0n,;
    then Sum (r1^r2)=m by AFINSQ_2:55;
    ence W15A16CARD_FIN:;
    thus P[x,R]
    proof
      let p9 be  ;
:xp9&2*k + 1=min{:2Sum p9|)>;
      set q9=p9|
      take r1,r2nm)  ,m,,
thus R= &r12k1&r1^by ,A9,A11A10
, ssume   Domin_0nmjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
      thus java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 13
      proof
        let i be Nat;
        assume i      v(.b  enceby,;
        then
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
        cluster Domin_0(n,m) -> finite;
        java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
      ;
    end
  end;
  consider F endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
A27U2:    hus(n,)is empty 2*   n
      set =m->;
  proof
    let x be object;
    assume java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 10
    p 
 java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 60
A29: dom p    java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 17
A30: rng 
A31: Sum p=m by CARD_FIN:40;
    set =N2* pN)N};
    m<+ NAT_1:3;
 2m<2(1)by :68;
    then 2*m < n by A1,java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 19
then*Sum(|n<n  nin by ,31ORDINAL1:def;
    then
A32: n in M    hence thesisby ,A5A,;
    M c= NAT
    proof
      let y object;
      assume y    java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 40
then ex   p 
      hence thesis by ORDINAL1:def 12
    end;
    then reconsider M as non empty Subset of java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 14
    ex k st 2*A1:Domin_0(,)={}
    proof
        proof
      mm in M by T7:       ssumexin (0;
      then
A33:  ex o be Nat    java.lang.StringIndexOutOfBoundsException: Range [27, 23) out of bounds for length 27
      then reconsider m1=mm-1 as Nat by NAT_1:java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 46
  Sump|)m11 A33;
java.lang.StringIndexOutOfBoundsException: Range [20, 3) out of bounds for length 26
 m1 cSegmmm byNAT_1:
      
A36:  A:p inDomin_0n0)by A5,Def2
      mm=dompby ,32,: ;
      then
A37    assume  n {}
       dom|6   (.)-ub(. 
       ;
      then
A38:  (p|mm).m1=p.m1 by java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 4
m  m1+by :;
 M java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 38
>m1;
      then
A39:  Sum<java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
:7;
reconsider S=Sum(p|mm) as Nat;
take S
A40:  mm <  holdsq. =.k
      len(p|  p, that
      T18:  g/.b1=g.1&A1:rng p c= {,n}
      then Sumpmm)um(p|m1)+Sum<pm>by ,,AFINSQ_2java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
      hence thesis by A40,A39,A34,NAT_1:9;

   thenconsider kjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
A41: 2 * k + 1 = min*M and
:p2+1))k 
A43  *   from ST:5(;
    set k1=2*k+1;
    consider q such that
A44: p=p|k1^q by Th1;
    pk1)c 01 by A30
    then r    k that
A45: len r=len (p|k1) andset k1=+;
A46: rng r c= {0,1} and
  i  =len|k1  Sum(p||)+(|)1* and
  st in len p| r=-(p|1. Th25
    set rq:(|k1)k=|by :java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
A49:    assume
:m=+umqby ,A42
rqlen p)+  by A:ef3;
    
A51  rqthen
(p|1|dom p|=pjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 41
    then
:Sum (p)Sum 1len(|k1)by A47;
    rngqc=rng   AFINSQ_1java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
     in  (|)by A7AFINSQ_186java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
    rngr/ qc{0,byA46,XBOOLE_1:;
    then
A53:len (|1)=  R:java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
: k1c len p  java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 43
 
 :;
    
A56 then kin 86;
A57: k1+1A18: .k=-pk by java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
    then
A58: k1 < 2*Sum r by A42,A52,A55;
:2 r  by A42,A,;
thenconsider j   
;
    (rq|(2*j)) & rq.(2*j)=1 by A53,A56,Th2,Th15;
    set j1=2*j+1;
A61: len  fork holds Qk  NAT_1 ((h.|/   ofv byT2;
    rq   ence by A4java.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 21
    thentheorem Th26:
A62: not rq in Z by Th20;
    set rqj=rq|(2*j+
    Sum rq=Sum r+ Sum q by AFINSQ_2    nmn  Natby         .b1=.  g1 ABd 3
    then rq   n!*(!*n!);
    then
  hencethesisby ,: 3;
    then consider r1,r2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A64: F.rq=r1^r2 and
A65:len r1=j1
A66: card Choose,)
A67: for i be Nat st i < j1 holds java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 32
:domrq=en r1+ by A66,FINSQ_1: ;
    then
:len (r1^2= p^q A49,A17;
    reconsider K={N*+)&p=(|2k+)^  f  beNatsto<2*k holds r1.=1.o)
NAT_1A1 *m+ 
    |r by A45A5557
thenk1 in K  A58
    then
A70: k1>=   * =n byA1,XXREAL_02java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    then Segm j1 c  then ( )choose> ;
   then
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
       by A60N:efjava.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
    then
A72: ex N st N=j1 & 2*Sum(rq|N) > N;
    Sum         . [fb1`,`]by AA,java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 14
    then 2*Sum(r|j1)=2    consider p be of such 
    then j1+(j1-2*Sum (A7  c {0,}and
,FINSQ_1:;
then 2Sum (p|1)by XREAL_16;
    then j1 in M;
    then j1 >= k1 by A41,NAT_1:def 1;
    then
 j1= byA70XXREAL_0:1;
  (|k1^lenrqby A49,FINSQ_1def java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
    now
      let i be Nat such that
A75::lenqlen and
      now
        per cases;
        suppose
A76:      i < len A14:fori sti len  r1.=-.byTh25java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
          then
A77:      i A15  =njava.lang.StringIndexOutOfBoundsException: Range [31, 27) out of bounds for length 34
A78A78:      ,1 A7;
      len r1len(|1) & inNAT
            by A54,10:    then
          then
A80:      r.1(|. by A48A78;
          (p|k1^q).i=(p|k1).i & rqthen
hence r1^r2).(p|q.byA80,77,def3;
        A18:o<*+  :;
        suppose
 i>= len r1;
          then
:(^)i=.-len r) ,A55AA69,75,FINSQ_119
          r1^r2).i=(-r1  rqiq.len r) yA45,55A65
,A75,A81,AFINSQ_1:19;
          hence (r1^r2).i=(p|k1^q).i by A66,A69,A74,A75,A81,A82,A22:len q=*+ A20R:62java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
        end;
      end;
      hence (r1^r2).i=(p|k1^q).i;

     java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
 ^=pk1^ by,A61,FINSQ_1917java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
    rq in dom F by A63,FUNCT_2:def 1;
    hence thesis by A28,A44,A64,A83,      let p9 be XFinSequence of NAT, k such   NAT,k that
  ;
  then
A84: rng F = W;
A85:      r1java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 75
  proof
    let x,y being object such  thus for i beNat sti < 1holds .=-.
A86: x in dom F and
A87: y in dom F and
A88: F.x=F.y;
    x in CH by A86,XBOOLE_0:def 5;
    then  p such            ,25,,FUNCT_147java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
A89:   ;

A91: rng p c= {0,1} and
A92:Sum pmA27 for beingobjectst in\ holds P[x,.] fromFUNCT_2: 1A)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
    l  beobject;
    then p is not dominated_by_0 by A90,A92,Def2;
    then consider k1 be Nat such that
A93: 2 * k1 + 1 A28: p = x and
    (p|(2*k1)) & p.(2*k1A30:rngpc 01}and
    y in CH by A87,XBOOLE_0:def 5;
    then  q    <m+y:;
A94:q   and
A95:     then 2*m < n by A1X:2java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
A96: rng q c= {0,1            (omv)rng c dom(F.-D.;
A97: Sum q=m+1 by CARD_FIN:40 c 
    not q in Z by A87,         def1java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
Ajava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
    then consider k2 be Nat<+1byNAT_1
A98: 2 * k2 + 1 = min*{N : 2*Sum(q|N) >java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
q|2*)  q.2*) A96,Th15;
A99:  then
    A37:  Segmc Segmlen p by NAT_1:9;
NAT_1:def 1;
    set qk=q|(2*k2+1);
hthat
A100:  thenm1in   |  A35:4java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
A101: len s1=2*k2+ and
  qk
A103java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 38
A104:java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
 R:;

:java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 44
    reconsider K= java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8

 (|*=and
by
A107: F.x=r1^r2 and(k1q.i(.  .r. ,,A79def
: A108: len r1,18,,TREES_2def11
A109        ;
A110:   suppose
111:for be Nat i<k1+1holds r1.=-iby ,,A89A
assumex>java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
    then consider i be Nat such that
A112: i < len p and
:9;
A114: len p=len pk+ len        ;
    then
A115  pp=len^r2).i=(p|k1^q).i;
    now
      per cases    
      A83: r1^r2k1^by ,A61AFINSQ_1917;
A116:   k1=     indomFbyA63FUNCT_21;
        
          per cases;
          suppose
A117:       i< len pk;
            then i in len pk by AFINSQ_1:86;
            then
:       r1.i=r1 .=.A,java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 67
  in yA86 ;
            r1.i=     psuch
            hence java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 13
          end  by
suppose
A119:7   pnot  A90,Def2java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49

   p()  .2*),
;
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 29
,A102,A95    nand
java.lang.StringIndexOutOfBoundsException: Range [34, 31) out of bounds for length 79
    not q  byA94,:;
          end isjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 49
;
         .2k2=byTh15java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      suppose
A121:   k1>|*)
len <  pbyjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 54
        then
A122:   Segm len s1 c= Segm len p by NAT_1:39;
        *<*1  A121XREAL_168
        thenA104for be Natst  *+ holds .
A123:   len s1 < len r1
       s2|s1)
        then
   =r1( s1  :java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
 kNatst  <lenqkholdsqk.(|en qk)k
                 , be XFinSequence    that
           k beNatsuchthat
:         k<en ;
A127:     kA110:p=p|k11)r 
          then
A128:     k in dom q/\len s1 by A90,A95,A122,XBOOLE_0:def 4;
          k in     consider  be suchjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36

A129:     p.k=(p|lenA:len len+java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 47
,A1262java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
          then
r11pkjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 34
          k in dom r1 by A130,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 20
          then k in dom r1/\ len java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 44
          then
 r1.=r1|ens1)  FUNCT_148;
          s1.k=1-q.k by A101,A102,A104,A126;
          thesis A124131A132A,,:48
        end;            by A88,A107A100A,java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 59
        2*k2+1 in M by A98,NAT_1:def 1;
        then
A133:   ex N st 19java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  p|   102:;
        then qk=p|len qk by A125,AFINSQ_1:9;
        then len qk in              A88,A109,,115,112,A120,
        hence contradiction reconsider fb = f.b as  by T18S6          java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
      end;
      suppose
A134:   k1<k2;
        len r1 <= len         len        .nu =fb`1fb2]by T18,AA,AB
        then
A135:   2*k22k1 byXREAL_168;
        2*k1<.bfb`java.lang.StringIndexOutOfBoundsException: Range [21, 1) out of bounds for length 47
        then
A136:   len r1 < len s1 by A108,A101,XREAL_1:6;
        then (A124:s1r1(en s1)AFINSQ_157;
        .[.,B.]y AB,ART_1def 13
A137        proof
    kNatst  < lenpholds.=|lenpk.java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
       proof
          let be A127k in lenbyA102,:;
A139:     k<len pk;
A140:     k in len r1 by A109,A139,AFINSQ_1A:kin  /\ensA90,,122,BOOLE_0: 4;
                   
A141:          
          A129     .k(pen)byA102UNCT_1;
          java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
A142:     q.k=(q|len pk     .k1-kby A108A111;
A143:     kindomr1by A130,AFINSQ_1java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
          then
A144:     s1.k=1-q.k by A101,A104;
          k in dom s1 by A143,AFINSQ_1:86;
          then k in dom s1/\ len r1 by A140,XBOOLE_0:def 4;
          A125java.lang.StringIndexOutOfBoundsException: Range [43, 41) out of bounds for length 44
A145:     s1.k=(s1|len r1).k by FUNCT_1:48;
          1.=
          hence thesis by A108,A137,A144,A145,        len r1 <= len q by A90,A109,A95,A114,NAT_1
        end;
        2*k1+1 in K by A93,NAT_1:def 1;
        then
: N =  *|N;
        java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
        then java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 44
        then len pk in MA139     lenjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
        hence contradiction by A109,A98,A101,java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 14
      end;
    end;
    hence contradiction;
  end;
        ;assume
  then (CH\Z),W are_equipotent by A85,A84A     <len ,,,:;
 CARD_15
end;

theorem Th28:
,m
proof
etCH=n+,)
  set Z=Domin_0( ;
  set W=Choose(        *1inK ,AT_1:ef;
A1: card CH = (card n) choose (m+1) & card n=n by CARD_FINA:   ex N st 2k1+=N  2*Sum(p|)N;
  card (CH \ Z)        len =len|en pk  A109,A135:62java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
  then
A2: card Z=card CH - card (CH \ Z);
       ((F.2(.2)|(domv)\rng gendjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  then card Z=card CH-card W by A2,Th27;
  hence thesis by A1,ARD_FIN16;
end;

theorem Th29:
  2*m <= n implies card 
proof
  assume
 
  now
    per cases;
    suppose
A2:   m=0;
      (choose )1 by 19java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
      then 
      hence thesis  A2,;
    end;
    suppose
A3:   m    =ard CH-cardW A2T;
A4:   m<=m  ence  by CARD_FINjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
      then reconsider nm=n-m as Nat by A1,theorem :
 Nat A3,AT_1:20;
      set n9=n!;
      set m9=m!;
      set nm19=(nm+1)!;
      java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
      m<=nsuppose
      then
A5:   n choose m=n9/A2:   0java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A6:   2*(m1+1)<=n by A1;
      set m19=m1!;
A7:1/19m19=(m1m19nm19*(+)by XCMPLX_1:java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
        .=m/(nm19*(m19*(m1+1)))
        .=m/:
        .--/nm19m9 :java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
     /nm9)=((m1*)(m9nm9*nm+)by91
        .=(nm+1)/(m9*(nm9*(nm+1)))
      reconsiderm1m1 as Nat by,java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
      then
A8:   1/(m9*nm9)-1/(m19*nm19)=(nm+1)set =nm+)!
        .=((nm+1)+(-m))/(m9*nm19) by XCMPLX_1      <nby,A4,:java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
*/*nm9nm1) NEWTON
A6:  *(m1+1)<=n by java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
        :1(nm19=(+))(m19*m19)(+)byXCMPLX_191
=m1+(m1+)by :;
        =/nm19*(1+)!)by NEWTON15
A9:m1= n by A1,XXREAL_0:A9: m1 <= n by A1,XXREAL_0:2MPLX_190java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
      n-m1=nm+1;
      
A10:  n choose m1=n9/(m19.(1/m*)by 15
      n9/(m9*nm9)-n9/(m19*nm19)=n9*(1/(m9*nm9)A8:1(m9*nm9)1(19*nm1)/m9*m19)(m)(9*nm19 
        .n(/m*)*(1(*)) XCMPLX_1:java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
        =9*1/m9*)1(*nm19))
        .=n9*((1/(m9*nm9))*(.=1(+1-*)/(m9nm9)(nm+))
               =n9*1(*m9)))*(+-2*(+)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
        .=((n9*1)/(m9*nm9))*((n+1java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 10
      hence thesis by A5,A10,A6,Th28;
    end;

java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 15
end;


(1  java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
proof
n_0)2+-*)k+-)(+)choose)y Th29java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
.1/2k)+):51
    k 87java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end;

theorem
  card Domin_0(4+k,2 cardDomin_02k1)k+21/2k+1*(+)  1 Th29:11
proof
  card    k1byXCMPLX_1:;;
    .=(k+
   .(k)/k  card Domin_0(+2=(+(k)/
    .=(k+1)*(4+k)/2 by XCMPLX_1:87;
  hencethesis
end;

theorem
Domin_0(k3k1)*k+)(+)/6
proof
  card Domin_0 .(k+)(+/by XCMPLX_187;
    .=(k+1)/(k+4)*((6+k)*(6+k  hence thesis;
    .=((k+1)/(k+4)*(4+k))*(5+k)the
.(+)(+*6k/  XCMPLX_1:87;
  hence thesis;
end;

theorem Th33:
 Domin_02*)=((2*n  n  n+

  card Domin_0.=(++)(+)6 byX:;
    .=(1*((2*n) choose n))/(n+1) by XCMPLX_1
  SK: fori st =1holds 
end;

theorem Th34:
  card Domin_0(2*n,n =(2*n+-*)2*+-)*2*n) n) by Th29
proof
A1:
  *end;
  hence thesis by A1,Th33;


definition
  let D;
proof
    :A1 n+1=(*+)- )choose ((+1 '1)(+1)by def1;
forx xin   x isXFinSequence Djava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
  existence
  proof
    java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 10
    take D9OMEGA;
    husthesis by:7;
  end;
end;

definition
  let D;
  redefine func D^omega -> OMEGA of D;
  coherence
  proof
    Dreconsider D9OMEGA=^megaas  nonempty;
    of D by AFINSQ_1:def 7;
    hence thesis by Def3;
  end;
end;

registration
  let D;
  let F be OMEGA of D;
  cluster -> finite    D^ - OMEGA  ;
  coherence by Def3;
end;

pN qN forElementof NAT;

theorem
cardpN: pN=2* &        reconsiderb1=i asElement   Bby ,:def java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
proof
  set D=bool ({java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 0
  set  java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  defpredjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 60
  set Z={pN:dom pN = 2* n & pN is dominated_by_0};
t k  Segm+1)exx be  pN qN Element  NAT^megajava.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40
  proof
    let k such that2* & pN  =(*)choose java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
    in Segm(+;
    reconsider  set 2n*njava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
    take;
    thus thesis;
  end;
  consider rA1:java.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 58
A2: dom r= Segm(n+1) &   proof
from STIRL2_1:sch 5(A1);
A3: Z c= union rng r

    let x be object;
    thus thesis;
    then consider pN such that
x=pN 
A5: dom pN = A2:dom =(+)forkstk in Segmn1 Pk,r.]
pN Domin_02n,SumpN by,Th20;
    then 2*Sum pN <= 2n by Th22;
     1(*umpN)= 1/2*2*n  :;
    then Sum pN < n+1 java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 7
    then
A6: Sum pN in Segm(n+1) by NAT_1:44;
    A5:dom =n&pN isdominated_by_0java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    then
: in. pNjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    . pN)   byA2A6,UNCT_1: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:
A12: y = r.i by A10,FUNCT_1:def 3;
    reconsider i as Nat by A11;
y=(2n,)by A2,11,java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
    then consider p such that
A13: p=x & p is dominated_by_0    r. pN)    by,FUNCT_1:java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
    Sum p = i by A9,Def2;
    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
  misses r.j
  proof
    leti             such that
:iin  r and
   Domin_02, by,11,A12;
: <j;
    assume A13: =x&pis &domp  najava.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
    then r.i/\r.j<>{};
    then consider x being object such that
A18: x in r.i/\r.j by XBOOLE_0:def 1;
A19: x in r.j by A18,XBOOLE_0:def 4;
    r.j=Domin_0(2n,j) by A2,A16;
    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.i=Domin_0(2n,i) 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 by A17,A20;
  end;
A22: for i st i in dom r holds r.i is finite
  proof
    let i;
    assume i in dom r;
    then r.i=Domin_0(2n,i) by A2;
    hence thesis;
  end;
  consider Cardr be XFinSequence of NAT such that
A23: dom Cardr = dom r and
A24: for i st i in dom Cardr holds Cardr.i=card (r.i) and
A25: card union rng r = Sum(Cardr) by A22,A14,STIRL2_1:66;
A26: n < dom Cardr & Cardr|(n+1)= Cardr by A2,A23,NAT_1:13;
  defpred Q[Nat] means $1 <len Cardr implies Sum(Cardr|($1+1))=(2n choose $1);
A27: Q[0]
  proof
    0 in Segm(n+1) by NAT_1:44;
    then r.0=Domin_0(2n,0) by A2;
    then
A28: card (r.0)=1 by Th24;
in  by :44java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    assume
A30: 0 <len Cardr;
    then 1<=len Cardr by NAT_1:14;
    then
A31rj
    then
A32: len (Cardr|1)=1   proof
(Cardr|1)1 by A31,6java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
    then (Cardr|1).0=Cardr.A i  rand
    then
.0%>by A32,FINSQ_1:4
    0 in len Cardr by then r./\j<{;
    then Cardr.0 = card (r.0) by A24then   being suchthat
then Sum(ardr|)= A33,A28,FINSQ_253;
    hence thesis by NEWTON:19;
  end;
  r.=2,j A2,16;
  proof
    let i such that
A35: Q[i];
    set i1=i+1;
    assume
A36: i.(ni A2,A15java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    then
A37: i1 in dom Cardr by AFINSQ_1:86;

A38: Sum (Cardr  end;
    by A24,AFINSQ_2:65;
    i1<= by A2,,A36,NAT_1:13;;
    then
A39: 2*i1<=2n by XREAL_1:64;
    r.i1=Domin_0(2n,i1) by A2,java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 22
    then
    Sum    thesis;
,A38,A39,Th28,NAT_1:13;
    hence thesis;
  end;
 i holdsQi]fromNAT_1sch2A27,;
  then Sum(Cardr)=(2n chooseA24: for i   in dom  holds Cardr.=card (.)and
  hence thesis by A25,A3,A8,XBOOLE_0:def 10;
end;

theorem Th36:
  forn,kjl stj=n2(+1)&l=m-+1)holds  pN:pN
in A27: Q[0]
  ,k) * card Domin_0(j,l)
java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 31
  set q1=1-->1;
s =-0
  let n:  in 1  :4java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
A1: j=n-2*(k<java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 34
  A31 =by:9java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Range [28, 24) out of bounds for length 51
  & len (q0^r1^q1) = 2java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 47
  set Z2=Domin_0(j,l);
  Z1=(*k);
  set F={pN:     inCardr byby A3086;
   2=(+1)
:java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 77
  proof
 by :;
    let x be object;
    assume x in F;
    then consider pN such that
A4: pNlet i uch that
    2k1>2*0 by XREAL_1:68;
    then reconsider
    M={N:2*SumA36 +1 Cardrjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
consider be XFinSequence    
A5:     then
    2 Sum (|i1) + Cardr.i1 = Sum(|(1+)  i1card.)
    then consider r1 be XFinSequence of NAT such that
A6:N|k1  q0^r1^1and
A7: r1 
A8: Sum q1=1*1 by AFINSQ_2A39: 2*i1=2n by XREAL_1:64;
    2k1 in M by A4,NAT_1:def 1;
    then
A9: ex o be Nat st o=2k1 & 2*Sum(pN|o)=o & o>0;
    then k+1=Sum (q0^r1) + Sum q1 by A6,AFINSQ_2:55;
    then
A10: k=Sum q0+ Sum r1 by A8,AFINSQ_2:55;
    pN is dominated_by_0 by A4,Th20;
    then
A11: r2 is dominated_by_0 by A5,A9,Th12;
    pN is dominated_by_0 by A4,Th20;
    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=n by A4,Th20;
    then n=2k1+len r2 by A5,A12,AFINSQ_1:def 3;
    then
:inZ2 java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
    2k1=len(q0^r1)+len q1 by A6,A12,AFINSQ_1:17;
    then 2*k+= +len r1by AFINSQ_1:17;
    then r1 in Z1 by A7,A10,A3,Th20;
    henceend;
  end;
   fbeingFunctionof F:Z1,Z2:  that
A16: for   nmk,, stj)&l -k+  card{pN :
A17: [:Z1,Z2:in(,)&2*k+  *:*um(NN     0}=card(2*k
  proof  ,k)*  Domin_0j,)
    assume [:Z1,Z2:]={};
    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;
assumeF>}java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
    then consider x being object such that
A19: x in F by XBOOLE_0:def 1;
ex stpN& inDomin_0nm) k1min*N:*Sum(N)=N&>}by A19
    hence thesis by A18,Th22;
  end;
  then
A20: dom f=F by FUNCT_2:def 1;
A21: rng f=[:Z1,Z2:]
  proof
A22: Sum q0A4,AT_1def 1;
    thus rng f     then
   letx be object;
    assume x in [:Z1,Z2:];
    then consider x1    then+=Sum (0r1)+ Sumq1 by A6AFINSQ_2;
A24: x1    then
A25: x2 in Z2 and
A26: x=[x1,x2] by ZFMISC_1:def 2;
    consider p such that
A27: p=x1 and
A28: p is dominated_by_0then
A29: A11: r2 dominated_by_0 by,Th12;
A30: Sum     isdominated_by_0by A4Th20
    consider q such that
A31: q=x2 and
A32: q is dominated_by_0 and
A33: dom q = j and
A34: Sum q = l by A25,Def2;
    set 0p1=q0^p^q1;    dom =n,h20;
A35: dom (0p1^q)=len 0p1+len q by AFINSQ_1:def 3;
dom p1 (^)len  & dom q1=1byAFINSQ_1def 3;
    then
A36: dom 0p1 = lenA15: inZ2 byA1,A13A11T;
then (0p1^)(*+ p)0 byAFINSQ_157java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
        thenA10A,java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
A37: min*{N:2*Sum((0p1^q)|N)=N & N>0}=2*1+len p by A28,A29,A30  ;
    1<= 1+len p - 2 * Sum p by A29,A30;
then is dominated_by_0by 28T;
    then
A38: 0p1^q is dominated_by_0 by A32,Th7;
java.lang.StringIndexOutOfBoundsException: Range [23, 3) out of bounds for length 42
    0p1=q0^(p^q1) by AFINSQ_1:27;
    then Sum 0p1=Sum q0+ Sum (p^q1) by AFINSQ_2:55;
    then Sum 0p1=(0 qua Nat)+ (Sum p+ 1) by A22,AFINSQ_2:55;
    then Sum (0p1^q)=k+1+l by A30,A34,AFINSQ_2:55;
    then 0p1^q in Domin_0(n,m) by A1,A29,A33,A38,A36,A35,Th20;
    then
,37,;
    then considerjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
 p^q  r1q1 and
A42:A21:rng [ZZ2]
A43: f.(0p1^q) = [r1,r2] by A16;
,A36,AFINSQ_1:57java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
    q0^=0r  A41,,:,;
    then
A45: p=r1 by AFINSQ_1:28;
    (q0^r1^q1^r2)|2k1=(q0^r1^ then consider x1,x2 java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 46
    then q=r2 by A41,A44,AFINSQ_1:28;
A26: =x1,]by ZFMISC_1: java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  end;
  for x,y being object st x in FA28:p isdominated_by_0and
  proof
    A30: Sum pkby A24D;
A46: x in F and
A47: y in F and
A48: f.x = f.y;
    consider y1,y2 be XFinSequence of NAT such that
A49: y = A34:Sumq=lA25,;
    set 0=0p^java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
A50: f.y = [y1,y2] by A16,A47;
     of NATsuch that
A51: x = q0^x1^q1^    then
    (0^1q1)  k 
A52: f.x = [x1,    then (0p1^q)|*1+len p)=0p1 by 57java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
    x1=y1 by A48,A52,A50,XTUPLE_0:1;
    hence thesis by A48,A51,A52,A49,A50,XTUPLE_0:1;
  ;
  then f is one-o- by A17,FUNCT_219;
 thenFZ1,Z2:are_equipotent by ,WELLORD2:ef4;
  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 <= n ex CardF be XFinSequence of     then Sum 0p1=(0 qua Nat)+ (Sum p+ 1) by A22,AFINS
pN in Domin_0(n,m) & 0^q inDomin_0(n,)by ,,A33,A36,35,
& for j st j < m holds CardF.j = card Domin_0(2A40 p^q F byA,A39;
  m -'(   consider ,r2  of   that
proof
  let n, that
1 *<njava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  set Z=Domin_0(n,m);
   [set,set]  jst j=1holds$=pN:  inDomin_0nm  java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
  * (j + 1) = min*{N: 2*Sum(java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 25
  W{pN  in Domin_0(,m)&{: 2*pNN)N & >0}<;
A2: for k st k in Segm m ex x be Element of bool Z st P[k,x]
  proof
    let k such that
    k in Segm m;
    set NN={pN : pN in Domin_0(n,m) & 2*(k+1) = min*{N: 2*Sum(pN|N)=N & N>0}};
    NN c= Z
    proof
      let x be object;
      assume x in NN;
      then ex pN st x=     ,2 of  such
      hence ;
    end;
    then    x=q0^x1qand
    take NN;
    thus thesis;
  ;
  consider C be XFinSequence of bool Z such that
A3: dom C     thesis byA48A,,A50XTUPLE_01java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
from   then f is o-to-ne  A17,FUNCT_219;
A4: W c= :: THE RECURRENCE RELATION FOR THE CATALAN NUMBERS

   be 
    & for j st.j   (2,  java.lang.StringIndexOutOfBoundsException: Range [67, 59) out of bounds for length 79
    then consider pN such that
A5: x=pN & pN in Domin_0(n,m) & {N: 2*Sum(pN|N)=N & N>0}<>{}A2  st k  Segm   xbeElement of  Z stP,]
    set     let ksuch that
        c=NAT

       y beobject;
      assume y in I;
      then ex i be Nat st i=y & 2*Sum(pN|i)=i & i>0;
      hence thesis by ORDINAL1:def 12;
    end;
    then reconsider I as non ofbool;
    min*I in I by NAT_1:def 1;
    then consider M be Nat such that
A6 *= and
A7: 2*Sum (pN|M)=M and
A8: M>0;
    Sum (pN|M)>0 by A7,A8;
    then reconsider Sum1=Sum (pN    let   object;
    consider q such that
A9: pN=(pN|M)^q by Th1;
SumpN=Sum (|M)Sum by A9,AFINSQ_2:;
    then    setI={N: 2*(pN|)=  N0;
    then
:m >=  (pN|)by :11;
    Sum1+let y be object;
java.lang.StringIndexOutOfBoundsException: Range [10, 4) out of bounds for length 36
    then
A11: Sum1 in Segm m by NAT_1:44;
    then
    C.Sum1={qNqN (,)&*S+1  *N2Sumq|)&N0
    }} 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 *M
  end;
A13: for i,j     M>byjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
  proof
    let i,j such that
  in domC and
A15 jindom C
A16: java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    assume C.i meets C.j;
    then C.i/\C.j<>{};
    then consider x being object such that
A17: x in C.i/\C.j by XBOOLE_0:def 1;
A18: x in C.j by A17,XBOOLE_0:def 4;
    C.j={qN : qN in Domin_0(n,m) & 2 *(j+1) = min*{N: 2*Sum(qN|N) java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    >0 }} by A3,A15;
    then
A19: ex qN st x=qN & qN in java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 6
    } by A18;
A20: x in C
C.=pN : pN in Domin_0(,m &2 *+)=min*{N:2Sum|N) =N &N
    >0 }} by A3,A14;
    then
    ex pN st x=pN & pN in Domin_0(n,m) & 2 *(i+1) = min*{N: 2 *Sum(pN|N) =
    N & N>0}     CimeetsC.;
     byA16,19;
  end;
A21then  x such that
  proof
  letkjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    assume k in dom C;
    then
A22: C.k in rng C by FUNCT_1:3;
    thus thesis by A22;

  consider CardC be XFinSequence of NAT such that
A23: dom CardC = dom C and
A24: for java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
A25: card union rng C = Sum(CardC pN stx & in (n,  (+  *N  *p|)java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
CardC
  union rng Cend;
  proof
    let xbeobjectjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    assume x    assume k   C;
    then consider y such that
:xin y and
A27: y in rng C by TARSKI:java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 23
    consider j be object such that
A28: j in dom C and
A29: C.j=y by A27,FUNCT_1:def 3;
    reconsider j as Nat by A28;
    y=:pN inDomin_0(,)&2 (+1=min*{N:2*Sum(pN|N)=N&N>0}} by A3,A28
,A29;
    then consider pN such that
A30x= &pN in (n,m)&2*j+)*N*Sum(|)N&>} A26;
    2*(j+1)<>0;
    then     letx object;
    hencethesisby ;
  end;
  hence card W = A27  in byd 4
  let j such that
A31: j < m;
A32: m onsiderj as by;
then
A33: m-'(j+1)=m-(j+1) by XREAL_1:233;
p    (nm   (+{2p|N))N};
    C java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
  java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
A34: A34: jthesis java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
  then
A35: C.j=P by A3;
  2*(j+1)<= 2*m by A32,XREAL_1:64;
  
:n-2*(+)n-j+1) by ,REAL_1,:2java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
  CardC.j =card A33 m-'(j1)m-j+)by XREAL_1;
  hence thesis by A36,A33,A35,Th36   =pN : pNin Domin_0m   (j+1)=min*{N:*(pNN=N0};
end;

Th38:
  for n st n > 0 holds java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
N: 2*Sum(pN|N) = N & N > 0}<>{}}
proof
  let n such that
A1: n>0;
  set P={pN: pN in Domin_0(2*n,n) & {N: 2*Sum(pN|N)=N
  thus Domin_0(2*n,n) c= P
  proof
A2: n+n >(0 qua Nat)+(0 qua Nat) by A1;
    let x be object such that
A3: x in Domin_0(2*n,n);
    consider p such that
 = and
    is and
A5: dom p = 2*n &  
:p NAT^ byAFINSQ_1:ef7java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    2*Sum(p|(2*n))=2*n by A5;
    then 2*n in {N: 2*Sum(p|N)=N & N>0} by   end
    hence thesis by A3,A4,
  end;
(2*njava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26

    let x be java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 15
    assume x in P;
    then ex pN st x=pN A1: n0java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    hence thesis;
  ;
;

theorem Th39:
  for n st n > 0  take CardF;
  Catalan(n+1) & dom Catal = n & for j st j < n holds java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 47
C(n-')
proof
  let n such that
1: n>0;
  consider CardF be XFinSequence of NAT such that
: pN   Domin_0(2n  N2*(N|=&><{}SumCardF and
A3: dom CardF = n and
A4: for j st j < n holds CardF.j=card Domin_0(2*j,j)*card Domin_0  then
*j+),n-'(j+1) byjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
   CardF;
  Sum CardF= card Domin_0(2*n,n) by A1,A2,Th38;
  hence Sum CardF=Catalan(n+1) & dom CardF =n by A3,Th34;
  let j such that
  <njava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  n-j > j-j by A5,XREAL_1:9;
  then n-'j >0 by A5,XREAL_1:233;
then  nj(-'j1as Natby :20;
j<nbN:
  then
A6: 2*n-'2*(j+1)=2java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A7: card Domin_0means ex  st 1<0%> & $=;
  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
    .=Catalan(A1: for x being object  Fexybeing   yinZ
  hence thesis by A4,A5,A7;
end;

theorem Th40:
  card {pN:pN in Domin_0(n     x in ;
  {}} = card Domin_0(n,m)
proof
defpred[,
means ex p st A10 =}java.lang.StringIndexOutOfBoundsException: Range [20, 17) out of bounds for length 22
  set     2mnTh22
  set Z=Domin_0(n,m);
A1: for x being object st x in F ex y being object st y in     ssume F<{;
  proof
  %>=AFINSQ_133;
    let x    pNsuchthat
A3A13: x=NpN  Domin_0n1m) :2SumpN=  >}}byA12java.lang.StringIndexOutOfBoundsException: Range [70, 71) out of bounds for length 70
    assume x in F;
    then consider pN such that
4 =pN in(+,)&{N:2Sum(|N= &N>}{;
    pN is dominated_by_0 & dom pN=n+1 by A4,Th20;
     consider qsuch that
A6  then 2*m <= n +1 by A14,Th2;
A7: q is dominated_by_0 by A4,Th17;
    dom pN=len <%0%>+ len q by A6,AFINSQ_1    dom pN=len <%0%>A13java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    then
A8: n+1=len q+1 by A4,A2,Th20;
    take q;
    Sum pN=Sum <%+Sum q by A6,FINSQ_2:5java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
    then Sum q=m by A4,A3,Th20;
    hence thesis by A4,A6,A7,A8,Th20;
  end;
 f Functionof F, such that
A9: for x being     thenpsuch 
A10: Z={} implies F={}
  proof
    assume Z={};
    then 2*m >n by Th22;
    then
 * =n by NAT_1:;
    assume F<>{};
    then consider x being object such that
A12: x in F by XBOOLE_0:def 1;
pNjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 25
=N&pNDomin_0(+,m)  N *(pN|N&N>0}{}byA12;
    dom pN=n+1 by A13,Th20;
    then pN|(n+1)=pN;
    then
14 (|(n+)=  A13;
    pN is dominated_by_0 by A13,Th20;
    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};
    hencethesis by A13;
  end;
  then
A15: dom f=F by FUNCT_2:def 1;
A16: rng f=Z
  proof
    thus rng f c= Z;
    let  beobjectjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    assume x in Z;
    then consider p such that
A17: p = x and
A18: p is let x,y being object that
:domp= n and
A20: Sum p = m by Def2;
    set q=<%0%>^p;
A21: {N: 2*Sum(q|N)=N & N>0}={} by A18,Th18;
    Sum q=Sum <%0%>+Sum p by AFINSQ_2:55;
    then
A22: Sum q=(0 qua Nat)+m by A20,AFINSQ_2:53;
A23:hence thesis by CARD_1:5;
    dom q=len <%0%>+len p by AFINSQ_1:end;
    then
A24: dom q=1+n by A19,AFINSQ_1:33;
    is java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 36
    henjava.lang.StringIndexOutOfBoundsException: Range [24, 13) out of bounds for length 45

A25: q in F
    then let n,m such
 q<0%^rand
 set Domin_0n,m;
    rpby ,AFINSQ_1:28;
    hence thesis by A15,A17,A25,A27,FUNCT_1:3;
  end;
  for x,y being object st x in F & y in F & f.x = f.y holds x = y
  
    let x,y being object     hence ;
A28: x in F & y in F and
A29:f.x  f.;
    ( ex p st x=<A3 c java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
    hence thesis by A29;
      java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 19
  then f is one-to-one by A10,FUNCT_2:19;
  then F,Z 
  hence thesis by CARD_1:5;
end;

theorem
  for n,m st 2*m <= n ex CardF be XFinSequence of NAT st card A6: for j st j < m holds C.j=card Domin_0(2*j,j)*card Domin_0(n-'2*(j
  m) = Sum CardF + cardte set by A3;
  CardF.j = card Domin_0(2*j,j) * card Domin_0(n-'2*(j+1),m-'(  proof
proof
  let n,m such that
 * <njava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  set Z=Domin_0(n,m);
set Zne={N inDomin_0(,m)&{N 2Sum|N)N&N>}>{}};
A2: Zne c= Z
  proof
        hence thesis by A10;
    assume
    then A11:Z c=  /Zne
    hence thesis;
d
    considerpbeXFinSequenceofNATthat
A3:Ze c=Z
  proof
    let x be object;
     ;
    then ex pN st x=pN & pN      p=m A12,Def2
    hence thesis;
  end;
  reconsider Zne as finite set by A2;
  consider C be XFinSequence of      suppose
A4: card Zne = Sum C and
A5: dom C = m and
   st <m  .=cardDomin_02j,* Domin_0n-2*(+
  ),m-'(j+1)) by A1,Th37;
  reconsider Ze as finite set by A3;
  take C;
A7Ze missesZne
  of
    assume Ze meets Zne;
    then consider x being object such that
A8: x in Ze and
A9: x in Zne by XBOOLE_0:3;
A10: ex qN       C=}by;
    ex pN st pN=x & pN in Z & {N: 2*Sum(pN|then : C ;
    hence thesis by A10;
  end;
A11: Z c= Ze \/ Zne
  proof
    let x be object such that
A12: x in Z;
    java.lang.StringIndexOutOfBoundsException: Range [31, 12) out of bounds for length 47
A13: p = x and
    p is dominated_by_0 and
    dom p = and
    Sum  n1 =n'  A17,:14XREAL_1233java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
    reconsider p as Element of NAT^omega by AFINSQ_1:def 7;
    set I={N: 2*Sum(p|N)=N & N>  hence thesis by A5,A6;
    now
      per cases;
      suppose
        {;
        then pin Ze by A12,A13;
        hence thesis by A13,XBOOLE_0:def 3;
      end;
      suppose
        I P[,et   jst $= holds$=ard Domin_0(2*n+1+j,);
        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,A2,XBOOLE_1:8;
  then
A14: Ze\/Zne=Z byconsider pjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
  now
    per cases;
    suppose
A15:  n=0;
      then 2*m=0 by A1;
      then C={} by A5;
then A16:Sum C= 0;
       i<= k
    hen ik+ by13;
    end;
    suppose
A17     by A3java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
      then reconsider n1=n-1 as Nat by NAT_1:20;
      n=n1+1;
      then
A18:  card Ze = card Domin_0(n1,m) by Th40;
      n1 = n-'1 by A17,NAT_1      
ardZ= + Domin_0n',m)by A7A14A4A18,CARD_2:40;
    end;
  end;
  hence thesis by A5,A6;
end;

theorem
  for n,k ex p st Sum p = card Domin_0(2*n+2+k,n+1)      end;
  i st i <= k holds p.i = card Domin_0(2*n+1+i,n)
proof
  let n,k;
  defpred P[>;
A1: for i st i in Segm(k+1) ex x  reconsidern1=n-1 Nat java.lang.StringIndexOutOfBoundsException: Range [48, 44) out of bounds for length 48
  proof
    let iholds q.   Domin_02n1+, holds q =cardDomin_02*++1n+);
    i in Segm(k+1);
    P[i,card Domin_0(2*n+1+i,n)];
sisjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  end;
  considerpsuch that
:dom pSegm+)and
A3: for i be setj1=+;
  take p;
A4: for i st i <= k holds p.i = card Domin_0(2A9:     qj1+and
  proof
    let i;
    assume i <= k;
            j1 <j1  :11java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    then i in Segm(k+1) by NAT_1:44;
    hence thesis by A3;
  end;
  now   for i  i=  qj1)i Domin_02n+1+n
    per cases;
    suppose
A5:   n=0;
      for x being object st x in dom p holds p.x = 1
      proof
        let x be object such that
A6:thencard*+2n1)-  java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
        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;
      endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      then p=(k+1)-->1 by A2,FUNCOP_1:11;
      then Sum p=(k+1)*1 by AFINSQ_2:58;
       Sum =cardD(*+2+,n+  A5
    end;proof
    suppose
      n>0;
      then reconsider n1=n-1 as Nat by NAT_1:20;set=2n+)choose(+
defpred[Nat           ] means forq  q=$+  for i st i <= $java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
holds q.i = card Domin_0(2*n+1+i,n) holds Sum q = card Domin_0(2*n+2+$1,n+1);
A7:   for j st Q[j] holds Q[j+1]
      proof
        let j such that
:Q[;
        set CH2=(2*n+2+j) choose (n1+1);
        then
        set j1=+;
         q such that
A9:     dom q=j1+1 and
     i <j1 holds .i=ard(2*++n;
A11:    2        +=;
        j1 <=j1+1 by NAT_1:11;
        c (j1) java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 47
        
A12:    dom (q|j1)=j1 by A9,RELAT_1:62;
A13:A22:   NEWTON;
        proof
          let i;
          assume i<=j;
           ij1  NAT_1:
          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,
:6;
          hence      ;
        end;
        set CH4=(2*n+1+j1) choose n1;
       (*+j) java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
A14:    2*n<=2*n+(1+j1) & n1+1=n by NAT_1:11;
 .= 2n++,n
        then
A15:    q.j1=CH3-CH4 byjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        j1 <j1+1 by NAT_1:13;
        then j1 < len q by A9;
        then j1 in dom q by   Fr,Fr1, Fr2 for XFinSequence of REAL
        then
)Sumq +q.by AFINSQ_2
        2*(n+1)<=2*n+2+proof
         Domin_0(2*n+2+j,n+)=-H2b Th28
        then Sum(q|j1)=CH1-CH2 by  then len Fr=java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
        then Sum(q|j1)+q  AFINSQ_2;
          .=((2*n+2+j+1) choose (n+1))-(CH3+CH4) by NEWTON:22
          .=((2*n+2+j1) choose (n+1))-((2*n+2+j1) choose (n1+1)) by Lm4: for Fr1,Fr2 st dom Fr1=dom Fr2 & for n st n in len Fr1 holds Fr1.n
          .=card Domin_0(2*n+2+j1,n+1) by A11,Th28;
        hence thesis by A9,A16;
      end;

      proof
reconsider 2n1=2*n+1 as Nat;
        set 2CHn=(2*n+2) choose n;
        set 2CHn91=(2*n+2) choose (n+1);
        set CHn91=2n1 choose (n+1);
A4 forxjava.lang.StringIndexOutOfBoundsException: Range [15, 10) out of bounds for length 38
        set y  objectst   Fr1& P[,]
        let q;
        assume
domq=(  Nat)1 &
           for i st i <= 0 holds q.i = card Domin_0(2*n+1+i ,n);
        then
A18:    q.0=card Domin_0(2*n+1+(0 qua Nat),n) & len q = 1;
A19:    2*n+2=(2*n+1)+1;
        thenthen +1=java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 36
A20:    2    then
        n1+1=n;
        then
A21    take len Fr1+)
             Fr1( Nat) len  ++) :8;
        then
:    = Hn91 by NEWTON20;
        2*(n+1)=2*n+2;
            hence th byAjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 35
A23:    card Domin_0(2*n+2,n+1)=2  consider P be Function of len Fr1  
<%q.0%q.java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
            by Th28  x1beingobject stx1 len  &in len Fr1  .x1 = P.x2
        hence thesis by holds  =java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
      end;
      for j holds Q[j] from NAT_1:sch 2(A17,A7);
      hence Sum p = card Domin_0(2*nA9 inlenFr1and
    endA10:P.  .java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 6
  hence thesis by A2,A4;
end;

begin

reserve seq1,seq2,seq3,seq4 for Real_Sequence,
  r,s,e for Real,
  Fr,Fr1    <lenby ,:86java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33

Lm3:     then P= Fr11i A7Ajava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
proof
  assume dom Fr=1 or lenINSEQ_4:3java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  then len Fr
  then Fr=<%Fr.0%> by AFINSQ_1:34;
  hence thesis by AFINSQ_2xindomjava.lang.StringIndexOutOfBoundsException: Range [73, 39) out of bounds for length 73
end;

Lm4: for Fr1,Fr2 st dom Fr1=dom java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 9
len Fr1-'(1+n)) holds Sum Fr1 = Sum Fr2
proof
chthat
A1: dom Fr1=dom Fr2 and
A2: for n st n in len Fr1 holds for being 
  defpred P[object,object] means
for i st i=$1 holds $2=len Fr1-'(1                       =Sum byAFINSQ_2;
end;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
ex y being object st y in len Fr1 & P[x,  func seq1 (# -  means
  proof
    let x being object such that
A5: x in len Fr1;
    reconsider k=x as Nat by A5;
    k< len Fr1 by A5,AFINSQ_1:86;
    thennst  + holds . =seq1 *seq2.k-'n)   Fr=$2;
    thenA1:for x stxin NAT o st
A6:proof
    take len Fr1-'(1+k);
    len Fr1 +(0 qua Nat       Q[set,set fori st i=1$2=eq1i *.k')java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
    then      java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
    hence thesis by A6,AFINSQ_1:86;
  end;
  consider P be Function of len Fr1,len Fr1 such that
A7: for x being object st x in len
 for:for  st in Segm(k+1) holds Q[i,Fr.i] take  ;
holds x1 = x2
  proof
    let x1,x2 being object such that
A8:x1   Fr1and
A9: x2 in len Fr1 and
A10: P.x1 = P.x2;
     ;
    j < len Fr1 by A9,AFINSQ_1:86;
then j+ < len Fr1 by NAT_1:13;
len233;
    then
java.lang.StringIndexOutOfBoundsException: Range [33, 3) out of bounds for length 33
    <Fr1byA8,java.lang.StringIndexOutOfBoundsException: Range [33, 29) out of bounds for length 33
    then i+1 <      then reconsider=asNatjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    then len Fr1-'(1+i)=len Fr1-(1+i) by XREAL_1:233;
    then P.x1=len Fr1-(1+i) by A7A9:   for nst n in +1holdsFr1.n = seq1.n*seq2.k-n 
    hence thesis by A10,A11;
  end;
  then
A12: P is one-to-one by FUNCT_2:56;
  then P is onto by A3,FINSEQ_4:63;
  henreconsider   Permutation  Fr1byA12;
A13: now
    let x be object such that
A14: x in dom Fr1;
    reconsider k=x         let n be Nat such
    P.k=len Fr1-'(1+k) by A7A14:n in  Fr1;
    hence        .nseq1.n *seq2k-n)by A8AA14java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
  end;
A15: for x being object st       end;
   proof let   seq3.=eq4. by ,,11A,:;
    assume
  x in dom Fr1;
    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 in dom P by FUNCT_2:52;
    hence thesis by A1;
   end;
for x being object st x in dom P & P.x in dom Fr2 holds x in dom Fr1;
  .=seq1. * seq2.(k-'n)&SumFr=seq3.;
addreal"*   "*" A1A:
                       .= Sum Fr2 by AFINSQ_2:48;
  hence thesis by AFINSQ_2:48;
end;

:: CAUCHY PRODUCT


  let seq1, seq2 be Real_Sequence;
  func seq1 (##) seq2 -> Real_Sequence means

  for k be Nat
   ex Fr be XFinSequence of REAL
     st dom Fr = k+1 &
        (for n st n java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 21
         Fr =.;
  existence
  proof
    defpred P[object,object] means
for beNatst=1exF dom Fr = k+1 &java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
    n st n in k+1 holds Fr.n = seq1.n * seq2.(k-'n)) & Sum Fr = $2;
     java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 74
    proof= (+1
  
      assume x in NAT;
      then reconsider k=x as NatA25:k'(-n=-')by A24XREAL_1;
      defpred Q[set,set]       +<   byA20A23:;
A2:   for i st i in Segm(k+1) ex z be Element 
      
        let i such that
        i in Segm(k+1);
         reconsider ss = seq1.i * seq2.(k-'i) as Element of java.lang.StringIndexOutOfBoundsException: Range [0, 64) out of bounds for length 55
        java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 16
        thusthesis;
      end;
      consider    hence b A16,18,Lm4
A3:   dom end
A4:   for i st i in Segm(k+1) holdsend;
      take Sum Fr;
      for n be Nat st n in k+1 holds Fr.n = seq1.n * seq2.(ktheorem
      hence thesis by A3,XREAL_0:def 1;
    end;
    consider seq3 such that
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    for k be Nat holds ex Fr st dom Fr = k+1 & (for n st n    ,Fr2 st  d  &forn stn in  holds 
    .n = seq1.n * seq2.(k-'n)) & Sum Fr = seq3.k
    by ORDINAL1:def 12,A5;
    hence thesis;
  ;
  uniqueness
  proof
    let seq3,seq4 such$1;
:for k  Nat ex Fr  XFinSequenceof  st dom Fr =k+ &(for
    n st n in k+1 holds Fr.n = seq1.n * seq2.(k-'n)) & Sum Fr = seq3.k and
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
letx be object;
sume x in NAT;
      then reconsider k=x as Nat;
      consider Fr1 be XFinSequence of REAL such that
A8:   dom Fr1 = k+1 and
A9:   for n st n in k+1 holds Fr1.n = seq1.n * seq2.(k-'n) and
A10:  Sum Fr1 = seq3  end;
      consider Fr2 be XFinSequence of REAL such that
A11:  dom Fr2 = k+1 and
A12:  for n st n in k+1 holds Fr2.n = seq1.n * seq2.(k-'n) and
A13:  Sum Fr2 = seq4.k by A7;
      now
        let n be Nat such   seq1 (##) (r(#)seq2) = r(#)(# seq2java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
A14:    n    =()seq2;
           = (# ;
        hence Fr1.n=Fr2.n by A8,A12,A14;
      end;
hence eq3x=eq4x A8,10,A11,A13,:java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
    end;
    A2: for n n in k1  Fr1.=seq1. (')and
;
  commutativity
  proof
    let seq3,seq1,seq2;
    
A15: for k be Nat exA6:Sum Fr2=S. Def4;
    n st n in k+1 holds Fr.n = seq1.n * seq2.(k-'n)) &     now
    let k be Nat;
    consider Fr1 be XFinSequence of REAL such that
A16: dom Fr1 = k+1 and
:for n st n in +holds Fr1.n = seq1.n * seq2.(k-'n) and
A18: Sum Fr1 = seq3.k by A15      .k')  *seq2.k-n) by :;
    defpred Q[set,set] means for i st      hence .*r2. by A7;
    reconsider k9=k as Nat;
A19: for i sti in Segm(k9+)  beElementof  Q[, java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
    proof
      let i such that
      i in Segm(k9+1);
       reconsider ss = seq2.i * seq1.(kend;
      take ss;
      thus thesis;
   java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8
    consider Fr2 such that
A20: dom Fr2 = Segm(k9+1) and
A21: for i st i in Segm(k9+1) holds Q[   =eq1(#) seq3;
    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
      letsuch that
:nlen;
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;
      k-'n <= k-'n + n by NAT_1:11;
      then
A25:k'(k-n)=-(k-n by ,XREAL_1:;
      n+1 <= len Fr2 byconsider  be XFinSequenceof REALthat
     then
A26= * Fr2AFINSQ_248java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
kn=&k<+bNAT_1XREAL_1java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
      then k-n < k+1 by XXREAL_0:2;
      then len Fr2-'(n+1) in Segm(k+1)end;
      then Fr2.(len Fr2-'(n+1))=seq2.(k-'n) * seq1.n by A21,A26,java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 13
      hence Fr1.n=Fr2.(len Fr1-'(1+n)) by A16,A17,A20,A22;
    end;
    hence thesis by A16  consider Frsuchthat
 ;
end;

theorem
   Fr1dom = &for  in lenFr1 holds Fr1.=r2
  .(len Fr1-'(1+n)4 0'00&len =1by,XREAL_1:232;

java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 13
  for Fr1,Fr2 st dom Fr1=dom Fr2 & for n st n in len   java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 33
  .n=r*Fr2.n holds java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
  
A1: dom Fr1=dom Fr2 and
:for n    len Fr1 holdsFr1.rFr2.;
A3: Fr1|(dom Fr1)=Fr1 & Fr2|(dom Fr1)=Fr2 byFr  dom =n1  i  i +1holds Fri.i*Partial_Sums.n-
  defpred P[Nat] means $1 <= len Fr1 implies Sum(Fr1|$1)=r*Sum(Fr2|
  $1);
A4: for i st P[i] holds P[i+1]
  proof
    let i such that
 [;
    assume
A6: i+1 < for   1  Fr=. P(-;
then< Fr1 by :13java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    then
A7: i in len Fr1 by AFINSQ_1:86;
    then
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 thesisA3:fori  i  (n1+)exx ElementofREALst Q[xjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
  end;
  A9: P[0];
  for i holds P[i] from NAT_1:sch 2(A9,A4);
  hence thesis by A3;
end;

theorem
  seq1 (##) (r(#)seq2) =     Fr2 such that
proof
=(sjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
  set S=seq1 (##) seq2;
  now
    let x be object;
    assume x in NAT;
    then reconsider k=x as Nat;
    consider Fr1 such that
A1: dom Fr1 = k+1 and
'n) and
A3: Sum Fr1 = (seq1(##)RS).k by Def4;
    consider Fr2 such that
A4: dom Fr2 = k+1 and
A5: for n st n in k+1 holds Fr2.n       in Fr2|1) holds(r2|1.=addreal(Fri(|1.)
A6: Sum Fr2 = S.k by Def4;
    now
      let n;
       n inlenFr1;
      then
A7:   Fr1.n = seq1.n * RS.(k-'n) & Fr2.n = seq1.n * seq2.(k-'n) by A1,A2,A5;
     .-n=r*seq2.(-)by SEQ_1:9;
     Fr1.rFr2. A7;
    end;
    then Sum Fr1 =     n1=+by NAT_1:1java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    hence (seq1(##)RS).x=(r(#)S).x by A3,A6,SEQ_1:9;
  end;
  hence thesis by FUNCT_2:12;
end;

theorem
  seq1 (##) (seq2 + seq3) = (seq1 (##) seq2) + (seq1 (##) seq3)
proof
  set S=seq2 + seq3;
setS2=seq1 (#)seq2;
  set S3=seq1 (##) seq3;
  now
      be ;
    assume x in NAT;
    then reconsider k=x as Nat;
    consider Fr be XFinSequence of REAL such that
A1: dom Fr = k+1 and
A2: for n st n in kFr2.1=n1*P(-n1) (|()  n  F|1
A3: Sum Fr = (seq1(##)S).k   thenSum Fr2=Partial_Sums)  S.1 &in  &n1tyle='color:red'>in 
   Fr1 be  ofREAL suchthat
A4: dom Fr1  hence   ,A5SERIES_1:def ;
A5: for n st n in k+1 holds Fr1.n = seq1.n   end;
A6: Sum Fr1 = S2.k by Def4;
A7: len Fr1=len Fr by A1,A4;
    consider Fr2 be XFinSequence of REAL such that
A8: dom Fr2 = k+1 and
A9: for n st n in k+1 holds Fr2.n = seq1.n * seq3.(k-'n) and
A10: Sum A29: dom =1;
A30 Sum(|)= 0
    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-'java.lang.StringIndexOutOfBoundsException: Range [34, 39) out of bounds for length 34
      Fr1.n = seq1.n * seq2.(k-'n) & Fr2.n = seq1.n * seq3.(k-'n) by A1,java.lang.StringIndexOutOfBoundsException: Range [0, 74) out of bounds for length 59
,A12;
      then Fr.n=Fr1.n+Fr2.n by A13,A14;
      hence thesisA34: i in (0
    end;
    len Fr1=len Fr2 by A4,A8;
  then addreal "**" Fr1^Fr2 = addreal "**" Fr by A11,A7,AFINSQ_2:46;
   then Sum Fr=addreal "**" Fr1    then (0-i=  XREAL_1:232;
  then Sum Fr=Sum     .-=java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 44
then Sum Fr=Sum (Fr1)+Sum(Fr2) by AFINSQ_2:55;
    hence (seq1(##)S).x=(S2+S3).x by A3,A6,A10,SEQ_1
  end;
  hence thesis by FUNCT_2:12;
end;

theorem Th47:
  (seq1(java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 79
proof
  set S=seq1.0 * seq2.0;
  consider Fr such that
A1: dom Fr = (0 qua Nat)+1 and
A2: for n [  st$ java.lang.StringIndexOutOfBoundsException: Range [49, 46) out of bounds for length 78
A3: Sum Fr = (seq1 (##) seq2).0 by Def4;
A4: 0-'0=0 & len Fr=1   set P1=Partial_Sums(se)
  0 in Segm 1 by NAT_1:44;
then .s.*seq2-0 java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  then Fr=<%S%> by A4,AFINSQ_1:34;
  hence thesis by A3,AFINSQ_2:53;
end;

reconsider zz = 0 as Nat      by XREAL_0:def 1java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23

theorem Th48:
  for seq1, seq2, n ex Fr st Partial_Sums(seq1 (##) seq2).n = Sum
Fr & dom Fr=n+1 & for i st i in nA3 domFr = Segm(n+)and
  java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
proof
  let seq1,seq2,n;A5:java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 35
  set S=seq1 (##) seq2;
   =(;
  defpred PA8:  n)by44;
  
A1: A9: Fr100*P2(-0)&
  
    set A=addreal;
    let n;
    set n1=n+1;
     [,set  i  =1 holds 2s. *n1-)
A2: A10:for st [kholds Pk1
A3: for i st i in Segm(n1+1) ex x be Element of REAL st Q[i,x]
    proof
      i that
      i in Segm(n1+1);
       reconsider ss =  :+=+java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
      take ss;
      thus thesis;
    end;
    consider Fr2 such that
A4: dom Fr2 = Segm(n1+1) and
A5: for i st i in Segm(n1+1) holds Q[i,Fr2.i] from STIRL2_1:sch 5(A3);
    assume P[n];
    thenconsider Fr such that
A6: Partial_Sums(S).n = Sum Fr and
A7: dom Fr=n1 and
A8: for ist   1holds Fr.=eq1i  P.n'i)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
     Fr1 that
A9: dom Fr1 = n1+1 and
A10: for i st i in n1+1 holds Fr1.i = seq1.i * seq2.(n1-'i) and
A11: Sum Fr1 = S.n1 by Def4;
A12: Fr1|(n1+1)=Fr1 by A9;
A13: for i be Nat
    st i in dom (Fr2|n1) holds (Fr2|n1).i=addreal.(Fr.i,(Fr1|n1).i)
    proof
      let i be Nat such that
A14:  i in dom (Fr2|n1);
A15:  i in dom Fr2 /\ n1 by A14,RELAT_1:61;
      +Sum seq2 * P1kjava.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 34
      then
A16:  Fr1.i .Sum*P1.+eq1.)
 .P1k1 java.lang.StringIndexOutOfBoundsException: Range [25, 22) out of bounds for length 41
      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 +   inNAT A4,,XBOOLE_0:def java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
      then
A20:  Fr1.i = seq1.i *        = Fr.0 + Sum (Fr|zz)(java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [19, 3) out of bounds for length 41
      n1-'i=n1-i by A18,XREAL_1:233;
      then (n-'i)+1=n1-'i by A19;
      then
:.n1-)=.-'+(-')by d 1java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
      Fr.i=seq1.i * P.(n-'i) by A8,A17;
      then Fr2.i=Fr.i+Fr1.i by A20,A22;
sis byA,,INOP_2d 9
    end;
    n1<=n1+1 by NAT_1:11;
    then
A23: Segm n1 c= Segm(n1+1) by NAT_1:39;
    then
A24: len (Fr1|n1)=len Fr by A7,A9,RELAT_1:62;
    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:65java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    len (Fr2|n1)=len Fr by A7,A4,A23,RELAT_1:62;
    then A"**"(Fr2|n1)=A"**"(Fr^(Fr1|n1)) by A13,A24,AFINSQ_2:46
 .= Sum(Fr^(Fr1|n1)) by AFINSQ_2:48
.= Sum(Fr)+Sum(Fr1|n1) by AFINSQ_2:55;
    then
A27(Fr2|1=um Fr+SumFr1|1)by AFINSQ_2:8;
    take Fr2;
    Fr2.n1=seq1.n1 * P.(n1-'n1) & Sum(Fr2|(n1+1)) = Fr2.n1       assume    ;
    by         x    that
A2     P,x]
             java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 56
    hence[,] 
  end;
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;
A29: dom Fr=1;
A30: Sum(Fr|zz) = 0;
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=A6:Q[]
    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 NatthenSum(|1)Fr.+SumFr|)&absFri|Fr.| ,FINSQ_265
         by SERIES_1:def 1;
let that
A34: i in (0 qua    Sum(|1=.Sum absFr| byA3,,FINSQ_2:
ii Segm A34
    then i    ence A9:
    then
A35: i=0 by NAT_1:14;
    then (0-'i)=0 by XREAL_1:232;
    then P.(0-'i)= seq2.0 by SERIES_1:def 1;
hencethesisby A34FUNCOP_1java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
  end;
  for i holds P[i] from NAT_1:sch 2(A28,A1);
  hence thesisfor seq1stseq1 issummableex r   r &fork  
end;

theorem Th49:
  for seq1, seq2, n st seq2 is summable ex Fr st java.lang.StringIndexOutOfBoundsException: Range [0, 61) out of bounds for length 21
(##) 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;
  defpred Q[set,set] means for i st i=$1 holds $2=seq1.i * Sum (seq2^\(n-'i+1)
  );
  set P2=Partial_Sums(seq2);
  P1)
    
A2: for i st i in Segm(n+1) ex x be Element of REAL st Q[i,x]
  proof
    A3:>0 
    i in Segm(n+1i=k holds|Sum (^i |=rjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
     reconsider ss = seq1.i * Sum (seq2^\(n-'i+1)) as Element of REAL
      by XREAL_0:def 1;
    take ss;
    thus thesis;
  end;
  consider Fr such that
A3: dom Fr = Segm(n+1) java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
A4: for i st i in Segm(n+1) holds Q[i,Fr.i] from STIRL2_1:sch 5(          by XXREAL_0:5;
  consider Fr1 such that
A5: 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.i * P2.(n-'i) by Th48;
A8: 0 in Segm(n+1) by NAT_1:44;
  then
A9: Fr1.0=seq1.0 * P2.(n-'0) &
    Sum (Fr1|(zz+1))=Fr1.0 + Sum (Fr1|zz) java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 17
  defpred P[Nat] means $1+1 <= n+1 implies Sum (Fr1|($1+1)) +  set =()
|$+)) Sumseq2 * P1.1
A10: for k st P[k]  P is convergent by,def2;
  proof
    let k such that
A11: P[k];
    reconsider k1=k+1 as Nat;
    
 A12:    k+1
    then    take |Sum(seq1)|
    then
A13: k1 in Segm(n+1) by NAT_1:44;
    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 A12,A11,NAT_1:13;
    Sum(Fr|(k1+1))=Fr.k1 + Sum (Fr|k1) & Fr1.k1=seq1.k1 * P2.(n-'k1) by A3,A7
,A13,AFINSQ_2:65;
    then Sum(Fr|(k1+1)) + Sum(Fr1|(k1+1))
       =seq1.k1 * ( Sum(seq2^\(n-'k1+1)) + P2.(n-'k1) )
      + Sum seq2 * P1.k by A15,A14
      .=seq1.k1*Sum seq2 +Sum seq2 * P1.k by A1,SERIES_1:15
      .=Sum seq2*(P1.k+seq1.k1)
      .=P1.k1*Sum seq2 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^\(n-'0+1)) by A3,A4,A8,AFINSQ_2:65;
  then Sum (Fr|(zz+1))+Sum (Fr1|(zz+1))
       = Fr.0 + Sum (Fr|zz)+Sum (Fr1|(zz+1))
      .=Fr + Sum (r1(+1) byA16
      .= seq1.0 * Sum (seq2^\(n-'0+1)) + Sum (Fr1|(zz+1)) by A18
      .= seq1.0 * Sum (seq2^\(n-'0+1)) +
              Fr1.0 + Sum (Fr1|zz) by A9
      .= seq1.0 * Sum (seq2^\(n-'0+1)) +
              seq1.0 * P2.(n-'0) + Sum (Fr1|zz) by A9
      .= seq1.0*(Sum(seq2^\(n-'0+1) end;
    .=seq1.0*Sum seq2 by A1,SERIES_1:15;
  then
 [0] by SERIES_1:def 1;
A20: for k holds P[k] fromA11: r>0and
  take Fr;
by A6
  Fr|(n+1)  let k;
  then Sum Fr1 + Sum Fr= Sum seq2 * P1.n by A20,A21;
  hence thesis by A3,A4,A5;
end;

theorem Th50:
forFr   XFinSequence  REALst absFrdomF 
  |.Sum Fr.| <= Sum absFr       hence thesis by A14,XXREAL_0:2;
proof
  let Fr;
  defpred P[object,object] means $2=|.Fr.$1.|;
A1: for i st i in Segm len      then reconsider k1=k-1 as Nat by NAT_1:20;
     proof let i;
      assume i  len ;
       consider x being Real such that
A2:     P[i,x];
       reconsider x as Element of REAL by XREAL_0:def 1;
      P[i,x] by A2;
     hence thesis;
    end;
consider  REAL  that
A3: dom absFr       +0 qua Nat)= by,XREAL_1:;
A4: for i st i in Segm len Fr holds Phence  A17,XREAL_02
  defpred Q[Nat] means $1 <= len Fr implies |.Sum (Fr|$1).| <= Sum
  (absFr| hence thesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
A5: for i st Q[i] holds Q[i+1]
  proof
    isuchjava.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
A6: Q[i];
    set i1=i+1;
    
A7: i1<=len Fr;
    then i < len Fr by NAT_1:13;
    then
A8: i in dom Fr by AFINSQ_1:86;
    then Sum(Fr|i1)=Fr.i+Sum(Fr|i) & absFr.i=|.Fr.i.| by A4,AFINSQ_2:65;
    then
A9: |.Sum(Fr|i1).|<=absFr.i +|.Sum (Fr|i).| by COMPLEX1:56;
    Sum(absFr|i1)=absFr.i+Sum (absFr|i) by A3,A8,AFINSQ_2:65A4 P];
    then absFr.i + |.Sum (Fr|i).| <= Sum(absFr|i1) by A6S(+)=.i+.ni1  .ni1>0 by ,SERIES_1def 1;
hencethesis by A9,:;
  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 Fr));
  hence thesis by A3,A4;
end;

theorem Th51:
  for seq1 st seq1 is summable ex r st 0 < r & for k holds |.Sum
  (seq1^\k).| < r
proof
  let seq1 such that
A1: seq1 is summable;
  defpred P[Nat]theorem:
  =;
A2: for k st P[k] holds P[summable & Sum(seq1 (##) seq2) = Sum seq1 * Sum seq2
  proof
    proof
    assume seq2  
      such
A3: r>=0 and
A4: for i st i <= k holds  set =umjava.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
    take M=max(r,|.Sum (seq1^\(k+1)).|);
    thus M >=0 by A3,  set=artial_Sumsseq2;
    let such that
A5: i =seq1  (#) ;
    ow
        by ,:8;
suppose
        i=k+1;
        hence     seq1 is summablejava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
      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;
    ;
    hence thesis;
  
  set P=Partial_Sums(seq1);
A8: lim P= Sum seq1 by SERIES_1:def 3;
 is convergentbyA1,ERIES_1:def 2;
  then consider n be Nat such that
A9: for m be Nat
st n<=m holds|S2+1>0qua )(    :,;
A10: P[n
  proof
    take |.Sum(seq1).|;
thus |Sum(seq1)= COMPLEX1:46java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
    let i;
    assume i<=0;
i=;
    hence thesis by NAT_1:47;
  end;
  for k holds P[k] from NAT_1:sch 2(A10,A2);
  then consider r such that
A11: r>=0 and
A12: for i st i <= n holds |.Sum (seq1^\i) .|<=r;
  take r1=r+1;
  thus r1>0 by A11;
  let k;
  now
    per cases;
    suppose
A13:  k <= n;
A14:  0 qua Nat+r< r1 by XREAL_1:8;
      |.Sum (seq1^\k) .|<=r by A12,A13;
      hence e30 ,:;
    end;
    suppose
A15:  k > n;
thenreconsiderk-asNatby NAT_1:;
      k1+1>n by A15;
      then  

A16:  |.P.k1-Sum seq1.|<1 by A9;
      Sum seq1 = P.k1 beNat such
      then |.-Sum(seq1java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 33
then
A17:  |. Sum(seq1^\(k1+1)) .|<1 by COMPLEX1:52;
      1+(0 qua     then M1+1>=n1+1 by A20,XXREAL_0:2;
      hence thesis by A17,XXREAL_0:2;
    end;
;
  hence thesis;
end;

theorem Th52:
  , n  stn  java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 58
  A27: Frm and
A28 for isti inm  .=eq1i*(\m'+))
  let    absFrbe of REAL that
A1:A29:domabsFr=dom  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 A33 <= ,:2;
  proof
    let i such that
A4: P[i];
    set ni=n+i;
    S.(ni+1)=S.ni+seq1.(ni+1) & seq1.(ni+1)>=0 by A2,SERIES_1:def 1;
    then S.(ni+1) >= S.ni + (0 qua Nat) by XREAL_1:    then
    hence thesis by A4,XXREAL_0:2;
  end;
A5: P[0];
A6: for i holds P[i] from NAT_1:sch 2(A5,A3);
   m = as Nat;
A7: n9+(m9-n9)=m9;
  m9-n9 is Nat by A1,NAT_1:21;
  hence thesis by A6,A7;
end;

:: CAUCHY PRODUCT THEOREM

:
  for seq1, seq2 st seq1 is absolutely_summable & seq2 is summable
  holds seq1 (##) seq2 is summable & Sum(seq1 (##) seq2) = Sum seq1 * Sum    then n2=2 by A32,:2;
proof
  let seq1, seq2 such that
A1: seq1 is absolutely_summable and
A2: seq2 is summable;
S2=umseq2;
  set S1=Sum seq1;
  set PA=Partial_Sums(|.seq1.|);
  set P2=Partial_Sums(seq2);
  set P1=Partial_Sums(seq1);
  set S=seq1 (##) seq2;
  set P=Partial_Sums(S);
A3: for e st 0<e ex n be Nat st
   for m be Nat st n<=m holds |.P.m-S1*S2.|<e
  proof

    then
A4: P1 is convergent by SERIES_1:def 2;
    let e such that
A5: :  k1<+1 by NAT_1;
    set e1=e/(3*(|.S2.|+1));
    (|.S2.|+1)> (0 qua Nat)+(0 qua Nat) by COMPLEX1:46,XREAL_1:8;
    then
A6: 3*(|.S2.|+1)>3*0 by XREAL_1:68;
    then lim P1= S1 & e1>0 by A5,SERIES_1:def 3,XREAL_1:139;
java.lang.StringIndexOutOfBoundsException: Range [20, 17) out of bounds for length 37
A7A51   |.|(k+)+.Mk)=PA.(k)bydef;
      by A4,      |seq1.=0 .s^(-+< 
       Fr1<=r|seq1.k1|,A48;
    |.S2.|+1>(0       ((1)=r*.eq1.r(A.+k-M1 ,45,49
    
      then (|k11)=*((|.+PAM);
:is   byS,3java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
    consider r such that
A10: 0 < r and
A11: for k holds |.Sum(seq2^\k).| < r by A2,Th51;
    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;
      ;
    end;
then A14:for n be Nat holds |.seq1.|.n>=0;
A15: abs seq1 is summable by A1,SERIES_1:def 4;
  then Sum (seq1>= by A14,SERIES_118;
    then
A16: (Sum abs(seq1)+1)*e3=e/3 by XCMPLX_1:92;
:Sum absseq1>= by A15,,SERIES_1:18;
    thenf
thene3> by A5,XREAL_1:
    then consider  be Nat such that
      then
    3*rA56  1:13;
    then e2>0 by A5,XREAL_1:139;
    then consider n1 be Nat such that
A19: for n be Nat
     n1< n  ..n-PAn1| <e2 java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 61
    reconsider M=+=  by A27java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
A20: max(n1+1,n2)<=M by XXREAL_0:25;
    take 2M=M*2;
    let m be Natsuch that
A21A:  |seq1..|=  r>.(eq2^(-'+) .  COMPLEX146;
A22: max(1,n0)<=M by XXREAL_0:25;
    then 0<M by XXREAL_0:25;
    then reconsider M1=M-1 as Nat by NAT_1:20;
A23: M=M1+1;
A24: n1+1 <= max(n1+1,n2) by XXREAL_0:25;
0,:;
           Fr1=|.  ;
Th52
    then PA    end;
    then
PAmPAM1<*(A-n1  A10,:java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    consider Fr such that
A26: P.m= S2 * P1    then
  and
A28|seq1|0>by A13java.lang.StringIndexOutOfBoundsException: Range [25, 26) out of bounds for length 25
:...*P2m-S2.|<e3|seq1|0 A41,:java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
A29: dom absFr=dom Fr and
A30: |.Sum Fr.| <= Sum absFr and
A31: for i st i in dom absFr holds absFr.i=|.Fr.i.|     .1<  .  ,15,:;
A32: M<=M+M by NAT_1:11;
    then
=  ,2java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    then M < lenA69 Sumseq2(01).java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
    then
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    n1+1 <= M by A24,    .*P.S1.|||P1-. ..= :,;
n1 XXREAL_02;
    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 XREAL_1:9;
    then
A36: |.PA.m-PA.n1.|=(PA.m-PA.n1) by ABSVALUE:def 1;
    consider Fr1 such that
A37: absFr=absFr|M^Fr1 by
A75: Q[k;
    then
 (m-)1=Fr1by A34;
 < n1+1,n2)by XXREAL_0:5;
    then n2 <= M by A20,XXREAL_0:2;
    then n2 <=2M by A32,XXREAL_0:2;
    then n2 <= m & m inA79:k1<Mby 13
    then
 -S2e3java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
    defpred S[Nat] means M+$1+1<=m+1 implies Sum(Fr1|($1+1))<=r*(PA
    .(M+$1)-PA.M1);
A42: for k st S[k] holds S[k+1]
    proof
      let k such that
A43    then (|zz1)=..||Sum(eq2\(m-0+)|by A67,A87,
      set k1=k+1;
      setA89absFr|< *PA. A23;
      reconsider Mk=M+k as Nat;
A44:  |.seq1.Mk1.|=abs(seq1).Mk1 by SEQ_1:12;
      assume
A45:  Mk1+1<=m+1;
      then
 A46:  Mk1 <m+1 by NAT_1:13;
      then
A47:  Mk1 in Segm(m+1) by NAT_1:44;
      then Fr.Mk1=seq1.Mk1*Sum(seq2^\(m-'Mk1+1)) by A28;
      then
:|FrMk1.=.eq1Mk1.||seq2^(-Mk11)). by65;
      Mk1<m+1 by A45    hencethesisbyA91,java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 35
      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.Mk1=Fr1.(Mk1-M) by A37,A34,A46,AFINSQ_1:19,NAT_1:11;
      then
A50:  Fr1.* r|^n) & (|. <1/ java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 79
A51 Catal=(  sqrt14*r)  2*))
      |.seq1.Mk1.|>=0 & |.Sum(seq2^\(m-'Mk1+1)).|<r by A11,COMPLEX1:46;
      then Fr1.k1<=r*|.seq1.Mk1.| by A50,A48,XREAL_1:64;
      then Sumfor r $=ex be  st(or n
,A44,NAT_1:13,XREAL_1:7;
eq1..k1PA(M+)-.)java.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 62
      then Sum(Fr1|(k1+1))<=r*(PA.(M+k+1)-PA.M1) by A51;
      hencethesis;
    end;
    |.PA.m - PA.n1.| < e2 by A19,A35;
    then r*(PA.m-PA.    consider Cat be Re such 
    then
A52: r*(PA.m-PA.M1)<=r*e2 by A25,XXREAL_0:2;
A53: m=M+(m-A4:forn st n] holdsP[n+java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
A54: S[0]
    proof
      assume
+0 qua Nat)+1<m+;
      then
A56:  M <m+1 by NAT_1:13;
      then
57:M Segm(m+)by NAT_1:
      then
A58:  Fr.M=seq1.M*Sum(seq2^\(m-'M+1)) by A28;
M+-<m+1- by ,XREAL_1:9;
       1 =Segmlen  A38A34,NAT_139
      then
A59:  dom (Fr1|1)=1 by RELAT_1:62;
      m+1=len absFr by A27,A29;
      then absFr.M=Fr1.(M-M) by A37,A34,A56,AFINSQ_1:19;
      then Fr1then
      
A60:  Fr1.0=|.seq1.M       |Catn1|=(.atalan(n1.*.^.|byjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
A61 Cat0=(0java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 8
      0 in Segm 1 by NAT_1:44;
      then
A62:  (Fr1|1).0=Fr1.0 by A59,FUNCT_1:47;
      PA.M1
      then
A63:  PA.M-PA.M1=|.seq1.M.| by SEQ_1:12;
setn1=1;
      ;
    end;
    for k holds S[k] from NAT_1:sch 2(A54,A42         reconsiderrr  r| n1*Catal.as Elementof 
    then Sum(Fr1)<=r*(PA.m-PA.M1) by A39,A53;
    then Sum(Fr1)<=r*e2 by A52,XXREAL_0:2;
    then
A64: Sum(Fr1)<=e/3 by A10,XCMPLX_1:92;
    |.seq1.|.0>=0 by A13;
    then
A65: |.seq1.|.0*|.P2.m-S2.|<=e3*|.seq1.|.0 by A41A27:    n+by A23
A66: 0 in Segm        then
    then
A67: Fr.0=seq1.0*Sum(seq2^\(
    PA.M1 <= Sum |.seq1.| by A14,A15,RSSPACE2
    then
A68: e3* PA.M1 <= e3* .=Fr2.k by A23A26;
P2.-0)Sum(\m'0+))  m'0=m A2NAT_D40,SERIES_1:;
    then
A69: Sum(seq2^\(m-'0y A16,A18,A23,A25,AFINSQ_1:8;
    n0<= max(1,n0) by XXREAL_0:25;
    then n0
thenn0 <m & in NATby X:2 :def12;
    then
A70: |.P1.m-S1.|<e1 by A7;
    |.S2*(P1.m-S1).|=|.S2.|*|.P1.m-S1.| & |.S2.|>=0 by COMPLEX1:46,65;
    then
A71: |.S2*(P1.m-S1).|<=|.S2.|*e1 by A70,XREAL_1:Catis absolutely_summablebydef;
:=um(bsFr|M)+um Fr1 byA37,AFINSQ_2:55java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
    defpred Q[Nat] means $1+1 <= M implies Sum(absFr|($1+1  beingjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 78
    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 A40:r<1/java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
A75:  Q[k];
      reconsider k1=k+1 as Nat;
A76:  |.seq1.k1.|=abs(seq1).k1 by SEQ_1:12;
A77:  m-M >= 2M-M by A21,XREAL_1:9;
      assume
A78:  k+1+1<=M;
      then
  k1< by NAT_1:;
      then m-k1 >= m-M by XREAL_1:10;
      then m-k1 >= M by A77,XXREAL_0:2;
s < byA39AXXREAL_0:java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
= A732
      e3
NAT_1:13,XREAL_1:6;
      then e3*|.seq1.k1.|+Sum(absFr|k1)<=e3*(abs(seq1).k1+PA |r. <
        by A76,ORDINAL1:def 12;
      then
A81:  e3*|.seq1.k1.|+Sum(absFr|k1)<= e3* PA.k1 by SERIES_1:def 1;
      k1<m by A33,A79,XXREAL_0:2;
      then k1 < m    delta(r-1,) 1=1;
      then
A82: rs suchthat
      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(+sqrt(1-4*r))/2r)>(1+qrt(-*s)/2r)A55java.lang.StringIndexOutOfBoundsException: Range [65, 64) out of bounds for length 68
      |.seq1.k1.|>=0 by COMPLEX1:46;
      then:1/and
      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  then -qrt(1-* =1- y 10
XREAL_1 notR c {;
      hence thesis       then\r}>{ XBOOLE_1:;
    end;
A87: Sum(absFr|zz) = 0;
    Sum(absFr|(zz+1))  end;
    A29A66java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 35
    then Sum(absFr|(zz+1))=|.seq1.0 .|*|.Sum(seq2^\(m-'0+1) <and
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,|.r.|=r by A82,ABSVALUE1java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
    for k holds    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 24
    then
A89: Sum(absFr|M)<= e3 * PA.M1 by A23;
    Sum abs(seq1)+1>Sum abs(seq1)+(0 qua Nat) by XREAL_1:8;
    then e3*(Sum1-*->=*--*(r : -(1-(r)  +(-*  A90XXREAL_02java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
    then e3* PA.M1 <=e/3 by A68,A16,XXREAL_0:2;
    Sum(absFr|)=i
    then Sum(absFr|M)+Sum Fr1 <   &   =1+s *(um Catal |2
    &SumC-rSum Catal);
:. |=e3+3 byjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 48
    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:A97:    Crn=Catalann+ *r|n)and
    A98: |.r  / implies ris absolutely_summable&Sum Cr  1+r *
    then |.S2*(P1.m-S1).|<e/3 by A8,A71,XXREAL_0:2;
    then |.S2*(P1.m-S1).|+|.Sum Fr.| <e/3+(e/3+e/3) by A90,XREAL_1:8;
    hence
  end
 then
:Pisby 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  rin REALby XREAL_0:ef 
* r|^n) & (|.r.| < 1/4 implies Catal is absolutely_summable & Sum Catal = 1 + r
  * (Sum Catal:|r|<14implies Cat is    Cat 1+r*
  -1-*)/(*r) java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 8
  defpred E[object,object] means
   for r st $1=r ex Catal be Real_Sequence st (for n
Catal.n=Catalan(n+)*r|n)&(|r.  /  Catalis
  absolutely_summable & Sum Catal        .((1-)*1+))/(2r)*1s) by XCMPLX_176
A1: for x being object st x in REAL ex y being object st y in REAL & E[x,y]
  proof
    let x be object;*/1+)by 76
A2: |.1 .|=1 byhenceSumCat=/1+ byA106
    assume x in REAL;
    then reconsider r=x as Real;
    set a=4*|.r.|;
    deffunc C(Nat)= In(Catalan($1+1) * r|^$1,REAL);
    consider Cat be Real_Sequence such that
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 n st P[n] holds P[n+1]
    proof
A5:   |.r.|>=0 by COMPLEX1:46;
      let n;
      assume P[n];
      then
A6:   a*abs(Cat).n <= a*G.n by A5,XREAL_1:64;
      set n1=n+1;
A7:   |.r|^n1.| >=0 & r|^n1= r*r|^n by COMPLEX1:46,NEWTON:6;
      Catalan(n1+1)>=0 by CATALAN1:17;
      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;
      then |.Catalan(n1+1).| < 4*|.Catalan(n1).| by A8,CATALAN1:21;
      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;
      then
      |.C(n1).| <=a*(|.Catalan(n1).|*|.r|^n.|) by A9,COMPLEX1:65;
      then |.Cat.n1.|<=a*(|.Catalan(n1).|*|.r|^n.|) by 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 of REAL;
      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.k 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 such that
A26:    k in dom Fr2;
        k < len Fr2 by A26,AFINSQ_1:86;
        then
A27:    k<n+1 by 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 * r|^n)
          .=Catal.k * r|^n1 by NEWTON:6
          .=Fr2.k by A23,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 by A3
        .=(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) * s|^n by A15;
   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 is absolutely_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))=Sum Cat *(r*Sum Cat) by A35,A31,Th53;
    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 being 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
A40: r < 1/4;
    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) * s|^n and
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: s < 1/4 by A39,A40,XXREAL_0:2;
    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+sqrt(1-4*r))/(2*r)
  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(r,-1,1)= 1-4*r & -(-1)=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: (1+sqrt(1-4*r))/(2*r)>=(1+sqrt(1-4*s))/(2*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/4 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;
    then 1-sqrt(1-4*s) <= 1-0 by XREAL_1:10;
    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 not 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))/(2*r)
  proof
    let r such that
A82: 0<r 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;
    |.r.|=r by A82,ABSVALUE: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)-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: 1-sqrt(1-4*(-r)) < 1+sqrt(1-4*r) by A90,XXREAL_0:2;
    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.| by A92,A88,
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 & Sum Catal = 1 + s * (Sum Catal) |^ 2
      & SumC.-r=Sum Catal);
     then consider CR be Real_Sequence such that
 A94: for n holds CR.n = Catalan(n+1) * (-r)|^n and
 A95: |.-r.| < 1/4 implies CR is absolutely_summable & Sum CR = 1 +
     (-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
A97: for n holds Cr.n = Catalan(n+1) * (r|^n) and
A98: |.r.| < 1/4 implies Cr is absolutely_summable & Sum Cr = 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)|^n.|*|.r|^n.| by COMPLEX1:65
        .=1*|.r|^n.| by SERIES_2:1;
      Catalan(n+1)>=0 by CATALAN1:17;
      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 CR by A48,A86,A87,A98,A101,A96;
    hence thesis by A102,A93,COMPLEX1:67;
  end;
  let r;
  r in REAL by XREAL_0:def 1;
  then consider Cat be Real_Sequence such that
A103: for n holds Cat.n = Catalan(n+1) * r|^n and
A104: |.r.| < 1/4 implies Cat is absolutely_summable & Sum Cat = 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+1) * r|^n by A103;
  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 (1-s) / (2*r)=((1-s) / (2*r)) * ((1+s)/(1+s))
        .=((1-s)*(1+s)) / ((2*r)*(1+s)) by XCMPLX_1:76
        .=(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+s)) by XCMPLX_1:76
        .=(1)*(2/(1+s)) by A108,XCMPLX_1:60;
      hence Sum Cat=2/(1+s) by A106;
    end;
  end;
  hence thesis by A106;
end;

Messung
CHZG
8110010093

¤ Dauer der Verarbeitung: 0.74 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland