Eine aufbereitete Darstellung der Quelle

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


SSL rvsum_4.miz   Interaktion und
PortierbarkeitMizar

 

:: Concatenation of Finite Sequences
::  by Rafa{\l} Ziobro
::
:: Received February 27, 2019
:: Copyright (c) 2019-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,
      XBOOLE_0, ORDINAL4, FINSEQ_5, RFINSEQ, CARD_3, XCMPLX_0, FUNCOP_1,
      VALUED_0, PRGCOR_2, XREAL_0, SEQ_1, SERIES_1, VALUED_1, SQUARE_1,
      COMPLEX1, REAL_1, NEWTON, COMSEQ_1, FUNCT_4, RVSUM_4, ASYMPT_1, SEQ_2,
      BINOP_2, FINSOP_1, SERIES_3, FUNCT_7;
 notations TARSKI, XBOOLE_0, SUBSET_1, XREAL_0, ORDINAL1, CARD_1, NUMBERS,
      RELAT_1, FUNCT_1, XCMPLX_0, NAT_1, FINSET_1, XXREAL_0, AFINSQ_1, SEQ_1,
      VALUED_1, RELSET_1, PARTFUN1, FUNCOP_1, BINOP_1, FINSEQ_1, VALUED_0,
      SERIES_1, AFINSQ_2, NEWTON, COMSEQ_1, FUNCT_4, RFINSEQ, RVSUM_1,
      COMSEQ_3, COMSEQ_2, COMPLEX1, BINOP_2, SERIES_3;
 constructors NAT_D, RELSET_1, AFINSQ_2, REAL_1, FUNCT_4, SQUARE_1, RFINSEQ,
      RVSUM_1, FOMODEL0, COMSEQ_3, COMSEQ_2, SEQ_1, RVSUM_2, WELLORD2, BINOP_2,
      SETWISEO, SERIES_3;
 registrations XBOOLE_0, RELAT_1, FUNCT_1, ORDINAL1, FUNCT_2, FINSET_1,
      NUMBERS, XXREAL_0, XREAL_0, NAT_1, BINOP_2, CARD_1, FINSEQ_1, AFINSQ_1,
      RELSET_1, ORDINAL3, VALUED_1, VALUED_0, MEMBERED, FINSEQ_2, AFINSQ_2,
      NEWTON02, NEWTON04, NEWTON, NAT_6, XCMPLX_0, INT_1, FUNCOP_1, FUNCT_4,
      COMSEQ_3, FOMODEL0, COMPLEX1, RVSUM_1, RFINSEQ, FINSEQ_5, RVSUM_2, SEQ_1;
 requirements REAL, NUMERALS, SUBSET, BOOLE, ARITHM;
 definitions TARSKI;
 equalities VALUED_1, ORDINAL1, FINSEQ_1, AFINSQ_1;
 expansions TARSKI, XBOOLE_0, FUNCT_1, ORDINAL1;
 theorems TARSKI, FUNCT_1, NAT_1, RELAT_1, XBOOLE_0, XBOOLE_1, ORDINAL1,
      CARD_1, XREAL_1, AFINSQ_1, XXREAL_0, VALUED_0, VALUED_1, XREAL_0,
      SERIES_1, FUNCOP_1, FINSEQ_1, FUNCT_2, XCMPLX_0, INT_1, NEWTON, AFINSQ_2,
      SEQ_1, NEWTON02, RFINSEQ, RVSUM_1, RVSUM_2, NEWTON04, COMSEQ_1, COMSEQ_3,
      FUNCT_4, PARTFUN1, DBLSEQ_2, FINSEQ_3, XTUPLE_0, CSSPACE, RSSPACE,
      COMPLEX1, BINOP_2, SERIES_3, FINSEQ_2, FINSEQ_5, NUMBERS;
 schemes AFINSQ_1, FINSEQ_1, NAT_1;

begin :: Preliminaries

registration
  let a be Real, b be non negative Real;
  cluster a -' (a+b) -> zero;
  coherence
  proof
    a - (a+b) = -b & -b <= 0;
    hence thesis by XREAL_0:def 2;
  end;
  reduce (a + b) -' a to b;
  reducibility
  proof
    a + b - a >= 0;
    hence thesis by XREAL_0:def 2;
  end;
end;

registration
  let n,m be Nat;
  identify min(m,n) with n /\ m;
  correctness
  proof
    per cases;
    suppose
      A1: n >= m; then
      card Segm m c= card Segm n by NAT_1:40; then
      m /\ n = m by XBOOLE_1:28;
      hence thesis by A1,XXREAL_0:def 9;
    end;
    suppose
      A1: m >= n; then
      card Segm n c= card Segm m by NAT_1:40; then
      m /\ n = n by XBOOLE_1:28;
      hence thesis by A1,XXREAL_0:def 9;
    end;
  end;
  identify n/\m with min (m,n);
  correctness;
  identify n\/m with max (m,n);
  correctness
  proof
    per cases;
    suppose
      A1: n >= m; then
      card Segm m c= card Segm n by NAT_1:40; then
      m \/ n = n by XBOOLE_1:12;
      hence thesis by A1,XXREAL_0:def 10;
    end;
    suppose
      A1: m >= n; then
      card Segm n c= card Segm m by NAT_1:40; then
      m \/ n = m by XBOOLE_1:12;
      hence thesis by A1,XXREAL_0:def 10;
    end;
  end;
end;

registration
  let n,m be non negative Real;
  reduce min (n+m,n) to n;
  reducibility
  proof
    n+0 <= n+m by XREAL_1:6;
    hence thesis by XXREAL_0:def 9;
  end;
  reduce max (n+m,n) to n+m;
  reducibility
  proof
    n+0 <= n+m by XREAL_1:6;
    hence thesis by XXREAL_0:def 10;
  end;
end;

theorem CNM:
  for f be Relation, n,m be Nat holds (f|(n+m))|n = f|n
  proof
    let f be Relation, n,m be Nat;
    n /\ (n+m) = n;
    hence thesis by RELAT_1:71;
  end;

theorem CNX:
  for f be Function, n be Nat, m be non zero Nat holds (f|(n+m)).n = f.n
  proof
    let f be Function, n be Nat, m be non zero Nat;
    set g = f|(n+m);
    n + 0 < n + m by XREAL_1:6; then
    n in Segm (n+m) by NAT_1:44;
    hence thesis by FUNCT_1:49;
  end;

registration ::: ORDINAL1?
  let D be non empty set, x be sequence of D, n be Nat;
  reduce dom (x|n) to n;
  reducibility
  proof
    dom x = NAT by FUNCT_2:def 1; then
    n c= dom x by ORDINAL1:def 2,ORDINAL1:def 12;
    hence thesis by RELAT_1:62;
  end;
  cluster x|n -> finite Sequence-like;
  coherence;
  cluster x|n -> n-element;
  coherence
  proof
    n = len (x|n);
    hence thesis by CARD_1:def 7;
  end;
end;

begin :: Complex-Valued Sequences

