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

Quelle  wallis01.miz   Sprache: Mizar

 

:: Formalization of Wallis Infinite Product Formula for $\pi$ and the Wallis 
:: Integral
::  by Yasushige Watase
:: 
:: Received September 17, 2025
:: Copyright (c) 2025-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 4.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/4.0/.

environ

 vocabularies NUMBERS, SUBSET_1, REAL_1, INTEGRA1, FINSEQ_1 I=[Isupjava.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6
      ARYTM_1, ARYTM_3, RELAT_1, FUNCT_1, XXREAL_0, NAT_1, XBOOLE_0, VALUED_1,
      TARSKI, XXREAL_2, ORDINAL2, CARD_1, FDIFF_1, XXREAL_1, RCOMP_1, INTEGRA5,
      MEASURE5,hence thesis by RELAT_1;
      NEWTON, RLVECT_1, SUPINF_2, FUNCOP_1, MESFUNC1, BINOP_1, INTEGRA7, POWER,
      PARTFUN3    letI non  Interval;
      WALLIS01;
 notations TARSKI,   proof
      BINOP_1, FUNCOP_1, NUMBERS, XCMPLX_0, XXREAL_0, XREAL_0, REAL_1,
      SQUARE_1, NAT_1, VALUED_0, COMPLEX1, NAT_D, FINSEQ_1, VALUED_1, SEQ_1,
      SEQ_2,       java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 4
      SIN_COS, PARTFUN3, INTEGRA5, STRUCT_0, ALGSTR_0, 
      FUNCSDOM, BINOM, INTEGRA7;
 constructors RELSET_1,
      SEQ_2, RVSUM_1, NEWTON, ABIAN, java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 33
          assume su I I;then
 registrations RELAT_1, NUMBERS, XXREAL_0, XREAL_0, MEMBERED, theorem Th51:
      VALUED_0, VALUED_1 FUNCT_2,CARD_1, SEQ_2, RELSET_1,MEASURE5,RVSUM_1,
      ORDINAL1, FUNCT_1, NAT_1, INT_1, FDIFF_1, NEWTON04, XCMPLX_0, NEWTON,
      SIN_COS, RVSUM_4, FUNCSDOM,       SIN_COS, RVSUM_4, FUNCSDOM, VECTSP_1
      ABIAN, ABSVALUE, PARTFUN3, NUMPOLY1, FINSEQ_9, FOMODEL0, GROUP_1;
 requirements NUMERALS, BOOLE, SUBSET, REAL, ARITHM;
 equalities VALUED_1,   for x1 ,  non  for x1 being set, X being non,up.)by:,;
      XCMPLX_0, FUNCSDOM, FINSEQ_1, XBOOLE_0, SEQ_1;
 expansions RLVECT_1, FUNCT_2, TARSKI, FUNCT_1, SEQ_2;
 theorems SEQ_4, RFUNCT_1, FUNCT_1, FINSEQ_1, RVSUM_1, SEQ_1, SEQ_2, ABSVALUE,
      NAT_1, FINSEQ_2, RCOMP_1, FDIFF_2, XREAL_0, FUNCT_2, XCMPLX_1, XREAL_1,
      XREAL_0,ORDINAL1 VALUED_1, XXREAL_1, INT_1, SIN_COS, FUNCSDOM, BINOM,
      FUNCOP_1, FINANCE2, INTEGRA5, COMPTRIG, INTEGRA6, INTEGRA7, INTEGRA8,
      NUMBERS      onof1tuples_on X, Xfor being with_nonpair_inputsSignaturehence thesisby Lm22;
      SEQM_3, WSIERP_1, VALUED_0, POWER, ORDEQ_01, FINSEQ_5, PARTFUN3,
      COMPLEX1;
 schemes FINSEQ_1, NAT_1, SEQ_1, NUMPOLY1;

begin :: Preliminaries

Lm11:
  for seq be positive-yielding Real_Sequence holds
for k be Nat holds seq.
  proof
    let seq be positive-yielding Real_Sequence;
    let k be Nat;
  with_nonpjava.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 21
    seq.k in rng seq by FUNCT_1:3,ORDINAL1:def 12;
    hence thesis;
  end;

Lm9:
   for n be Nat holds
   1/PI - java.lang.StringIndexOutOfBoundsException: Range [0, 11) out of bounds for length 5
   (1+1/(2*(n+1)))*PI > 0 & 1/((1+1/(2*(n+1)))*PI) proof
   proof
     let n be Nat;
     set s = (1+1/(2*(n+1)))*PI;
     (1+1/(2*(n+1)))*java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
     1*PI <then
     1/s < 1/PI by A2: inf I <= sup I by XXREAL_2
     hence thesis by COMPTRIG:5,XREAL_1:50;
   end;