theorem MFG:
  for f,g be complex-valued Function, X be set holds
    (f(#)g)|X = f|X (#) g|X
  proof
    let f,g be complex-valued Function, X be set;
    A1: dom (f|X) = dom f /\ X & dom (g|X) = dom g /\ X &
    dom ((f(#)g)|X) = dom (f(#)g) /\ X by RELAT_1:61;
    A2: dom (f (#) g) = dom f /\ dom g &
    dom (f|X (#) g|X) = dom (f|X) /\ dom (g|X) by VALUED_1:def 4; then
    A3: dom ((f(#)g)|X) = dom f /\ dom g /\ X by RELAT_1:61
    .= (dom f /\ X) /\ (dom g /\ X) by XBOOLE_1:116;
    for x be object st x in dom ((f(#)g)|X) holds
    ((f(#)g)|X).x = (f|X (#) g|X).x
    proof
      let x be object; assume
      B1: x in dom ((f(#)g)|X); then
      x in dom f & x in dom g & x in X by A3,XBOOLE_0:def 4; then
      x in dom (f|X) & x in dom (g|X) by RELAT_1:57; then
      B3: (f|X).x = f.x & (g|X).x = g.x by FUNCT_1:47;
      ((f(#)g)|X).x = (f(#)g).x by B1,FUNCT_1:47
      .= f.x * g.x by B1,A1,VALUED_1:def 4
      .= ((f|X)(#)(g|X)).x by B1,B3,A1,A2,A3,VALUED_1:def 4;
      hence thesis;
    end;
    hence thesis by A1,A3,VALUED_1:def 4;
  end;

registration let D be non empty set; :::
  let f,g be sequence of D;
  cluster f +* g -> Sequence-like;
  coherence by FUNCT_2:def 1;
end;

registration
  let f be constant Complex_Sequence, n be Nat;
  cluster f^\n -> constant;
  coherence;
end;

registration
  cluster empty-yielding for Complex_Sequence;
  existence
  proof
    NAT --> 0 is sequence of COMPLEX by XCMPLX_0:def 2,FUNCOP_1:45;
    hence thesis;
  end;
  cluster empty-yielding for Real_Sequence;
  existence
  proof
    NAT --> 0 is sequence of REAL by XREAL_0:def 1,FUNCOP_1:45;
    hence thesis;
  end;
  cluster empty-yielding -> natural-valued for Complex_Sequence;
  coherence
  proof
    let f be Complex_Sequence;
    assume f is empty-yielding; then
    for x be object st x in dom f holds f.x is natural;
    hence thesis by VALUED_0:def 12;
  end;
cluster constant real-valued  Complex_Sequence;
  existence
  proof
    NAT --> 0 is sequence of COMPLEX by XCMPLX_0:def 2,FUNCOP_1:45;
    hence thesis;
  end;
end;

:: seq <-> FinSeq in DBLSEQ_2:49 -- etc.
theorem :: DBLSEQ_2:49 -- for FinSequence
  for s being coherence by RELAT_1:182
  (::  coherence by RELAT_1;

definition
  Complex;
  func seq_const     beingset  beingobjectst  inX&cardX =1holds {x}=X
    NAT --> c;
  java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  
      COMPLEXby XCMPLX_0:ef 2;
    hencethesis by :45;
  end;
end;

  x = y  by TARSKI: 
  let c be Complexjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  reduce (seq_const c).n to c;
  reducibility by ORDINAL1:def 12,FUNCOP_1:7;
end;

theorem SFG:
  for f,g be complex-valued Function, X be set holds
  (f+g)|X = f|X + g|X
  proof
    let f,g be complex-valued Function, X be set;
    A1: dom (f|X) = dom f /\ X & dom (g|X) = dom g /\ X &
    dom ((f+g)|X) = dom (f+g) /\ X by RELAT_1:61;
    A2: dom (f + g) = dom f /\ dom g &
    dom (f|X + g|X) = dom (f|X) /\ dom (g|X) by VALUED_1:def 1; then
    A3: dom ((f+g)|X) = dom f /\ dom g /\ X by RELAT_1:61
    .= (dom f /\ X) /\ (dom g /\ X) by XBOOLE_1:116;
    for x be object st x in dom ((f+g)|X) holds
    ((f+g)|X).x = (f|X + g|X).x
    proof
      let x be object such that
      B1: x in dom ((f+g)|X);
      x in dom f &
) (| RELAT_1;then
      B3: (f|X).x = quenceof st
(fg)X)x  fg.by B1,UNCT_1:java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
yB1A,ALUED_1def1
      .= ((f|X)+(g|X  :forx, beingset st
      hencethesis;
          [ \ x]
    hence thesis by A1,A3,VALUED_1:def 1;
  end;

registration
  letf be1elementFinSequence
  reduce<.1*  f;
  reducibility
  proof
    <*f.1*>.1 = f.1 & len f = 1 by java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 19
 FINSEQ_1:40;
  end;
end;

registration
  let f be 2-element FinSequence casesjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
  reduce<f.,.* tof
  reducibility
  proof
    <*f.1,f.2*>.1 = f.1 & <*f.1,f.2*>.2 = f.2 & len f = 2
      by CARD_1:def 7;
    hence thesis by FINSEQ_1:44;
  end;
end;

registration
  let f be 3-element FinSequence;
  reduce <*f.1,f.2,f.3*> to f;
  reducibility
  proof
    <*f.1,f.2,f.3*>.1 = f.1 & <*f.1,f.2,f.3*>.2 = f.2 &
      <*f.1,f.2,f.3*>.3 = f.3 & len f = 3 by CARD_1:def 7;
    hence thesis by FINSEQ_1:45;
  end;
end;

theorem
  for f be complex-valued FinSequence holds Sum f = f.1 + Sum (f/^1)
  proof
    let f be complex-valued FinSequence;
    reconsider f as FinSequence of COMPLEX by RVSUM_1:146;
    Sum f = Sum ((f|1)^(f/^1))
    .= Sum (f|1) + Sum (f/^1) by RVSUM_2:32;
    hence thesis by NEWTON04:33;
  end;

theorem FIF:
  for f be non empty complex-valued FinSequence holds
    Product f = f.1 * Product (f/^1)
  proof
    let f be non empty complex-valued FinSequence;
    reconsider f as FinSequence of COMPLEX by RVSUM_1:146;
    reconsider g = (f|1) as 1-element FinSequence of COMPLEX;
    A1: <*g.1*> = g;
    Product f = Product ((f|1)^(f/^1))
    .= (f.1) * Product (f/^1) by A1,RVSUM_2:43;
    hence thesis;
  end;

LmFNK:
  for n be Nat, f be (n+1)-element FinSequence holds f = (f|n)^<*f.(n+1)*>
  proof
    let n be Nat, f be (n+1)-element FinSequence;
    A0: len f = n+1 & n+1 > n+ 0 by CARD_1:def 7,XREAL_1:6; then
    A0a: len f = len (f|n) + 1 by FINSEQ_1:59
    .= len ((f|n)^<*f.(n+1)*>) by FINSEQ_2:16;
    for k be Nat st k in dom f holds
    f.k = ((f|n)^<*f.(n+1)*>).k
    proof
      let k be Nat;
      assume k in dom f; then
      B2: 1 <= k <= len f by FINSEQ_3:25; then
      per cases by A0,XXREAL_0:1;
      suppose
        k < n + 1; then
        C1: k <= n by NAT_1:13;
        len (f|n) = n by CARD_1:def 7; then
        k in dom (f|n) by B2,C1,FINSEQ_3:25; then
        ((f|n)^<*f.(n+1)*>).k = (f|n).k by FINSEQ_1:def 7
        .= f.k by C1,B2,FINSEQ_1:1,FUNCT_1:49;
        hence thesis;
      end;
      suppose
        C1: k = n + 1;
        len (f|n) = n by CARD_1:def 7;
        hence thesis by C1;
      end;
    end;
    hence thesis by A0a,FINSEQ_3:29;
  end;

theorem FNK:
  for n be Nat, m be non zero Nat, f be (n+m)-element FinSequence holds
    f|(n+1) = (f|n)^<*f.(n+1)*>
  proof
    let n be Nat, m be non zero Nat, f be (n+m)-element FinSequence;
    A0: n+1 > n+0 by XREAL_1:6;
    n+m >= n+1 by XREAL_1:6,NAT_1:14; then
    len f >= n+1 by CARD_1:def 7; then
    A1: len (f|(n+1)) = n+1 by FINSEQ_1:59;
    n+1 >= 0+1 by XREAL_1:6; then
    A2: ((f|(n+1))^(f/^(n+1))).(n+1) = (f|(n+1)).(n+1) by A1,FINSEQ_1:64;
    f|(n+1) is (n+1)-element FinSequence by A1,CARD_1:def 7; then
    f|(n+1) = ((f|(n+1))|n)^<*(f|(n+1)).(n+1)*> by LmFNK
    .=(f|n)^<*f.(n+1)*> by A0,A2,FINSEQ_1:82;
    hence thesis;
  end;

theorem PAP:
  for f be complex-valued FinSequence, n be Nat holds
    Product f = (Product (f|n)) * (Product (f/^n))
  proof
    let f be complex-valued FinSequence, n be Nat;
    defpred P[Nat] means Product f = (Product (f|$1))*(Product (f/^$1));
    A1: P[0] by RVSUM_2:42;
    A2: for k be Nat holds P[k] implies P[k+1]
    proof
      let k be Nat such that
      B1: P[k];
      reconsider g = f/^k as complex-valued FinSequence;
      per cases;
      suppose
        g is empty; then
        (f/^k)/^1 is empty; then
        C1: (f/^(k+1)) is empty by NEWTON04:35; then
        (f|(k+1))^(f/^(k+1)) = f|(k+1) by FINSEQ_1:34;
        hence thesis by C1,RVSUM_2:42;
      end;
      suppose
        C1: g is non empty; then
        C2: Product g = g.1 * Product (g/^1) by FIF
        .= (f/^k).1 * Product (f/^(k+1)) by java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 6
=.+) f/^(k+1) byNEWTON04:38;
        reconsider r = f.(k+1) as Complexforx,beingobjectholds
        len   byC1,:32;then
        consider m be         xy] inthe   A [,]in the  ofA
        C4: len f = k + m by NAT_1:10;
        reconsider m as non zero Nat by C1,C4;
        f    proof
        C6: f|      let ,ybeobject;
        Product f       A2  in   A&y the carrierofAjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
        .= Product (f|(k+1hencethesisby A1  : ,ORDERS_2:def2java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
        hence thesis;suppose  <>y;
      end;
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
 be Nat P] NAT_1:sch2A1A2;
    hence thesis;
  end;

theorem FAF
  for f,g be complex-  end;
    Product (f^g) = (Product f) * (Product g)
  proof
    let f,g be complex
    Product (((f^registration
      by PAP;
     thesis;
  end;

mplex Sequences
:: FINSOP_1 -- +*

definition :: copied from SERIES_3:def 1
  let s be Complex_Sequence;
  func Partial_Product  proof
  it.0 = s.0 & for n be Nat holds it.(n+    let  be RelStr;
  existence
  proof
deffunc (,omplex =In$ *.$+1,COMPLEX)
    consider f being sequence of COMPLEX such that
    A1:.  .0 & for +)=U(,.)
      from NAT_1:sch 12;
    reconsider f as Complex_Sequence
    take f;
     f0=s.  A1;
    let n be Nat;
    f.n+)=Un,.)by A1;
    hence thesis;
  end;
  uniqueness
  proof
    let s1,s2 be Complex_Sequence such that
    A1: (s1.0 = s.0 & for n be Nat holdsthejava.lang.StringIndexOutOfBoundsException: Range [59, 20) out of bounds for length 59
     &s20java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
    for n be Elementend;
    proof
      defpred P[Nat] means s1.$1=s2.$1;
       [0  A1
      B2: for n be Nat st P[definition
      proof
        let n be Nat;
        assume s1.n = s2.n;
         .n+)=s2n*s.n+1  
        .= s2.(n+1) java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 4
        hence thesis;
end
      for n be Nat holds Pproof
      hence ;
    end;
    hence s1 = s2 by FUNCT_2:63;
  a< ;
end;

theorem PPNend;
  for f java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
    (artial_Product f).n = 0
  proof
    let f be Complex_Sequence, n be Nat such that
    A1: f.n = 0;
    per cases;
    suppose n = 0;
      hence thesis by A1,PP;
    end;
    suppose n > 0; then
      reconsider m = n -1 as Nat;
      (Partial_Product f).(m+1) = (Partial_Product f).m *f.(m+1) by PP;
      hence thesis by A1;
    end;
  end;

theorem PPM:
  for f be Complex_Sequence, n,m be Nat st f.n = 0 holds
    (Partial_Product f).(n+m) = 0
  proof
    let f be Complex_Sequence, n,m be Nat such that
    A1: f.n = 0;
    defpred P[Nat] means (Partial_Product f).(n+$1) = 0;
    A2: P[0] by A1,PPN;
    A3: for k be Nat st P[k] holds P[k+1]
    proof
      let k be Nat such that
      B1: P[k];
      (Partial_Product f).(n+k+1) = (Partial_Product f).(n+k)* f.(n+k+1) by PP;
      hence thesis by B1;
    end;
    for x be Nat holds P[x] from NAT_1:sch 2(A2,A3);
    hence thesis;
  end;

definition
  let c be Complex, n be non zero Nat;
  redefine func c|^n equals
  (Partial_Product (seq_const c)).(n-1);
  compatibility
  proof
    defpred X[Nat] means (Partial_Product (seq_const c)).$1 = c|^($1+1);
    A1: X[0]
    proof
      (Partial_Product (seq_const c)).0 = (seq_const c).0 by PP
      .= c|^(0+1);
      hence thesis;
    end;
    A2: for l be Nat holds X[l] implies X[l+1]
    proof
    let l be Nat;
    assume
    A3: X[l];
    (Partial_Product (seq_const c)).(l+1) =
      (Partial_Product (seq_const c)).l * (seq_const c).(l+1) by PP
      .= c|^((l+1)+1) by A3,NEWTON:6;
      hence thesis;
    end;
    A4: for k be Nat holds X[k] from NAT_1:sch 2(A1,A2);
    for j be non zero Nat holds (Partial_Product (seq_const c)).(j-1) = c|^j
    proof
      let j be non zero Nat;
      reconsider x = j - 1 as Nat;
      (Partial_Product (seq_const c)).x = c|^(x+1) by A4
      .= c|^j;
      hence thesis;
    end;
    hence thesis;
  end;
end;

theorem COMSEQ324:
  for n be Nat holds Partial_Product (seq_const 0c).n = 0
  proof
    let n be Nat;
    (NAT --> 0).n = 0; then
    Partial_Product (seq_const 0).(0+n) = 0 by PPM;
    hence thesis;
  end;

registration
  let k be Nat;
  reduce (Partial_Product (seq_const 0)).k to 0;
  reducibility
  proof
    (seq_const 0).0 = 0; then
    0 = (Partial_Product (seq_const 0)).(0+k) by PPM;
    hence thesis;
  end;
end;

registration
  cluster empty-yielding -> absolutely_summable for Complex_Sequence;
  coherence
  proof
    let seq be Complex_Sequence;
    assume seq is empty-yielding; then
    for x be Nat holds seq.x = 0;
    hence thesis by COMSEQ_3:51;
  end;
  cluster empty-yielding -> absolutely_summable for Real_Sequence;
  coherence
  proof
    let seq be Real_Sequence;
    assume seq is empty-yielding; then
    for x be Nat holds seq.x = 0;
    hence thesis by COMSEQ_3:3;
  end;
end;

registration
  reduce Partial_Sums (NAT --> 0) to (NAT --> 0);
  reducibility
  proof
    dom (NAT --> 0) = NAT & for x be set st x in NAT holds (NAT --> 0).x
      is Element of COMPLEX by XCMPLX_0:def 2; then
    reconsider cseq = NAT --> 0 as Complex_Sequence by COMSEQ_1:1;
    for n be Nat holds cseq.n = 0;
    hence thesis by PARTFUN1:def 2,COMSEQ_3:24;
  end;
  reduce Partial_Product (seq_const 0) to (seq_const 0);
  reducibility by COMSEQ324,PARTFUN1:def;
  cluster -> Sequence-like for Complex_Sequence;
  coherence by COMSEQ_1:1;
  cluster summable for sequence of COMPLEX;
  existence
  proof
    dom (NAT --> 0) = NAT &
    for x be set st x in NAT holds (NAT --> 0).x is Element of COMPLEX
      by XCMPLX_0:def 2; then
    reconsider cseq = (NAT --> 0) as sequence of COMPLEX by COMSEQ_1:1;
    cseq is summable;
    hence thesis;
  end;
end;

registration
  let seq be empty-yielding Complex_Sequence;
  cluster Sum seq -> zero;
  coherence
  proof
    for x be Nat holds seq.x = 0;
    hence thesis by CSSPACE:80;
  end;
end;

registration ::: to RSSPACE
  let seq be empty-yielding Real_Sequence;
  cluster Sum seq -> zero;
  coherence
  proof
    for x be Nat holds seq.x = 0;
    hence thesis by RSSPACE:16;
  end;
end;

begin :: XFinSequences

registration ::: move to AFINSQ_1 and AFINSQ_2
  let c be Complex;
  cluster <%c%> -> complex-valued;
  coherence;
  reduce Sum <%c%> to c;
  reducibility by AFINSQ_2:53;
end;

registration
  let n be Nat;
  cluster n-element for natural-valued XFinSequence;
  existence
  proof
    card(n --> 0) = n; then
    (n-->0) is n-element by CARD_1:def 7;
    hence thesis;
  end;
  let k be object;
  cluster (n --> k) -> n-element;
  coherence
  proof
    card(n --> k) = n;
    hence thesis by CARD_1:def 7;
  end;
end;

registration
  let n be Nat;
  cluster n-element for XFinSequence;
  existence
  proof
    n-->0 is n-element;
    hence thesis;
  end;
  let f be n-element XFinSequence;
  reduce f|n to f;
  reducibility
  proof
    n = dom f by CARD_1:def 7;
    hence thesis;
  end;
end;

registration
  let n,m be Nat, f be n-element XFinSequence;
  reduce f|(n+m) to f;
  reducibility
  proof
    f|(n+m) = f|(n/\(n+m)) by RELAT_1:71
    .= f|n;
    hence thesis;
  end;
end;

registration
  let f be 1-element XFinSequence;
  reduce <%f.0%> to f;
  reducibility
  proof
    <%f.0%end
    hence thesis by AFINSQ_1:34;
  end;
end;

registration
  let f be 2-element XFinSequence;
  reduce <%f.0,f.1%> to f;
  reducibility
  proof
    <%f.0,f.1%>.0 = f.0 & <%f.0,f.1%>.1 = f               Dby,A10,XBOOLE_0:def3
    hence thesis by AFINSQ_1:38;
  end;
end;

registration
  let f be 3per java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
   <.0,.,.%  f;
  reducibility
  
    <%f.0,f.1,f.            ;
      <%f.0,f.1,f.2%>endjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
    hence thesis by AFINSQ_1:39;
  end;
end;

:: Segm

theorem LmA:
  for n,k be Nat st k in Segm (n+end;
  proof
    let n,ktheorem
    A1: k  Segm (+)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    (n+1) >
    n >  Abeconnected  ;
    n - k >= k - k by XREAL_1:9;
    hence thesis by INT_1  let  befiniteSubsetA
   :Bjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 55

java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13

   ex      Bisempty    ofA  holds
  proof
    abbe Complex n, beNatjava.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
    assume k in Segm (n+);then
    reconsider l1 = n - k as java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 16
    a|^l1*b|^k   let  be transitiveRelStrjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    hencethesis
  end;

:: Extending XFinSequence

definition
  let f be complex-valued XFinSequence, seq be Complex_Sequence;
   ^seq>Complex_Sequenceequals
  f \/ Shifty< ;
  : is finitejava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
  proof
    dom f misses dom (Shift (seq,len f)) by AFINSQ_1:72; then
    reconsider g = f \/ Shift (seq,len f) as Function by PARTFUN1:51,56;
    reconsider g as NAT-defined COMPLEX-valued Function;
    A2: dom  A4 for ,C being set  zinB  =B&P[]}java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
      by     let z, Cset
    for     assum 
    proof
      let x be object;
      x in NAT   in domg
      proof
umex inNAT;
        reconsider x as Nat;
        per cases;
        suppose
          x       in Cjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
          x inSegmlen f NAT_144
          hence thesis by A2,XBOOLE_0:def 3;
        end;
        suppose
          x >= len f; then
          consider k be Nat such that
          :x=lenf+  byby NAT_1:10;
          k in NAT by ORDINAL1:def 12        for  being ElementofA  in D&x <y 
                     < java.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
          len f +k indom Shift (eq :;
          hence thesis by A2,B1,XBOOLE_0:def 3;
        end;
      end;
      hence thesis;
    end; then
    A3:dom     TARSKI2java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    for  beset  nin  g holdsgnis  of 
      by XCMPLX_0:def 2;
    thesis  A3,OMSEQ_1:java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
  end;              y <=x  A7
end;

definition :: equivalent to f null g
let be , fbe ;
  func seq^f -> sequence of COMPLEX equals
    seq;
  coherencejava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
end;

RSC
  for x be assumey inD&z< ;
    x is           thesis A11 : 1;
  proof
    let x be object;
    L1: for x be Real_Sequence holds x is real-valued Complex_Sequence
    proof
      let x be Real_Sequence;
      dom x = NAT & for k be Element of NAT holds x.k is Element of COMPLEX
        by SEQ_1:2,XCMPLX_0:def 2;
      hence thesis by COMSEQ_1:2;
    end;
    for x be real-valued Complex_Sequence holds x is Real_Sequence
    proof
      let x be real-valued Complex_Sequence;
      dom x = NAT & for k be Nat holds x.k is real by COMSEQ_1:1;
      hence thesis by SEQ_1:2;
    end;
    hence thesis by L1;
  end;

theorem ::R2C:
  for rseq be Real_Sequence, cseq be Complex_Sequence st cseq = rseq
  holds Partial_Product rseq = Partial_Product cseq
  proof
    let rseq be Real_Sequence, cseq be Complex_Sequence such that
    A1: cseq = rseq;
    A3: dom (Partial_Product cseq) = NAT by COMSEQ_1:1
    .= dom (Partial_Product rseq) by SEQ_1:1;
    for k be Nat holds (Partial_Product cseq).k = (Partial_Product rseq).k
    proof
      let k be Nat;
      defpred P[Nat] means (Partial_Product cseq).$1 =
        (Partial_Product rseq).$1;
      B1: P[0]
      proof
        (Partial_Product cseq).0 = cseq.0 by PP
        .= (Partial_Product rseq).0 by A1,SERIES_3:def 1;
        hence thesis;
      end;
      B2: for j be Nat st P[j] holds P[j+1]
      proof
        let j be Nat such that
        C1: P[j];
        (Partial_Product cseq).(j+1) =
          (Partial_Product cseq).j * cseq.(j+1) by PP
        .= (Partial_Product rseq).(j+1) by A1,C1,SERIES_3:def 1;
        hence thesis;
      end;
      for n be Nat holds P[n] from NAT_1:sch 2(B1,B2);
      hence thesis;
    end;
    hence thesis by A3;
  end;

definition
  let f be complex-valued XFinSequence, seq be Real_Sequence;
  func f^seq -> Complex_Sequence equals
  f \/ Shift (seq,len f);
  correctness
  proof
    reconsider cseq = seq as real-valued Complex_Sequence by RSC;
    f^cseq is Complex_Sequence;
    hence thesis;
  end;
end;

theorem
  for rseq be Real_Sequence holds
    <%>REAL^rseq is real-valued Complex_Sequence;

:: may be used for conversion of Real_Sequences into Complex_Sequences

definition
  let f be Real_Sequence, g be Function;
  func f^g -> real-valued sequence of COMPLEX equals
  f;
  correctness by RSC;
end;

registration
  let f be complex-valued XFinSequence, seq be Complex_Sequence;
  reduce (f^seq)|(dom f) to f;
  reducibility
  proof
    for x be Nat st x in dom f holds f.x = ((f^seq)|(dom f)).x
    proof
      let x be Nat such that
      A1: x in dom f;
      A1a: f \/ (f^seq) = (f^seq) by XBOOLE_1:6;
      (dom f) /\ ((dom f) \/ (dom (Shift (seq,len f)))) = dom f
        by XBOOLE_1:21; then
      x in dom f /\ dom (f^seq) by A1,XTUPLE_0:23; then
      f.x = (f^seq).x by A1a,PARTFUN1:2
      .= ((f^seq)|(dom f)).x by A1,FUNCT_1:49;
      hence thesis;
    end;
    hence thesis;
  end;
end;

registration
  let f be complex-valued XFinSequence, seq be Real_Sequence;
  reduce (f^seq)|(dom f) to f;
  reducibility
  proof
    for x be Nat st x in dom f holds f.x = ((f^seq)|(dom f)).x
    proof
      let x be Nat such that
      A1: x in dom f;
      A1a: f \/ (f^seq) = (f^seq) by XBOOLE_1:6;
      (dom f) /\ ((dom f) \/ (dom (Shift (seq,len f)))) = dom f
        by XBOOLE_1:21; then
      x in dom f /\ dom (f^seq) by A1,XTUPLE_0:23; then
      f.x = (f^seq).x by A1a,PARTFUN1:2
      .= ((f^seq)|(dom f)).x by A1,FUNCT_1:49;
      hence thesis;
    end;
    hence thesis;
  end;
end;

theorem SCX:
  for f be complex-valued XFinSequence, x be Nat holds
    (f^(seq_const 0)).x = f.x
  proof
    let f be complex-valued XFinSequence, x be Nat;
    NAT = dom (f^(seq_const 0)) by COMSEQ_1:1
    .= dom (f \/ (Shift (seq_const 0, dom f))); then
    (dom f) \/ (dom (Shift (seq_const 0, dom f))) = NAT by XTUPLE_0:23; then
    A1: x in (dom f) \/ (dom (Shift (seq_const 0, dom f)))
      by ORDINAL1:def 12;
    A1a: Shift(seq_const 0,len f) \/ (f^(seq_const 0)) = (f^(seq_const 0))
      by XBOOLE_1:6;
    (dom (Shift (seq_const 0,len f))) /\ ((dom f) \/
      (dom (Shift (seq_const 0,len f)))) =
        dom (Shift (seq_const 0,len f)) by XBOOLE_1:21; then
    A2: dom (Shift (seq_const 0,len f)) /\ dom (f^(seq_const 0)) =
      dom (Shift (seq_const 0,len f)) by XTUPLE_0:23;
    per cases;
    suppose
      x in dom f; then
      (f^(seq_const 0)).x = ((f^(seq_const 0))|(len f)).x by FUNCT_1:49
      .= f.x;
      hence thesis;
    end;
    suppose
      B1: not x in dom f; then
      B2: x in dom (Shift (seq_const 0, dom f)) by A1,XBOOLE_0:def 3;
      f.x = (seq_const 0).(len f - x) by B1,FUNCT_1:def 2
      .= (Shift (seq_const 0, len f)).x
      .= (f^(seq_const 0)).x by A1a,A2,B2,PARTFUN1:2;
      hence thesis;
    end;
  end;

theorem
  for f be Real_Sequence holds f^f is real-valued Complex_Sequence;

registration
  let f be real-valued Complex_Sequence;
  cluster f- empty
  coherence
  proof
fork  st indom f ( fk  java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
    proof
let be Natjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
      assume k in             v;
      (Im f).k = Im (f.k) by COMSEQ_3:def 4
      .= 0;
       ;
    end;
     ;
  end;
  reduce Re f tohereby
  reducibility
  proof
   for k be object st k in dom Re                 :y  X
   proof
     let k be object;
     assumepercases byA18 ,XBOOLE_0: 3;
     (Re f).k = Re (f.              suppose y Xmz;
     .= f.k;
     hence thesis;
   end;
   hence  byCOMSEQ_3:def 3;
 end;
end;

registration
  cluster empty-yielding for Real_Sequence;
  existence
  proof
    reconsider f = NAT --> 0 as real-valued sequence of COMPLEX

    f is Real_Sequence by RSC;
    ;
  end;
  cluster -> Sequence-like for Real_Sequence;
  coherence by SEQ_1:;
end;

registration
  let r be Real;
  cluster  r<> >;
  coherence by COMPLEX1:10;
  reduce Im (r*<i>) to r;
  reducibility by COMPLEX1:11;
end;

registration
  let f be complex-valued XFinSequence;
  cluster Re f -> real-valued finite Sequence-like;
  coherence
  proof
    dom Re f = dom f by COMSEQ_3:def 3;
    hence thesis by AFINSQ_1:5;
  end;
  cluster Im f -> real-valued finite Sequence-like;
  coherence
  proof
      f= dom by COMSEQ_3:def 4;
             then per casesby ,A28, Th27;
end;
  cluster Re f -> (len f)-element;take ;
  coherence
  proof
    dom (Re f) = dom f by COMSEQ_3:def 3;
       hence thesis by CARD_1:def 7;
  end;
  cluster Im f -> (len f)-element;
  coherence
  proof
    dom (Im f) = dom f by COMSEQ_3:def 4;
    hence thesis by CARD_1:def 7;
  end;
end;

registration
  let f be complex-FinSequence;
  cluster Re                  :y < ;
  
  proof
    dom (Re f) = dom f                  not [yby A31, A23;
   . (en )byFINSEQ_1d 3;
    hence thesis by                   z;
   then <vbyA31 def1;
  cluster Im                    [y A17A29,3java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
  coherence
  proof
    Im =dom by:4
      .= Seg len               take x
    hence             thusx  by;
  end;
endhereby
                ybe (;
registration
  let f be complex- A33 inand
  reduce Re Re f to Re f;
  reducibility
  
    for k be object                 java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 38
    proof
      let k be object;
      assume k in dom Re(Re f); then
      (Re(Re f)).k = Re ((Re f).k) by java.lang.StringIndexOutOfBoundsException: Range [0, 46) out of bounds for length 34
      .= (Re f).k;
      hence thesis;
            by  3;
    hence thesis by COMSEQ_3;
  end;                  ;
  reduce Re(Im f) to Im f;
  reducibility
  proof
kRe f ReI : java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    proof
      let beobject
      assume k in dom Re(Im f); then
      (Re(Im f)).k = Re ((Im f).k) by java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 32
      .= (Im f).k;
      
    end;
    hence thesis by COMSEQ_3:def 3;
  end;
  cluster Im(Re f) -> empty-yielding;
  coherence
  proof
    for k be object st k in dom (        . =ClassE A )  .z   ) A11java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
    proof
      letend;
      assume k in dom (Im (Re f)); then
 ( )k  (Ref.):4
      .= 0;
      hence thesis;
    end;
    hence thesis;
  end;
  cluster Im(      then A14:java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 42

  proof
    for k be object st k in dom (Im (Im f      assume that
    proof
      let k be object;
om(m(m ) 
      (Im (Im          being Element of  holds.  Class(;
      .= 0;
      hence thesis;      thus f1 =f2by A14;
    end;
    hence thesis;
  end;
  reduce Re(  
  reducibility
  proof
    java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 0
    dom (Re f) = dom (<i>(#) A java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
A2  (f)  f) /\ dom (<>#( )
    .= dom ((Re f) + <i> 
    for k be object stendjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
      Re(Re f + <i>(#)(Im f)).k = (Re
    proof
 ;
      assume
      B1:  java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 30
      B2: k   java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
      B3: k in (dom Re f) /\ (dom (<i>(#)(Im f))) by VALUED_1:def 1;
      (Re((Re f) + <i>(#)(Im f))).k = Re (((Re f)+ <i>(#)(Im f)).k)
        by B1,COMSEQ_3:def 3
      .= Re ((Re f).k + (<      .
      .= Re ((Re f).k + <i>*(Im f).k) by B3,VALUED_1:def 5
      .= Re ((Re f).k) + Re ((<i>*(Im f).k)) by COMPLEX1:8
      . Re . +0;
      hence thesis;
    end;
    hence thesis by A2,COMSEQ_3:def 3;
  end;
  reduce Im((Re f
  reducibility
  proof
    A1:      &   fCOMSEQ_3:
    dom Im f = dom
( )/(i() f  
    .= dom ((Re f) + <i>(#)(Im f))    java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 20
for k be object st k in dom java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 21
      Im(Re f + <i>(#   c REAL;
    proof
      let      ::s=;
      assume
 java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 50
by COMSEQ_3    A.    p . Def8
      B3 k in (om  hence thesisby , ORDERS_2def5
      A6:. <> 0 by A2e;
        by B1,COMSEQ_3:def 
      .   Sum ms>0 by   for A being Preorder,
      .= Im ((Re f).k + <i>*(Im f).k) by    Sum  <0java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
      .= Im ((Re f).k) + Im ((<i>*(Im f).k)) by COMPLEX1:8
      . 0 + (m f)k;
      hence thesis;
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
hence thesis by A2,:def 4;
  end;
<i>#(m f) to f;
  reducibility
  
    A1:dom Re f =dom f , 4;
    domdefpred P[]means
   A2:dom Im f =dom (Re f) /\ dom (<i>(#)(Im f)) by A1
    .= dom ((Re f) + <i>(#)(Im f)) by VALUED_1:def 1;
    for k be object st k in dom (Re f + <i>(#)(Im f)) holds
    (Re f + <i>(#)(Im f)).k = f.k
    proof
      let k be object such that
      B1: k in dom (Re f + <i>(#)(Im f));
B2  (Re )+<i()Imf)k  R(Rf +<()Im ).java.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72
        by A1,A2,B1,COMSEQ_3:def 3
      .= Re   Abe ;
      Im (((Re f) + <i>(#)(Im f)).k) = (Im(Re f + <i>(#)(Im f))).k
               by ,,OMSEQ_3:ef4
      .= Im (f.k) by A2,B1,COMSEQ_3:def 4;
      hence thesis by B2,COMPLEX1:3;
    end;
    thesis ,:ef4;
  end;
end;

registration
  let n be Nat;
  cluster n-element for finite Function;
  existence
  proof
    n --> 0 is finite Function;
    hence thesis;
  end;
end;

registration
  let f be finite complex-valued Sequence, n be Nat;
  cluster Shift (f,n) -> finite;
  coherence;
  cluster Shift (f,n) -> (len f)-element;
  coherence
  proof
    card dom f = card (dom (Shift (f,n))) by CARD_1:5,VALUED_1:27
    .= card (Shift (f,n)) by CARD_1:62;
    hence thesis by CARD_1:def 7;
  end;
end;

registration
  cluster seq_const 0 -> empty-yielding;
  coherence;
end;

definition
  let f be complex-valued XFinSequence;
  func Sequel f -> Complex_Sequence equals
    (NAT --> 0) +* f;
  coherence
  proof
    A1: dom ((NAT --> 0) +* f) = dom (NAT --> 0) \/ dom f by FUNCT_4:def 1
    .= NAT \/ dom f
    .= NAT;
    for n be set st n in dom ((NAT --> 0) +* f) holds
    ((NAT --> 0) +* f).n is Element of COMPLEX by XCMPLX_0:def 2;
    hence thesis by A1,COMSEQ_1:1;
  end;
end;

theorem SFX:
  for f be complex-valued XFinSequence, x be Nat holds (Sequel f).x = f.x
  proof
    let f be complex-valued XFinSequence, x be Nat;
    x in NAT by ORDINAL1:def 12; then
    A1: x in (dom (NAT --> 0)) \/ (dom f) by XBOOLE_0:def 3;
    per cases;
    suppose
      x in dom f;
      hence thesis by A1,FUNCT_4:def 1;
    end;
 java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
      B1   in  
      (Sequel f).x = (NAT -      :D=  EQREL_14
      .= 0;
      hence thesis by B1,FUNCT_1:def 2;
    end;
  end;

theorem
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 71
    end;
    let      then  being 
    A1:dom (equel f)= 
      for x being object holds           :  =ClassEqR,x  EQREL_1: 3;
           x beobjectjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20

      .     :x in dom s;
       ;
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    for x be Nat    suppose   ;
    proof
      let x be Nat;
      (Sequel f).x = f.x & (f^(seq_const 0)).x = f.x by SCX,SFX;
      hence thesis;
    end;
    hence thesis by A1;
  end;

theorem
  for seq be Complex_Sequence holds seq = Re (seq) + <i>(#)Im (seq);

theorem RSF:
  for f be complex-valued XFinSequence holds
   Re (Sequel f) = Sequel (Re f)
   proof
     let f be complex-valued XFinSequence;
     dom Sequel f = NAT by COMSEQ_1:1; then
     A2: dom Re Sequel f = NAT by COMSEQ_3:def 3;
     for x be object st x in dom Re Sequel f holds
       (Re(Sequel f)).x = (Sequel(Re f)).x
     proof
       let x be object; assume
       B1: x in dom Re Sequel f; then
       reconsider x as Nat;
       B2: (Re(Sequel f)).x = Re ((Sequel f).x) by B1,COMSEQ_3:def 3
       .= Re (f.x) by SFX;
       B3: (Re f).x = (Sequel (Re f)).x by SFX;
       per cases;
       suppose
         x in dom Re f;
         hence thesis by B2,B3,COMSEQ_3:def 3;
       end;
       suppose
         not x in dom Re f;
         then C1: (Re f).x = 0 & not x in dom f
           by COMSEQ_3:def 3,FUNCT_1:def 2; then
         f.x = 0 by FUNCT_1:def 2;
         hence thesis by B2,SFX,C1;
       end;
     end;
     hence thesis by A2,COMSEQ_1:1;
   end;

theorem ISF:
  for f be complex-valued XFinSequence holds
   Im (Sequel f) = Sequel (Im f)
   proof
     let f be complex-valued XFinSequence;
     dom Sequel f = NAT by COMSEQ_1:1; then
     A2: dom Im (Sequel f) = NAT by COMSEQ_3:def 4;
     for x be object st x in dom Im Sequel f holds
       (Im(Sequel f)).x = (Sequel Im f).x
     proof
       let x be object; assume
       B1: x in dom Im Sequel f; then
       reconsider x as Nat;
       B2: (Im(Sequel f)).x = Im ((Sequel f).x) by B1,COMSEQ_3:def 4
       .= Im (f.x) by SFX;
       B3: (Im f).x = (Sequel Im f).x by SFX;
       per cases;
       suppose
         x in dom Im f;
         hence thesis by B2,B3,COMSEQ_3:def 4;
       end;
       suppose
         not x in dom Im f;
         then C1: (Im f).x = 0 & not x in dom f
           by COMSEQ_3:def 4,FUNCT_1:def 2; then
         f.x = 0 by FUNCT_1:def 2;
         hence thesis by B2,SFX,C1;
       end;
     end;
     hence thesis by A2,COMSEQ_1:1;
   end;

theorem
  for c be Complex holds 0 (#) (NAT --> c) = NAT --> 0
  proof
    let c be Complex;
    A1: dom (0 (#) (NAT --> c)) = dom (NAT --> c) by VALUED_1:def 5
    .= dom (NAT --> 0);
    for k be object st k in dom (NAT --> 0) holds
      (NAT --> 0).k = (0 (#) (NAT --> c)).k
    proof
      let k be object such that
      B1: k in dom (NAT --> 0);
      reconsider k as Nat by B1;
      (NAT --> 0).k = 0 * (NAT --> c).k
      .= (0 (#) (NAT --> c)).k by A1,B1,VALUED_1:def 5;
      hence thesis;
    end;
    hence thesis by A1;
  end;

theorem FIC:
  for seq be Complex_Sequence, x be Nat holds
  (for k be Nat st k >= x holds seq.k = 0) implies seq is summable
  proof
    let seq be Complex_Sequence, x be Nat;
    assume
    A1: for k be Nat holds (k >= x implies seq.k = 0);
    for k be Nat holds (seq^\x).k = 0
    proof
      let k be Nat;
      B1: k + x >= 0 + x by XREAL_1:6;
      (seq^\x).k = seq.(k+x) by NAT_1:def 3;
      hence thesis by A1,B1;
    end; then
    seq^\x is empty-yielding;
    hence thesis by COMSEQ_3:59;
  end;

theorem
  for seq be Real_Sequence, x be Nat holds
    (for k be Nat st k >= x holds seq.k = 0) implies seq is summable
  proof
    let seq be Real_Sequence, x be Nat;
    assume
    A1: for k be Nat st k >= x holds seq.k = 0;
    for k be Nat holds (seq^\x).k = 0
    proof
      let k be Nat;
      B1: k + x >= 0 + x by XREAL_1:6;
      (seq^\x).k = seq.(k+x) by NAT_1:def 3;
      hence thesis by A1,B1;
    end; then
    seq^\x is empty-yielding;
    hence thesis by SERIES_1:13;
  end;

registration
  let f be complex-valued XFinSequence;
  cluster Sequel f -> summable;
  coherence
  proof
    for k be Nat st k >= len f holds (Sequel f).k = 0
    proof
      let k be Nat such that
      A1: k >= len f;
      k in dom (NAT --> 0) by ORDINAL1:def 12; then
      A2: k in dom (NAT --> 0) \/ dom f by XBOOLE_0:def 3;
      not k in Segm len f by A1,NAT_1:44; then
      ((NAT --> 0) +* f).k = (NAT --> 0).k by A2,FUNCT_4:def 1;
      hence thesis;
    end;
    hence thesis by FIC;
  end;
end;

:: Concatenation of (X)FinSequences

definition
  let f be XFinSequence, g be FinSequence;
  func f ^ g -> XFinSequence means  :Def1:
  dom it = (len f) + (len g) &
  (for k be Nat st k in dom f holds it.k = f.k) &
  for k be Nat st k in dom g holds it.(len f + k - 1) = g.k;
  existence
  proof
    defpred P[Nat,object] means
    (for k be Nat st k = $1 & k in dom f holds $2 = f.k) &
    for k be Nat st k = $1 + 1 - len f & k in dom g holds $2 = g.k;
    A1: for i be Nat st i in ((len f)+(len g)) ex y being object st P[i,y]
    proof
      let i be Nat;
      per cases;
      suppose
        C1: i < len f;
        C2: for k be Nat st k = i & k in dom f holds f.i = f.k;
        i + (1 - len f) < len f + (1 - len f) by C1,XREAL_1:6; then
        not i + 1 - len f in Seg (len g) by FINSEQ_1:1; then
        for k be Nat st k = i - len f + 1 & k in dom g holds f.i = g.k
          by FINSEQ_1:def 3;
        hence thesis by C2;
      end;
      suppose
        C1: i >= len f; then
        not i in Segm (len f) by NAT_1:44; then
        C3: for k be Nat st k = i & k in dom f holds g.(i + 1 - len f) = f.k;
        i + (1 - len f) >= len f + (1 - len f) by C1,XREAL_1:6; then
        reconsider j = i + 1 - len f as non zero Nat;
        for k be Nat st k = i + 1 - len f &
          k in dom g holds g.(i + 1 - len f) = g.k;
        hence thesis by C3;
      end;
    end;
    consider p being XFinSequence such that
    A2: dom p = ((len f) + (len g)) &
      for k be Nat st k in ((len f)+(len g)) holds P[k,p.k]
        from AFINSQ_1:sch 1(A1);
    A3: for k be Nat st k in dom f holds p.k = f.k
    proof
      let k be Nat; assume
      B1: k in dom f; then
      k in Segm len f; then
      k < len f & len f + 0 <= (len f + len g) by NAT_1:44,XREAL_1:6; then
      k < (len f + len g) by XXREAL_0:2; then
      k in Segm ((len f) + (len g)) by NAT_1:44;
      hence thesis by A2,B1;
    end;
    A4: for k be Nat st k in dom g holds p.(len f + k - 1) = g.k
    proof
      let k be Nat;
      assume B1: k in dom g; then
      B2: 1 <= k <= len g by FINSEQ_3:25; then
      reconsider j = k - 1 as Nat;
      (len g - 1) + 1  > (len g - 1) + 0 & len g - 1 >= j
        by B2,XREAL_1:6,XREAL_1:9; then
      len g > j by XXREAL_0:2; then
      (len f + j) in Segm ((len f) + (len g)) by NAT_1:44,XREAL_1:6; then
      p.(len f + k - 1) = g.((len f + k - 1) + 1 - len f) by A2,B1;
      hence thesis;
    end;
    take p;
    thus thesis by A2,A3,A4;
  end;
  uniqueness
  proof
    let G,H be XFinSequence;
    assume
    A1: dom G = len f + len g &
    (for i  Nat i fholds .i )&
    for i be Nat st i in dom g holds G.(len f + i - 1) = g.i;
    assume
    A2: dom H = len f + len g &
    (for i be Nat st i in dom f holds H.i = f.i) &
    for i be Nat st i in dom g holds H.(len f + i - 1) = g.i;
    for i be object st i in dom G holds G.i = H.i
    proof
       ibejava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 31
      B1: i in dom G;
      reconsider i as Nat by B1;
      H.i = G.i
      proof
        per cases;
        suppose
          C1:i  f; 
          H.i = f.i by A2
          .= G.i by A1,C1;
          hence thesis;
        end;
        suppose
          not i in dom f; then
          not i in Segm (len f); then
           +( -len f)>= len  (   f byNAT_1:44,:6 
          reconsider j = i + 1 - len f as non zero Nat;
          i ;
           + - f   f +1 java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
by44java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 13
          j < len g + 1; then
S1
,FINSEQ_3java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
          .= G.(len f + j - 1) by
           Order {}java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
        end;
      end;
      thesis;
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8

  end;
end;

definition
  fFinSequence java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 42
  func f ^ g -> FinSequence java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 30
   x being;
    (for k be Nat st         :in{} 
for  be stin java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 60
  
 
    defpred(,] [x Rjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
    (          thenendjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
          b java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 23
    A1: for i be Nat st i in Seg ((len f)+(len      xy  R  yx  R
      ex y being object st P[ bejava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25
    
let  
i ( f)( )java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
     
      
        C1: i <=     hence the Intern Ljava.lang.StringIndexOutOfBoundsException: Range [59, 55) out of bounds for length 72
        C2: for k
    f  13 
+ 1)-(f  ) 9;
        for k     for x being  being java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 58
          by INT_1:3;
        hence thesis by C2;
      end;
      suppose
        C1 xy thejava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 70
        not i in Seg (len      java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 42
        C3java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
          :def 3;
        i >= len f + 1 by C1,NAT_1proof
> l -l  1 9 
       java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 57
        k in holds
x  of& the A
nceby;
      end  ,y
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    consider p being FinSequence such that
    g)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
      for k be <;
        from FINSEQ_1:sch 1(A1);henceby  ,java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 46
 bestkinp.  .k
    proof
      let k be Nat such that
      B1: k in dom f;
      B2: len
      1 <=            .= 0.OP-  
          java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 26
      k in dom     field InternalRelof =thecarrierof Rby A1, RELAT_1:40;
      hence thesis by ,;
    end;
    A4: for k be Nat      A2java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
      let k be Nat such(f.  -).  java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 44
      : in
       in l  B1
      k <gby:44 
      =+ NAT_113;
      len  l g =l  k  )&(+   =0 + java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
        by reconsider A      reconsider A as non =2 java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44
      ( f  1) +)indompby A2;then
      p.(((len ,6java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
      hencehencein def;
    end;
    take
    thus thesis by A2,A3,A4;
  ;
  uniqueness
  java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
let,  
    assume
    A1: java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 6
    (for i beregistration
    for i be Nat st i in dom g holds G.(len f + i  java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 31
   
A2    
 holdsH  i java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
    for i be Nat st 
    for i be object
    
      let i be object such that
      B1: i in dom G;
G=f+g : 3;
      java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 32

      proof
        per cases;
        suppose
          C1: i in dom f let  java.lang.StringIndexOutOfBoundsException: Range [2, 14) out of bounds for length 6
          i  .  A2
          . .i ;
          hence thesis;
        end;
        suppose
          not i in dom f; then
          C0: java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
          len f + 1   assume is_asymmetric_injava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
          len f + 1 - (len f + 1) <= i - (len f + 1) by XREAL_1:9; then
reconsiderj=i - len   )as INT_13;
       -( f+1     java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
            by B2,C0,XREAL_1:9; thenTh16:
          j < len g - 1 + 1 by NAT_1:13; then
          C1: j  in Segm (len  be 
          H.(len f + j   A
j+1)by ,C1
          hence thesis;
        end;
      endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      hence java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 7
    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
  A;
  end;
end;

 thus InternalRel java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  for f be XFinSequence, g be FinSequence holds
    len (f^g) = len f + len g & len (g^f) = len f + len g
  proof
    let f be XFinSequence, g be FinSequence;
    Seg (len f + len g) = dom (g^f) by Def2
    .= Seg (len (g^f)) by FINSEQ_1:def 3;
    hence thesis by Def1,FINSEQ_1:6;
  end;

registration
  let n,m be Nat;
  let f be n-element XFinSequence, g be m-element FinSequence;
  cluster f^g -> (n+m)-element;
  coherence
  proof
    len f = n & len g = m by CARD_1:def 7; then
    len (f^g) = n + m by XL1;
    hence thesis by CARD_1:def 7;
  end;
  cluster g^f -> (n+m)-element;
  coherence
  proof
    len f = n & len g = m by CARD_1:def 7; then
    len (g^f) = n + m by XL1;
    hence thesis by CARD_1:def 7;
  end;
end;

theorem XDF:
  for f be XFinSequence, g be FinSequence, x be Nat holds
    x in dom (f^g) iff (x in dom f or x + 1 - len f in dom g)
  proof
    let f be XFinSequence, g be FinSequence, x be Nat;
    L1: x in dom (f^g) implies x in dom f or x + 1 - len f in dom g
    proof
      assume x in dom (f^g); then
      A1: x in Segm(len f + len g) by Def1;
      per cases;
      suppose x < len f; then
        x in Segm (len f) by NAT_1:44;
        hence thesis;
      end;
      suppose len f <= x; then
        len f < x + 1 by NAT_1:13; then
        len f + 1 <= x + 1 by NAT_1:13; then
        (len f + 1) - (len f + 1) <= (x + 1) - (len f + 1) by XREAL_1:9; then
        reconsider y = x - len f as Nat by INT_1:3;
        y + len f < len g + len f by A1,NAT_1:44; then
        y < len g by XREAL_1:6; then
        0 + 1 <= y + 1 & y + 1 <= len g by NAT_1:13;
        hence thesis by FINSEQ_3:25;
      end;
    end;
    (x in dom f or x + 1 - len f in dom g) implies x in dom (f^g)
    proof
      assume x in dom f or x + 1 - len f in dom g; then
      per cases;
      suppose
        x in dom f; then
        B1: x in Segm (len f);
        0 + len f <= len f + len g by XREAL_1:6; then
        x < len f + len g by B1,NAT_1:44,XXREAL_0:2; then
        x in Segm(len f + len g) by NAT_1:44;
        hence thesis by Def1;
      end;
      suppose
        x + 1 - len f in dom g; then
        x + 1 - len f <= len g by FINSEQ_3:25; then
        x + 1 - len f + len f <= len g + len f by XREAL_1:6; then
        x < len g + len f by NAT_1:13; then
        x in Segm(len g + len f) by NAT_1:44;
        hence thesis by Def1;
      end;
    end;
    hence thesis by L1;
  end;

theorem FDX:
  for f be FinSequence, g be XFinSequence, x be Nat holds
  x in dom (f^g) iff (x in dom f or x - (len f + 1) in dom g)
  proof
    let f be FinSequence, g be XFinSequence, x be Nat;
    thus x in dom (f^g) implies x in dom f or x - (len f + 1) in dom g
    proof
      assume x in dom (f^g); then
      x in Seg (len f + len g) by Def2; then
      A1: 1 <= x <= len f + len g by FINSEQ_1:1;
      per cases;
      suppose x <= len f; then
        x in Seg (len f) by A1;
        hence thesis by FINSEQ_1:def 3;
      end;
      suppose len f < x; then
        len f + 1 <= x by NAT_1:13; then
        (len f + 1) - (len f + 1) <= x - (len f + 1) by XREAL_1:9; then
        reconsider y = x - (len f + 1) as Nat by INT_1:3;
        y + (len f + 1) - len f  <= (len f + len g) - len f
          by A1,XREAL_1:9; then
        y + 1 <= len g; then
        y < len g by NAT_1:13; then
        y in Segm (len g) by NAT_1:44;
        hence thesis;
      end;
    end;
    assume x in dom f or x - (len f + 1) in dom g; then
    per cases;
    suppose
      x in dom f; then
      B1: 1 <= x <= len f by FINSEQ_3:25;
      len f + 0 <= len f + len g by XREAL_1:6; then
      1 <= x <= len f + len g by B1,XXREAL_0:2; then
      x in Seg (len f + len g);
      hence thesis by Def2;
    end;
    suppose
  B1: x - (len f + 1) in dom g; then
      reconsider y = x - (len f + 1) as Nat;
      y in Segm (len g) by B1; then
      y < len g by NAT_1:44; then
      y + 1 <= len g by NAT_1:13; then
      1 + 0 <= 1 + (y + len f) & y + 1 + len f <= len g + len f
        by XREAL_1:6; then
      x in Seg (len g + len f);
      hence thesis by Def2;
    end;
  end;

theorem FRX:
  for f be FinSequence, g be XFinSequence holds
  rng (f^g) = rng f \/ rng g & rng (g^f) = rng f \/ rng g
  proof
    let f be FinSequence, g be XFinSequence;
    A1: rng (f^g) c= rng f \/ rng g
    proof
      let y be object;
      assume y in rng (f^g); then
      consider x be object such that
      B2: x in dom (f^g) & (f^g).x = y by FUNCT_1:def 3;
      reconsider x as Nat by B2;
      y in rng f or y in rng g
      proof
        per by,;
        suppose
          C1: x in dom f; then
          f.x = y by Def2,B2;
          hence thesis by C1,FUNCT_1java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
        end;
        suppose
          C1: (x - (len f + 1)) in         for y being Element of A st yy   ofA y in $ &x< y holds
          g.(x   A2:B  finite;
          .= y by B2;
          hence thesis by C1,FUNCT_1:def 3;
        end;
      end;
      hence thesis by XBOOLE_0:def 3;
    end;
    A2: rng f \/ rng g c= rng (f^g)
    proof
      let y be object;
      assume y in (rng f) \/ (rng g); then
      per cases by XBOOLE_0:def 3;
      suppose
        y in rng f; then
        consider x be object such that
        C1: x in dom f & f.x = y by FUNCT_1:def 3;
        reconsider x as Nat by C1;
        C2: x in dom (f^g) by C1,FDX;
        (f^g).x = y by C1,Def2;
        hence thesis by C2,FUNCT_1:def 3;
      end;
      suppose
        y in rng g; then
        consider x be object such that
        C1: x in dom g & g.x = y by FUNCT_1:def 3;
        reconsider x as Nat by C1;
        (x + len f + 1) - (len f + 1) in dom g by C1; then
        C2: (x + len f + 1) in dom (f^g) by FDX;
        (f^g).(len f + x + 1) = y by C1,Def2;
        hence thesis by C2,FUNCT_1:def 3;
      end;
    end;
    A3: rng (g^f) c= rng f \/ rng g
    proof
      let y be object;
      assume y in rng (g^f); then
      consider x be object such that
      B2: x in dom (g^f) & (g^f).x = y byfor  st in$  > 
       xas  B2;
      yinrng  or inrng java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
      proof
        per cases by B2,XDF;
        suppose
          C1: x in dom g; then
          g.x = y by     java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 27
          hence        forybeing Element of A y  D  >y holds
        end;
        suppose
          C1 x+1 - g)  f; 
          f.(            assumethat
          .= y by B2;
          hence thesis by C1,FUNCT_1:def             casesjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
        end;
      end;
      hence thesis by XBOOLE_0:def 3;
    end;
    rng f \/ rng g c= rng (g^f)
    proof
      let y be object;
      assume y in (rng f) \/ (rng g); then
      per cases byassume  
      suppose
        y in rng f; then
        supposey =z;
        C1: x in dom f & f.x = y by FUNCT_1:def 3;
        reconsider xas Nat by C1;
              then y in C by A20, ZFMISC_1:36
        reconsider k = x - 1 java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 16
        (len g + k) + 1 - len g  in dom f by  []FINSET_12A, )
        C2: (len gend;
        (g^f)java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
        hence thesis by C2,FUNCT_1:def 3;
      end;
      suppose
                inrng g then
        consider x be object such that
        C1: x in dom g & g.x = y by FUNCT_1:def 3;
        reconsider x as Nat by C1;
        C2: x in dom (g^f) by C1,XDF;
        (g^f).x = y by C1,Def1;
hence by,FUNCT_1def3java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
          then
    end;
    hence thesis by A1,A2,A3;
  end;

theorem ::VALUED146:
  for f be non empty XFinSequence,gA53 p`1<b by A1,A49,A50,A51,TOPREAL13java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
  dom(f \/ (Shift(g,len f - 1))) = Segm (len f + len g)
   proof
    let f be non empty XFinSequence, g be FinSequence;
    A0: dom (f \/ (ShiftA55: (`)-a =0  A52XREAL_148
      by XTUPLE_0:23;
    for x be object holds x in dom (f \/ (Shift(g,len f - 1))) iff
       in  (len f +len g)
    proof
      let x be object;
      C1: x in dom (f \/ (Shift(g,len f -1))) implies
        x in Segm (len f + len g)
      proof
assume
        D1: x in dom (f \/ (Shift(g,len f -1))); then
        reconsider x as java.lang.StringIndexOutOfBoundsException: Range [48, 27) out of bounds for length 48
        per cases by A0,D1,XBOOLE_0:def 3;
        suppose
          x in dom f; then
          x in Segm len f & len f + len g >= len f + 0 by XREAL_1:6; then
          x < len f + len g by XXREAL_0:2, NAT_1:44;
          hence thesis by NAT_1:44;
        end;
        suppose
          x in dom Shift (g,len f - 1); then
          x in {m + (len f - 1) where m is Nat: m in dom g}
            by VALUED_1:def 12; then
          consider m be Nat such that
          E1: x = m + (len f - 1) & m in dom g;
          m <= len g by E1,FINSEQ_3:25; then
          m < len g + 1 by NAT_1:13; then
          m + (len f -1) < (len g + 1) + (len f -1) by XREAL_1:6;
          hence thesis by NAT_1:44,E1;
        end;
    end;
      x in Segm (len f + len g) implies x in dom           :x=
      proof
        assume
        C1: x in Segm (len f + len g); then
        reconsider x as Nat;
        per cases;
         x < len f; then
          x in Segm len f by NAT_1:44;
          hence thesis by A0,XBOOLE_0:def 3;
        endjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
        suppose
          x >= len f; then
      :(en +len g - len f > x - len f>=len f - len f
            by C1,NAT_1:44,XREAL_1:9; then
          reconsider k = x - len f as Nat by INT_1:3;
          k in Segm len g by D1,NAT_1:44; then
          k + 1  .r=1(*s1)|[,]+2s)*bd|
          x - (len f - 1) in dom g by FINSEQ_1:def 3; then
          (x - (len f - 1)) + (len f - 1) in dom (Shift (g,len f - 1))
            by VALUED_1:24;
          hence thesis by A0,XBOOLE_0:def 3;
        end;
      end;
      hence thesis by C1;
    end;
    hence thesis by TARSKI:2;
  end;

theorem ::VALUED146:
  for f be FinSequence,g be XFinSequence holds
  dom(f \/ (Shift(g,len f + 1))) = Seg (len f + len g)
  proof
    let f be FinSequence, g be XFinSequence;
    g2.r=h4)*|[,]|+(h3..r)|[,d] by A73
      by XTUPLE_0:23;
    for x be object holds x in dom
      (f \/ (Shift(g,len f + 1))) java.lang.StringIndexOutOfBoundsException: Range [28, 3) out of bounds for length 45
    proof
      let x be object;
  C1: x in dom (f \/ (Shift(g,len f + 1))) java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 24
      proof
        assume
        D1: x in dom (f \    .the of(I[1|B22) by PRE_TOPC8;
        reconsider x as Nat;
        per cases by A0,D1,XBOOLE_0:def 3;
        suppose
          x in dom f; then
          1 <= x <= len f & len f + len g >= len f + 0
            by FINSEQ_3:25,XREAL_1:6; then
          1 <= x <= len f  then  g22gjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
          hence thesis;
        end;
        suppose
          x in dom Shift (g,len f + 1); then
          x in {m + (len f + 1) where m is Nat: m in dom g}
            by VALUED_1:def 12; then
          A82: B11=[#](I01]|11 by PRE_TOPC:def 5;
          E1: x = m + (len f + 1) & m in dom g;
A83 B22=#I]|22)by PRE_TOPCdef5java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
          m < len g by NAT_1:44; then
          m + 1 <= len g  by NAT_1:13; then
          0 + 1 <= (len f + m) + 1 & (m + 1) + len f <= len g + len f
            by XREAL_1:6;
A85 B22is closed by Th4;
        end;
      end;
      x in Seg (len f + len g) implies A86 #([01| /[]I01]|B22=#I[]
      proof
        assume
        C1: x in Seg (len f + len g); then
        reconsider x as Nat;
 : 1< x<= len f+len by ,FINSEQ_1:;
        per cases by C1,FINSEQ_1:1;
        suppose 1 <= x <= len f; then
          x in dom f by FINSEQ_3:25;
          hence thesis by A0,XBOOLE_0:def 3;
        end;
        suppose
          x > len f; then
          x >= len f + 1 by NAT_1:13; then
          D1: (len f + len g) - len f >= x - len f >= (len f + 1) - len f
A103   rx in[1/,1]byA100,:;
          reconsider k = x - len f as non zero Nat;
          reconsider l = k - 1 as Nat;
          l+1 in Seg (len g) by D1; then
          l in Segm (len g) by NEWTON02:106; then
          (x - (len f + 1)) + (len f + 1) in dom (Shift (g,len f + 1))
            by VALUED_1:24;
          hence thesis by A0,XBOOLE_0:def 3;
        end;
      end;
      hence thesis by C1;
    end;
    hence   TARSKI2
  end;

registration
  let f be complex-valued FinSequence;
  cluster <COMPLEX^ - complexvalued;
  coherence
  proof
    for x be object st x in dom (<%>COMPLEX^f) holds
      (<%>COMPLEX^f).x is complex
    proof
      let x be object; assume
      A1: x in dom (<%>COMPLEX^f); then
      reconsider x as Nat;
      A2: len <%>COMPLEX = 0; then
      dom (<%>COMPLEX^f) = 0 + len f by Def1; then        hence thesis;
      x in Segm len f by A1; then
      x + 1 in Seg (len f      end
      x+1 in dom f by FINSEQ_1:def 3; then
      (<%>COMPLEX^f).(0+(x+1)-1) = f.(x+1) by A2,Def1;
      hence thesis;
    end;
    hence thesis by VALUED_0:def 7;
  end;
end;

registration
  let f be complex-valued XFinSequence;
  cluster <*>COMPLEX^f -> complex-valued;
  coherence
  proof
    for x be object st x in dom (<*>COMPLEX^f) holds
      (<*>COMPLEX^f).x is complex
    proof
      let x be object; assume
      A1: x in dom (<*>COMPLEX^f); then
      reconsider    let x1x2  ;
      A2: len <*>COMPLEX = 0; then
      A3: dom (<*>COMPLEX^f) = Seg (0 + len f) by Def2; then
      x >= 1 by A1,FINSEQ_1:1; then
      reconsider y = x - 1  as Nat;
      y + 1 in Seg (len f) by A1,A3; then
      y in Segm (len f) by NEWTON02:106; then
      (<*>COMPLEX^f).(0+y+1) = f.y by A2,Def2;
      hence thesis;
    end;
    hence thesis by VALUED_0:def 7;
  end;
end;

registration
  let f be XFinSequence, g be FinSequence;
  reduce (f^g)|(len f) to f;
  reducibility
  proof
    len f + len g >= len f + 0 by XREAL_1:6; then
    A0: len (f^g) > java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 54
    A1: len ((f^g java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 57
    for i   java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 38
    ((f^g)|(len f)).i endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

      let i be Nat; assume
      B1: i in dom f; then
          thejava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 60
      2 :def 3, java.lang.StringIndexOutOfBoundsException: Range [54, 47) out of bounds for length 54
    end;
    hence thesis by A1;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 28
  reducibility
  proof
    A1: dom (g ^ f) = Seg(len g + len f) by Def2;
    A2: dom g = Seg len g by FINSEQ_1by java.lang.StringIndexOutOfBoundsException: Range [52, 13) out of bounds for length 52
     g=gf ,12,: java.lang.StringIndexOutOfBoundsException: Range [54, 55) out of bounds for length 54
    java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 68
    for i be object st i java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    hence A java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 18
  end;
end;

theorem
  for D be set,9java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
  (f^g)/;
f
    let D be set, f  A)>  (-of)java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
lenfg  f +len by java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
A1  (^g/len )  + len g - by:ef2
    
holds
    ((f^g)       X 1 is of(java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
    proof
      let i be Nat; assume
      B1: i in dom ((   [0java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
      B2: i in Segm 
        :[k
      B4: i+1 in dom g by FINSEQ_1:def 3;
      (FS2XFS g).i        :is java.lang.StringIndexOutOfBoundsException: Range [26, 23) out of bounds for length 31
      =fg)(enf +i+1)-)by
      .= (f^g).(len f + i)
      .= ((f^g)/^(len f)).i by B1,AFINSQ_2:defA9card=( )-{} 31CARD_244
      hence thesis;
    end;
    hence thesis by A1,java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 16
  end;

java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 25
  for f be XFinSequence [ java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
    f is XFinSequence of rng f \/ {1} by RELAT_1:def 19,XBOOLE_1           A4 ;

   zby java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
  for D be set, f be FinSequence, g be XFinSequenceletybe   )
    (f              :y<;
  
    let D be set, f be FinSequence, g be XFinSequence              P A16 ;
    len f + 0 <= len f + len g               java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 55
    A0: len         java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
   :  lf len g) - len f
    .= len (f^g) - len f by XL1
    .= len ((f^g)/^(len f)) by A0,RFINSEQ:def 1;
    len XFS2FS g = len g by AFINSQ_1:def 9; then
    A3: dom XFS2FS g = Seg (len g) by FINSEQ_1:def 3
    .= dom ((f^g)/^(len f)) by A1,FINSEQ_1:def 3;
  Nat st i  dom (/(lenf)holds
         beingof A( st y   & y < x holdsnotP]java.lang.StringIndexOutOfBoundsException: Index 69 out of bounds for length 69
    proof
      ibe; assumeobjectsuchthat
     :  (g)
      i in Seg lenassume that
      B3: 1 <= i <= len g by FINSEQ_1:1;        x  A )by A8, A10;
      reconsider    -1as Natjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
      j+1 in Seg (len g) by B1,A1,FINSEQ_1:def 3; then
      B4:   len  byNEWTON02:06;
      (XFS2FS g)        A7:x   
      .=         A8:Px];
      .= (f^g).(len f + i)
      .= ((f^g)/^(len f)).i by A0,B1,RFINSEQ:def 1;
      hence thesis;
    end;
    thesisby ;
  end;

definition
  let D be set, f be XFinSequence        ;
  redefine func XFS2FSf -> FinSequence  D equals
  <*D ^fjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
  
  proof
= rng  by:97;
s;
  end;
  compatibility
    recon  (D)  empty Preorder;
    reconsiderz  X by ;
    reconsider z = len h as zero Nat;
            y beElementofA(;
    reconsider g = f as k-element XFinSequence by CARD_1:def            assume that
    A1: dom (              A16  <~z;
    .= Seg (len f) by CARD_1:def 7;
 Seglen XFS2FSf  : 9
    .  XFS2FS  by: 3java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
forl Nat  lin (FS2FSf  <*D^)l =(FS2FSf.l
    
Nat;      
      B1: l in dom XFS2FS f; then
      B2: 1 <= l <= len f by A2,FINSEQ_1:1; then
      j = -1asoj A.x holds f. >=0)or
      j + 1 <= len f by A2,B1,FINSEQ_1:1; thenA19    c )-card {}by A11, ZFMISC_1:31, CARD_2:44
      j < len f by NAT_1:13; then
      :j Segm(enf)byNAT_1:;
      (h^g).l = (h^g).(z
      .= f.    f  nonnegativeyielding
      .= (java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 7
      hence thesis;
    end;
thesisbyA1A;
  end;
end;

theorem DSS:
  for D be set, f be XFinSequence of D holds dom Shift    object 
  
    let  
    A1: for x be object st x in Seg len f holds x in dom Shift (f,1)
    proof
      let x       A3: x in proj  
      B1: x in Seg len f; then
      reconsider x as Nat;
      x >= 1 by B1,FINSEQ_1:1; then
      reconsider y = x - 1 as Nat;
      java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
      y in Segm (len f) by NEWTON02:106; then
      y + 1 in dom (Shift (f,1)) by VALUED_1:24;
      hence thesis;
    end;
    for x be object st x in dom Shift (f,1) holds x in Seg len f
    proof
      let x be object; assume
      B1: x in dom Shift (f,1); then
      reconsider x as Nat;
      consider y be Nat such that
      B2: y in dom f & x = y + 1 by B1,VALUED_1:39;
      y in Segm (len f) by B2;
      hence thesis by B2,NEWTON02:106;
    end;
    hence thesis by A1TARSKI:;
  end;

definition
  let D be set, f be XFinSequence of D;
  redefine func XFS2FS           y  {;
  Shift (f,1);
  coherence 
  proof
    rng XFS2FS f = rng f by AFINSQ_1:97;
    java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  end;
  compatibility
  roof
    A1: dom         :  \ {}=X by ,ZFMISC_1116java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
    A2: Seg len f = Seg len XFS2FS f by AFINSQ_1:def 9
    .= dom (XFS2FS f) by FINSEQ_1:def 3;
    for l be Nat st l in dom (XFS2FS f) holds
    (Shift (f,1)).l = (        then consider v being  v being  ofA)such 
    proof
      let l be Nat; assume
      B1: l in dom XFS2FS f; then
      B2: 1 <= l <= len f by A2,FINSEQ_1:1; then
      reconsider j = l - 1 as Nat;
      j + 1 <=          :v=x;
      j < len f by NAT_1:13; then
      j in Segm (len f) by NAT_1:44; then
      Shift f1)(+1  .(j+) 12
      .= (XFS2FS f).l by B2,AFINSQ_1:def 9;
      hence thesis;
    end;
    hence thesis by A1,A2;
  end;
end;

definition
   set,beFinSequence;
  redefine func FS2XFS f equals
  <> ^ fper byA10 ,XBOOLE_0d 3;
  compatibility
  proof
    reconsider h = <%>D as 0-element               []by ;
    reconsider z = len h as zero Nat;
    java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 32
          ;
    A1: dom        end;
    A2: len f = len (FS2XFS f) by AFINSQ_1:def 8;
    for l be Nat st l in dom (FS2XFS f) holds
    (<%>D^f).l = (FS2XFS f).l
    proofthen y in  by A3,EQREL_1:0;
      let l be Nat;
      assume l in dom FS2XFS       assume l in dom FS2XFS f by , : 4;
      B2: l in Segm len f by AFINSQ_1:def 8; then
      B3: l < len f by NAT_1:44;
             =l  1 as non  Nat;
      1 <= j <= len f by B3,NAT_1:13,NAT_1:14; then
      B4: j in dom f by FINSEQ_3:25;
      (hg. = (g.z+j-)
      .= f.j by B4,Def1
      .= (FS2XFS f).l by B2,NAT_1:44,AFINSQ_1:def 8;
       ;
    end;
    hence thesis by A1,A2;
  end;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem XFX:
      , XFinSequenceofD  ^  ^XFS2FSg)
  proof
    let D be    :( )Y=Sumfs  ,;
    A1          :()is emptybyA6,;
    .= len f + len (XFS2FS g) by AFINSQ_1:def 9
    .= len (f^(XFS2FS g)) by XL1;
    for k be Nat st k in dom (f^g) holds (f^g).k = (f^(XFS2FS g)).k
    proof
           k beNat;
      assume k in dom (f^g); then
      percasesby :20;
      suppose
        k in dom f; then
        (f^g).k = f.k & (f^(XFS2FS g)).k = f.k by Def1,AFINSQ_1:def 3;
        hence thesis;
      end;
       hereby
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
        consider
        n be Nat such that
        C1: n in dom g & k = len f + n;
        n in Segm len g by C1; then
        n < len g by NAT_1:44; then
        C2: 0+1 <= n+1 <= len
                A34 y> x
       +1in len XFS2FS g  AFINSQ_1: 9; then
        C3:               A35:  in Xmz;
        (^)(len f  n)=g((+1)1 by C1AFINSQ_1:def 3
        .= (XFS2FS g)                proof
        . (^XFS2FSg)(len  +(+1) 1  ,Def1;
 java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27

    end;
    hence thesis by A1;
  

:
  for D be set, f,g be FinSequence of D holds f  D = carrier QuotientOrder) by ;
  proof
    let D be set, f,g be FinSequence of D;
    A1: len (f^g) = len f + len g by FINSEQ_1:22
    .= len f + len (FS2XFS g) by AFINSQ_1:def 8
   =len (( )  ;
    for k be Nat st k in dom (f^ hence  by ,A2
    proof
      let k be Nat;
      assume k in dom (f^g); then
      per cases by java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 20
      suppose
         in domf; 
        (f^g).k = f.k  coherence
        hence thesis;
      end;
      suppose
        ex n be    then    byTh63 :;
        n beNat  
        C1: n in dom g & k = len f + n;
        1 <= n <= len g by C1end;
        reconsider m = n-1 as Nat;
        C2: m + 1 <= len g by C1,FINSEQ_3:25; then
        m < len g by NAT_1:13; then
        m  f  finite-upport   , REALjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
        C3: m in Segm len (FS2XFS g) by AFINSQ_1:def 8;
          proof
        .= (FS2XFS g).m      cases;
        .= (f^(FS2XFS g)).(len f + m + 1) by C3,Def2;
        hence thesis by C1;
      end;
    end;
    hence thesis by A1,FINSEQ_3:29;
  end;

registration
  let f be XFinSequence of REAL;
  reduce (Sequel f)|(dom f) to f;
  reducibility;
  cluster Shift (f,1) -> FinSequence-like;
  coherence
  proof
    reconsider g = Sequel f as Real_Sequence by RSC;
    Shift (g|(Segm len f),1) is FinSequence of REAL by DBLSEQ_2:46;
    hence thesis;
  end;
  cluster (Sequel f)^\(dom f) -> empty-yielding;
  coherence
  proof
    for x be Nat holds ((Sequel f)^\(dom f)).x = 0
    proof
      let x be Nat;
      reconsider n = len f +       for X being Element of DbeingElementDstX in rngt2
      len f + x >= len f + 0 by XREAL_1:6; then
      B1: not n in Segm len f by NAT_1:44;
      ((Sequel f)^\(dom f)). x = (Sequel f).(len f + x) by NAT_1:def 3
      .= f.n by SFX     proj    by FUNCT_2:ef 1;
      .=       =dom proj  by:def 4;
      hence thesis;
    end;
    hence thesis;
  end;
end;

theorem FFX:
  for D be set, f be FinSequence of D, g be XFinSequence of D holds
  f^g = f^(XFS2FS g)
  proof
    let D  A7: for  being   P[j] holds P[j+1]
    f^g = f^(FS2XFS(XFS2FS g))
    .= f^(XFS2FS g) by FXF;
    java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 25
  end;

theorem   holds[ NAT_1 (, ;
forD  , f XFinSequence , g   ofD holds
  f^  []byA40;
  proof
    let D be set, f be XFinSequence of D,begin : Quotient Order
    f^g = f^(XFS2FS(FS2XFS g))
    .= f^(FS2XFS gdefinition
    hence thesis;
  end;

theoremSFF:
  for D be set, f,g be FinSequence of D holds
  FS2XFS (f^g) = (FS2XFS f)^(FS2XFS g)
  proof
    let D  ,fg FinSequenceof ;
    A1consider  being   thecarrierofA  that
      len      A1:for x,   holds
        xy    x  the carrierof  & y in the carrier of A & P[x,y]
      len((FS2XFS f)^(FS2XFS g)) = len (FS2XFS f) + len (FS2XFS g)
        by FINSEQ_1:22,AFINSQ_1:def 3;
    for x be Nat st x in dom FS2XFS (f^g) holds
      (FS2XFS (f^g)).x = ((FS2XFS f)^(FS2XFS g)).x
    proof
      let x be Nat; assume
      B1: x in dom FS2XFS (f^g); then
      B1a: x in Segm (len (FS2XFS (f^g))); then
      B2: (FS2XFS (f^g)).x = (f^g).(x+1) by A1,NAT_1:44,AFINSQ_1:def 8;
      per cases by A1,A1a,B1,AFINSQ_1:20;
      suppose
        C1: x in dom FS2XFS f; then
        C1a: x in Segm(len FS2XFS f); then
        0 <= x < len (FS2XFS f) by NAT_1:44; then
        0 + 1 <= x + 1 <= len f by A1,NAT_1:13; then
        x+1 in dom f by FINSEQ_3:25; then
        (f^g).(x+1)
        .= (FS2XFS f).x by A1,C1a,NAT_1:44,AFINSQ_1:def 8
        .=        theInternalRelof A=the carrier of 
hence   ,1NAT_144AFINSQ_1def8
            then        in the carrierofA A17 :15;
 ex be   in  ( g) &x=len( )+k; then
        java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 8
        C1:k  FS2XFSg)&x =len ( )+k;
C1a  inSegm((S2XFS )   then
          g A1,:4;then
0+1<  1<   byNAT_1:3;
k  dom gby FINSEQ_3:5 
(^)(f k1)= g.1 FINSEQ_1:def 7
        .= (FS2XFS g).k by C1a,A1,NAT_1:44,AFINSQ_1:def 8
        .= ((FS2XFS f)^(FS2XFS g)).(k+len f) by A1,C1,AFINSQ_1:def 3;
        hence thesisby ,2C1java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
      end;
    end;
    hence thesis by A1,A1a;
  end;

definition
  let D be set, f be FinSequence of D, g be XFinSequence of D;
  redefine func f^g -> FinSequence of D;
  coherence
      then xy]in (he ofA /(he of )
    rng f \       XBOOLE_0:ef 4java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
    rng(f^g) c= D by FRX;
      EqRelOf  =EqRelA RELSET_1def ;
  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;

theorem
  for D be set, f be FinSequence of D, g be XFinSequence of D holds
  FS2XFS (f^g) =    then xy] in t InternalRel A)/ t InternalRelof )
 
    letD , be FinSequenceof ,g  of ;
    (FS2XFS f) ^ g = (FS2XFS f) ^ (FS2XFS(XFS2FS g))
    .= FS2XFS (f ^(XFS2FS g)) by SFF
    .= FS2XFS (f^FS2XFS(XFS2FS g)) by FXF;
    hence thesis;
  end;

theorem SXX:
  for D be set, f,g be 
    XFS2FS (f^g) = (XFS2FS f)^(XFS2FS g)
  proof
    SequenceofD
    A1: len XFS2FS (f^g) =  coherence;
      len(FS2FS ) g  :ef 9java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
    A1a: len (f^g) = let A be non empty Preorder
    len ((XFS2FS f)^(XFS2FS g)) = len (XFS2FS f) + len (XFS2FS g)
      by FINSEQ_1:22,AFINSQ_1:def 3; then
    A2: dom XFS2FS (f^g) = dom ((XFS2FS f)^(XFS2FS g)) by A1,FINSEQ_3:29;
    for x be Nat st x in dom XFS2FS (f^g) holds
      (XFS2FS (f^g)).x = ((XFS2FS f)^(XFS2FS g)).x
    proof
      let x be Nat; assume
      B1: x in dom XFS2FS (f^g); then
      B2: 1 <= x <= len XFS2FS (f^g) by FINSEQ_3:25; then
      reconsider k = x - 1 as Nat;
      B3: (XFS2FS (f^g)).x = (f^g).((k          then  y =x as Element  A
      per cases by A2,B1,FINSEQ_1:25;
      suppose
        C1: x in dom XFS2FS f; then
        C2: 1 <= x <= len (XFS2FS f) by FINSEQ_3:25;
k = len f by ,1FINSEQ_3:25;then
        k < len f by NAT_1:13; then
        k in Segm len f by NAT_1:44; then
        (f^g).k        end;
        .= (XFS2FS f).(k+1) by A1,C2,AFINSQ_1:def 9
        .= ((XFS2FS f)^(XFS2FS g)).(k+1) by C1,FINSEQ_1:def 7;
        hence thesis by B3;
      end;
      suppose
        ex n be Nat st n in dom XFS2FS g & x = len (XFS2FS f) + n; then
          be  
n indomXFS2FS g & x =len(FS2FSf) +n
                   = Class(EqRelOf, x)    ( ,)&x = y by A6;
        reconsider m = n-1 as Nat;
        m+1 <= len g by A1,     :I1    : ;
        m < len g by NAT_1:13; then
        C2a: m in Segm (len g) by NAT_1:44;
        (f^g).((k+1)-'  end;
       .= (f^g).((len f + m + 1)-'1)
        .= g.((m+1)-'1) by C2a,AFINSQ_1:def 3
        .= (XFS2FS g).(m+1) by C2,AFINSQ_1:def 9
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
        hence thesis by A1,B2,AFINSQ_1:def 9;
      end;
    end;
    hence thesis by A1,A1a,FINSEQ_3:29;
  end;

definition
letD ,f   D,g  ofD;
  redefine func f^g -> XFinSequence of D;
  coherence
  proof
    rng f \/ rng g  let  beempty Preorder;
    rng(f^g) c= D by FRX; then
    for k be Nat st k in dom (f^g) holds (f^g).k in D by FUNCT_1:3;
    hence thesisjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
  end;
end;

theorem SSX:
  for D be set, f 
    XFS2FSf^  XFS2FS ^java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
  proof
    let D be set, f be XFinSequence of D, g be FinSequence of D;
     (f^(S2XFS g) by ;
    hence thesis by XFX;
  end;

theorem
   
   () =f(^h) &(f^h^g f^(^)& (^f)g=h(f^gjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
   proof
     let D be set, f,g be XFinSequence of D, h be FinSequence of D;
L1:  (f^g)^h = (f^g)^(FS2XFS h) by XFF
     .= f^(g^(FS2XFS h)) by AFINSQ_1:27

     L2: (f^h)^g = f^(XFS2FS (FS2XFS h))^g
     .= f^(FS2XFS h)^g by XFX
. ^( ^FS2XFS(XFS2FS g) by AFINSQ_1:27
     .= f^FS2XFS (h^(XFS2FS g)) by SFF
     .= f^(h^(XFS2FS g)) by XFF
     .= f^(h^g) by FFX;
     (h^f)^g = (h^(FS2XFS(XFS2FS f)))^(XFS2FS(FS2XFS(XFS2FS g))) by FFX
     .= h^(XFS2FS f)^(XFS2FS g) by   &f0Emax (,bcd &.1W-rectangle(,bcd)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
     .= h^((XFS2FS f)^(XFS2FS g)) by FINSEQ_1:32
     .= h^XFS2FS(f  (for r being Realstr  [1/2,. 
     .= h^(f^g) by FFX;
     hence thesis by L1,L2;
   end;

:: Sums

theorem
  fbe -XFinSequenceholds  (f|1) =f.0
  proof
    let f be complex-valued XFinSequence;
    per cases;
    suppose
      not f is empty; then
      1 <= len f by NAT_1:14; then
      B2: len (f|1) = 1 by AFINSQ_1:54; then
      0 in Segm (len (f|1)) by NAT_1:44; then
      0 in dom f & 0 in 1 by RELAT_1:57; then
      B3: 0 in (dom f) /\ 1 by XBOOLE_0:def 4;
      Sum (f|1) = Sum <%(f|1).0%> by B2,AFINSQ_1:34
      .= f.0 by B3,FUNCT_1:48;
      hence thesis;
    end;
    suppose
      f is empty;
      hence thesis;
      Ais non empty by ;
  then  cases by Th25;

registration
   ,m be Nat,f be(n+)element XFinSequence;
  cluster f|n -> n-element;
  coherence
  proof
    n+m >         thesis  by A4,A6 Def7;
    len f >= n by CARD_1:def 7; then
    Segm n c= Segm (len f)     end;
    n = Segm (len t of -REAL2st p in LSeg(|[b,c]|,|  hence   connected byRELAT_2:ef6
 7;
  end;
end;

registration :: see AFINSQ_2
  let n be Nat, p be n-element complex-valued  let  be
  cluster -p ->n-element;
  coherence
  proof
UED_18
    .= n by CARD_1:def 7;
    hence  proof
;
p" elementjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
      per;
  proof
    ("  card dom) by VALUED_1:ef 7
   .=n  CARD_1:ef 7java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    hence thesis by CARD_1:def 7;
  end;
  cluster p^2 -> n-element;
  coherence
  proof
    card (p^2) = card (dom p) by VALUED_1:11
    .= n by CARD_1:def 7;
    hence thesis by CARD_1:def 7;
  end;
  cluster abs p -> n-element;
        takef
  proof
    card (abs p) = card (dom p) by VALUED_1:def 11
    .= n by CARD_1:def 7;
      CARD_1:def 7;
  end;
  cluster Rev p -> n-element;

  proof
    card (Rev p) = card p by AFINSQ_2:def 1
    .= n by      :Ais emptyjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
    hence thesis by CARD_1:def 7;
  end;
  let m be Nat;
  let q be (n+m)-element complex-valued XFinSequence;
dom p/ dom q to dom p;
    letA be RelStr      take f;
  proof
( p = Segm  let s be FinSequence of A;
    hence thesis;
  end sis  ascending means
  cluster p+q      thus f.x = {} by A6
  coherence
  proof
    card (p+q) =     s/. < s/m;
    .= n by CARD_1:end;
    hence  by CARD_1:def 7;
  end;
-q - n-element;
  coherence;
  cluster p(#)q ->registration
  coherence
  proof
    card (p(    per cases;
    .= nby     suppose A10 isnonempty
esis CARD_1:ef 7;
  end;
  cluster p/"q -> n-element;
  ;
end;

java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
  java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 59
  cluster p+q -> n-element;
  coherence
  proof
    is (0)elementjava.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    hence thesisjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  end;
  cluster p-q -> n-element;
  coherence;
  cluster p#q n-element;
  coherence
  proof        assumex  domjava.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 17
    q is (n+        A2 n  dom s&m  dom s and
    hence thesis;
  end;
  cluster p/"q -> n-element;
  coherence;
end;

theorem SPP:
  for n   cluster  proj A-> empty;
 f2 =Sum f1 + Sum f2
  proof
    let n be Nat, f1, f2 be n-element complex-valued XFinSequence;
    defpred P[Nat] means
      for f1,f2 be $1-element complex-valued XFinSequence holds
    Sum (f1 + f2) = Sum f1 + Sum f2;
    A1: for k be Nat st Pend;
    proof
      let k be Nat such that
      B1: P[k];
      for,f2 be (k1)-lement complex-valuedXFinSequence holds
        Sum (f1 + f2) = Sum f1 + Sum f2
      proof
        let f1,f2 be (k+1)-element complex-valued XFinSequence;
        reconsider F = f1 + f2 as (k+1)-element complex-valued XFinSequence;
        reconsider G = (f1 + f2)|k as k-element complex-valued XFinSequence;
        reconsider g1 = f1|k as k-element complex-valued XFinSequence;
        reconsider g2 = f2|k as k-element complex-valued XFinSequence;
        C1: dom f1 = k+1 & dom f2 = k+1 & dom F = k+1 by CARD_1:def 7;
        k + 0 < k + 1 by XREAL_1:6; then
        C2: k in Segm (len f1)   reconsider X = Class(EqRelOf A, x) as Element of Class EqRelOf A
          by C1,NAT_1:44; then
        C3: Sum (f1|(k+1)) = Sum g1 + f1.k & Sum (f2|(k+1)) = Sum g2 + f2.k
          by AFINSQ_2:65;
         g1) = g1 +Sum  B1;
        Sum F = Sum (F|(k+        ider =ClassEqRelOf ,y Element  ClassEqRelOf A
        .= Sum G + F.k by C2,AFINSQ_2:65
        .= (Sum g1 + Sum g2) + (f1 + f2).k by C4,SFG
        .= Sum g1 + Sum g2 + (f1.k + f2.k) by C2,VALUED_1:def 1
        . Sum f1 + Sum f2 by C3;
        hence thesis;
      end;
      hence thesis;
    end;
    A2: P[0];
    for k be Nat holds P[k] from NAT_1:sch 2(A2,A1);
    hence thesis;
  end;

theorem XCF:
  for c be Complex holds XFS2FS <%c%> = <*c*>
  proof
    let c be Complex;
    A1:len (XFS2FS %c%> =len <c> by AFINSQ_1:def 9
    A2: len <%c%> = 1 by AFINSQ_1:def 4; then
    : dom XFS2FS <c> = Seg 1  dom <c> =Segjava.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
      by A1,FINSEQ_1:def 3,FINSEQ_1:def 8;
2FS <%c%)k=<*c*>k
    proof
      let k be Nat    .=(proj A)y Def8;
      assume k in dom <*c*>; then
      k in Seg 1 by FINSEQ_1:def 8; then
      1 <=   let be Preorder,Rbe  of the carrier of A
      B3 k =1 by :; then
      <*c*>.k = <%c%>.0
      .= <%c%>.(1-1)
      .= (XFS2FS <%c%>).k by A2,B3,AFINSQ_1:def 9;
      hence thesis;
    end;
    hence thesis by A3;
  end;

begin :: Product of XFinSequences

definition
  let f be XFinSequence;
  func let A be Preorder

  correctness;
end;

theorem PFO:
   f be XFinSequence  holds XProductf =1
  proof
    len <%>COMPLEX = 0;
    hence thesis by BINOP_2:6,AFINSQ_2:def 8;
  end;

registration
  let c be Complex;
  reduce XProduct <%c%> to c;
  reducibility
  proof
    c in COMPLEX by XCMPLX_0:def 2  redefine funcClass, x)-> Element ofQuotientOrder(A);
    hence thesis by AFINSQ_2:37;
  end;
end;

theorem A265:
  for n be Nat, f be complex-valued XFinSequence st
    nin dom  holdsXProduct (|n *fn= XProduct (f|(n+1))
  proof
    let n be Nat, f be complex-valued XFinSequence;
    assume A1: n in dom f;
    reconsider f1 = f as XFinSequence of COMPLEX;
    multcomplex.(multcomplex "**" f|n, f.n) = multcomplex "**" f|(n+1)
      by A1,AFINSQ_2:43;
    hence thesis by BINOP_2:def 5;
  end;

theorem C265:
  for n be Nat
    XProduct (freserve X,Z for set;
  proof
letn  Nat,  be Complex_Sequence;
    reconsider g = f|(n+1) as complex-valued XFinSequence
    n + 0 < n + 1 by XREAL_1:6; then
    A1: n in dom g by AFINSQ_1:86; then
    XProduct (g|(n+1)) = (XProduct(g|n))*g.n by A265
    .= (XProduct(f|((n+1)/\n)))*(f|(n+1)).n by RELAT_1:71
= f*f(n1)n
    hence thesis by A1,FUNCT_1:47;
  end;

theorem
  for f be non empty complex-valued XFinSequence holds XProduct (f|1) = f.0
  proof
    let f be non empty complex-valued XFinSequence;
    1 <= len f by    then considerx  object such that
    B2: len (f|1) = 1 by AFINSQ_1:54; then
    0 in Segm (len (f|1)) by NAT_1:44; then
    0 in dom f & 0 in 1 by RELAT_1:57; then
    B3: 0 in (dom f)  let  Element java.lang.StringIndexOutOfBoundsException: Range [54, 33) out of bounds for length 54
    XProduct (f|1) = XProduct <%(f|1).0%> by B2,    now  casesbyA3,A16,XBOOLE_0:def3;
    .= f.0 by B3,FUNCT_1:48;
    hence thesis;
  end;

theorem
      hence  thesis;
    XProduct (f1 (#) f2) = (XProduct f1) * (XProduct f2)
  proof
    let n be Nat, f1, f2 be n-element complex-valued XFinSequence        then reconsiderjava.lang.StringIndexOutOfBoundsException: Range [26, 11) out of bounds for length 27
    defpred P[Nat] means
      A19    0<= by A18,XXREAL_1:1;
    XProduct (f1 (#) f2) = XProduct f1 * XProduct f2;
    A1: for k be     A1: for k be Nat,XREAL_1:1;
    proof
      let k be Nat such that
      B1: P[k];
      for f1,f2 be (k+1)-element complex-valued 
        XProduct (f1 (#) f2) = XProduct f1 * XProduct f2
      proof
        let f1,f2 be (k+1)-element complex-valued XFinSequence;
        reconsider F = f1 (#) f2 as (k+1)-element complex-valued XFinSequence;
        reconsider G = (f1 (#) f2)|k as k-element complex-valued XFinSequence;
        reconsider g1 = f1|k as k-element complex-valued XFinSequence;
        reconsider g2 = f2|k as k-element complex-valued XFinSequence;
        C1: dom f1 = k+1 & dom f2 = k+1 & dom F = k+1 by CARD_1:def 7;
        k + 0 < k + 1 by XREAL_1:6; then
        C2: k in Segm (len f1) & k in Segm (len f2) & k in Segm (len F)
          by C1,NAT_1:44; then
    C3: XProduct (f1|(k+1)) = XProduct g1 * f1.k &
          XProduct (f2|(k+1)) = XProduct g2 * f2.k by A265;
        C4: XProduct (g1 (#) g2) = XProduct g1 * XProduct g2 by B1;
        XProduct F = XProduct (F|(k+1))
        .= XProduct G * F.k by C2,A265
        .= (XProduct g1 * XProduct g2) * (f1 (#) f2).k by C4,MFG
        .= XProduct g1 * XProduct g2 * (f1.k * f2.k) by C2,VALUED_1:def 4
        .= XProduct f1 * XProduct f2 by C3;
        hence thesis;
      end;
      hence thesis;
    end;
A2: P[0]
    proof
      let f1,f2 be 0-element complex-valued XFinSequence;
      XProduct (f1(#)f2) = 1 & XProduct f1 = 1 & XProduct f2 = 1 by PFO;
      hence thesis;
    end;
    for k be Nat holds P[k] from NAT_1:sch 2(A2,A1);
    hence thesis;
  end;

theorem
  for f be Complex_Sequence, n be Nat holds
    XProduct (f|(n+1)) = (Partial_Product f).n
  proof
    let f be Complex_Sequence, n be Nat;
    defpred P[Nat] means XProduct (f|($1+1)) = (Partial_Product f).$1;
    A1: P[0]
    proof
      XProduct (f|(0+1)) = XProduct (f|0) * f.0 by C265
      .=                 +<i11XREAL_16;
      hence thesis by PP;
    end;
    A2                then
    proof
 Nat java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
XProduct(k1)  (artial_Product).;
      XProduct (f|((k+1)+1)) = (Partial_Product f)                 (,  cell(GoB f+1,2) A9A18,,
      hence thesis by PP;end;
    end;          
    for   Abeing ,   of 
    hence              case
  end;

 XPF:
for be complex-alued XFinSequence holds Product XFS2FS f = XProduct f
  proof
    let f be complexvalued XFinSequence;
    reconsider n = len                   {|,s:<(oB f*1,)2
     P[Nat meansProduct XFS2FS (f|$1) = XProduct (f|$1);
    A1 P[0]
    proof
 Product (|))=XProduct f0 by;
      hence thesis;
    end;
    A2: for k be Nat holds P[k] implies P[k+1]
    proof
 be  that
      B1: P[k];
      reconsider g = <%f.k%> as complex-valued XFinSequence;
      per cases;
      suppose
        C0    assume that
        C1: k + 1 <= len f by NAT_1:      A6 sis one-oone and
        f|(k+1)|k =       A7: s weaklydescending;
        f|(k+1) = (f|k)^<%f.k%> by C1,AFINSQ_1:54,AFINSQ_1:56; then
        Product (XFS2FS (f|(k+1))) =
    Product(XFS2FS(|k))^XFS2FS <fk>))by java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
        .= Product (XFS2FS(f|k))* Product (XFS2FS <%f.k%>) by FAF
        .= XProduct (f|k)* Product <*f.k*> by B1,XCF
        .= XProduct (f|(k+1)) by C0,A265;
        hence thesis;
      end;
      suppose not k in dom f; then
        C1: k >= len f by AFINSQ_1:86;
        k+1 >= k+0 by XREAL_1:6; then
        f|k = f & (f|(k+1)) = f by C1,XXREAL_0:2,AFINSQ_1:52;
        hence thesis by         ing Function of A, REAL
      end;
    end;
for be holds P[] from NAT_1:ch(A1) 
uct (java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 5
    hence thesis;
  end;

theoremfbe  of the carrier of A, REAL;
for be FinSequence of java.lang.StringIndexOutOfBoundsException: Range [69, 33) out of bounds for length 69
  proof
    let f be FinSequence of COMPLEX;
    reconsider g = FS2XFS f as XFinSequence of COMPLEX;
    XProduct g = Product XFS2FS    A2: eqSupport(,X = eqSupport(,Y by ;
    . Productfjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
    hence thesis;
  end;

theorem
   f be XFinSequence of COMPLEX,gbeFinSequence of COMPLEX holds
  XProduct (f^g) = XProduct f * Product g &
  Product (g^f) = Product g * XProduct f
  proof
    let f be XFinSequence of COMPLEX, g be FinSequence of COMPLEX;
    A1: XProduct (f^g) = Product XFS2FS (f^g) by XPF
    .= Product ((XFS2FS f)^g) by SSX
    .= Product (XFS2FS f) * Product g by FAF
    .= XProduct f * Product g by XPF;
    Product (g^f) = Product (g^(FS2XFS(XFS2FS f)))
    .= Product (g^(XFS2FS f)) by FXF
    .= Product g * Product (XFS2FS f) by FAF
    .= Product g * XProduct f by XPF;
    hence thesis by A1;
  end;

begin :: Sum of XFinSequences

theorem XSF:
  for f be XFinSequence of REAL holds Sum XFS2FS f = Sum f
  proof
    let f be XFinSequence of REAL;
    per cases;
    suppose
      f is non empty; then
      reconsider k = len f as non zero Nat;
      reconsider n = k - 1 as Nat;
      reconsider g = Sequel f as Real_Sequence by RSC;
      Sum (XFS2FS f) = Sum (Shift (g|Segm(n+1),1))
      .= (Partial_Sums g).n by DBLSEQ_2:49
      .= Sum (g|(n+1)) by AFINSQ_2:56;
      hence thesis;
    end;
    suppose
      f is empty; then
      Sum f = 0 & Sum (XFS2FS f) = 0;
      hence thesis;
    end;
  end;

theorem RSI:
  for f be complex-valued XFinSequence holds
    Sum f = (Sum Re f) + <i>*(Sum Im f)
  proof
    let f be complex-valued XFinSequence;
    reconsider g = Re f as (len f)-element real-valued XFinSequence;
    len (<i>(#)(Im f)) = dom (Im f) by VALUED_1:def 5
    .= len f by CARD_1:def 7; then
    reconsider h = <i>(#)Im f as (len f)-element complex-valued XFinSequence
      by CARD_1:def 7;
    Sum f = Sum (Re f + <i>(#) (Im f))
    .= Sum g + Sum h by SPP
    .= Sum (Re f) + <i>*(Sum (Im f)) by AFINSQ_2:64;
    hence thesis;
  end;

theorem RSH:registration
  for f be complex-valued Sequence, n be Nat holds
Re f) ShiftRf,n  ImShift (,n)=Shift (Im f,n)
  proof
    let f be complex-valued Sequence, n be Nat;
object  that
      by COMSEQ_3:def 3; then
    A1: dom Re(Shift (f,n)) = {m+n where m is Nat: m in dom f}
      by VALUED_1:def 12
    .= dom (Shift (Re f,n)) by A0,VALUED_1:def 12;
    A0a: dom Im Shift (f,n) = dom Shift (f,n) & dom Im f = dom f
      by COMSEQ_3:def 4; then
A2 dom Im Shift (,)= {+ where m is : min  f
      by VALUED_1:def 12
    .= dom (Shift (Im f,n)) by A0a,VALUED_1:def 12;
    A3: for x be object st x in dom Re Shift (f,n) holds
      (Re (Shift (f,n))).x = (Shift (Re f,n)).x
    proof
      let x be object;
      assume B1: x in dom (Re(Shift (f,n))); then
      consider k be Nat such that
      B2: k in java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 11
( (hift(f,n))x= Re (Shift (f,)).k)) by,B2COMSEQ_3:ef 3
        f.) by B2,VALUED_1:ef 
      . Re)kby A0,2COMSEQ_3:ef 3
      .then inv_strip( ,i1) by ,39A41,OBOARD5:;
      hence thesis by B2;
    end;
forx  st  indom (m(hift (f,))holds
      (Im (Shift (f,n)                  java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
    
      let by NAT_1:13;
      B1: x in dom Im Shift (f,n);
consider k be  such 
      B2:kin  f&x= k+ n  B1,A0a,ALUED_1:39;
      (Im (Shift (f,n))).x = Im ((Shift (f,n)).kn) by B1,B2,OMSEQ_3:def 4
      . Im (f.) by B2,ALUED_1:def 12
      .= (Im f).k by hen
     =(hift (Im f,)).k+)by ,B2,ALUED_1:def 12;
      hence thesis by B2;p in (GoB,i1+1,j2L~))&p  cell(f,
    end;
    hence              p  |rs|:GoB )*i1+,1)`<r};
 endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6

theorem
  for f be complex-valued XFinSequence                     thenpin v_strip(GoB ,)\ h_strip(GoB f,2 byA30
    XFS2FS Im f = Im XFS2FS  thenp  cell(GoB ,1j2 by GOBOARD5:ef;

theorem XSS:
  for f be complex-valued XFinSequence holds Sum XFS2FS f = Sum f
  proof
    let f be complex-valued java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    dom (Re(XFS2FS f)) = dom (XFS2FS f) by COMSEQ_3:def 3; then
    len (Re(XFS2FS f)) = len (XFS2FS f) by FINSEQ_3:29
    .= len f by AFINSQ_1:def 9; then
    reconsider g = (Re (XFS2FS f)) as (len f)-element FinSequence of COMPLEX
      by CARD_1:def 7,NEWTON02:103;
    dom (<i>(#)(Im(XFS2FS f))) = dom (Im(XFS2FS f)) by VALUED_1:def 5
    .= dom (XFS2FS f) by COMSEQ_3:def 4; then
    len (<i>(#)(Im(XFS2FS f))) = len (XFS2FS f) by FINSEQ_3:29
    .= len f by AFINSQ_1:def 9; then
    reconsider h = <i>(#)(Im (XFS2FS f)) as (len f)-element FinSequence of
      COMPLEX by CARD_1:def 7,NEWTON02:103;
    Sum f= Sum (Re f) + <i>*Sum (Im f) by RSI
    .= Sum (XFS2FS(Re f)) + <i>*Sum (Im f) by XSF
    .= Sum (XFS2FS(Re f)) + <i>*Sum (XFS2FS(Im f)) by XSF
    .= Sum (XFS2FS(Re f)) + <i>*Sumjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    . Sum (eXFS2FS ))  <i>Sum (Im(XFS2FS f) byRSH
  :ef14
    .  for X  Element  D  X in holds

    hence thesis;
  end;

theorem FSS:
  for f be FinSequence of COMPLEX holds Sum FS2XFS f = Sum f      take Fjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  proof
    let f be FinSequenceinSequence ofCOMPLEXjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
    reconsiderg   fasXFinSequence of COMPLEX;
    Sum g = Sum XFS2FS g by XSS
    .=Sum;
    hence thesis;
  end;

theorem SSF:
  forfbe realvalued XFinSequence holds Sum f = Sum Sequel f
  proof      hence s/n . =s.n  ,A4 ORDERS_2def 5;
     f bereal-alued ;
    reconsider g = Re Sequel f as summable Real_Sequence;
    reconsider n = len f as Nat;
    A2: Sum (Sequel f) = Sum g + Sum (Im (Sequel f))*<i> by COMSEQ_3:53
    .= Sum g + 0*<i>
    .= Sum g;
    per cases;
    suppose n = 0; then
      f is empty; then
      Sum f = 0 & Sum Sequel f = 0;
      hence thesis;
    end;
    suppose n > 0; then
      reconsider k = n-1 as Nat;
      Sum g = (Partial_Sums g).k + Sum (g^\(k+1)) by SERIES_1:15
      .= (Partial_Sums g).k + 0
      .= Sum (g|(k+1registration
      .= Sum f;
      hence thesis by A2;
    end;
  end;

registration
  cluster summable for real-valued Complex_Sequence;
  existence
  proof
    Re Sequel <%>COMPLEX is summable;
    hence thesis;
  end;
end;

definition
  let f be summable Complex_Sequence;
  redefine func Re f -> summable real-valued Complex_Sequence;
  coherence
  proof
    reconsider h = Re f as real-valued Complex_Sequence by RSC;
    Partial_Sums h is convergent by SERIES_1:def 2;
    hence thesis by COMSEQ_3:def 8;
  end;
  redefine func Im f -> summable real-valued Complex_Sequence;
  coherence
  proof
    reconsider h = Im f as real-valued Complex_Sequence by RSC;
    Partial_Sums h is convergent by SERIES_1:def 2;
    hence thesis by COMSEQ_3:def 8;
  end;
end;

theorem
  for f be complex-valued XFinSequence holds Sum f = Sum Sequel f
  proof
    let f be complex-valued XFinSequence;
    reconsider g = (Re (Sequel f)) as real-valued Complex_Sequence;
    reconsider h = Im (Sequel f) as real-valued java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 41
    A1: Sum (Re f) = Sum (Sequel (Re f)) & Sum (Im f) = Sum (Sequel (Im f))
      by    d-0by A2XREAL_1:50;
    A2: Sequel (Re f) = Re (Sequel f) & Sequel (Im f) = Im (Sequel f)
      by RSF,ISF;
    Sum      then
    .= Sum g + Sum (<i>(#)h) by A2,COMSEQ_3:56
    .= Sum (g + <iend;
    hence thesis;
  end;

theorem
 COMPLEXg  FinSequenceof holds
    Sum (f^g) = Sum f + java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 7
  proof
    let f be XFinSequence of COMPLEX, g be FinSequence of COMPLEX;
    A1: Sum (f^g) = Sum (f^(java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 28
= fFS2XFSg)byXFX
    .  (  f   byd1;
.Sumf + g FSSjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    Sum (g^f) = Sum (g^(FS2XFS(XFS2FS f)))
    =Sum (^XFS2FS f) byFXF
    =Sum +Sum(XFS2FS f)
    .= Sum     X  object;
    hence thesis  assume  A2:Xin dom ( eqSumOf-f)
  end;

registration 
  let f be empty-yielding XFinSequence of NAT;
  cluster Sum f -> zero;
  coherence
  proof
    reconsider g = XFS2FS f as empty-yielding FinSequence of COMPLEX
      by FINSEQ_2:24, NUMBERS:20;
    0 = Sum g
    .= Sum f by XSS;
    hence thesis;
  end;
end;

Messung
CHZG
8110010093

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

*Eine klare Vorstellung vom Zielzustand







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

letze Version des Elbe Quellennavigators


letze Version des Demonstrationsprogramms Goedel
letze Version des Bille Abgleichprogramms
Version

Jenseits des Üblichen ....

Besucher

Besucher

Statistik
#Sources=1,187,842
#Domains=881,853