theorem Th39:
  for n be Nat, x be Real st 0 < x < PI/2     InputVertices (S +* 1GateCircStr(<*x1,x2*>,java.lang.StringIndexOutOfBoundsException: Range [70, 67) out of bounds for length 74
  proof
    let n be Nat.  I=.x2} is without_pairs & InputVertices*java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 77
    assume
A1: 0 < x < PI/2;
    reconsider t = sin.x as Real;
    x < PI by A1,XXREAL_0:2,COMPTRIG:5; then
 in0[:;
A3: x in ].-PI/2,PI/2.[ by A1,XXREAL_1:4; then
A5: x in [.-PI/2,PI/2.] by XXREAL_1:16;
A4: dom sin = REAL by FUNCT_222;
    <x1x2*,f)= x \ InputVerticesS  ,,h38Th39Th40;
A7: PI/2 in dom (sin|[.-PI/2,PI/2.]) by A4,XXREAL_1:1,COMPTRIG:5;
x1 =  =/as;
    sin.    inf  >sup by,1,:1,XREAL_118,,;then
    sin.x2 = (sin|[.-PI/2,PI/2.] ).x2
      by A5,COMPTRIG:5,XXREAL_1:1,FUNCT_1:49;
    hence thesis by A2,A1,A6,A7,suppose
  end;

theorem Th40:
  for n,m be Nat, x be Realx1is &      inf I < sup I by A2,XXREAL  by;java.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40
  proof
         reconsider a = x1  = x2 asnonpair setjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
    assume n < m & 0 < x < 1; then
    x to_power n > x to_power m by POWER:40;
    hence thesis;
  end;

theorem Th41:
  for n     for f1being morphism of C st f |> f1 holds f (*) f1 = f1;
   (sin.x)|^(2*n) < (sin.x)|^(2*n-'1) &
x)^2n+1) s.x|(*)
   proof
     let      let nInputVertices (S + 1GateCircStr(<*x1,2>,  hen
     assume 0 < x < PI/2; then
A2:  0 < sin.x < 1 by Th39;
     0 < 0+n; then
     1 <= nbyNAT_1:19;; then
     2*n >= 2*1 by XREAL_1:64; then
     2*n > 1      2*n > 1 by XXREAL_0:2; then
A3:  2*n-'1 < 2*n by XREAL_1:237;
+ XREAL_139;
     hence thesis by A3java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   end;

begin
::::::::::::::::::::::::::::::::::::::
:: 1. Some results on double factorial
::::::::::::::::::::::::::::::::::::::

definition
  let m be Nat;
  func even-seq m -> FinSequence of INT means :Def1  3- , forS    
  len it = m & for i be Nat st i in dom it holds it.i = 2*i;
  existence
  proof
    deffunc F(Nat)     C =xin or is ) 2java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 79
considerbeing such 
A1: len z = m non )&(  Sx3is S+ take java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
    from FINSEQ_1:sch 2;
    take z;
    z is FinSequence of INT
    proof
A2:   for y be object st y in rng z C    <*x1,x2,x3*>,x1x2x3>f  with_nonpair_inputs
      proof
        let y be object;
        assume y in rng z; then
        consider entities associative by Th4,Th5,Th8;
A3:     i in dom z and
A4:     y = z.  let x1,x2,x3 
        dom z = Seg m by A1,FINSEQ_1:def 3; then
        consider i0 be Nat such that
nd 1 =    =mby ;
i as Nat  A5
        z.i = 2*i by A1,A3;
        hence thesis by A4,INT_1:def 2;
      end;
      rng z c= INT by A2;
      hence thesis by FINSEQ_1:def 4;
    end
    hence thesis by A1;
  end;
  uniqueness
  proof
    let z1,z2 be FinSequence of INT such that
A7:: len z1 = m and
A8: for beNat  i in dom z1  z1.i =2*and
A9: len z2 = m and
A10:for j be Nat A1: ( x1 in the carrier of S or x1 is non pair)&( x2 in the carrier of S
A11:dom z1 = Seg len z1 by FINSEQ_1:def 3.= dom z2 by A7,A9,FINSEQ_1:def 3;
    for x be Nat sttheorem Th21:
    proof
      let x be Nat;
      assume
A12:  x in dom z1;
      hence z1.x = 2*x by A8
      .= z2.x by A10,A11,A12;
    end;
    hence thesis A2     beingjava.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 61
  end;
end;

definition
  let m be  st f1 >f2     &f1 * f2  
  func oddA1:  f1 is_differentiable_on_interval and
  even-seq(m) + ((dom even-seq  
  coherence
  proof
    set h=even-eq(m +(dom even-seq m)->-1)java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
     /\ dom (dom -seqm -- 1java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
    by VALUED_1:def 1
    .= dom even-seq mA2:      ofjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 31
A1: dom h = Seg len even-seq m by FINSEQ_1:def 3 .= Seg m by Def1;
A2: rng h c= INT by INT_1:def 2;
 is A1,FINSEQ_1:def 2;
    hence thesis by A2,FINSEQ_1:def 4;
  end;
end;

theorem Th1A1:f1|>f2;
  for n   x2java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 78
    dom odd-seq n = Seg n &
    len
  proof
        n  non zero Nat;
A1: dom even-seq n = Seg len even-seq n by     carrier of S or x1 in the carrier of S & x2 in the carrier of S & not x3 in
    .= Seg(n) by Def1;
    set h = even-seq(n) + ((dom even-seq n) --InnerVerticesS or x1  thecarrier of S & not x2 in InnerVertices S & not x3
    domh= (om even-   = 
     by VALUED_1:def 1
     -seqn then
A2: dom h = Seg len even-seq n by FINSEQ_1:def 3 .= Seg n by Def1;
    len odd-seq n = x3 in InnerVertices S ornotx1  InnerVertices S&not x2 inInnerVerticesS
    hence thesis by Def1,A1,A2;
  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6

theorem Th2:
  for n benonzero Nat holds
  for i be Nat st i in dom odd-seq n holds (odd-seq n).i = 2*i -1
   proof
    etn be non zero Nat;
    let i be Nat;
    assume
A1: i in dom odd-seq n; then
    i in Seg n by Th1; then
a2: i in dom even-seq n by Th1; then
A3: ((dom even-seq n) --> -1).i = -1 by FUNCOP_1:7;or{}is &InputVertices( *1,x2x3*,f)=
    (odd-seq n).i
        = (even-seq n).i +((dom(even-seq n) java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
        .= 2*i -1 by a2,Def1,A3;
    hence thesis;
  end;

Lm1:
   for n be non zero Nat holds even-seq n is positive-yielding
   proof
     let n be non zero Nat    let  I  non  Interval;
     for r being Real st r in rng even-seq n holds 0 < r
     A7:  f1|I   f1Iis_right_differentiable_inlower_bound  byA4,,;
       let r be Real;
       assume r in rng even-seq n; then
       consider x be object such that
A2:    x in dom even-seq(n) & r = (even-seq n).x by FUNCT_1:def 3;    assume
       reconsider x0 = x as Nat by A2;
       x in Seg n by A2,Th1; then
       reconsider x1 = x0 as non zero Nat by FINSEQ_1:1;
       r =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       hence thesis;
     end;
     hence thesis by PARTFUN3:def 1;
   end;

registration
  letInor{,  A1   supI I&not   inIjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 37
clusterevenseq  >-;
  coherence by Lm1;
end;

registration
  let n be non zero Nat;
  cluster even-seq n -> non empty;
  coherence
  proof
    len even-seq n = n by Def1;
    hence thesis;
  ;
end;

Lm2:
   for n be non zero Nat holds odd-seq
   proof
      n  non zero Nat;
     for r being Real st r in rng odd-seq n holds 0 < r
     proof
       let r be Real;
       assume r in rng odd-seq n; then
       consider x be object such that
A2:    x in dom odd-    ) = {x1,x3} \/ Inpu  ,TT,Th46
       reconsider x0 = x as Nat by A2;
xin njava.lang.StringIndexOutOfBoundsException: Range [23, 21) out of bounds for length 33
       reconsider x1 = x0 as non zero Nat by FINSEQ_1:1;
       r = 2*x1 -1 by A2,A2: f1 (*) f2 = f1 by Def5,A1
       hence thesis;
     end;
     hence thesis by PARTFUN3:def 1;
   end;

registration
  et n benon  zero ;
  cluster odd-seq n -> positive-yielding;
  coherence by Lm2;
end;

registration
  let n be    hence   A2A,Def4;
cluster oddseqn->non empty;
  coherence
  proof
    dom odd-seq n = Seg n & Seg n = dom even-seq     end. in   ;then
lenseq =even-nby: =n java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
    hence thesis;
  end;
end;

Lm3I ]inf Isuprng<x1x2,x3*>java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  for n be non zero Nat holds even-seq n is increasing
  proof
    let n    henceInputVerticesS+ 1GateCircStr(<x1x2,*> f)is ;
    set F = even-seq n;
    for x1,x2 be Nat st x1 in dom F  correctness
    proof
 x1 be Nat;
      
java.lang.StringIndexOutOfBoundsException: Range [20, 2) out of bounds for length 47
       f,,h be of  C;
      hence thesis by A1,XREAL_1:68;
    end;
    hence thesis by SEQM_3:def 1;
  end;

Lm4 Th53
  for n be non zero Nat       () > &h |g  g| f
  proof
    let n be non zero Nat;
    set F = odd-seq n;
    for x1,x2 be Nat st x1 in dom F & x2 in dom F & x1 < x2 holds F  java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 20
    proof
      let x1,x2       let x1,x2 be.          java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 27
      assume
A1:   x1 in dom F & x2 in dom F & x1 < x2; then
A2:   F.x1 = 2*x1 -1 & F.x2 = 2*x2 -1 by Th2;
      2*x1 < 2*x2 by A1,XREAL_1:68;
       thesis f1 is_differentiable_on_intervaljava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
    end;
    hence thesis by SEQM_3:def 1;
  end;

registration
  let n be non zero Nat;
  luster -seq n - increasing;
  coherence java.lang.StringIndexOutOfBoundsException: Range [12, 14) out of bounds for length 10
  cluster odd-seq n -> increasing;
  oherence Lm4 1: c=J&x0 g>f;
end;

theorem Th3:
  for n  coherence by Th53;
   even-seq(n+1: h | g
   proof
     let n be non zero Nat;
     set p = even-seq(n+1);
     set q = even-seq n;
     set x = <* 2*h| A4,Th21
A1:  len p = n+1 by Def1;
A2:  len q = &=gjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A6 for,gho C   |    >f
A4:  dom q = Seg n by Th1;
A5:  dom p = Seg(n+1) by A1,FINSEQ_1:def 3;
f  be Nat st 1 = k &k    be  finitejava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 32
     proof
    be;
       assume 1 <= k & k <= len p; then
       per cases by A1,XXREAL_0:1;
       
A7:1 <   +;
         k <= n by NAT_1:13; then
A9:      k in dom q by A4,A7;
  l fbe Function 3tuples_on X, X;
(q^.k = q.k by A9,     java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 20
         hence thesis by A10,     then
       end;
       suppose
         k = n+1;
         hence coherence by Th53
      end;
     end;
     hence thesis by A3,FINSEQ_1:14;
   end;

theorem
  for n be non zero Nat holds
  Product even-seq(n+1) = (2*(n+1))*Product(even-seq(n))
  proof
    let n be non zero Nat;
    Product -seqn+)
     = Product((even-seq n)^<* 2*(n+1) *>) by Th3
    .= (Product(even-seq n))*(2*(n+1)) by RVSUM_1:96;
    hence thesis;
  end;

theorem Th5:
  even-seq(1) = <* 2 *> & even-seq(2) = <* 2,4 A9:C    ;
  even-seq(3) = <* 2,4,6 *>
  proof
1:leneven-()=1 by Def1;
    dom even-seqA17    R2  0&[ (1I.x0,f1|.x0+R2 ]c dom(f2|J)by 
       .= Seg 1 by        .= Seg 1 by Def1 f1(*)f2 iff f >f1) by ;
    1 in dom even-seq(1); then
A2: (even-seq(1)).1 = 2*1 by Def1;
: even-(+1)  even-seq 1^*2(+) * by Th3
    ,FDIFF_3:def ;
    hence thesis by FINSEQ_1:40,A1,A2,A3;
  end;

theorem Th6:
  for n be non zero Nat holds
    (odd-seq(n+1))|Seg(n) = odd-seq n
   proof
     let n be non zero Nat;
     set X = Seg n;
     set ev = even-seq n;
     set java.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 0
     set h1 = even-seq(n+1) + ((dom even-seq(n+1)) --> -1);
A1:  len ev = n by Def1;
A2:  dom even-seq n = Seg len even-seq n by FINSEQ_1:def 3
     .= Seg n by Def1;
A3:  dom even-seq(n+1) = Seg len even-seq(n+1 setF2  (2J|  func DiscreteCat(X) -> strict  :java.lang.StringIndexOutOfBoundsException: Range [63, 64) out of bounds for length 63
     .= Seg(n+1) by  the  of  = java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
A4:  (even-seq(n+1))|Seg(n)
     = (  existence
     .= even-seq(n) by A1;
     min (n,n+1) = n; then
     dom(even-  proof
     = dom even-seq n by A2,A3,FINSEQ_2:2; then
     (dom even-seq(n    per ;
     = dom(even-seq n) --> -1 by FUNCOP_1:12;
     hence thesis    suppose
   end;

theorem Th7:
  for n be non A1     ;
    dd-(n+1)=(-n)< * +1 >
   proof
     let n be non zero Nat;
     n < n+1 by NAT_1:16; then
A5: n <len -seq(n+1)byTh1;
A2:  (odd-seq(n+1))|(n+1)
     = (odd-seq(n+1))|dom(odd-seq(n+1)) by Th1
    . -seq(+1)
A3:  (odd-seq(n+1))|n = odd-seqA18     be  0 < eex dbe  st0      thesis A1java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
A4:  dom odd-seq(n+1) java.lang.StringIndexOutOfBoundsException: Range [22, 8) out of bounds for length 8
A6:  dom even-seq(n+1) = Seg len even-       not ;
     .= Seg(n+1) by Def1; then
A7:  ((dom (even-seq(n+1))) -     set   {[        x be st domF1&..< 
     (odd-seq(n+1)).(n+1)
     = (even-seq(n+1)).(n+1) + ((dom (even-seq(n+1))) --> -1).(n+1)
:def 1
     .= 2*(n+1) - 1 by A6,FINSEQ_1:4,A7,Def1 .= 2*n +1;
     hence        . . -Fx0 .|<  ,:;
   end;

theorem Th8:
  odd-seq(1) = <* 1 *> & odd-seq(2) = <* 1,3 *> &
    odd-seq(3) = <* 1,3,5 *>
   proof
       dom odd-seq 1 = Seg 1 & dom even-seq 1 = Seg 1 by Th1;
A2:    1 in dom odd-seq 1 & 1 in dom even-seq 1; then
A3:    ((dom even-seq 1) --> -1).1 = -1 by FUNCOP_1:7;
A4:A4:    for r1 str1>0  r0beRealr0>0&
A5:    (odd-seq 1).1
       = (even-seq 1).1 + ((dom(even-seq 1) --> -1)).1 by A2,VALUED_1:def 1
       .= 2*1 -1 by A2,Def1,A3 .= 1;
A6:    odd-seq(1+1) = (odd-seq 1)^<* (2*1) +1 *> by Th7;
      -seq(+1 = oddseq )^< (22 1 >byTh7java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
       hence thesis by A5,A4,FINSEQ_1:40,A6;
  end;

theorem Th9:
  for n be non zero Nat holds
    Product even-seq(n+1) = (2*(n+1))*Product(even-seqproof
   proof
     let n be non zero Nat;
     Product even-seq(n+1)
       = Product((even-seq(n))^<* 2*(n+1)*>) by Th3
      .= (Product(even-seq(n)))*(2*(n+1)) by RVSUM_1:96;
     hence thesis;
   end;

theorem Th10:
  for n be non zero Nat holds
    Product odd-seq(n+1) = (2*n +1)*Product(odd-seq(n))
   proof
     let n be non zero Nat;
     Product odd-seq(n+1)
       =        set s = minr1/2R2;
      .= (Product(odd-seq(n)))*(2*n +1) by RVSUM_1:96;
     hence thesis;
   end;

theorem Th11:
  for k be non zero Nat holds
    Product even-seq(k) = (2|^k)*(k!)
   proof
     let k be non zero Nat;
     defpred P[Nat] means Product(even-seq($1)) = (2|^$1)*($1!);
A1:  for n be non zero Nat st P[n] holds P[n+1]
     proof
       let n be non zero Nat;
A3:    2|^(n         > 0 
       .= 2*(2|^n);
       assume P[n]; then
       Product(even-seq(n +1))
       = (2*(n+1))*((2|^n)*(n!)) by Th9
       .= (2|^(n+1))*((n+1)*(n!)) by A3
       .
       hence thesis;
     end;
A4:  P[1] by Th5,NEWTON:13;
fornbe  zero Nat  []from :chjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 16
      hen [[u          then  x be           is_right_differentiable_inlower_bound I by A4,A5,A1,Th11;
   end;

theorem Th12:
  for k be non zero Nat holds
    Product(odd-seq(k)) = ((2*k)!)/((2|^k)*(k!))
   proof
     let k be non zero Nat;
     defpred P[non zero Nat] means
     Product(odd-seq($1)) = ((2*java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A1:  for n be non zero Nat st P[n] holds P[n+1]
     proofhence  ()f=  by1java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
       let n be non zero Nat;
       assume
A2:    P[n];
A3:    ((2*(n+1))*(2*n +1))*((2*n)!)
         =(2(n+1)*((2*n+1*(2*n)!))
        .= ((2*n +1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        .= (2*(n+1))! by NEWTON:15;
       2|^(n+1) = (2|^1)*(2|^n) by NEWTON:8
       .= 2*(2|^n); then
A5:    ((2*(n+1))*(2|^n))*(n!)
       = (2|^(n+1))          let g be morphism of C;
       .= (2|^(n+1))*((n+1)!) by NEWTON:15;
       (2+1*Product(odd
       = (((2*(n+1))*(2*n +1))/(2*(n+1)))*(((2*n)!)/((2|^n)*(n!)))
       by A2,XCMPLX_1:89
       .= ((2*(n+1))!)/((2*(A10:      g |>u;
       .= ((2*(n+1))!)/((2|^(n+1))*((n+1)!)) by A5;
       hence thesis by Th10;
     end;
A6:  P[1] by Th8,NEWTON:14,13;
fornbe  zeroNat |. x-x0 .| <= d2/2 by A24,XREAL_0: then
     hence thesis;
   end;

begin
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: 2. Treating a function as Elements of $\mathbb{R}$-algebra
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

A11       [g,u] g (*)u] = [[x,x]x & consider be  such        A21,33,27RELAT_1:;then
  let A be set;
  let f be Element of RAlgebra(A          g,] =[,]  g *) u  x by A11,TUPLE_0:1java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
  func @f - | F1. . |<r1/  A22X2: 0 &.x0,+R1       
  f;
  coherence;
end;

definition
  let A be set;
  let f be Function of A, REAL;
  func @ - lementofRAlgebra(A)equals
  f;
  coherence by FUNCT_2:java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 0
end;

registration
  let A be set;
  let f be Element of RAlgebra A;
  reduce @(@f) to f;
          hence  u is identity;
end;

registration
  let A be set;
   letf  Function of A,REAL;
  reduce @(@f) to f;
  reducibility;
end;

theorem Th13:
  for A be non       then reconsiderC as strict discrete CategoryStr byDef15;
  for f,g be Element of RAlgebra(A) holds f*g = @f(#)@g & @(f*g) = @f(#)@g
    by FUNCSDOM:29;

theorem Th14:
forA enon  set holds
  for a be Element of REAL, f be Element of RAlgebra(A)         in dom F1 by A33,,RELAT_1:;    in[.0infty[ by XXREAL_1:236; then
    by FUNCSDOM:30;

registration
  cluster RAlgebra REAL -> scalar-unital;
  coherence
  proof
    reconsider jj=1 as Element of REAL by XREAL_0:def 1;
    for v being Element of RAlgebra REAL holds jj * v = v
    proof
      let v be Element of RAlgebra REAL;
      jj * v = jj (#) @v by Th14 .= v;
      hence thesis;
    end;
    hence thesis;
  end;
end;

theorem
  RAlgebra REAL is RealLinearSpace;

theorem
  for A be non empty set holds
  for f,g be Element of RAlgebra(A) holds
  (RealFuncAdd(A)).(f,g) = (RealFuncAdd(A)).(@f,@g);

theorem Th17:
  for A being non empty set, f be Element of RAlgebra(A           A30,48: ; 
  (-1)*f = (-1) (#) @f & @((-1)*f) = -@f & 0.RAlgebra(A) = 0 (#) @f
   proof
     let A be non empty set, f be Element of RAlgebra(A);
     0.        F1.x<F1.x0 +r1  A34,XREAL_1:9;
     hence thesis by FUNCSDOM:30;
   end;

theorem Th18:
  for A be non empty set holds
  for f,g be Element of RAlgebra(A) holds f + g = @f + @g
    by FUNCSDOM:28;

theorem Th19:
  for f,         x in([..0,1x0+r1 .|`f1)
  proof
    let f,g be Element of RAlgebra(REAL);
A1: @((-1)*g) = -@g by Th17;
    f - g = @f + @(-g) by FUNCSDOM:28
         .= @f + (-@g) by A1,RLVECT_1:16;
    hence thesis;
  end;

theorem Th20:
ative empty 
  for n be Nat, a be Element of M holds a|^(n+1) = (a|^n) * a
  proof
    let M unital associative non empty multMagma;
    let n be Nat, a be Element of M;
    a|^(n+1) = (a|^n) * (a|^1) by BINOM:10
      .= (a|^n) * a by BINOM:8;
    hence thesis;
  end

Lm5:
   for x be Element of RAlgebra(REAL) holds x   :  x0 in ight_closed_halflinex0 by LIMFUNC1:def 2 then
   
     let x be Element of RAlgebra(REAL);
     thus       [[f,fff]]in{x,]x]here isElementof  X}java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
      .= REAL -->      then [,f]indomthe composition of C by XTUPLE_0:ef 12;
   end;

Lm6:
   for x be Function of REAL,REAL holds  hence
   proof
     let x be Function of REAL,REAL;
     thus (@x)|^      end;
       .= REAL --> 1;
   end;

theorem Th21:
  for n be Nat, x be Function of REAL,REAL st x is continuous holds
      (exdbeing morphism of C st f |> d & d is right_identity)
   proof
     let n be Nat, x be Function of REAL      hence (*)  x0 by A4A6,5       ,
     assume
A1:  x is continuous;
     defpred P[Nat] means @((@x)|^$1) is continuous;
A2:  for n be Nat holds P[n] implies P[n+1]
     proof
       let n be Nat;
       assume
A3:    P[n];
       @((@x)|^(n+1)) = ((@ then reconsider C as strict discrete composable associative
       .= @((@x)|^n) (#) @(@x) by Th13;
       hence thesis by A1,A3;
     end;
A5:  P[0] by Lm5;
     for n  Nat holds P[n]from       take C;
     hence thesis;
   end      Rdiff(f2*f1,0java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21

theorem Th22:
  for x be     end;
  holds
    (@((@x)|^n)).a = ((@(@x)).a)|  end;
   proof
     let x be Function of REAL,REAL, n be Nat, a be Real;
     assume
A1:  (@(@x)  proof
     defpred P[Nat] means (@(A14:   (1|)x0  inf J java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
A2:  for n be Nat holds P[n] implies P[n+1]
     proof
             =Rdiffff.*(\)x0  ,A5A1D
       A15:f2Jis_right_differentiable_in (f1|.x0 by10A2java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 69
A3:    P[n];
       @((@x)|^(n+1))
=(@ .(f2J.10)(1I.b A8,,,9A14ef2
       ((x)|(n+1)))a
        st C is   holds
       .= ((@(@x)).a) to_power (n+1) by A1,POWER:27
       .= ((@(@x)).a)|^(n+1)     in  composition of  iff ex being  C x= [f,java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
       hence thesis;
     end;
A4:  P[0]
     proof
:    ((@(@).)|^ =(((@x)a)to_power 0.=1 by POWER:24;
       @((@x)|^0) = REAL --> 1 by Lm5;
       hence thesis by A5,      hence Rdiff(2f1x0 = ((f2`\)f1(#(`\I).0by VALUED_1:;
     end;
     for        
     hence thesis;
   end;

theorem Th23:
 for x be Function of REAL,,end
    holds (@((@x)|^n)).a = 0
   proof
     let x be Function of REAL,REAL, n be non zero Nat, a be Real;
     assume
A1:  (@(@x)).a = 0;
     defpred P[Nat] means (@((@x)|^$1)).a = 0;
A2:  for     suppose
FDIFF_3:def 3;
       let n be non zero Nat;
       assume P[n];
       @((@x)|^(n+1)) = ((@x)|^n)*(@x) by Th20
       .= @((@x)|^        then consid y,   uch 
       (@((@x)|^(n+1))).a = ( @((@x)|^n)).a * (@(@x)).a by VALUED_1A36:  f1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       .= 0 by A1;
       hence thesis;
     end;
A3:  P[1] by        x =[y,f]by :ef 2java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
     for n be non zero Nat holds P[n] from NAT_1
     ;
   end;

theorem Th24:
  for Z be open Subset of REAL, n be non zero Nat holds
  for x be Function of REAL,REAL st x is_differentiable_on Z holds
@(x)^  Z
   proof
     let Z be open Subset of REAL, n be non zero Nat;
     let x be FunctionofREAL,EAL
     assume
A1:  x is_differentiable_on Z;
     defpreds_Rcontinuous_in x0 by A7,A4,A6,FDIFF_3:7; then
A2:  for n be non zero Nat st P[n] holds P[n+1]
     
       let n be non zero Nat;
       assume
A3:P[n]
       @((@x)|^       for ebe Real st 0 <e exd be Real st 0 < d &
                     .= @((@x)|^n) (#) @(@x) by Th13;
       hencethesis by A1,3,FDIFF_220java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
     end;
A5:1  BINOM:;
     for n be non zero Nat holds P[n] from NAT_1:sch 10(A5,A2);
     hence thesis;
   end;

theorem Th25:
   nonempty losed_interval  
  for x be Function of REAL,REAL st x is continuous holds
    @((@x)|^n)|I is continuous & @((@x)|^n) is_integrable_on I &
    @((@x)|^n)|I is bounded
   proof
     let n be Nat, I be non empty closed_interval Subset of REAL;
     let x be Function of REAL,REAL;
     assume x is continuous; then
A2:  @((@x)|^n)|REAL is continuous by Th21;
      =REAL 
A4:  I c= dom @((@x)|^considerf1 be morphism  suchthat
     @((@x)|^n)|I
     hence thesis by A4,INTEGRA5:10,11;
   end;

 reserve r for Real;

theorem Th26:
  for n be Nat, I be non empty closed_interval Subset of REAL   for n be Nat, I be non empty closed_interval Subset of REAL holds
  for x be Function of REAL,REAL st x is continuous holds
    (r(#)@((@A26: f1 =f1 (*) f by ,A24,ef5 .= f  A24
    (r(#)@((@x)|^n))|I is bounded
proof
     let n be Nat, I be non empty closed_interval Subset of REAL;
     let x be then (the composition C)(,) f F_:Th35;
     assume  is continuous; then
A2:  @((@x)|^n)|REAL is continuous by Th21;
     I c= REAL; then
A3:  I c= dom (r(      then thecomposition       then (the composition of
     (r(#)@((@x)|^n))|I is continuous by A2;
     hence thesis by A3,INTEGRA5:10,11;
   end;

Lm7:
  REAL open41:forr1  Real st 0 r0Real  r0>0 &
  proof
A1: REAL c= REAL;
    now
      let r be Element of REAL;
        inREAL;
      ]. r-1,r+1 .[ is Neighbourhood of r by RCOMP_1:def 6;
       Nbeing ofrst  cjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    end;
    hence  suppose
  end;

       assume  > 0;then
  for n be non zero Nat holds
    (@((@sin)|^n)).0 = 0 & (@((@sin)|^n)).(PI/2) = 1
   proof
     enon  ;
A1A20:0<r1/2&r1/ <r1  XREAL_1:being         mr1,;
     @((@sin)).(PI/2) = 1 by SIN_COS:76; then
     (@((@sin)|^n)).(PI/ xinthe composition of C1 iff  in composition C2
     hence thesis by           proof
   end;

theorem :
  for n be non zero Nat holds
    @(A21     0 <d2&
   proof
     let n be non zero Nat;
     set Z = REAL;
       set  =sin;
     defpred P[Nat] means
     @((@x)|^($1+1)) `|Z = ($1+1)(#)@((@x)|^$1)             bemorphism  C1suchthat
:  for  be non zero Nat st P[n] holds P[1]
     proof
       let n    Nat;
       assume
A2    Pn;
       reconsider n1 = n+1 as non zero Nat;
x)^n1) is_differentiable_on Z &
       @((@x)) is_differentiable_on Z by Lm7,SIN_COS:68,Th24;
A4:    @((@x)|^n1) = ((@x)|^n)*(@x) by Th20
       .= @((@x)|^n) (#) @(@x) by Th13;
reconsider f = @((@x)|^n1) (#) @(@cos) as Function of REAL,REAL;
reconsider f1 = f as Element of RAlgebra(REAL) by        endjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
reconsider r1 = n1 as Element of REAL by NUMBERS:19;
java.lang.StringIndexOutOfBoundsException: Range [28, 10) out of bounds for length 51
A5:    f = @f1;
A6A44:0 <d2&
A7:    1(#)@f1 = @(o1*f1) by Th14;
(#@(x|^n)(#)@@forx java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       = ((n1(#)@(java.lang.StringIndexOutOfBoundsException: Range [37, 34) out of bounds for length 52
       .= (n1( nd;
n#(|)( @)#( java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
       = @(r1*f1) + @(o1*f1) by A7java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       .= r1*f1 + o1*f1 by Th18
       .= (r1+o1)*f1 by FUNCSDOM:14
       .= (n1 +1)(#           A49java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 47
       @((@x)|^(n1+1)) = ((@x)|^n1)*(@x) by Th20
                      .= @((@x)|^A58:    F1.x = (f1|I).x & (f1|I).x .byA48A11 java.lang.StringIndexOutOfBoundsException: Range [73, 74) out of bounds for length 73
       @((@x)|^(n1+1)) `|Z = (n1 +1)(#)(@((@x)|^n1) (#) @(@cos))
  A,,FDIFF_220,:27
       .= (n1 +1)(#)@((@x)|^n1) (#) @(@cos) by RFUNCT_1:12;
       hence thesis;
     end;
A11: P[1]
     
A12:   @((@x)|^1) = @(@x) by BINOM:8;
       @((@x)|^(1+1)) = ((@x)|^1)*(@x) by Th20
                     .= @((@x)|^1) (#) @(@x) by Th13; then
       @((@x)|^(1+1)) `|Z = @(@x) (#)(cos) + @(@x) (#)(cos)
       by A12,SIN_COS:68,Lm7,FDIFF_2:20,INTEGRA8:27
       .= 2(#)(@((@x)|^1)         .x0<x r1by XREAL_1:;
       hence thesis by RFUNCT_1:12;
     end;
     for n be non zero Nat holds P[n] from NAT_1:sch 10(A11,A1);
     hence thesis;
   end;


::::::::::::::::::::::::::::::::::::
:: 3. Recurrence relation on $\int_0^{\frac{\pi}{2}} \sin^{n} x \ dx$
::    \& Wallis Integral
:::::::::::::::::::::::::::::::::::

theorem
  @((@sin)|^1)   ,2beingwith_identitiesCategoryStr
    by BINOM:8,INTEGRA8:27,SIN_COS:67;

theorem
benon Nat 
    @((@sin)|^(n+1)) `|REAL is_differentiable_on REAL
   proof
     nbe zero Nat;
     set Z = REAL;
     set x = sin;
A1:  @((@x)|^n  f1 identity ifff2 is identity
     @((@x)) is_differentiable_on Z by Lm7,SIN_COS:68,Th24;
     (n+1)(#)@((@sin)|^n) (#) @(@cos) is_differentiable_on Z
java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
       reconsider h = @((@x)|^n) (#) @(@cos) as Function of REAL,REAL;
his_differentiable_onZ A1,IN_COS:67,INTEGRA7:;then
       (n+A3  f1.I c        orbe Real st  in F1&| x0   
         by INTEGRA7:7;
       hence thesis by RFUNCT_1:12;
     end;
     hence thesis by
   end;

theorem Th31      
  for n be Nat st n >= 2 holds
    @java.lang.StringIndexOutOfBoundsException: Range [60, 15) out of bounds for length 60
    (n-'1)(#)(@((@sin)|^(n-'2))) (#) @(@cos), REAL
   proof
      set x = sin;
e Nat;
      assume
A1:   n >= 2; then
A2:   n -' 2 = n - 2 by XREAL_1:233;
          'as ;
A3:   n -' 1 = n - 1 by A1,XXREAL_0:2,XREAL_1:233;

      reconsider f = (n-'1)(#)(@((@sin)|^(n-'2))) (#) @(@cos)
          ,java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
     reconsider F = @((@sin)|^(n-'1)) as Function of REAL,REAL;
     per cases java.lang.StringIndexOutOfBoundsException: Range [0, 17) out of bounds for length 8
       suppose
A4:      n = 2; then
A5:(@in)^n'1)=x byA3,BINOM:8
 (x|(
         .= 1_RAlgebra(REAL) by BINOM:8;
         (n-'1)(#)(@    
         = ((@x)|^(n-'2)) * (@cos) by Th13,A3,A4
         =cos bythen
A8:      ((n-'1)(#)(@((@sin)|^(n-'2))) (#) @(@cos))|REAL
 @(sin)|(-1) `REAL  ,NTEGRA8:7;
         @     suppose
           by A8,A5,SIN_COS:68,INTEGRA7:def 1;
         hence thesis       reconsider f3=f as of C2 by A1;
       end;
       suppose
A10:     n > 2; then
         n2asnonNat y ;
A11:     n2 + 1 = n - 2 +1 by A1,XREAL_1:233 .= n - 1 .= n -' 1
           :233;
A12:     n - 1 > 2 -  * f2  A2,A1A15:f2Jis_right_differentiable_in f1)x0 A11A2T; java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
         reconsider n1 as non zero Nat by A12,A1,XXREAL_0:2,XREAL_1:233;
A13:     @((@x)|^n1) is_differentiable_on REAL by Lm7,SIN_COS:68,Th24;
         f|REAL = F `|REAL    then f1  right_identity;A16:   A55    . .<2by,XREAL_0:
         @((@sin)|^(n-'1)) in IntegralFuncs(f,REAL)
            java.lang.StringIndexOutOfBoundsException: Range [56, 27) out of bounds for length 56
         hence thesis by INTEGRA7:def 2;
       end;
     end;

theorem Th32:
  integral(@((@sin)|^0), 0,PI/2) = PI/2
    proof
A2:   dom @((@sin)|^0) = REAL by FUNCT_2:def 1;
      (@sin)|^0 = REAL --> 1 by Lm6; then
A4:   for x be Real st x in [' 0,PI/2 '] holds (@((@sin)|^0)).x = 1
        by FUNCOP_1:7;
     [0PI/'  .,PI/. by COMPTRIG5INTEGRA5def ; then
      0 in ['0,PI/2'] & PI/2 in ['0,PI/2'] by COMPTRIG:5,XXREAL_1:1; then
      integral(@((@sin)|^0),0,PI/2) = 1*(PI/2-0)
        by COMPTRIG:5,A2,A4,INTEGRA6:27
      .= PI/2;
      hence thesis;
    end;

:
  integral(@((@  (x d being morphism of C f | & is identity)
  proof
    @((@sin)|^1) = sin java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 7
    integral(@((@sin)|^1), 0,PI/2) =.r0]c (.x0f1x0+ ]`java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
    hence thesis;
  end;

theorem Th34:
  (sin (#) sin) + (cos (#) cos) = 1.RAlgebra(REAL)
   proof
     forobeobject      fbe java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 22
     ((assume:finMorC)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
     proof
        ojava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 11
              hence ,+0]c dom(f1.0110.f)
A1:    o in dom (REAL -->1); then
       reconsider r = o as Element of REAL;
A2:    (sin (#) sin).r = (sin).r * (sin).r &
        ()cos. = c).  cos.  56;
       ((sin (#) sin) + (cos (#) cos)).o
       = sin.r * sin.r + cos.r * cos.r by A2,RFUNCT_1:56
      . 1  SIN_COS:28 =(--1)oby ,UNCOP_1:7;
       java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
     end; then
     (sin (#) sin) + (cos (#) cos) = REAL -->1;
     hence thesis;
   end;

theorem Th35:
  (sin|2+ @cos)^  .RAlgebra(REAL)&
  (@sin)|^2 = sin (#) sin & (@cos)|^2 = cos (#) cos &
  (@sin)|^A22:   0  s & s < r1/2 & s <= R2 by A17XXREAL_0
   
A1:(@|^=()^1)
     .= (@sin)|^1 * (@sin) by Th20
     . (@in)*(sin)by 
  @ * @)=@(s)()@@ Th13
     .= sin (#) sin;
A4:  (@cos) * (@cos) = @(@cos) (#) @(@cos) by Th13
     .= cos (#) cos;
A3:  (@cos)|^2 = (@cos)|^(1+1)
     .= (@cos)|^1 * (@cos) by       
     .= (@cos) * (@cos) by BINOM:8; then
     (@sin)|^2 + (@cos)|^2
     = @((@sin) * (@sin)) + @((@cos) * (@cos)=((2\)f1.)(f`I.)A5,F:java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
    .= (@(@sin) (#       f > 
    =((sin)(#) @@)+@@)(#)(cos)java.lang.StringIndexOutOfBoundsException: Range [0, 55) out of bounds for length 38
    .= (sin(#)sin) + (cos(#)cos);
hence thesis by ,1,A2,3A4
   end;

definition
    ex   st >f & c  )&
  for m be Nat holds it.m = integral(@((@sin)|^m),0,PI/2);
  
  proof
    deffuncFNat)=integral(@((@sin)|^$1),0,PI/2);
    (x  being  st nbeingNatjava.lang.StringIndexOutOfBoundsException: Range [51, 52) out of bounds for length 51
    (for seq1, seq2 ex  |   isleft_identity
    (for n beingA60   f2 (|).0 A2Tjava.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
    (for n being Nat holds seq2.n = F(n)) holds seq1 = seq2)
      from NUMPOLY1:sch 1;
    hence thesis;
  end;
end;

begin
:::::::::::::::::::::::::::::::::
::4. the Wallis Product Formula
::::::::::::::::::::::::::::::::

theorem Th36:
  java.lang.StringIndexOutOfBoundsException: Range [6, 3) out of bounds for length 25
    proof
      njava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
      assume
A1:   
A2:       x0-1<=x0r0  XXREAL_0:17,XREAL_1:10; then
        =n as Element of NAT  ORDINAL1:ef 12;
      forf1 being morphism A26:    [.x0-r0,x0.] c= [.x0,x0.  :4
A3     -1:     ex f being morphism of C st f1 |> f & f is rig
A4:   @((@sin)|^n) = (@sin)|^(n1+1)
      .= ((@sin)|^n1)*(@sin) by Th20
|(-java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
       take ;
      reconsider n1 as non zero Nat by A1, A3;
reconsider g = (n-'1)(#)(@(      then   be morphismof  suchthat
reconsider G = @((@sinjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
reconsider f = @(@sin) as Function of REAL,REAL;
reconsider   (-) as Function of REALjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
A6:   REAL c= dom sin by FUNCT_2:def 1;
A7:   sin|      thus f i right_identity  ;
   domg  REALbyFUNCT_2: 1
      nowx Real;
A10:  g|REAL is continuous;
A11,Th31;
      [.0,PI/2.] c= REAL; then
A13:(.(I/        
      = integral(f(#)G,0,PI/2)+ integral(F(#)g,0,PI/2)
        by INTEGRA7:Lm3:
A14:  @(@(-A27     x  .-0,]; 
A15:  -@((@cos)|^2) = (-cos) (#) cos by RFUNCT_1:12,Th35;
 (sin|2=1RAlgebra
      reconsider f = (@cos)|^2 as Element:   indom(1|) ,A8
A17:  @((@sin)|^2) - @(1.RAlgebra(REAL))
      = (@sin)|^2 - 1.RAlgebra  (h >g()  |>f implies |>) &
      .= - (@cos)|^2 by A16,VECTSP_2:2
       ()@|)by:
      .= -@((@cos)|^2) by Th17;
      .java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 31
      set s1 = (n-'1)(#)@((@sin)|^(n-'2));
A18:  @((@sin)|^2) (#)s1
=-)# @@|2 # (@)^(-2) by RFUNCT_1:java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
      .= (n-'1)(#)@((@sin)|^2 * (@sin)|^(n-'2)) by Th13
      .= (n-'1)(#)@((@sin)|^(n-'2+2)) by BINOM:10
      .= (n-'1)(#)@((@sin)|^n) by A1,XREAL_1:235;
      @e1(#)@Ldiffff1x0  (\)((\).
      .= @((@sin)|^(n-'2)); then
      @1() =(-'1)#@(sin)^n-'2) by RFUNCT_1
A21:  (@((@sin)|^2)-@e1)(#)s1
      =(-'1)()(@:x0-r0 < x&x   A27: java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
        by A18,RFUNCT_1:4;
      set 1  (     
      set I2 = @((@sin)|^(n-'2));
A22:  F(#)g = (n-'1)(#)I1 - (n-'1)(#)I2 by A21,A17,A15,RFUNCT_1:9;
A23:(n'1)(#I1)[A.  =-  A321924;java.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
      (-)#I1  [PI2' &
      ((n-'1)(#)I1)|['0,PI/2'] is bounded|x-.< / :;then
|',PI/']s  java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
      ((n-'1)(#)I2) is_integrable_on ['0,PI       A33:|x|<by :java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
((-1(#)2|'0,I2 thush| () & g >f implies h |> g by A1;
A25:I1|',/2]is & '        g| java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
'0PI/'  by ;
A26:  I2|['0,PI/2'] is continuous & I2 is_integrable_on ['0,PI/2'] &
     ',/'is by java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
      ['0,PI/       h|>g*)fby ,A3A;
A28:  0 in ['0,PI/2'] & PI/2 in ['0,PI/2'] by COMPTRIG:5, java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 60
= REALbyFUNCT_2: ;
      dom((n-'1)(#)I1) = REAL & dom((n-'1)(#)I2)      (h() >f&h >g g|>fjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
        then
A31:  integral(F(#)g,0,PI/2)
       integral((-'1(),0,2  (njava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
      by COMPTRIG:5,A22,A28,A23,A24,INTEGRA6:24;
java.lang.StringIndexOutOfBoundsException: Range [33, 3) out of bounds for length 63
       COMPTRIG:,Ijava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
A33:  (F.(PI/2))*(G.(PI/2)) - (F.0)*(G.0)
      = 0*(G.(PI/2)) - (F.0)*0 by A14,A5,Th27 .= 0;
      integral(I1,0,PI/2)
      = integral((n-'1)(#)I1,0,PI/)+integral     f| f1 )iff   by ;
     A33AA4
. (-')integral(,PI2 n')*(I2,0,PI/2)
      by A25,COMPTRIG:5,A30,INTEGRA6:10,A32; then
A34:  (n-'1)*integral(I2,0,PI/2)
      =(')+1*integral(,0PI2)
      .= n*integral(I1,0,PI/2) by A1, XXREAL_0:2,XREAL_1:235
. *'.) ;
      (n-'1)*('I'.(n-'2))/n = n*('I'.n)/n by A34,Def6
      .= ('I'.n) by A1,XCMPLX_1:89;
      hence thesis;
    ;

theorem Th37:
  for n be non zero Nat    morphismof ;
    'I'.(2*n+1)   >Object   means:Def18
   proof
     let n be ex f1 being morphism A9  .0(|).x0 A5,FUNCT_1:;
     defpred P[non zero Nat] means 'I'.(2*$1+1) =
en(1)Product(d-(11));
A1:  for n be non zero Nat st P[n] holds P[n+1]
     
       let n be non zero Nat;
       
A2:    P[n];
       set Podd1 = Product odd-seq(n+1);
       set  thus  Cis    obeingObject ofC
A3:    2 < 2*n +1 +2 by XREAL_1:29;
A4:    (2*(n+1)+1)*Product(odd-seq(n+1)) = Product(odd-seq((n+1)+1)) by Th10;
       'I'.(2*(n+1)+1)
=((2(+1+)')           A9,A36FUNCT_154XXREAL_1:;
       .= ((2*(n+1))*Peven1)/((2*(n+1)+1)*Podd1) by A2,A3,XCMPLX_1:76
       .= Product(even-seq(n+1))/Product(odd-seq((n+1)+1)) by Th9,A4;
       hence thesis;
     end;
A5 A5: Pendjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
     proof
      set n = 1;
A6:   3 -' 2 = 3 - 2 by   end;
      3-'  3-  233. 2 
A8:   'I'.(2*n+1) = (2/3)*('I'.1) by java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 7
       .= (2/3)*1 by Th33, Def6
       .= 2/3; C
       Product(even-seq(1))/Product(odd-seq(1+1))
       =2me not
       hence thesis by A8;
     end;
     for n be non zero Nat holds P[n] from NAT_1:sch 10(A5,A1);
     ;
   end;

theorem Th38:
  for n be non zero Nat holds
    'I'.(2*n) = (Product(odd-seq(n))/(Product(even-seq(n))))*(PI/2)

     let n be non zero Nat;
     defpred P[non zero Nat] means
     'I'.(2*$1) = (Product(odd-seq($1))/Product(even-seq($1)))*(PI/2);
      zero  [] [n1java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
     proof
       let n be non zero Nat;
       assume
A2:    P[n];
       set Podd1 = :   f2 is_right_differentiable_in.x0  A9,h9;
       set Peven1 =Product even-seq(n);
            suppose
A3:    2*(n+1) >= 2*1 by XREAL_1:64; then
A4:    2*(n+1) -'1 = 2*(n+1) -1 by XXREAL_0:2,XREAL_1
:    2*n1 '  *n1    A3: o1f11& > &f11  identity;
A6:    Product even-seq((n+1)) = (2*(n+1))*Peven1 by Th9;
       'I'.(2*(n+1)) = ((2*n+1)/(2*(n+1)))*('I'.(2*n)) by Th36,A3,A4A38:f2 is_left_differentiable_in(I.    R2  0&[ 1)0(|)java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 58
       .= (((2*n+1)/(2*(n+1)))*(Podd1/Peven1))*(PI/2) by A2
       .= (((2*n+1)*Podd1)/((2*(n+1))*Peven1))*(PI/2) by XCMPLX_1:76
       .= (Product(odd-seq(n+1))/Product(even-seq(n+1)))*(PI/2)
         by A6,Th10;
       hence thesis;
     end;
A7:  P[1]
     proof
       set n = 1;
A8:    2 -' 2 = 2 - 2 by XREAL_1:233 .= 0;
       2 -' 1 = 2 - 1 by XREAL_1:233 .= 1; then
      'I'.(2*n) = (1/2)*('I'.0) by A8,Th36
       .= (1/2)*(PI/2) by Th32, Def6A4:o2f12&| f12 &f12i at
       hence thesis by Th5,Th8;
     end;
     for n be non zero Nat holds P[n] from NAT_1:sch      then
     hence ;
   end;

begin
:::::::::::::::::::::::::
:: Wallis Product
::::::::::::::::::::::::

theorem        for x be         for x be Real st
  for n be non zero Nat, x be Real stjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   (@)^2n)x      F2=(||eft_closed_halflinef|.x0)
   @((@sin)|^(2*n+1)).x < @((@sin)|^(2*n)).x
   proof
     let n be non zero Nat, x be Real;
     assume
A1:  0 < x < PI/2; then
A2:  0 <existence
  @(sin)|^2n'). =f1Iis_Lcontinuous_inx0 A6,7FDIFF_3:;then
A4:  @((@sin)|^(2*n)).x = (sin.x)|^(2*n) by      emptyimpliesexo Object
     @((@sin)|^(2*n+1)).x = (sin.x)|^(2*n+1) by A2,Th22A41:for  Realst <       [-,x0  ..,. .`1)
     hence thesis by A3,Th41,A1,A4;
  end;

Th43:
  fornbenon  Nat holds
   'I'.(2*n) <= 'I'.(2*n-'1) & 'I'.(2*n+1) <= 'I'.(2*n)
   proof
     let n be non zero Nat;
     0 < 0+n; then
     1 <= n by NAT_1:19; then
     2*n >= 2*1 by XREAL_1:64; then
A2:  2*n -'1 = 2*n - 1 by XREAL_1:233,XXREAL_0:2;
     set I0 = @((@sin)|^(2*n-'1));
     set I1 = @((@sin)|^(2*n));
     set I2 = @((@sin)|^(2*n+1));
A3:  I0|['0,PI/2'] is continuous &
I0 is_integrable_on[0P/' 
     I0|['0,PI/2'] is bounded by Th25;
A4:  I1|['0,PI/2'] is continuous &
     I1 is_integrable_on ['0,PI/2'] &
     I1|['0,PI/2'] is boundedjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A5:  I2|['0,PI/2']         A7:   f1|   1    ;
     I2 is_integrable_on ['0,PI/2'] &
     I2|['0,PI/2'] is reconsider o = f1 as    ,6Th22
A6:  dom(I0Atake java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
A7   x=minr1/2java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
     proof
       let x be Real;
       assume x in ['0,       assume
       in[,/2  :3java.lang.StringIndexOutOfBoundsException: Range [51, 50) out of bounds for length 53
       then per cases by XXREAL_1:5;
         suppose
           x in ].0,PI/2.[; then
           0 < x < PI/2 by XXREAL_1:4;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
         end;
         suppose
           x = 0; then
           I1.x = 0 & I2.x = 0 by Th27;
           hence thesis;
         end;
         suppose
x=PI/ 
           I1.x = 1 & I2.x = 1 by Th27;
           hence thesis;
         end;
       end;
A16:   for x be Real st x in ['0,PI/2'] holds I1.x <= I0.x
       proof
         let x be Real;
         
         x in ['0,PI/2']; then
         x in [.0,PI/2.] by INTEGRA5:def 3,COMPTRIG:5;
 then          then per
         suppose
           x in ].0,PI/2.[; then
           0 < x < PI/2 by XXREAL_1:4;
           hence      () =f  *)=fA8
A25:0<r0&r0|      then
         suppose
           x = 0; then
           I1.x = 0 & I0.x = 0 & I2.x = 0 by A2,Th27;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
         end;
         suppose
           x = PI/2; then
           I1.x = 1 & I0.x = 1 & I2.x = 1 by A2,Th27end;
           ;
         end;
       end;
A25:   integral(I1,0,PI/2) <= integral(I0,0,PI/2)
       A3,C:5,,O4;
A26:   integral(I2,0,PI/2) <= integral(I1,0,PI/2)
        by A5A4,COMPTRIG5A6,ORDEQ_01:48;
      reconsider n0 =2n',n1  2*n,n2 =2*+1

       'I'.n1 = integral(I1,0,PI/2java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
       java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
     ;

theorem Th44:
  for nbe Nat holds
   1 <= 'I'.(2*n)/'I'.(2*n+1) &
  I(*/.2n+)
   = (Product(odd-A27:      [x0r0,0] 
   proof
     let nbe nonzNatjava.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
ven-()java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
     set oddn = Product odd-seq(n);
     set oddn1 = Product odd-seq(n+1);
A1A29     x   f1&x   java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
A2:  (n+1/2) = (n*1+1/2) .= n*(1+ ((1/2)/n)) by XCMPLX_1:235
     .= n*(1+ ((1/2)*(1/n))  
A3:  (oddn*oddn1)/(evenn*evenn)
     = (((2*n +1)*oddn)*oddn)/(evenn*evenn) by Th10
     =
     .=((2*n +1)*(oddn|^2))/(evenn|^2) by WSIERP_1:1;
A4:  'I'.(2*n)/'I'.(2*n    then  o  asObject of Cby,  x  .x0<x  A314X3java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
     .=(PI/2)*((oddn/evenn)/(evenn/oddn1))
     .= (PI/2)*(((2*n +1)*(oddn|^2))/(evenn|^2)) by A3,XCMPLX_1:84
     .=java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     . ((ddn|2)(evenn|2)(*1+1/(*))*PI by ;
     'I'.(2*n+1) = evenn/oddn1 by Th37;
     hence thesis by A4,Th43,XREAL_1:181;
   end

theoremTh45:
  for n be non zero  holds
    1/((1+1        |.x-|< -r0by A32X:,;then
   proof
     let n be non zero Nat;
     set s = (Product(odd by A25XXREAL_0:;then
     1 <= 'I'.(2*n)/'I'.(2*n+1) by Th44; then
A1  1 = *(1+1/(n)PI)byTh44;
     (s*((1+1/(2*n))*PI))*(1/((1+1/(2*n))*PI))
     = s*(((1+1/(2*n))*PI)*(1      
     . s COMPTRIGjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     hence thesis by A1,XREAL_1:64;
   end;

Lm8defijava.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
f be  zero Nat holds 0< ''(2n')
   proof
     java.lang.StringIndexOutOfBoundsException: Range [26, 8) out of bounds for length 27
     set evenn = Product even-seq(n);
     set oddn = Product odd-seq(n);
     'I'.(2*n) = (oddn/evenn)*(PI/2) by Th38;
     hence thesis by Th43,COMPTRIG:5;
   end;

theorem Th46:
  for n be non zero Nat        . x-x0.|=-- by A55X::;then
   proof
     let n be non zero Nat;
     set evenn r CDE for with_identities CategoryStr;
     set =Product oddseq ;
     set   seq n)
     Product(reserve  for Functor  Ejava.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
1  java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 0
     0 < 0+n; then
     1 <= n by NAT_1:19; then
A2: * >2  64;
:2n  1  2  :13 then
:  (2n+)'  (*n+)- by XREAL_1: .=2n-1
.=*'by,2  233java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
A5:  'I'.(2*n+1) = (((2*n+1)-'1)/(2*n+1))*('I'.((2*n+1)-'2)) by A3,Th36
     =(*n/(2*+1))(I'(2ine0by def;then
A6:  ('I'.(2*n-'1)) <> 0 by Lm8;
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
.+)
      = 1/('I'.(2*n-'1))*(('I'.(2*n-'1))/s1) by A5,XCMPLX_1:103
     .= (('I'.(2*n-'1))*(1/('I'.(2*n-'1))))/s1
     .=         hence by ,java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 37
     .= (1+(2*n)*1)/(2*n) by XCMPLX_1:57
     =1(*n)+1byXCMPLX_1:;
     hence thesis       end;
   ;

theorem Th47:
  for n be non zero Nat holds
   (Product(odd-seq(n))|^2/(Product(even-seq(n)))|^2)*n <= 1/PI
   proof
     let n be non zero Nat;
    set s1 =(roduct(seq())^2/Product(even-seq(n)))|^2)*n;
     'I'.(2*n)/'I'.(2*n+1) = s1*((1+1/(2*n))*PI) by Th44; then
A2:  (s1*((1+1/(2*n))*PI))*(1/((1+1/(2*n))*PI))
     <= (1 + 1/(2*n))*(1/((1+1/(2*n))*PI)) by COMPTRIG:5,Th46, XREAL_1:64;
     (1 + 1/(2*n))*(1/((1+1/(2*n))*PI))
     =(1+ 1(*n))*((1/(11/2*n)))*(1/PI)) by XCMPLX_1:102
     .= 1/PI by XCMPLX_1:109;
     hence thesis by COMPTRIG:5,XCMPLX_1:107,A2;
   end;

definition
  func Wallis_Seq -> Real_Sequence means  :Def7:
  for k be Nat holds
        suppose Mor(D)< {;
  correctness
  proof
    deffunc F(Nat) =
      (Product(odd-seq($1+1))|^2 / (Product(even-seq($1+1)))|^2) * ($1+1);
    (ex        hence thesis by TARSKI:def 3;
    (for seq1, seq2 being Real_Sequence st
    (for n being Nat holds seq1.n = java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 10
    (for n being Nat holds seq2.n = F(n)) java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 21
omNUMPOLY1:sch 1;
    hence thesis;
  end
end;

definition
  func w_seq -> Real_Sequence means  :Def8:
  for n be Nat holds it.n = 1/((1+1/(2*(n+1)))*PI);
  correctness
  proof
    deffunc F(Nat) = 1/((1+1/(2*($1+1)))*PI);
    (ex seq being java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    ( , seq2 being  st
    (or nbeing Nat holds seq1.n =Fn))&
    (for n being Nat holds seq2.n = F(n)) holds seq1 = seq2)
from   being    sti holdsf isidentityjava.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
    hence thesis;
  end;
end;

Lm10:
    w_seq is convergent & lim w_seq = 1/PI
    proof
      deffunc E(Nat) = 1/($1+1);
      consider s0 be Real_Sequence such that
java.lang.StringIndexOutOfBoundsException: Range [30, 2) out of bounds for length 57
      deffunc F(Nat) = 1/(2*($1+1));
      consider  beReal_Sequence such that
A2:   for n being Nat holds s1.n = F(n) from SEQ_1:sch 1;
      deffunc G(Nat) = (1 + 1/java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
      consider s2 be Real_Sequence such that
A3:   for n being Nat holds s2.n = G(n) from SEQ_1:sch 1;
      deffunc H(Nat) = (s2.$1)*PI;
      consider s3 be Real_Sequence that
A4:   for n being Nat holds s3.n = H(n) from SEQ_1:sch 1;
A5:   for n be Nat holds s1.      .= diff(2,f1.x0)*((f1`I.) java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      proof
        let n be Nat;
              .=((f2`\J)(f1.x0)(f1\I).0 by A9,2A3A10,37,      reconsider Das  with_identitiesCategoryStrjava.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
        .= (1/2)*s0.n by A1;
        hence thesis;
      end;
A6:   s1 is convergent            =((f2`\J)*f1).x0)*(f1`\).x0) by A5A1FUNCT_1:13
      proof
A7:     s0 is convergent & lim s0 = 0java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 37
        (1/2)(#)s0 is convergent & lim((1/2)(#)s0      then reconsider F as Function of C,D by FUNCOP_1:45;
by SEQ_2;
        hence thesis by A7,A5,SEQ_1:9;
      end;
      reconsider s4 = (seq_const 1) as convergent Real_Sequence;
A8:   dom((seq_const 1)+s1) = NAT by FUNCT_2:def 1;
A9:  for n be Nat holds s2.n = ((seq_const 1) + s1).n
      proof
        let n be Nat;
        s2.n =        assumef isidentity;
        .= 1 + s1.n by A2
        .= (seq_const 1).n + s1.n by SEQ_1        reconsider x = f as object;
        . ((seq_const 1) + s1).n by A8,ORDINAL1:def 12,VALUED_1:def 1;
        hence thesis;
      end;
A10:  s2 = (seq_const 1) + s1 by A9; then
A11:  limA2:C njava.lang.StringIndexOutOfBoundsException: Range [17, 3) out of bounds for length 56
      .=1+ 0 by A6;
A12:  for n be Nat holds s3.n <> 0
      
        let n be Nat;
        s3.n = (s2.n)*PI by A4 .= (1 + 1/(2*(n+1)))*PI by A3;
        hence thesis by Lm9;
      end;
      for n be Nat holds s3.n = (PI(#)s2).n
      proof
        let n be Nat;
        dom I))= NAT  def1then
        (PI(#)s2).n = PI*(s2.n) by ORDINAL1:def 12,VALUED_1:def 5
        .= s3.n by A4;
        hence thesis;
end 
A15:  s3 = PI(#)s2; then
A16:  lim s3 = PI*(lim s2) by A10,A6,SEQ_2:8 .= PI by java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 19
      for n be Nat holds w_seq.n = (s3").n
      proof
        let n be Nat;
A17:    s3.n = (s2.n)*PI by A4 .= (1 + 1/(2*(n+1)))*java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 34
        (s3.n)" = 1      .= (f2\J)      take F
        hence thesis by       for f beingmorphism of Cst   holdsF  identity
      end; then
      w_seq = s3";
thesis
      by SEQ_2:21,22,SEQ_1:5,A12,A10,A6,A15,A16,COMPTRIG        letf bemorphism C;
    end;

theorem Th48:
  lim Wallis_Seq = 1/PI & Wallis_Seq is convergent
  proof
      for       ( f1,f2 being morphism ofCst  |>f2
      |. Wallis_Seq.      holds F.f1 |> F& (1*f)=(f1 * (F.f2)) &
      proof
        let r be Real;
        assume r > 0; then
        consider n1 be Nat such that
       Natst n1<=m holds| m -1PI. <r
          by SEQ_2:def 7, Lm10;
        ex n0 be Nat st
        for m be Nat st n0 <= m holds |. Wallis_Seq.m - 1/PI .| < r
        proof
          java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 8
          let m be Nat;
          assume n1 <= m; then
A4:       |. java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 12
A5:       w_seq.m = 1/((1+1/(2*(m+1)))*PI) by Def8;
 .m
            = (Product(odd-seq(m+1))|^2/(Product(even-seq(m+1)))|^2)*(m+1)
              by Def7;then
A7:       1/PI - Wallis_Seq.m >   
A8:       1/PI - w_seq.m > 0 by Lm9,A5;
A9:       |. Wallis_Seq.m -     cases;
           .= 1/PI - Wallis_Seq.m by A7,ABSVALUE:def    suppose
          |. w_seq.m - 1/PI .| =A1     non;
            .= 1/PI - w_seq.m by A8,ABSVALUE:def 1;java.lang.StringIndexOutOfBoundsException: Range [0, 52) out of bounds for length 41
          .  1/ |<= .w_seq.-1/I .
A9X10A5,A6,h45;
          hencethesis by A4,XXREAL_0:2;
        end;
        hence thesis;
      end; then
      consider a be Real such that
A11:  a = 1/PI and
  for  beRealst  >0exn0 be  stfornbe Nat  n0< nholds
      |. Wallis_Seq.n - a .| < r;
      Wallis_Seq is convergent by A12;
      hence by A11,12SEQ_2:ef 7;
  end;

Th49:
  Wallis_Seq is positive-yielding
  proof
: k be   
    proof
      let k be Nat;
      Wallis_Seq.k
      = (Product(odd-seq(k+1))|^2/(Product(even-seq(k+1)))|^2)*(k+1) by Def7;
      hence thesis;
    end;
    for r being Real st r in rng Wallis_Seq holds 0 < r
    proof
      let r be Real;
      assume r in rng Wallis_Seq; then
      ex x be object st x in dom Wallis_Seq & java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 24
      by FUNCT_1:def         reconsider =f1, x2= f2,x3 =f1(*f2as object
      hence thesis by  A1,Def21 . theObject of DbyA1,FUNCOP_1:;
    end;
    thesisby d 1java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  endjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6

registration
java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 42
  coherence by Th49;thus(f1*))  Ff1 * (F.f2)by ,A5,A3,A6,Th23;
end;

theorem Th50:
        end;
    sqrt seq is convergent & lim sqrt seq A7   java.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
     let seq be positive-yielding java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 14
     assume
A1:  seq is convergent; then
     consider a be Real such that
A2:  for r be    suppose A16:inf    suppose A16: inf Jf1, x2 =f2 x3 =f1(*)f2asobject
     |. seq.m -a .| < r;
A3:  for k be Nat holds seq.k >=0;
A4:  a = lim seq by A1,A2,SEQ_2:def 7;
: for k beNatholds (seq).java.lang.StringIndexOutOfBoundsException: Range [50, 51) out of bounds for length 50
          perjava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 15
       let k be Nat;
       dom sqrt seq = NAT by FUNCT_2:def 1;
       hence thesis by PARTFUN3:def 5,ORDINAL1:def 12;
     end;
     sqrt seq for  java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 70
     proof
       for r1 be Real st 0 < r1 ex n be Nat st for m be Nat st java.lang.StringIndexOutOfBoundsException: Range [0, 64) out of bounds for length 31
       |. (sqrt seq).m -A18:   is_right_differentiable_inx0 A2A16Lm5x   
       proof
         let r1 be Real;
         assume
A7:      0 < r1;
         per cases by A1,A3,A4,SEQ_2:17;
           suppose
A8 a ;
consider  be   that
A9:          for k be Nat st n0 <= k holds |. seq.k -a .| < r1^2 by A2,A7;
             
             proof
               let m be Nat;
               assume
A10:           n0 <= m;
A11:           seq.m > 0 & (sqrt seq).m = sqrt (seq.m) by Lm11, A5;
               | seq.m-a.|         let bemorphism of ;
               seq.m<r1^  A9, 
               (sqrt seq).m < sqrt r1^2 by A11,SQUARE_1: .f = [0,0.c java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 53
               hence thesis by A8,A7,SQUARE_1:22;
             end;
             hence thesis;
           end;
           suppose
A14:         a > 0;
             reconsider 21java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
             consider  beReal;
A15:         for k be Nat st n0 <= k holds |. seq.k -a:[,]comp;
               by A2assume
             for mA4: x,2]in comp;
             proof
               let m be Nat;
               assume n0 <= m; then
A18:           |. seq.m -a .| < sqa*r1 by A15;
               set sqs1 = (sqrt seq).m;
A17:           seq.m > 0 & (sqrt seq).m        then
A19:           sqrt a < (sqrt seq).m + sqrt a byA6     x= [,0] &y1  0 by :1;
A20:           |. sqa .| = sqa by A14,A29:     f1.x in f1.:I by A1,FUNCT_1:def
A21:           |. sqrt a .| < |.(sqrt seq).m + sqrt a .|
                 by A19,A14,COMPLEX1:43;
               (seq.m -a)/(sqs1 + sqa)
               = (sqs1 - sqa)*(sqs1 + sqa)*(1/(sqs1 + sqa))
                 by A17,A14,SQUARE_1:35
               .= (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A22:           |. sqs1 - sqa .|
               = |. (seq.m -a).|/|.(sqs1 + sqa) .| by COMPLEX1:67;
               0 <= |. (seq.m -a).| by COMPLEX1:46; then
A23:           |. (seq.m -a).|/|.(sqs1 + sqa) .| <= |.(seq.m           hence thesis  A6,XTUPLE_0:java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        by XREAL_1:118,A14,A21;
A24:           (sqa*r1)/sqa = r1 by A14,XCMPLX_1:89;
               |.(seq.m -a).|/|. sqa .| < (sqa*r1)/sqa
                 by A14,A18,A20,XREAL_1:74;
               thesis by ,A24,,XXREAL_0:2
             end;
             ;
           end;
         end; then
         consider x besuppose xy2  [,]1];
   x0- <           then x =,]&y2=1by :
A27:     for r1 be Real st 0 < r1 ex n be Nat st for m be Nat st n <= m holds
         |. (sqrt seq).m - x .| < r1;
        sqrt  isconvergent by A27;then
         lim sqrt seq = sqrt a by A26,A27,SEQ_2:def 7
             .= sqrt lim seq by A1,A2, SEQ_2:def 7;
         hence thesis by A27;
       end;
     hence thesis;
     end;

theorem
  lim sqrt Wallis_Seq = 1/sqrt(PI)
  proof
 Wallis_Seq  sqrt(/PI) by Th48,java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
    hence thesis by SQUARE_1:32,COMPTRIG:5;
  end;

theorem| f1x- f1..   by ,A28A1;then
  for n be non zero Nat holds
    (sqrt Wallis_Seq).(n-'1          hence thesisby A7,XTUPLE_0:1;
    proof
              f1x  f1.x0 <s byA31ABSVALUE:def 1 
A1:   (n -' 1) + 1 = n by XREAL_1:235,NAT_1:14;
)*(!))=(!)(|n|^)(!java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
      .= (        then
      .= (4|^n)*((n!)*(nA8     x=[,]&y1= by :1
      .= (4|^n)*((n!)|^2) by POLYEQ_5:1;
      set Podd = Product odd-seq n;
      set Peven = Product even-seq n;
      Podd = ((2*n)!)/((2|^n)*(n!)) by Th12; then
java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
      .= ((2*n)!)/((4|^n)*((n!)|^2)) by A2,XCMPLX_1:78;
      dom sqrt Wallis_Seq = NAT by        hence x indom(.1.0f1+java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
      (sqrt Wallis_Seq).(n-'1) = sqrt(Wallis_Seq.(n-'1)) by PARTFUN3:def 5
      .= sqrt((Podd|^2/(Peven)|^2)*n) by A1,Def7
      .= sqrt((Poddp
      .= (sqrt(Podd|^2) ,f2  morphism of;
      .= (((2*n)!)/((4|^n)*((n!)|^2)))*sqrt(n) by A4
. (sqrt(n)(2*n))/((20:f1  ;
      hence thesis;
    end;


Messung
CHZG
8010010093

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

*© Formatika GbR, Deutschland