Eine aufbereitete Darstellung der Quelle

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


Quelle  valued_1.miz   Sprache: Mizar

 

:: Properties of Number-Valued Functions
::  by Library Committee
::
:: Received December 18, 2007
:: Copyright (c) 2007-2026 Association of Mizar Users
::           (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.

environ

 vocabularies NUMBERS, FINSEQ_1, FUNCT_1, RELAT_1, XBOOLE_0, ORDINAL1,
      XXREAL_0, VALUED_0, RAT_1, COMPLEX1, ARYTM_1, ARYTM_3, MEMBERED,
      PARTFUN1, TARSKI, SUBSET_1, CARD_1, XCMPLX_0, INT_1, SQUARE_1, FUNCT_4,
      FINSET_1, NAT_1, ORDINAL2, VALUED_1, AMISTD_1, FUNCOP_1, AMISTD_2,
      AMISTD_3, ORDINAL4, REAL_1, NUMBER09;
 notations TARSKI, XBOOLE_0, SUBSET_1, ORDINAL1, FINSET_1, CARD_1, XCMPLX_0,
      NUMBERS, COMPLEX1, XXREAL_0, XXREAL_2, FUNCOP_1, XREAL_0, RAT_1, INT_1,
      INT_2, SQUARE_1, RELAT_1, FUNCT_1, RELSET_1, PARTFUN1, FUNCT_2, FUNCT_4,
      FINSEQ_1, MEMBERED, NAT_1, VALUED_0;
 constructors PARTFUN1, RAT_1, VALUED_0, SQUARE_1, MEMBERED, INT_2, FINSEQ_1,
      NAT_1, FUNCT_4, NAT_D, RELSET_1, XXREAL_2, FUNCOP_1, DOMAIN_1, WELLORD2,
      FINSEQ_3, REAL_1;
 registrations ORDINAL1, RELSET_1, FUNCT_2, NUMBERS, XREAL_0, MEMBERED,
      VALUED_0, RAT_1, INT_1, NAT_1, FUNCT_1, FINSET_1, XXREAL_0, RELAT_1,
      XXREAL_2, FUNCOP_1, FUNCT_4, CARD_1, FINSEQ_1;
 requirements NUMERALS, SUBSET, BOOLE, ARITHM, REAL;
 definitions TARSKI, XBOOLE_0, RELAT_1, FUNCT_1, FUNCT_2, FINSEQ_1, VALUED_0,
      WELLORD2;
 equalities XBOOLE_0, XCMPLX_0, SQUARE_1, FINSEQ_1, FUNCOP_1;
 expansions TARSKI, XBOOLE_0, FUNCT_1, FINSEQ_1, VALUED_0, WELLORD2;
 theorems FUNCT_1, FUNCT_2, RELSET_1, PARTFUN1, VALUED_0, COMPLEX1, FINSEQ_1,
      XBOOLE_0, TARSKI, GRFUNC_1, RELAT_1, FUNCT_4, FINSET_1, NAT_1, INT_1,
      ORDINAL1, XXREAL_0, ZFMISC_1, XXREAL_2, XBOOLE_1, CARD_1,
      CARD_2, RAT_1, XTUPLE_0, XREAL_1, FINSEQ_3;
 schemes FUNCT_1, CLASSES1, FRAENKEL, RECDEF_1, NAT_1;

begin :: f1 + f2

Lm1: for f being FinSequence, h being Function st dom h = dom f holds
h is FinSequence
proof
  let f be FinSequence, h be Function such that
A1: dom h = dom f;
  h is FinSequence-like
  proof
    take len f;
    thus thesis by A1,FINSEQ_1:def 3;
  end;
  hence thesis;
end;

Lm2: for f, g being FinSequence, h being Function st dom h = dom f /\ dom g
holds h is FinSequence
proof
  let f, g be FinSequence, h be Function such that
A1: dom h = dom f /\ dom g;
  consider n being Nat such that
A2: dom f = Seg n by FINSEQ_1:def 2;
  consider m being Nat such that
A3: dom g = Seg m by FINSEQ_1:def 2;
  h is FinSequence-like
  proof
    per cases;
    suppose
A4:   n <= m;
      take n;
      thus thesis by A1,A2,A3,A4,FINSEQ_1:7;
    end;
    suppose
A5:   m <= n;
      take m;
      thus thesis by A1,A2,A3,A5,FINSEQ_1:7;
    end;
  end;
  hence thesis;
end;

registration
  cluster complex-valued for FinSequence;
  existence
  proof
    take <*>COMPLEX;
    thus thesis;
  end;
end;
:: move somewhere

registration
  let r be Rational;
  cluster |. r .| -> rational;
  coherence
  proof
    |. r .| = -r or |. r .| = r by COMPLEX1:71;
    hence thesis;
  end;
end;

definition
  let f1,f2 be complex-valued Function;
  deffunc F(object) = f1.$1 + f2.$1;
  set X = dom f1 /\ dom f2;
  func f1 + f2 -> Function means
  :Def1:
  dom it = dom f1 /\ dom f2 &
  for c being object st c in dom it holds it.c = f1.c + f2.c;
  existence
  proof
    ex f being Function st dom f = X & for x being object st x in X holds f.x
    = F(x) from FUNCT_1:sch 3;
    hence thesis;
  end;
  uniqueness
  proof
    let f, g be Function such that
A1: dom f = X and
A2: for c being object st c in dom f holds f.c = F(c) and
A3: dom g = X and
A4: for c being object st c in dom g holds g.c = F(c);
    now
      let x be object;
      assume
A5:   x in dom f;
      hence f.x = F(x) by A2
        .= g.x by A1,A3,A4,A5;
    end;
    hence thesis by A1,A3;
  end;
  commutativity;
end;

registration
  let f1,f2 be complex-valued Function;
  cluster f1+f2 -> complex-valued;
  coherence
  proof
    let x be object;
    assume x in dom (f1+f2);
    then (f1+f2).x = f1.x + f2.x by Def1;
    hence thesis;
  end;
end;

registration
  let f1,f2 be real-valued Function;
  cluster f1+f2 -> real-valued;
  coherence
  proof
    let x be object;
    assume x in dom (f1+f2);
    then (f1+f2).x = f1.x + f2.x by Def1;
    hence thesis;
  end;
end;

registration
  let f1,f2 be rational-valued Function;
  cluster f1+f2 -> RAT-valued;
  coherence
  proof
    let y be object;
    assume y in rng(f1+f2);
    then consider x being object such that
A1: x in dom (f1+f2) and
A2: (f1+f2).x = y by FUNCT_1:def 3;
    (f1+f2).x = f1.x + f2.x by A1,Def1;
    hence thesis by A2,RAT_1:def 2;
  end;
end;

registration
  let f1,f2 be integer-valued Function;
  cluster f1+f2 -> INT-valued;
  coherence
  proof
    let y be object;
    assume y in rng(f1+f2);
    then consider x being object such that
A1: x in dom (f1+f2) and
A2: (f1+f2).x = y by FUNCT_1:def 3;
    (f1+f2).x = f1.x + f2.x by A1,Def1;
    hence thesis by A2,INT_1:def 2;
  end;
end;

registration
  let f1,f2 be natural-valued Function;
  cluster f1+f2 -> natural-valued;
  coherence
  proof
    let x be object;
    assume x in dom (f1+f2);
    then (f1+f2).x = f1.x + f2.x by Def1;
    hence thesis;
  end;
end;

definition
  let C be set;
  let D1,D2 be complex-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1+f2 -> PartFunc of C,COMPLEX;
  coherence
  proof
    dom (f1+f2) = dom f1 /\ dom f2 & rng (f1+f2) c= COMPLEX by Def1;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D1,D2 be real-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1+f2 -> PartFunc of C,REAL;
  coherence
  proof
    dom (f1+f2) = dom f1 /\ dom f2 & rng (f1+f2) c= REAL by Def1,VALUED_0:def 3
;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D1,D2 be rational-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1+f2 -> PartFunc of C,RAT;
  coherence
  proof
    dom (f1+f2) = dom f1 /\ dom f2 & rng (f1+f2) c= RAT by Def1,RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D1,D2 be integer-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1+f2 -> PartFunc of C,INT;
  coherence
  proof
    dom (f1+f2) = dom f1 /\ dom f2 & rng (f1+f2) c= INT by Def1,RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D1,D2 be natural-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1+f2 -> PartFunc of C,NAT;
  coherence
  proof
    dom (f1+f2) = dom f1 /\ dom f2 & rng (f1+f2) c= NAT by Def1,VALUED_0:def 6;
    hence thesis by RELSET_1:4;
  end;
end;

registration
  let C be set;
  let D1,D2 be complex-membered non empty set;
  let f1 be Function of C,D1;
  let f2 be Function of C,D2;
  cluster f1+f2 -> total for PartFunc of C,COMPLEX;
  coherence
  proof
    dom f1 = C & dom f2 = C by FUNCT_2:def 1;
    then dom(f1+f2) = C /\ C by Def1
      .= C;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D1,D2 be real-membered non empty set;
  let f1 be Function of C,D1;
  let f2 be Function of C,D2;
  cluster f1+f2 -> total for PartFunc of C,REAL;
  coherence
  proof
    dom f1 = C & dom f2 = C by FUNCT_2:def 1;
    then dom(f1+f2) = C /\ C by Def1
      .= C;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D1,D2 be rational-membered non empty set;
  let f1 be Function of C,D1;
  let f2 be Function of C,D2;
  cluster f1+f2 -> total for PartFunc of C,RAT;
  coherence
  proof
    dom f1 = C & dom f2 = C by FUNCT_2:def 1;
    then dom(f1+f2) = C /\ C by Def1
      .= C;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D1,D2 be integer-membered non empty set;
  let f1 be Function of C,D1;
  let f2 be Function of C,D2;
  cluster f1+f2 -> total for PartFunc of C,INT;
  coherence
  proof
    dom f1 = C & dom f2 = C by FUNCT_2:def 1;
    then dom(f1+f2) = C /\ C by Def1
      .= C;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D1,D2 be natural-membered non empty set;
  let f1 be Function of C,D1;
  let f2 be Function of C,D2;
  cluster f1+f2 -> total for PartFunc of C,NAT;
  coherence
  proof
    dom f1 = C & dom f2 = C by FUNCT_2:def 1;
    then dom(f1+f2) = C /\ C by Def1
      .= C;
    hence thesis by PARTFUN1:def 2;
  end;
end;

theorem
  for C being set, D1,D2 being complex-membered non empty set for f1
  being Function of C,D1, f2 being Function of C,D2 for c being Element of C
  holds (f1+f2).c = f1.c + f2.c
proof
  let C be set;
  let D1,D2 be complex-membered non empty set;
  let f1 be Function of C,D1, f2 be Function of C,D2;
A1: dom(f1+f2) = C by FUNCT_2:def 1;
  let c be Element of C;
  per cases;
  suppose
    C is non empty;
    hence thesis by A1,Def1;
  end;
  suppose
A2: C is empty;
    then f1.c = 0;
    hence thesis by A2;
  end;
end;

registration
  let f1, f2 be complex-valued FinSequence;
  cluster f1+f2 -> FinSequence-like;
  coherence
  proof
    dom(f1+f2) = dom f1 /\ dom f2 by Def1;
    hence thesis by Lm2;
  end;
end;

begin :: r + f

definition
  let f be complex-valued Function, r be Complex;
  deffunc F(object) = r + f.$1;
  func r + f -> Function means
  :Def2:
  dom it = dom f &
  for c being object st c in dom it holds it.c = r + f.c;
  existence
  proof
    ex g being Function st dom g = dom f & for x being object st x in dom f
    holds g.x = F(x) from FUNCT_1:sch 3;
    hence thesis;
  end;
  uniqueness
  proof
    let h, g be Function such that
A1: dom h = dom f and
A2: for c being object st c in dom h holds h.c = F(c) and
A3: dom g = dom f and
A4: for c being object st c in dom g holds g.c = F(c);
    now
      let x be object;
      assume
A5:   x in dom h;
      hence h.x = F(x) by A2
        .= g.x by A1,A3,A4,A5;
    end;
    hence thesis by A1,A3;
  end;
end;

notation
  let f be complex-valued Function, r be Complex;
  synonym f + r for r + f;
end;

registration
  let f be complex-valued Function, r be Complex;
  cluster r+f -> complex-valued;
  coherence
  proof
    let x be object;
    assume x in dom (r+f);
    then (r+f).x = r + f.x by Def2;
    hence thesis;
  end;
end;

registration
  let f be real-valued Function, r be Real;
  cluster r+f -> real-valued;
  coherence
  proof
    let x be object;
    assume x in dom (r+f);
    then (r+f).x = r + f.x by Def2;
    hence thesis;
  end;
end;

registration
  let f be rational-valued Function, r be Rational;
  cluster r+f -> RAT-valued;
  coherence
  proof
    let y be object;
    assume y in rng (r+f);
    then consider x being object such that
A1: x in dom (r+f) and
A2: (r+f).x = y by FUNCT_1:def 3;
    (r+f).x = r + f.x by A1,Def2;
    hence thesis by A2,RAT_1:def 2;
  end;
end;

registration
  let f be integer-valued Function, r be Integer;
  cluster r+f -> INT-valued;
  coherence
  proof
    let y be object;
    assume y in rng (r+f);
    then consider x being object such that
A1: x in dom (r+f) and
A2: (r+f).x = y by FUNCT_1:def 3;
    (r+f).x = r + f.x by A1,Def2;
    hence thesis by A2,INT_1:def 2;
  end;
end;

registration
  let f be natural-valued Function, r be Nat;
  cluster r+f -> natural-valued;
  coherence
  proof
    let x be object;
    assume x in dom (r+f);
    then (r+f).x = r + f.x by Def2;
    hence thesis;
  end;
end;

definition
  let C be set;
  let D be complex-membered set;
  let f be PartFunc of C,D;
  let r be Complex;
  redefine func r+f -> PartFunc of C,COMPLEX;
  coherence
  proof
    dom (r+f) = dom f & rng (r+f) c= COMPLEX by Def2;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be real-membered set;
  let f be PartFunc of C,D;
  let r be Real;
  redefine func r+f -> PartFunc of C,REAL;
  coherence
  proof
    dom (r+f) = dom f & rng (r+f) c= REAL by Def2,VALUED_0:def 3;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be rational-membered set;
  let f be PartFunc of C,D;
  let r be Rational;
  redefine func r+f -> PartFunc of C,RAT;
  coherence
  proof
    dom (r+f) = dom f & rng (r+f) c= RAT by Def2,RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be integer-membered set;
  let f be PartFunc of C,D;
  let r be Integer;
  redefine func r+f -> PartFunc of C,INT;
  coherence
  proof
    dom (r+f) = dom f & rng (r+f) c= INT by Def2,RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be natural-membered set;
  let f be PartFunc of C,D;
  let r be Nat;
  redefine func r+f -> PartFunc of C,NAT;
  coherence
  proof
    dom (r+f) = dom f & rng (r+f) c= NAT by Def2,VALUED_0:def 6;
    hence thesis by RELSET_1:4;
  end;
end;

registration
  let C be set;
  let D be complex-membered non empty set;
  let f be Function of C,D;
  let r be Complex;
  cluster r+f -> total for PartFunc of C,COMPLEX;
  coherence
  proof
    dom(r+f) = dom f by Def2
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D be real-membered non empty set;
  let f be Function of C,D;
  let r be Real;
  cluster r+f -> total for PartFunc of C,REAL;
  coherence
  proof
    dom(r+f) = dom f by Def2
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D be rational-membered non empty set;
  let f be Function of C,D;
  let r be Rational;
  cluster r+f -> total for PartFunc of C,RAT;
  coherence
  proof
    dom(r+f) = dom f by Def2
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D be integer-membered non empty set;
  let f be Function of C,D;
  let r be Integer;
  cluster r+f -> total for PartFunc of C,INT;
  coherence
  proof
    dom(r+f) = dom f by Def2
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D be natural-membered non empty set;
  let f be Function of C,D;
  let r be Nat;
  cluster r+f -> total for PartFunc of C,NAT;
  coherence
  proof
    dom(r+f) = dom f by Def2
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

theorem
  for C being non empty set, D being complex-membered non empty set
  for f being Function of C,D, r being Complex
  for c being Element of C holds
  (r+f).c = r + f.c
proof
  let C be non empty set;
  let D be complex-membered non empty set;
  let f be Function of C,D, r be Complex;
  dom(r+f) = C by FUNCT_2:def 1;
  hence thesis by Def2;
end;

registration
  let f be complex-valued FinSequence, r be Complex;
  cluster r+f -> FinSequence-like;
  coherence
  proof
    dom (r+f) = dom f by Def2;
    hence thesis by Lm1;
  end;
end;

begin :: f - r

definition
  let f be complex-valued Function, r be Complex;
  func f - r -> Function equals
  -r + f;
  coherence;
end;

theorem
  for f being complex-valued Function, r being Complex holds dom
  (f-r) = dom f & for c being object st c in dom f holds (f-r).c = f.c - r
proof
  let f be complex-valued Function, r be Complex;
  dom (f-r) = dom f by Def2;
  hence thesis by Def2;
end;

registration
  let f be complex-valued Function, r be Complex;
  cluster f-r -> complex-valued;
  coherence;
end;

registration
  let f be real-valued Function, r be Real;
  cluster f-r -> real-valued;
  coherence;
end;

registration
  let f be rational-valued Function, r be Rational;
  cluster f-r -> RAT-valued;
  coherence;
end;

registration
  let f be integer-valued Function, r be Integer;
  cluster f-r -> INT-valued;
  coherence;
end;

definition
  let C be set;
  let D be complex-membered set;
  let f be PartFunc of C,D;
  let r be Complex;
  redefine func f-r -> PartFunc of C,COMPLEX;
  coherence
  proof
    dom (f-r) = dom f & rng (f-r) c= COMPLEX by Def2;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be real-membered set;
  let f be PartFunc of C,D;
  let r be Real;
  redefine func f-r -> PartFunc of C,REAL;
  coherence
  proof
    dom (f-r) = dom f & rng (f-r) c= REAL by Def2,VALUED_0:def 3;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be rational-membered set;
  let f be PartFunc of C,D;
  let r be Rational;
  redefine func f-r -> PartFunc of C,RAT;
  coherence
  proof
    dom (f-r) = dom f & rng (f-r) c= RAT by Def2,RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be integer-membered set;
  let f be PartFunc of C,D;
  let r be Integer;
  redefine func f-r -> PartFunc of C,INT;
  coherence
  proof
    dom (f-r) = dom f & rng (f-r) c= INT by Def2,RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

registration
  let C be set;
  let D be complex-membered non empty set;
  let f be Function of C,D;
  let r be Complex;
  cluster f-r -> total for PartFunc of C,COMPLEX;
  coherence;
end;

registration
  let C be set;
  let D be real-membered non empty set;
  let f be Function of C,D;
  let r be Real;
  cluster f-r -> total for PartFunc of C,REAL;
  coherence;
end;

registration
  let C be set;
  let D be rational-membered non empty set;
  let f be Function of C,D;
  let r be Rational;
  cluster f-r -> total for PartFunc of C,RAT;
  coherence;
end;

registration
  let C be set;
  let D be integer-membered non empty set;
  let f be Function of C,D;
  let r be Integer;
  cluster f-r -> total for PartFunc of C,INT;
  coherence;
end;

theorem
  for C being non empty set, D being complex-membered non empty set for
f being Function of C,D, r being Complex for c being Element of C holds
  (f-r).c = f.c - r
proof
  let C be non empty set;
  let D be complex-membered non empty set;
  let f be Function of C,D, r be Complex;
  dom (f-r) = C by FUNCT_2:def 1;
  hence thesis by Def2;
end;

registration
  let f be complex-valued FinSequence, r be Complex;
  cluster f-r -> FinSequence-like;
  coherence;
end;

begin :: f1 (#) f2

definition
  let f1,f2 be complex-valued Function;
  deffunc F(object) = f1.$1 * f2.$1;
  set X = dom f1 /\ dom f2;
  func f1 (#) f2 -> Function means
  :Def4:
  dom it = dom f1 /\ dom f2 & for c
  being object st c in dom it holds it.c = f1.c * f2.c;
  existence
  proof
    ex f being Function st dom f = X & for x being object st x in X holds f.x
    = F(x) from FUNCT_1:sch 3;
    hence thesis;
  end;
  uniqueness
  proof
    let f, g be Function such that
A1: dom f = X and
A2: for c being object st c in dom f holds f.c = F(c) and
A3: dom g = X and
A4: for c being object st c in dom g holds g.c = F(c);
    now
      let x be object;
      assume
A5:   x in dom f;
      hence f.x = F(x) by A2
        .= g.x by A1,A3,A4,A5;
    end;
    hence thesis by A1,A3;
  end;
  commutativity;
end;

theorem
  for f1,f2 being complex-valued Function
   for c being object holds (f1(#)f2).c = f1.c * f2.c
proof
  let f1,f2 be complex-valued Function;
  let c be object;
A1: dom (f1(#)f2) = dom f1 /\ dom f2 by Def4;
  per cases;
  suppose
    c in dom (f1(#)f2);
    hence thesis by Def4;
  end;
  suppose
A2: not c in dom (f1(#)f2);
    then not c in dom f1 or not c in dom f2 by A1,XBOOLE_0:def 4;
    then f1.c = 0 or f2.c = 0 by FUNCT_1:def 2;
    hence thesis by A2,FUNCT_1:def 2;
  end;
end;

registration
  let f1,f2 be complex-valued Function;
  cluster f1(#)f2 -> complex-valued;
  coherence
  proof
    let x be object;
    assume x in dom (f1(#)f2);
    then (f1(#)f2).x = f1.x * f2.x by Def4;
    hence thesis;
  end;
end;

registration
  let f1,f2 be real-valued Function;
  cluster f1(#)f2 -> real-valued;
  coherence
  proof
    let x be object;
    assume x in dom (f1(#)f2);
    then (f1(#)f2).x = f1.x * f2.x by Def4;
    hence thesis;
  end;
end;

registration
  let f1,f2 be rational-valued Function;
  cluster f1(#)f2 -> RAT-valued;
  coherence
  proof
    let y be object;
    assume y in rng (f1(#)f2);
    then consider x being object such that
A1: x in dom (f1(#)f2) and
A2: (f1(#)f2).x = y by FUNCT_1:def 3;
    (f1(#)f2).x = f1.x * f2.x by A1,Def4;
    hence thesis by A2,RAT_1:def 2;
  end;
end;

registration
  let f1,f2 be integer-valued Function;
  cluster f1(#)f2 -> INT-valued;
  coherence
  proof
    let y be object;
    assume y in rng (f1(#)f2);
    then consider x being object such that
A1: x in dom (f1(#)f2) and
A2: (f1(#)f2).x = y by FUNCT_1:def 3;
    (f1(#)f2).x = f1.x * f2.x by A1,Def4;
    hence thesis by A2,INT_1:def 2;
  end;
end;

registration
  let f1,f2 be natural-valued Function;
  cluster f1(#)f2 -> natural-valued;
  coherence
  proof
    let x be object;
    assume x in dom (f1(#)f2);
    then (f1(#)f2).x = f1.x * f2.x by Def4;
    hence thesis;
  end;
end;

definition
  let C be set;
  let D1,D2 be complex-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1(#)f2 -> PartFunc of C,COMPLEX;
  coherence
  proof
    dom (f1(#)f2) = dom f1 /\ dom f2 & rng (f1(#)f2) c= COMPLEX by Def4;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D1,D2 be real-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1(#)f2 -> PartFunc of C,REAL;
  coherence
  proof
    dom (f1(#)f2) = dom f1 /\ dom f2 & rng (f1(#)f2) c= REAL by Def4,
VALUED_0:def 3;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D1,D2 be rational-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1(#)f2 -> PartFunc of C,RAT;
  coherence
  proof
    dom (f1(#)f2) = dom f1 /\ dom f2 & rng (f1(#)f2) c= RAT by Def4,
RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D1,D2 be integer-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1(#)f2 -> PartFunc of C,INT;
  coherence
  proof
    dom (f1(#)f2) = dom f1 /\ dom f2 & rng (f1(#)f2) c= INT by Def4,
RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D1,D2 be natural-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1(#)f2 -> PartFunc of C,NAT;
  coherence
  proof
    dom (f1(#)f2) = dom f1 /\ dom f2 & rng (f1(#)f2) c= NAT by Def4,
VALUED_0:def 6;
    hence thesis by RELSET_1:4;
  end;
end;

registration
  let C be set;
  let D1,D2 be complex-membered non empty set;
  let f1 be Function of C,D1;
  let f2 be Function of C,D2;
  cluster f1(#)f2 -> total for PartFunc of C,COMPLEX;
  coherence
  proof
    dom f1 = C & dom f2 = C by FUNCT_2:def 1;
    then dom(f1(#)f2) = C /\ C by Def4
      .= C;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D1,D2 be real-membered non empty set;
  let f1 be Function of C,D1;
  let f2 be Function of C,D2;
  cluster f1(#)f2 -> total for PartFunc of C,REAL;
  coherence
  proof
    dom f1 = C & dom f2 = C by FUNCT_2:def 1;
    then dom(f1(#)f2) = C /\ C by Def4
      .= C;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D1,D2 be rational-membered non empty set;
  let f1 be Function of C,D1;
  let f2 be Function of C,D2;
  cluster f1(#)f2 -> total for PartFunc of C,RAT;
  coherence
  proof
    dom f1 = C & dom f2 = C by FUNCT_2:def 1;
    then dom(f1(#)f2) = C /\ C by Def4
      .= C;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D1,D2 be integer-membered non empty set;
  let f1 be Function of C,D1;
  let f2 be Function of C,D2;
  cluster f1(#)f2 -> total for PartFunc of C,INT;
  coherence
  proof
    dom f1 = C & dom f2 = C by FUNCT_2:def 1;
    then dom(f1(#)f2) = C /\ C by Def4
      .= C;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D1,D2 be natural-membered non empty set;
  let f1 be Function of C,D1;
  let f2 be Function of C,D2;
  cluster f1(#)f2 -> total for PartFunc of C,NAT;
  coherence
  proof
    dom f1 = C & dom f2 = C by FUNCT_2:def 1;
    then dom(f1(#)f2) = C /\ C by Def4
      .= C;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let f1, f2 be complex-valued FinSequence;
  cluster f1(#)f2 -> FinSequence-like;
  coherence
  proof
    dom(f1(#)f2) = dom f1 /\ dom f2 by Def4;
    hence thesis by Lm2;
  end;
end;

begin :: r (#) f

definition
  let f be complex-valued Function, r be Complex;
  deffunc F(object) = r * f.$1;
  func r (#) f -> Function means
  :Def5:
  dom it = dom f & for c being object st c
  in dom it holds it.c = r * f.c;
  existence
  proof
    ex g being Function st dom g = dom f & for x being object st x in dom f
    holds g.x = F(x) from FUNCT_1:sch 3;
    hence thesis;
  end;
  uniqueness
  proof
    let h, g be Function such that
A1: dom h = dom f and
A2: for c being object st c in dom h holds h.c = F(c) and
A3: dom g = dom f and
A4: for c being object st c in dom g holds g.c = F(c);
    now
      let x be object;
      assume
A5:   x in dom h;
      hence h.x = F(x) by A2
        .= g.x by A1,A3,A4,A5;
    end;
    hence thesis by A1,A3;
  end;
end;

notation
  let f be complex-valued Function, r be Complex;
  synonym f (#) r for r (#) f;
end;

theorem Th6:
  for f being complex-valued Function, r being Complex for c
  being object holds (r(#)f).c = r * f.c
proof
  let f be complex-valued Function, r be Complex;
  let c be object;
A1: dom f = dom (r(#)f) by Def5;
  per cases;
  suppose
    c in dom f;
    hence thesis by A1,Def5;
  end;
  suppose
A2: not c in dom f;
    hence (r(#)f).c = r*0 by A1,FUNCT_1:def 2
      .= r * f.c by A2,FUNCT_1:def 2;
  end;
end;

registration
  let f be complex-valued Function, r be Complex;
  cluster r(#)f -> complex-valued;
  coherence
  proof
    let x be object;
    assume x in dom (r(#)f);
    then (r(#)f).x = r * f.x by Def5;
    hence thesis;
  end;
end;

registration
  let f be real-valued Function, r be Real;
  cluster r(#)f -> real-valued;
  coherence
  proof
    let x be object;
    assume x in dom (r(#)f);
    then (r(#)f).x = r * f.x by Def5;
    hence thesis;
  end;
end;

registration
  let f be rational-valued Function, r be Rational;
  cluster r(#)f -> RAT-valued;
  coherence
  proof
    let y be object;
    assume y in rng (r(#)f);
    then consider x being object such that
A1: x in dom (r(#)f) and
A2: (r(#)f).x = y by FUNCT_1:def 3;
    (r(#)f).x = r * f.x by A1,Def5;
    hence thesis by A2,RAT_1:def 2;
  end;
end;

registration
  let f be integer-valued Function, r be Integer;
  cluster r(#)f -> INT-valued;
  coherence
  proof
    let y be object;
    assume y in rng (r(#)f);
    then consider x being object such that
A1: x in dom (r(#)f) and
A2: (r(#)f).x = y by FUNCT_1:def 3;
    (r(#)f).x = r * f.x by A1,Def5;
    hence thesis by A2,INT_1:def 2;
  end;
end;

registration
  let f be natural-valued Function, r be Nat;
  cluster r(#)f -> natural-valued;
  coherence
  proof
    let x be object;
    assume x in dom (r(#)f);
    then (r(#)f).x = r * f.x by Def5;
    hence thesis;
  end;
end;

definition
  let C be set;
  let D be complex-membered set;
  let f be PartFunc of C,D;
  let r be Complex;
  redefine func r(#)f -> PartFunc of C,COMPLEX;
  coherence
  proof
    dom (r(#)f) = dom f & rng (r(#)f) c= COMPLEX by Def5;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be real-membered set;
  let f be PartFunc of C,D;
  let r be Real;
  redefine func r(#)f -> PartFunc of C,REAL;
  coherence
  proof
    dom (r(#)f) = dom f & rng (r(#)f) c= REAL by Def5,VALUED_0:def 3;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be rational-membered set;
  let f be PartFunc of C,D;
  let r be Rational;
  redefine func r(#)f -> PartFunc of C,RAT;
  coherence
  proof
    dom (r(#)f) = dom f & rng (r(#)f) c= RAT by Def5,RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be integer-membered set;
  let f be PartFunc of C,D;
  let r be Integer;
  redefine func r(#)f -> PartFunc of C,INT;
  coherence
  proof
    dom (r(#)f) = dom f & rng (r(#)f) c= INT by Def5,RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be natural-membered set;
  let f be PartFunc of C,D;
  let r be Nat;
  redefine func r(#)f -> PartFunc of C,NAT;
  coherence
  proof
    dom (r(#)f) = dom f & rng (r(#)f) c= NAT by Def5,VALUED_0:def 6;
    hence thesis by RELSET_1:4;
  end;
end;

registration
  let C be set;
  let D be complex-membered non empty set;
  let f be Function of C,D;
  let r be Complex;
  cluster r(#)f -> total for PartFunc of C,COMPLEX;
  coherence
  proof
    dom(r(#)f) = dom f by Def5
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D be real-membered non empty set;
  let f be Function of C,D;
  let r be Real;
  cluster r(#)f -> total for PartFunc of C,REAL;
  coherence
  proof
    dom(r(#)f) = dom f by Def5
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D be rational-membered non empty set;
  let f be Function of C,D;
  let r be Rational;
  cluster r(#)f -> total for PartFunc of C,RAT;
  coherence
  proof
    dom(r(#)f) = dom f by Def5
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D be integer-membered non empty set;
  let f be Function of C,D;
  let r be Integer;
  cluster r(#)f -> total for PartFunc of C,INT;
  coherence
  proof
    dom(r(#)f) = dom f by Def5
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D be natural-membered non empty set;
  let f be Function of C,D;
  let r be Nat;
  cluster r(#)f -> total for PartFunc of C,NAT;
  coherence
  proof
    dom(r(#)f) = dom f by Def5
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

theorem
  for C being non empty set, D being complex-membered non empty set for
  f being Function of C,D, r being Complex for g being Function of C,
  COMPLEX st for c being Element of C holds g.c = r * f.c holds g = r(#)f
proof
  let C be non empty set, D be complex-membered non empty set;
  let f be Function of C,D, r be Complex;
  let g be Function of C,COMPLEX such that
A1: for c being Element of C holds g.c = r * f.c;
  let x be Element of C;
  thus g.x = r*f.x by A1
    .= (r(#)f).x by Th6;
end;

registration
  let f be complex-valued FinSequence, r be Complex;
  cluster r(#)f -> FinSequence-like;
  coherence
  proof
    dom (r(#)f) = dom f by Def5;
    hence thesis by Lm1;
  end;
end;

begin :: -f

definition
  let f be complex-valued Function;
  func -f -> complex-valued Function equals
  (-1) (#) f;
  coherence;
  involutiveness
  proof
    let r, h be complex-valued Function;
    assume
A1: r = (-1)(#)h;
    thus dom ((-1)(#)r) = dom r by Def5
      .= dom h by A1,Def5;
    let c be object;
    assume c in dom h;
    reconsider a = (-1)*(h.c) as Complex;
    thus h.c = (-1) * a
      .= (-1)*r.c by A1,Th6
      .= ((-1)(#)r).c by Th6;
  end;
end;

theorem Th8:
  for f being complex-valued Function holds dom -f = dom f & for c
  being object holds (-f).c = -(f.c)
proof
  let f be complex-valued Function;
  thus
A1: dom -f = dom f by Def5;
  let c be object;
  per cases;
  suppose
    c in dom f;
    hence (-f).c = (-1)*f.c by A1,Def5
      .= -(f.c);
  end;
  suppose
A2: not c in dom f;
    hence (-f).c = -(0 qua Complex) by A1,FUNCT_1:def 2
      .= -(f.c) by A2,FUNCT_1:def 2;
  end;
end;

theorem
  for f being complex-valued Function, g being Function st dom f = dom g
  & for c being object st c in dom f holds g.c = -(f.c) holds g = -f
proof
  let f be complex-valued Function, g be Function;
  assume that
A1: dom f = dom g and
A2: for c being object st c in dom f holds g.c = -(f.c);
  thus dom -f = dom g by A1,Def5;
  let c be object;
  assume
A3: c in dom g;
  thus (-f).c = -f.c by Th8
    .= g.c by A1,A2,A3;
end;

registration
  let f be complex-valued Function;
  cluster -f -> complex-valued;
  coherence;
end;

registration
  let f be real-valued Function;
  cluster -f -> real-valued;
  coherence;
end;

registration
  let f be rational-valued Function;
  cluster -f -> RAT-valued;
  coherence;
end;

registration
  let f be integer-valued Function;
  cluster -f -> INT-valued;
  coherence;
end;

definition
  let C be set;
  let D be complex-membered set;
  let f be PartFunc of C,D;
  redefine func -f -> PartFunc of C,COMPLEX;
  coherence
  proof
    dom -f = dom f & rng -f c= COMPLEX by Def5;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be real-membered set;
  let f be PartFunc of C,D;
  redefine func -f -> PartFunc of C,REAL;
  coherence
  proof
    dom -f = dom f & rng -f c= REAL by Def5,VALUED_0:def 3;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be rational-membered set;
  let f be PartFunc of C,D;
  redefine func -f -> PartFunc of C,RAT;
  coherence
  proof
    dom -f = dom f & rng -f c= RAT by Def5,RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be integer-membered set;
  let f be PartFunc of C,D;
  redefine func -f -> PartFunc of C,INT;
  coherence
  proof
    dom -f = dom f & rng -f c= INT by Def5,RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

registration
  let C be set;
  let D be complex-membered non empty set;
  let f be Function of C,D;
  cluster -f -> total for PartFunc of C,COMPLEX;
  coherence;
end;

registration
  let C be set;
  let D be real-membered non empty set;
  let f be Function of C,D;
  cluster -f -> total for PartFunc of C,REAL;
  coherence;
end;

registration
  let C be set;
  let D be rational-membered non empty set;
  let f be Function of C,D;
  cluster -f -> total for PartFunc of C,RAT;
  coherence;
end;

registration
  let C be set;
  let D be integer-membered non empty set;
  let f be Function of C,D;
  cluster -f -> total for PartFunc of C,INT;
  coherence;
end;

registration
  let f be complex-valued FinSequence;
  cluster -f -> FinSequence-like;
  coherence;
end;

begin :: f"

definition
  let f be complex-valued Function;
  deffunc F(object) = (f.$1)";
  func f" -> complex-valued Function means
  :Def7:
  dom it = dom f & for c being
  object st c in dom it holds it.c = (f.c)";
  existence
  proof
    consider g being Function such that
A1: dom g = dom f & for x being object st x in dom f holds g.x = F(x)
    from FUNCT_1:sch 3;
    g is complex-valued
    proof
      let x be object;
      assume x in dom g;
      then g.x = (f.x)" by A1;
      hence thesis;
    end;
    hence thesis by A1;
  end;
  uniqueness
  proof
    let h, g be complex-valued Function such that
A2: dom h = dom f and
A3: for c being object st c in dom h holds h.c = F(c) and
A4: dom g = dom f and
A5: for c being object st c in dom g holds g.c = F(c);
    now
      let x be object;
      assume
A6:   x in dom h;
      hence h.x = F(x) by A3
        .= g.x by A2,A4,A5,A6;
    end;
    hence thesis by A2,A4;
  end;
  involutiveness
  proof
    let r, h be complex-valued Function;
    assume that
A7: dom r = dom h and
A8: for c being object st c in dom r holds r.c = (h.c)";
    thus dom r = dom h by A7;
    let c be object;
    assume
A9: c in dom h;
    thus h.c = (h.c)""
      .= (r:: License version 3.0 or later, subject to the binding interpretation
  end;
end;
::better name

theorem Th10:
  for f being complex-valued Function for c being object holds
  f".c = (f.c)"
proof
  let f be complex-valued Function;
    ;
A1 dom(" =java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
per cases;
  suppose
    c in dom f;
    hence thesis by A1,Def7;
  end;
  suppose
A2: not c in dom f;
    hence f" =0 qua Complex java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 51

  end;
end;

registration
  let 
  java.lang.StringIndexOutOfBoundsException: Range [27, 9) out of bounds for length 28
  coherence
    h isFinSequence
    xbejava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
    assume x in dom (f");
then. =(fx"
    hence thesis;n Natjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 32
  endhislike
endtaken

registration
  let f java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 8
  f -> -;
;
  proof
    let y coherence
     y in  f)
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 6
 x f)and
java.lang.StringIndexOutOfBoundsException: Range [17, 2) out of bounds for length 32
    f".x  Def1
    hence thesis by A2,RAT_1:def 2;
  end;
end;



Dbecomplexmemberedset
    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 27
  redefine func f" -> PartFunc 
  coherence
  proof
    dom (f") = dom f & rng (f") c= COMPLEX by Def7;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be real-membered set;
  let f be PartFunc of C,D;
  redefine func f" -> PartFunc of C,REAL;
  coherence
  proof
    dom (f") = dom f & rng (f") c= REAL by Def7,VALUED_0:def 3;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be rational-membered set;
  let f be PartFunc of C,D;
  redefine func f" -> PartFunc of C,RAT;
  coherence
  proof
    dom (f") = dom f & rng (f") c= RAT by Def7,RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

registration
  let C be set;
  let D be complex-membered non empty set;
  let f be Function of C,D;
  cluster f" -> total for PartFunc of C,COMPLEX;
  coherence
  proof
    dom (f") = dom f by Def7
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D be real-membered non empty set;
  let f be Function of C,D;
  cluster f" -> total for PartFunc of C,REAL;
  coherence
  proof
    dom (f") = dom f by Def7
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D be rational-membered non empty set;
  let f be Function of C,D;
  cluster f" -> total for PartFunc of C,RAT;
  coherence
  proof
    dom (f") = dom f by Def7
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let f be complex-valued FinSequence;
  cluster f" -> FinSequence-like;
  coherence
  proof
    dom (f") = dom f by Def7;
    hence thesis by Lm1;
  end;
end;

begin :: f^2

definition
  let f be complex-valued Function;
  func f^2 -> Function equals
  f (#) f;
  coherence;
end;

theorem Th11:
  for f being complex-valued Function holds dom (f^2) = dom f &
  for c being object holds f^2.c = (f.c)^2
proof
  let f be complex-valued Function;
  thus
A1: dom (f^2) = dom f /\ dom f by Def4
    .= dom f;
  let c be object;
  per cases;
  suppose
    c in dom f;
    hence thesis by A1,Def4;
  end;
  suppose
A2: not c in dom f;
    hence f^2.c = 0 qua Complex^2 by A1,FUNCT_1:def 2
      .= (f.c)^2 by A2,FUNCT_1:def 2;
  end;
end;

registration
  let f be complex-valued Function;
  cluster f^2 -> complex-valued;
  coherence;
end;

registration
  let f be real-valued Function;
  cluster f^2 -> real-valued;
  coherence;
end;

registration
  let f be rational-valued Function;
  cluster f^2 -> RAT-valued;
  coherence;
end;

registration
  let f be integer-valued Function;
  cluster f^2 -> INT-valued;
  coherence;
end;

registration
  let f be natural-valued Function;
  cluster f^2 -> natural-valued;
  coherence;
end;

definition
  let C be set;
  let D be complex-membered set;
  let f be PartFunc of C,D;
  redefine func f^2 -> PartFunc of C,COMPLEX;
  coherence
  proof
    dom (f^2) = dom f & rng (f^2) c= COMPLEX by Th11;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be real-membered set;
  let f be PartFunc of C,D;
  redefine func f^2 -> PartFunc of C,REAL;
  coherence
  proof
    dom (f^2) = dom f & rng (f^2) c= REAL by Th11,VALUED_0:def 3;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be rational-membered set;
  let f be PartFunc of C,D;
  redefine func f^2 -> PartFunc of C,RAT;
  coherence
  proof
    dom (f^2) = dom f & rng (f^2) c= RAT by Th11,RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be integer-membered set;
  let f be PartFunc of C,D;
  redefine func f^2 -> PartFunc of C,INT;
  coherence
  proof
    dom (f^2) = dom f & rng (f^2) c= INT by Th11,RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D be natural-membered set;
  let f be PartFunc of C,D;
  redefine func f^2 -> PartFunc of C,NAT;
  coherence
  proof
    dom (f^2) = dom f & rng (f^2) c= NAT by Th11,VALUED_0:def 6;
    hence thesis by RELSET_1:4;
  end;
end;

registration
  let C be set;
  let D be complex-membered non empty set;
  let f be Function of C,D;
  cluster f^2 -> total for PartFunc of C,COMPLEX;
  coherence;
end;

registration
  let C be set;
  let D be real-membered non empty set;
  let f be Function of C,D;
  cluster f^2 -> total for PartFunc of C,REAL;
  coherence;
end;

registration
  let C be set;
  let D be rational-membered non empty set;
  let f be Function of C,D;
  cluster f^2 -> total for PartFunc of C,RAT;
  coherence;
end;

registration
  let C be set;
  let D be integer-membered non empty set;
  let f be Function of C,D;
  cluster f^2 -> total for PartFunc of C,INT;
  coherence;
end;

registration
  let C be set;
  let D be natural-membered non empty set;
  let f be Function of C,D;
  cluster f^2 -> total for PartFunc of C,NAT;
  coherence;
end;

registration
  let f be complex-valued FinSequence;
  cluster f^2 -> FinSequence-like;
  coherence;
end;

begin :: f1 - f2

definition
  let f1,f2 be complex-valued Function;
  func f1 - f2 -> Function equals
  f1 + - f2;
  coherence;
end;

registration
  let f1,f2 be complex-valued Function;
  cluster f1-f2 -> complex-valued;
  coherence;
end;

registration
  let f1,f2 be real-valued Function;
  cluster f1-f2 -> real-valued;
  coherence;
end;

registration
  let f1,f2 be rational-valued Function;
  cluster f1-f2 -> RAT-valued;
  coherence;
end;

registration
  let f1,f2 be integer-valued Function;
  cluster f1-      let x be object;
  coherence;
end;

theorem Th12:
  for x in dom java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
 /domf2
proof
  let f2 becomplexvalued
  java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
.dom  f2byDef5;
  enend

theorem
  for f1,f2 being complex-valued 
  for cjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 27
proof
  letf1, be - Function
  let end
  assume c in dom    -;
.c byDef1
. f1.-. Th8java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
end;

theorem
  for f1,f2-;
  (-f2 & forbeing  cindomfholds. =f1. -f2.
   holds f = f1-f2
proof
  java.lang.StringIndexOutOfBoundsException: Range [0, 5) out of bounds for length 4
A1:  letf2be  of C,2java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
A2: for c java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 11
  thus dom    hencethesisby java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
  let c be object;
  assume
A3: c in dom f;
  hence f  edefinefuncf2 -PartFunc of ;
    .= f1.c+(-f2).c by Th8
    = (f2).c by A1,A3,Def1;
end;

definition
  let C be set;
  let D1,D2 be complex-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1-f2 -> PartFunc of C,COMPLEX;
  coherence
  proof
    dom (f1-f2) = dom f1 /\ dom f2 & rng (f1-f2) c= COMPLEX by Th12;
  let C be set;
  end;
end;

definition
 be set;
  letproof
  let  be PartFuncof C,D1;
  let    hence thesis by RELSET_14;
  redefine 
c
  java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 29
domf1-)  domf1 \ &rng(- =REALby Th12,ALUED_0:ef3
;
    hence thesis by java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 7
     hencethesis RELSET_1:;
end;

definition
  let C be set;
  let D1,D2 be rational-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1-f2 -> PartFunc of C,RATjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
  coherence   java.lang.StringIndexOutOfBoundsException: Range [23, 20) out of bounds for length 29
      dom +)= /& f1f2)c=NAT VALUED_0d java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
   (-) f1 f2 &rng(-) Th12,RELAT_1def19;
    hence thesis by RELSET_1:
  end;
end;

definition
  let C be set;
  let D1,D2 be integer-membered set;    domf1+  / by
 PartFunc C,D1java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
 f2 java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 29
redefine -f2-java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 43
  coherence
  proof
    dom(f2  f1 \dom  rng(-)c= INTby Th12,:def ;
    hence thesis by RELSET_1:4;
  end
end let f2 Function C,D2;

Lm3: for C being set, D1,D2 
f C,1 f2being  D2f-  

proof
  let C be setthesis byPARTFUN1:def2;
  letjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 4
  let f1 be Function java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 29
  letf2be Function ofC,D2
  thus dom(f1-f2) = java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    .= C /
    .= C   java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6
    .= C;
end;cluster- total forPartFunc java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 47

registration
  let C be set;
  let D1,D2 be complex-membered non empty set;
  let f1   set , java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 68
  let f2 be Function of C,D2;
  clusterf1- >total forPartFunc of COMPLEX;
  coherence
  by Lm3,PARTFUN1:def 2;
end;

registration
  A1:(f1+f2) =C byFUNCT_2:def1
  let D1,D2 be
   ofCjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
letjava.lang.StringIndexOutOfBoundsException: Range [24, 20) out of bounds for length 29
  cluster f1-f2 -  f1+ -FinSequence-like;

Pjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 24
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

registration
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 15
  letD1 java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 47
  letjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 29
  letjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
    ofC,RATjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
  coherence
  by java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 7
end;

  let f be java.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 49
  let C be set
,be integer-memberednonemptyset
  java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 20
  let f2 be Function of C,D2
  clusterjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  coherence
  by Lm3,PARTFUN1:def 2;
end;

theorem
  for C being set, D1,D2 being complex-membered non empty set for f1
  being Function of C,D1, f2 being Function of C,D2 for c being Element of C
  holds (f1-f2).c = f1.c - f2.c
proof
  let C be set;
  let D1,D2 be complex-membered non empty set;
  let  coherence
     xbe java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
A1: dom(f1-java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  ;
  supposejava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 20
    C is non empty;
    hence (f1-f2). r.=yjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 33
      .    java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 35

  coheren
A2: C is     java.lang.StringIndexOutOfBoundsException: Range [12, 10) out of bounds for length 26
    then f2 r)   defjava.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
    hence thesis by A2 end;

end;

registration
  let f1, f2 be complex-valued then (r+f).x = r + f.x by Def2
  java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
cjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
end;

begin :: f1 /" f2

end;
  let f1  java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 29
  func  letrReal
   (#) (f2)java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
  coherence;
end;

theorem    Cjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 15
  for f1  java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
  f1 /\ dom f2
proof
  let f1,f2 be complex-valued java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 31
    Dbe- set
    .= dom
end;

theorem
f,beingcomplex- Function
for cbeingobject  f"2. f1/c
proof
let f1f complex-java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 39
  let c be object;
A1: dom (f1/"f2) = dom f1 /\ dom f2 by Th16;
  per cases;
  suppose
    c in dom (f1/"f2);
    hence (f1/"f2).c = f1.c * (f2").c by Def4
      .= f1.c / f2.c by Th10;
  end;
  suppose
A2: not c in dom (f1/"f2);
    then not c in dom f1 or not c in dom f2 by A1,XBOOLE_0:def 4;
    then
A3: f1.c = 0 or f2.c = 0 by FUNCT_1:def 2;
    thus (f1/"f2).c = 0 / 0 by A2,FUNCT_1:def 2
      .= f1.c / f2.c by A3;
  end;
end;

registration
  let f1,f2 be complex-valued Function;
  cluster f1/"f2 -> complex-valued;
  coherence;
end;

registration
  let f1,f2 be real-valued Function;
  cluster f1/"f2 -> real-valued;
  coherence;
end;

registration
  let f1,f2 be rational-valued Function;
  cluster f1/"f2 -> RAT-valued;
  coherence;
end;

definition
  let C be set;
  let D1,D2 be complex-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1/"f2 -> PartFunc of C,COMPLEX;
  coherence
  proof
    dom (f1/"f2) = dom f1 /\ dom f2 & rng (f1/"f2) c= COMPLEX by Th16;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D1,D2 be real-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc     hence thesis by REL:4;
  redefine func  ;
  coherence
  java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    dom (f1/"f2) = dom f1 /\ dom f2 & rng (f1/"f2) c= REAL by Th16,
VALUED_0:def 3;
    hence thesis by RELSET_1:4;
  end;
end;

definition
  let C be set;
  let D1,D2 be rational-membered set;
  let f1 be PartFunc of C,D1;
  let f2 be PartFunc of C,D2;
  redefine func f1/"f2 -> PartFunc of C,RAT;
  coherence
  proof
    dom (f1/"f2) = dom f1 /\ dom f2 & rng (f1/"f2) c= RAT by Th16,
RELAT_1:def 19;
    hence thesis by RELSET_1:4;
  end;
end;

Lm4: for C being set, D1,D2 being complex-membered non empty set for f1 being
Function of C,D1, f2 being Function of C,D2 holds dom(f1/"f2) = C

proof
  let C be set;
  let D1,D2 be complex-membered non empty set;
  let f1 be Function of C,D1, f2 be Function of C,D2;
  thus dom(f1/"f2) = dom f1 /\ dom f2 by Th16
    .= C /\ dom f2 by FUNCT_2:def 1
    .= C /\ C by FUNCT_2:def 1
    .= C;
end;

registration
  let C be set;
  let D1,D2 be complex-membered non empty set;
  let f1 be Function of C,D1;
  let f2 be Function of C,D2;
  cluster f1/"f2 -> total for PartFunc of C,COMPLEX;
  coherence
  ()  dom java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 28
end;

registration
  let C be set;
  let
 CD1
 java.lang.StringIndexOutOfBoundsException: Range [25, 20) out of bounds for length 29
java.lang.StringIndexOutOfBoundsException: Range [14, 9) out of bounds for length 49
  coherence
  def2
end;

registration
letC;
  let letrjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 19
  let f1 be Function of C,D1;
  let t d ;
  cluster f1/"f2 -> total for PartFunc of C,RAT;
   fCD
  by Lm4,cluster r> totaljava.lang.StringIndexOutOfBoundsException: Range [36, 26) out of bounds for length 45


registration
  let  D be-nonemptyset;
f1"- FinSequence-ikejava.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 12
end;

begin :: abs f

definition
  let f be complex
  deffunc F(object) = |.f.$1end;
   |  |>-java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 44
  :Def11:
   it
  being coherence;

proof
    consider g beingjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 49
A1: dom java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 4
java.lang.StringIndexOutOfBoundsException: Range [13, 8) out of bounds for length 20
    proof
      let x be object;
      assume x in dom g;
      then g.x = |. f.x .| by A1;
      hencejava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
    end;
    hence thesis by A1;
  java.lang.StringIndexOutOfBoundsException: Range [0, 5) out of bounds for length 4
  uniqueness
  proof
    let h, g be real-valuedjava.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 45
A2dom(-)=domf rng(-)c=COMPLEX byDef2
A3: for c being object st c in dom h java.lang.StringIndexOutOfBoundsException: Range [0, 42) out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
 object  cg java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 54
    now
      let x be redefine func f-r -> PartFunc of C,REAL;
      assume
:   x in dom h
java.lang.StringIndexOutOfBoundsException: Range [25, 6) out of bounds for length 28
        .=  
    end;
    hence thesis by redefinefunc f- - ofC,RAT;
  ;
  projectivityjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  proof
        funcr-PartFunc ,INT;
    let   proof
    assume that
    dom r = dom h and
A7: for c java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 6
    thus dom r = dom r;
    let be object;
    assume
A8: c in dom r;
    hence r.c = |.|.h.c.|.| by A7
      .
    D -java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 39
end;

notation
letfcomplex-aluedFunction;
  synonym abs fletbejava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 27


theorem
  for l   java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 27
   for c being object holds |.f.|.c = |.f.c.|
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
letjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 35
  let c be object;
  |f.  dom byDef11
pcases
suppose
domfjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
hencejava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 29
  end;
  suppose
  let f1,2java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
       ()f2  means
. ... byA2: 2java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
end;

    hence th;
  let f 
  cluster |.f.| -> RAT-    java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 34
  coherence
  proof
letjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 20
    assume yin |f.;
    then consider x java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 7
A1: x in dom |.f.| and
A2: (|.
    |.f.|.x 
    hence thesis by java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 16
  end;
end;

registration
  let f be integer-valued Function;
  > natural-valued;
  coherence
  proof
java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 20
     .x|java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 24
    hence thesis by Def11;
  end;
end;

definition
  let C be set;
  let D be complex-membered set;
  let f be  proof
  java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 44
  coherence
  proof


  end;
end;

definition
  let C     assume  java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 30
  let D   endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
let fPartFuncof C,Djava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 45
  coherence
pjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    f  ..
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 17
  endendjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end

definition
  let C beassume  rng (f1()2;
  let Dberationalmembered set;
   be  java.lang.StringIndexOutOfBoundsException: Range [24, 22) out of bounds for length 27
  
    f1java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 39
  proof
    dom |.f.| = thenf(f)x  f2. byDef4;
     let  beset
  letjava.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 29
end;

definition
  let C be set;
  let D
  let f be java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 15
  redefine func abs(f  D1bejava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 37
  coherence
  proof
    abs(f 
    dom((f f1\  #f2 = java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
  end
end;

on
  let C  
let  java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 32
  let f java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
  redefinef2 java.lang.StringIndexOutOfBoundsException: Range [24, 20) out of bounds for length 29
  coherence
  proof
    dom |.f.| = dom f & rng |.f.| c= NAT by Def11,VALUED_0:def 6;
    hence     hence thesis:;
  djava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end;

definition
  let C be set;
  let  be integer-membered set;
  let f be PartFunc of C,D;
  redefine proof
  coherence
  
    java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 11
    

end;

registration
  let C be set;
  letjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  let f be Function of C,D;
  cluster.. -total forPartFuncCREAL;
  coherence
  proof
    domlet C be set;
      . Cby FUNCT_2:def1;
    hence thesis  java.lang.StringIndexOutOfBoundsException: Range [25, 20) out of bounds for length 29
  end;
end;

registration
  let C be java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 11
  let D be rational-membered non empty set;
  let f be Function of C,D;
  cluster |.f.| -> total for PartFunc of C,RAT;
  coherence
  proof
    dom |.f.| = dom f by Def11
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let C be set;
  let D be integer-membered non empty set;
  let f be Function of C,D;
  cluster |.f.| -> total for PartFunc of C,NAT;
  coherence
  proof
    dom |.f.| = dom f by Def11
      .= C by FUNCT_2:def 1;
    hence thesis by PARTFUN1:def 2;
  end;
end;

registration
  let f be complex-valued FinSequence;
  cluster |.f.| -> FinSequence-like;
  coherence
  proof
    dom abs f = dom f by Def11;
    hence thesis by Lm1;
  end;
end;

theorem
  for f, g being FinSequence, h being end;
  holds h is FinSequence by Lm2;

: Addenda

:: from RELOC, 2008.02.14, A.T.

reserve m,j,p,q,n,l for Element of NAT;

definition
  let p be Function,    dom f1 = C & dom   java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 45
  func Shift(p,k) -> java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 6
  :Def12:
  dom it = { m+k where m is Nat:m in dom p } &
  for m being Nat st m in dom p holds it.(m+k) = p  letD1,2be natural-embered non empty set;
  existence
  proof
 [bject,]means m Nat $1= + & $  .m
    set A =   ()-     CNATjava.lang.StringIndexOutOfBoundsException: Range [49, 50) out of bounds for length 49
A1: for    dom   domf2  C by FUNCT_2:def ;
    proof
      let e be object;
      assume e in A;
      then consider m being Nat such that
A2:e=m+k and
      m in dom p;
      take p.mjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      thus thesis by A2;
    end;
    consider f being Function such that
A3: dom f = A and
A4: for e being objectproof
    take f;
    thus dom f = { m+k;
    let m  :: r (f
    assume m in dom p;
    then m+k injava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 31
    then ex j being   stc
    hence thesis 
  end;
  uniqueness
  proof
    let IT1,IT2 be Function such that
A5: dom java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
A6: for m being Nat cinjava.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 57
:dom  = { m+ m isNat:indom p and
A8 m being Natstm indom holds IT2.m+  p.;
    java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
proof
      x beobject;
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 26
      java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6
A9:   x = m+k & m synonym f (#) r for r (#) f;
      thus java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 12
        .= IT2.x by A8,A9;
    end;
    hence thesis bycjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
  end;
endin fjava.lang.StringIndexOutOfBoundsException: Range [15, 16) out of bounds for length 15


ction   Nat;
  cluster Shift(p,k) -
  coherence
  proof
A1: dom Shift(p   r(#f ->complex-valued;
    Shift(p,k) is NAT-defined
    proof
      let x be object;
        p;
   m being  x=+&m   pA1
      hence java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 0
    end;
    
  end;
end;

theorem :: SCMFSA8C:11
 for PQ being Function,kNat Pc=Q holds Shift(P
  ,k) c= Shift     ;
proof
  let
  let k be Nat;
  
A1: P c= Q;
  then
A2: f;
A3: dom Shift(P,k) = {m + k where m is Nat: m in dom P} by Def12;
A4: dom Shift(Q,k) = {m +:xindom r#f 
A5:now
let x ;
    assume x in dom (Pk);
    then ex end;
    hence
  end;
  now
    let x be object;
    assume x in domShift(P,k);
    then consider m1 being Nat such that

A7: m1 in dom P by A3;
ShiftPk).m1 + k) by A6
      .= P.m1 by A7,Def12
      . . by ,A7GRFUNC_1:
      .= Shift(Q    r#f.  *x by A1,Def5;
      .(Q,k)xbyA6;
  end;
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
end;

theorem :: SCMFSA_4:32
  for n,m being Nat
  for I being Function;
proof let n,m be Nat   Cset
  let I be Function;
  set A= {lmwhere l  in dom I };
A1: dom Shift(I,m   java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 27
A2 now
    let l be Nat;
    assume
A3:l in dom I;
    then
A4: l+m in dom Shift(I,m) by A1;
    thus Shiftend;
      .= n
      .= I.l by A3,Def12;
  end;
  {p+n where p is Nat: p in A } = { q+(m+n)   let  bereal-membered set;
  proof
 {p+nwherepis :p in  }c={ q+(m+ where q is Nat: q in dom I}
      let r  Real;
 x java.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
      assume  (())   (()f)c REAL by Def5,VALUED_0:def 3;
      then consider p being Nat such that
A5:   x = p+n and
A6:   p in A;
      java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 4
A7:   p = l+m and
A8:   l in dom I by   java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 27
      x = l+(m+n) by A5,A7java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 7
      hence thesisby A8;
    end;
    etx be object
    assume x in end
    then consider q being Nat such that
A9: x = q+(m+n) & q in dom I;
    x = (q+m)+ & q+min Aby A9;
    hence thesis  fbe D;
  end;
  then dom redefine func);
   { l+(m+n) java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 7
  hence thesis by A2,Def12;
end;

theorem :: SCMFSA_4:33
  for s,f be Function for n java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 6
proof
  let s,f be Function;
  let n be Nat;
A1: dom(f*s) c= dom s by RELAT_1:25;
A2: dom Shift(s,  redefine func r r() > PartFunc of C,NAT;
  now
    let e be object;
   thus e in  mn where m is Nat: min dom(f*) java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
      implies  in dom Shift(,)Shift(,n).
    e in dom f
    proof
      assume e java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
       that
A3:   e = letfbejava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 27
A4:   m in dom(f*s);
      thus e)= dom  java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 30
      Shift(s,n).e = s.m by A1,A3,A4,Def12;
      hence thesis by A4,FUNCT_1:11java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
    end;
    assume e in dom Shift(s,n);
    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 48
A5:#f   java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 30
enjava.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
    assume Shift(s,n).nonjava.lang.StringIndexOutOfBoundsException: Range [42, 38) out of bounds for length 43
    then s.m0 in dom f by A5,A6,Def12;
    then m0 in dom(f*s) by A6,FUNCT_1java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 28
    hence e in { mjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  end;
  then Shift(  let r be Int
          by FUNCT_1coherence
  then
A7: dom(f*Shift(s,n)) = { m+n where m is Nat: m in dom(f*s) } by .C FUNCT_2def 1;
  now
    let m be Nat;
      letCbeset;
:  in f*s;
    then   f be CDjava.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
    hence ( #f - total for PartFunc of C,NAT;
      .  coherence
      .= (f*s).java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 7
  end;
h java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 27
end;

theorem :: SCMFSA_4:34
  for I,J being Function, n being
   holds Shift(I *J,n)  Shift(,n) +Shift(J,n)
proof
  let I,J be Function, n be Nat;
A1: dom Shift(J,n) = { m+n where m is Nat: m in dom J } by Def12;
A2:now
    let m be Nat such that
A3: m in dom(I +* J);
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 14
    suppose
A4   m in dom J;
      then m+n in dom A1:for c being Element of C holds g.c = r * f.c;
hence(()*,)(n=java.lang.StringIndexOutOfBoundsException: Range [54, 52) out of bounds for length 77
        . Jm byA4,Def12
        .= (I +* J).m by A4,FUNCT_4    . (r#)f). by Th6;
    end;
    suppose
A5:   not m in dom J;
      m in dom I \/ dom J by A3,FUNCT_4:def 1;
      coherenc
A6:   m in dom I     r#f  java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 32
      not ex ljava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      then not m+n in dom Shift(J,n) by A1;
hence(ShiftIn +Jn).+)S(,.+n by java.lang.StringIndexOutOfBoundsException: Range [75, 74) out of bounds for length 77
        .= I.m by A6,Def12
        .= (I +* J).m by    java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 40
        assume
  end;
:dom (I,n) m+  isNat:min domI }by Def12java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
A8  Shift(,n /dom Shift(J,njava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
          = { m+n where m is Nat: m in dom I \/ dom J }
  proof
    hereby
      let x be object
      assume x in dom Shift(I,n) \/ dom Shift(J,n);
      then x in dom Shift(I,n) java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
      then consider m being Nat such that
A9:   x = m+n & m in dom J or java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      m in dom I \/ dom J by A9,XBOOLE_0:defA1:dom- =dom f byDef5
      hence x in {  
    end;
    let x be object;
    assume x in { m+n where m is Nat: m in dom I \/ dom J };
    then consider m being Nat such that
A10: x = m+n and
A11: m in dom I \/ dom J;
    m in dom I or m in dom J by A11end;
    then x in dom Shift(I,A2: not c in
    hence thesis by XBOOLE_0:def 3;
  end;
  dom(I +  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  then dom(Shift(I,n) +
   { m+n where m is Nat: m in dom(I +* J ) } by A8,FUNCT_4:def 1;
  hence thesis by A2,Def12;
end;

:: from SCMPDS_4, 2008.03.16, A.T.

theorem Th24:
  for p being Function,k,il being Nat st il in dom p
  holds il+k in dom Shift(p,k)
proof
  let p be Function, k,il be Nat such that
A1: il in dom p;
  dom Shift(p,k) = { loc+k where loc is Nat : loc in dom p} by Def12;
  hence thesis by A1;
end;

:: missing, 2008.03.16, A.T.

theorem Th25:
  for p being Function, k being Nat holds rng Shift(p,k) c= rng p
proof
  let p be Function, k being Nat;
  let y be object;
  assume y in rng Shift(p,k);
  then consider x being object such that
A1: x in dom Shift(p,k) and
A2: y = Shift(p,k).x by FUNCT_1:def 3;
  x in { m+k where m is Nat:m in dom p } by A1,Def12;
  then consider m being Nat such that
A3: x = m+k and
A4: m in dom p;
  p. = Shift(p,k.x by A3,A4,Def12;
  hence thesis by A2,A4,java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
nd;

theorem
  for p being Function    bejava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 18
  rng Shift(p,k) = rng java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
proof
  let p be Function such that
A1: dom p c= java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 12
  let k be Nat;
  thus rng Shift(p,k) c= rng p by java.lang.StringIndexOutOfBoundsException: Range [2, 38) out of bounds for length 12
  let y be object;
  assume yin rng p;
  henconsider xbeing java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 40
A2: x in dom p and
A3: y = p.x by FUNCT_1:def 3;
  reconsider x as Element of NAT by A1,A2;
  kindom Shift(k) pk)(+)=  ,A3,ef12,Th24;
  hence thesis by let f be PartFunc of C
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

registration
  let p be finite Function, k be Nat;
  cluster Shift(p,k) -> finite;
  coherence
  proof
    deffunc F(Nat) = $1+k;
A1: dom p is finite;
A2: { F(w) where w is Element of NAT: w in dom p } is finite
          from FRAENKEL:sch 21(A1);
     dom Shift(p,k) c=   java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 41
    proof
     let e be   
       indom Shift,k)
      then e in { Fhence  by RELSET_1:;
      then consider i being Nat such that
A3  et C be setjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
     reconsider i as Element of NAT by ORDINAL1:def 12;
      e nefunc- -  C;
     hence e in { F(w) where w is Element of NAT: w in dom p };
    end;
    hence thesis by A2,FINSET_1:10;
  end;
end;

letf be PartFunc of D

definition
  let X be non     dom -f = dom  f   f c= INTby ,RELAT_1:ef 19java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
  redefine attr s is increasing means
  for n being Nat Cbesetjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
  compatibility
  roof
    thus s is increasing implies for n being Nat holds s.n < s.(n+1 )
    proof
      assume
A1:   s is increasing;
       n be Nat;
A2:   n < n+1let  -java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 39
      dom s = NAT & ->java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 45
      hence java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 4
    end;
      let D rational-embered non empty setjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
A3: for n being  .< .n+;
    let e1,e2;
end;
    then reconsider m=e1, n=e2 as Nat;
    defpred P[Nat] means m < $1 implies s.m < s  let C beset;
:for j being Nat  P[j]holds P[j+java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    proof
 being Nat such that
A5:   P[j];
      assume m < j+1  java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
      then m <= java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
      then s.m < s.j or m =  cluster -- FinSequence-;
      hence thesis by A3,XXREAL_0:2;
    end;
    assume
A6: e1 < n
A7: P[0];
    for j being Nat holds P[j] from NAT_1:sch 2(A7,A4);
    then s.m < s.n by A6;
    hence thesis;
  end;
  redefine attr s is decreasing means
  for n being Nat holds s.n > s.(n+1);
  compatibility
  proof
    thus s is decreasing implies for n being Nat holds s.n > s.(n+1 )
    proof
      assume
A8:   s is decreasing;
      let n be Nat;
A9:   n < n+1 by NAT_1:13;
      dom s = NAT & n in NAT by FUNCT_2:def 1,ORDINAL1:def 12;
      hence thesis by A8,A9;
    end;
    assume
A10: for n being Nat holds s.n > s.(n+1);
    let e1,e2;
    assume e1 in dom s & e2 in dom s;
    then reconsider m=e1, n=e2 as Nat;
       defpred P[Nat]means m < $1 implies s.m > s.$1;
A11: for j being Nat st   it= dom f & for c being
    proof
      let j being  
A12:  P[j];
       m  j+;
      then m <= j by NAT_1    java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 23
      then "A1
      hence thesis by A10;
    end;
    assume
A13  e2
A14P0;
    for j being Nat holds P[j] from NAT_1:sch 2(A14,A3: for c being object st c in dom h holds h.c = F(c) a
    sm   java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 26
    hence thesis;
  end;
  redefinex=F A3
  for n being Nat java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 8
  compatibility
  proof
    thus s is non-decreasing implies for n being java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 29

      assume
A15:  s java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
      let n f.(.)
:   +13java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
      dom s = NATjava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 15
      hencejava.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 9
    end;
    assume
A17: for n being 
    let e1,e2;
    assume java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 38
    defpred P[Nat] meansend
A18: java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
    proof
      let j being Nat such that
A19:  P[j];
      assume m <= j+1    java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 25
then
A20:  m.x= y by FUNCT_1djava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 32
      s.j <= s.(j+1) by A17;
      hence thesis by A19,A20,NAT_1:13java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    end;
    assume
A21: e1 <= e2;
A22 (  &rng(f" c=;
    for j being Nat holds P[j] from NAT_1:sch 2(;
    
    hence thesis;
  end;
  redefine f" -> PartFunc of C,REAL;
  for n being Nat holds s.n >= s.(n+1);
  compatibility
  proof
    thus s is non-increasing implies for n beingcoherence
    proof
      assume
A23java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
        Natjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
 s  java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 62
      hence thesis   membered  
    end;
    assume
A25: for n being Nat holds s.(f)=f java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 28
    let e1,e2;
    
    then reconsider m=e1, n=e2 as Nat let be set
    defpred P[Nat] means m <= $1 implies s.m >= s.$1;
A26: forjbeing st P[[1java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41

      let j being Nat such that
A27:  P[j];
      assume m <= j+1;
      then
A28:  m < j+1 or m = j+1 by let f be complex-valued FinSequence
      s.j >
      hence Lm1
    end;
    assume
A29d
A30: P[0];
    for j being f # ;
    then
    hence thesis;
  end;
end;

:: fromf  complexvaluedFunction holds dom(^)=  f 

scheme
  SubSeqChoice { X() -> non empty set, S()java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
java.lang.StringIndexOutOfBoundsException: Range [7, 3) out of bounds for length 77
provided
A1: for n being Element of NAT ex m being Element of NAT st n <= m & P[S
().m]
proof
  defpred P1[set,set,set] means $3 in NAT & (for m,k being Element of NAT st m
  =$2&k = $3 holds m<k & P[S(.k])
  consider n0 being Element of
   <= 
A2: P[S().n0] by A1;
A3: for n being NatA2:not  indomf;
  proof
     be 
    per cases;
    suppose
      x in NATjava.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 35
      then reconsider mx = x as Element of NAT;
      consider my being Element 
   +1 = &P[(. A1;
      take my;
      thus my in NAT;
      thus thesis by A4,NAT_1:13;
    end;
    suppose
A5:   not x in NAT;
      take 0;
      set y = 0;
      thus y java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 12
      let m, k be Element of NAT;
      assume thatD java.lang.StringIndexOutOfBoundsException: Range [27, 18) out of bounds for length 32
A6:   m java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
      k = y;
      thus thesis by A5, java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 31
    end;
  end;
  consider g being Function such that
A7:   coherence
A8: g.0 = n0 and
A9: for n being Nat holds P1[n,g.n,g.(n+1)] from RECDEF_1:
  sch 1(A3);
  rng g c= NAT
  proof
    defpred P[Nat] means g.$1 in NAT;
    let y be object;
    assume y in rng g;
    then consider x being object such that
A10: x in dom g and
A11: g.x = y by FUNCT_1:def 3;
    reconsider n = x as Element of NAT by A7,A10;
A12: for k being Nat holds P[k] implies P[k+1] by A9;
A13: P[0] by A8;
    for k being Nat holds P[k] from NAT_1:sch 2(A13,A12);
    then g.n in NAT;
    hence thesis by A11;
  end;
  then reconsider g as sequence of NAT by A7,FUNCT_2:2;
  g is java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 6
  by A9l java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 15
  then reconsider g as increasing sequence java.lang.StringIndexOutOfBoundsException: Range [15, 10) out of bounds for length 41
  reconsider S1 = S((f2  java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 64
A14: dom S1 = NAT by FUNCT_2:def 1;
  reconsider java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 4
  takeletset
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 47
  proof
    let n be Element of NAT;
    per cases;
    
      n = 0;
      hence thesis by A2,A8,A14,FUNCT_1 java.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
    end;
    suppose
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      then n >= 0 qua Nat + 1 by NAT_1:13;
      then reconsider n9 = n-1 as java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 4
      reconsider k = g.(n9+1) as Element of NAT;
      or mkbeing  NATst =gn  k = .(91 P[)
      .k] by A9;
      then P[S().k];
      hence thesis by A14,FUNCT_1:12;
    end;
  end;
end;

:: from AMISTD_2, 2010.02.05, A.T.

theorem
  for k being Nat
  for F being NAT-defined Function
  holds dom F,dom Shift(F,k) are_equipotent
proof
  let k be Nat;
 java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 32
  
  ex il being Element of NAT
    java.lang.StringIndexOutOfBoundsException: Range [23, 19) out of bounds for length 27
A1;
  
    let e be object;
    assume e in dom F;
    then cluster f^2 -> total for PartFunc of C,NAT;
    take k+e, e;
    thus thesis;
  end;
  end
A2: dom f = dom F
A3: for x being   let f be complex-val
  coherence
  hereby
    let x1, x2 be object such that
A4: x1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A5: x2 in dom f and
A6: f.x1 = f.x2;
    consider i1 being Element of NAT such that
A7: x1 = i1 and
A8: f.x1 = k+i1 by A2,A3,A4;
    consider i2 being Elementf java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 39
A9: x2 = i2 and
A10: f.x2 = k+i2 by A2,A3,A5;
    thus x1 =f1f2java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 36
  end;
  thus dom f = dom 
A11: dom Shift(F,k) = { (m+k) where m is Nat: m in cluster f1f2-RAT-valued;
  hereby
    let y be object;
    assume y in rng f;
    thenncejava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
A12: x in dom f and
A13: f.x = y by FUNCT_1:def 3;
    consider il being Element of NAT such that
A14: x = il and
A15: f.x = k+il by A2,A3,A12;
   thus y in dom f2 Def5;
  end;
  let y java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
  assume y in dom Shift(F,k);
  then consider m being Nat such that
A16: y = (m+k) and
A17: m in dom F by A11;
  consider il being Element of NAT such that
A18: m = il and
A19: f.m = k+il by A3,A17;
  thus thesis by A2,A16,A17,A18,A19,FUNCT_1:def 3;
end;

registration
 let F be NAT-defined Function;
 reduce Shift(F,0) to F;
 reducibility
proof
A1: dom F = { m+(0 qua Nat) where m is Nat: m in dom F }
  proof
    hereby
     let a be object;
     assume
A2:   a in dom F;
      then reconsider l=a as Element of NAT;
      a = (l qua Nat)+(0 qua Complex);
     hence a in { m+(0 qua Nat)
      where m is Nat: m in dom F } by A2;
    end;
    let a be object;
    assume
    a in { m+(0 qua Complex) where m is Nat: m in dom F };
    then ex m being Nat
     st a = m+(0 qua Complex) & m in dom F;
    hence thesis;
   end
  for m being Nat st m in dom F holds F.(m+(0 qua Complex)) = F.m;
  hence thesis by A1,Def12;
end
end;

registration
  let X be non empty set;
  let F be X. f1c(f2)cby Th8
  cluster Shift(F,k) -> X-valued;
  coherence
  proof
A1: dom Shift(F,k) lD1D2 complexmembered set;
    thus rng Shift(F,k) c= X
     proof let x be object;
      assume x in rng Shift(F,k);
       consider y being object such that
A2:     y in dom Shift(F,k) and
A3:     x = Shift(F,k).y by FUNCT_1:def 3;
       consider m being Nat such that
A4:     y = (m+k) and
A5:     m end
       Shift(java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
            .= F/.mcoherence
      hence x in X by A3,A4;
     end;
  end;
end;

registration  :: move somewhere !!!
 cluster non empty NAT- D1D2be rationalset;
 existence
  proof
   take id NAT;
   thus thesis;
  end;
java.lang.StringIndexOutOfBoundsException: Range [78, 79) out of bounds for length 4

registration
  let F be empty let D1,D2 be integer-memberedintegermemberedset;
  cluster Shift(F,k) -> empty;
  coherence
  proof
A1: dom Shift(F,k) = { (m+k) where m is Nat: m in dom F } by Def12;
    assume Shift(F,k) is non empty;
    then reconsiderf =ShiftF,k)asnonemptyFunction
    dom f is non empty; java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 31
    then consider a being object such Lm3 Cjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 74
A2: a in dom Shift( C java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 64
    ex m being Nat st java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 15
    hence thesis;
  end;
end;

thus dom(f1-f2    -2by 
  let F java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 36
  cluster Shift(F,k) -> non empty;
  coherence
  proof
A1: dom Shift(F,k) = { (m+k) where m is Nat: m in dom F } by Def12;
    consider let f1 be Fu  C,1
A2: a in dom F by XBOOLE_0:def 1;
    reconsider a as Element of NAT bycoherence
    consider m being Nat such that
A3: a = m;
    reconsider m as Element of NAT by ORDINAL1:def 12
    (m+k) in dom Shift(F,  let D1,D2 be real-member  java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 43
    hence thesis;
  end;
end;

::$CT


  for F being Function, k being Nat st k > 0
  holds not 0 in dom Shift(F,k)
proof
  let F be Function, k be Nat such that
A1: k > 0 and
A2: 0 in dom Shift(F,k);
  dom Shift(F,k) = { m+k where m is Nat: m in dom F } by Def12;
  then ex m being Nat st 0 = m+k &  m in dom F by A2;
  hence contradiction by A1;
end;

registration
 cluster NAT-defined finite non empty for Function;
 existence
  proof
   take f = 0 .--> 0;
   thus dom f c= NAT by ZFMISC_1:31;
   thus thesis;
  end;
end  ;

registration
  for D1, beingcomplexmembered emptyforf1
  cluster dom F -> natural-membered;
 coherence;
end;

definition
  let F be non empty NAT-defined finite Function;
  java.lang.StringIndexOutOfBoundsException: Range [12, 1) out of bounds for length 12
   max dom F;
 java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
end;

definition
  let F be non empty NAT-defined finite Function;
  func CutLastLoc F -> Function equals
  java.lang.StringIndexOutOfBoundsException: Range [12, 3) out of bounds for length 37
  coherence;
end;

registration
 let F be non empty NAT-defined finite Function;
 cluster CutLastLoc F -> NAT-java.lang.StringIndexOutOfBoundsException: Range [29, 36) out of bounds for length 12
 coherence;
end;

theorem
  for F being non empty NAT-defined finite Function holds
  LastLocF indom  byXXREAL_2 

theorem
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 4
  LastLoc F <= LastLoc G by RELAT_1:11

thus dom (1"= java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 49
  for F being non empty NAT-defined finite java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 0
  Element of NAT st lf cbeing object holds(/"f2)c  f1. f2c

definition
   Fbenon emptyNATFunction;
  func FirstLoc F 
   min dom F;
  coherence by ORDINAL1:def 12;
end;


  for
  FirstLoc F theninjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 65

theorem
  for F, G being non emptyjava.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
  FirstLoc G <= FirstLoc F by RELAT_1:11,XXREAL_2:60;

theorem
  for l1 being Elementjava.lang.StringIndexOutOfBoundsException: Range [12, 9) out of bounds for length 32
  java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  F holds FirstLoc F <= l1 by XXREAL_2java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12

theorem Th35:
  for F being non empty NAT-defined finite Function
  holds dom CutLastLoc F = (dom F) \ {LastLoc F}
proof
  let F be non empty NAT-defined finite Function;
A1: dom (LastLoc F .--> (F.LastLoc F)) = {LastLoc F};
  reconsider R = {[LastLoc F, F.LastLoc F]} as Relation;
A2: R = LastLoc F .--> (F.LastLoc F) by FUNCT_4:82;
  then
A3: dom R = {LastLoc F};
  thus dom CutLastLoc F c= (dom F) \ {LastLoc F}
  proof
    let x be object;
    assume x in dom CutLastLoc F;
    then consider y being object such that
A4: [x,y] in F \ R by A2,XTUPLE_0:def 12;
A5: not [x,y] in R by A4,XBOOLE_0:def 5;
A6: x in dom F by A4,XTUPLE_0:def 12;
    per cases by A5,TARSKI:def 1;
    suppose x <> LastLoc F;
      then not x in dom R by A3,TARSKI:def 1;
      hence thesis by A2,A6,XBOOLE_0:def 5;
    end;
    suppose
A7   y < F.F
      f1 be PartFuncof Cjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
        assume x in dom R;
        then x = LastLoc F hence thesis by RELSET_1:4;
        hence contradiction by A4,A7,FUNCT_1:1;
      end;
      hence thesis by A2,A6,XBOOLE_0:def 5;
    end;
  end;
  thus thesis by A1,letbejava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 33
end;

theorem
  for F being java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 11
   \/ {LastLoc F
proof
  let F be non empty NAT-hence thesis by RELSET_1
  LastLoc F in dom
  then
A1ljava.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 29
  dom CutLastLoc F = (
  hence thesis by A1,XBOOLE_1:45;
end;

registration
 cluster 1-element NAT-defined finite for Function;
 existence
  proof
   take 0 .--java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6
   thus thesis;
  
end;


  let F be 1-element NAT-defined finite Function;
   / bdef1
  coherence
  proof
    LastLoc F java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
    then
A1: [LastLoc F,F.LastLoc java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
    assume not thesis;
    then consider a being 
A2: a in CutLastLoc F;
A3: a = [LastLoc  java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 29
    not a in   by Lm4,PARTFUN1java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 24
    then not a in {[LastLoc F,F.LastLoc F]} by FUNCT_4:82;
    hence thesis by A3,TARSKI:def 1;
  end;
end;

theorem Th37:
  for F being non empty NAT-defined finite Function
   CutLastLoc F = card F - 1
proof
  letFFunction;
  LastLoc F 
  proof
    let a, b be object;
    assume [a,blet bejava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 43
    then [a,b] in {[LastLoc java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 0
    then
A1   java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 35
    nc |.f .| >realvjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 44
    hence thesis by A1,FUNCT_1:defstcitjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 53
  end;
  hence card CutLastLoc F = card F - card (LastLoc F .--> F.LastLoc F)
  by CARD_2:44
    .= card F - card {[LastLoc F,Fg java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 20
    .= card F - 1 by CARD_1assume xg;
end;

begin :: 2011.04.20, A.T.

registration let X be set, f be X-defined complex-valued Function;
 cluster - -> -defined
 coherence
  proof
A1:  dom -f = dom f by Def5;
   thus dom -f c= X by A1;
  java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 6
 cluster f" -> X-defined;
 coherence
  proof
A2:  dom(f") = dom f by Def7;
   thus dom(f") c= X by A2      hence h.= Fx)A3
  end;
 cluster f^2 -> X-defined;
 coherence
  proof
A3:  dom(f^2) = dom f by Th11;
   thus dom(f^2) c Xby A3;
  end;
 cluster |.f.| -> X-defined;
 coherence
  proof
A4:  dom |.f.| = dom f by Def11;
   thus dom |.f.| c= X by A4;
  end;
end;

registration let X be set;
 cluster total for X-defined natural-valued Function;
 existence
  proof
   take the total PartFunc of X, NAT;
   thus thesis;
  end;
end;

registration let X be set,
   f be total X-defined complex-valued Function;
 cluster-f>total;
 coherence
  
A1:  dom -    hence r |..java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 33
    dom f = X by PARTFUN1:def 2;
   hence thesis by A1,PARTFUN1:def 2;
  end;
 cluster f" -> total;
 coherence
  proof
A2:  dom(f") = dom f by Def7;
    dom f = X by PARTFUN1:def 2;
   hence thesis by A2,PARTFUN1:def 2;
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
 cluster f2 -> total;
 coherence
  proof
A3:  dom(f^2) = dom f by Th11;
    dom f = X by PARTFUN1:def 2;
   hence thesis by A3,PARTFUN1:def 2;
  end;
 cluster |.      . .fc.| byA2,FUNCT_1def 2;
 coherence
  proof
A4:  dom |.f.| = dom f by Def11;
    dom f = X by PARTFUN1:def 2
   hence thesis by A4,PARTFUN1
  endletf  java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 36
end;

registration
  complex-valued Function,
     r be Complex;
 cluster r+A2 java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 35
 coherence
  proof
A1:  dom(
   thus dom(r+f) c= X by A1;
  end;
 java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 7
 coherence;
 cluster r(#)f -> X-defined;
 coherence
  proof
A2:  dom(r(#)f) = dom f by
   thus dom(r(#)f) c= X by A2;
  end;
end;

registration let X be set,
   f be total X-defined complex-valued Function,
     r be Complex;
 cluster r+f -> total;
 coherence
  proof
A1:  dom(r+f) = dom f by Def2;
    dom f = X by PARTFUN1:def 2;
   hence thesis by A1,PARTFUN1
  end;
 cluster f-r -> total
 coherence;
 cluster r(#)f -> totalejava.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
 coherence
  proof
A2:  dom(r(#)f) = dom f by Def5;
    dom f = X by PARTFUN1:java.lang.StringIndexOutOfBoundsException: Range [26, 29) out of bounds for length 11
   |f| = dom f &rng .f| c=RAT byDef11,RELAT_1: 1919;
  end;
end;

registration
 let X be set, f1 be complex-valued Function;
 let f2 be java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 33
 java.lang.StringIndexOutOfBoundsException: Range [11, 8) out of bounds for length 30
 coherence
  proof
A1:  dom(f1 + f2) = dom f1 /\ dom java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 4
   thus dom(f1 + f2) c= X by A1;
  end;
 cluster f1 - f2 -> X-defined;
 coherence;
 cluster f1(#)f2 ->
 coherence
  proof
A2:  dom(f1(#)f2) = dom f1 /\ dom f2 by Def4;
   thus dom(f1(#)f2) c= X by A2;
  end;
 cluster f1/"f2 -> X-defined;
 coherence;
end;

registration let X be set;
 let f1,f2 be total X-defined   redefine func abs(f) -> PartFunc;
 cluster f1 + f2 -> total;
 coherence
  proof
A1:  dom(f1 + f2) = dom f1 /\ dom f2 by Def1;
    dom f1 = X & dom f2 = X by PARTFUN1:def 2;
   hence thesis by A1,PARTFUN1:def 2;
  end;
 cluster f1 - f2 -> total;
 coherence;
 cluster f1(#)f2 -> total;
 coherence
  proof
A2:  dom(f1(#)f2) letC be set;
    dom f1 = X & dom f2 = Xlet Dbe complex-membered nonempty set;
   hence thesis by A2,PARTFUN1:def 2;
  end;
 cluster f1/"f2 -> total;
 coherence;
end;

java.lang.StringIndexOutOfBoundsException: Range [18, 12) out of bounds for length 36
 let F be X-valued java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
 cluster CutLastLoc F -> X-valued;
 coherence;
end;

theorem
 for f being Function
 for i,n being Nat st i in dom Shift(f,n)
  ex j being Nat st j in dom f & i = j + n
 proof let f be Function;
  let i,n be
A1: dom Shift(f,n) = { m+n where m is Nat:m in dom f } by Def12;
  assume i in dom Shift(f,n);
   thencluster|.f|- totalfor of ,java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 47
  henceex  being Nat st j in dom f & i = j + n;
 end;

:: from PNPROC_1, 2012.02.20, A.T.

registration
  let p be FinSubsequence;
  let;
  cluster Shift(p,i) -> FinSubsequence-like;
  coherence
  proof
    set X     hence thesisbyLm1
        f = Shift(p,i);
    consider K being Nat such that
A1: dom p c= Seg K by FINSEQ_1:def 12;
A2: dom f = X by Def12;
    X c= Seg (da
    proof
      let x 
      assume x in X;
      then 
A3:   x = k+i and
java.lang.StringIndexOutOfBoundsException: Range [16, 2) out of bounds for length 17
A5:   i+k >= k by NAT_1:11;
A6:  k >= 1 by A1,A4,FINSEQ_1:1;
A7:  k <= K by A1,A4,FINSEQ_1:1;
      i+k >= 1 by A5,A6,XXREAL_0:2;
     hence thesis by A3,A7,FINSEQ_1:1,XREAL_1:6;
    end;
   hence f is FinSubsequence-like by A2;
  end;
end;

reserve i for Nat,
        k,k1,k2,j1 for Element of NAT,
        x,x1,x2,y for set;

theorem Th39:
  for p being FinSequence
  holds  dom Shift(p,i) = {j1 where j1 is Nat: i+1 <= j1 & j1 <= i+(len p)}
proof
  let p be FinSequence;
A1: dom p = Seg len p by FINSEQ_1:def 3
    .= {k where k is Nat: 1 <= k & k <= len p};
  setX j1wherej1 Nat:i+<=j1 & j1 <= i+(len p)};
A2: dom Shift(p,i) = {k1+i where k1 is Nat: k1 in dom p} by Def12;
  thus A1: for e  object ste inAex  being objectst P[,]
  proof
    let x be object;
    assume x in dom Shift(p,i);
    then consider k1 java.lang.StringIndexOutOfBoundsException: Range [21, 26) out of bounds for length 17
A3: x = k1+i and
A4: k1 in dom p by A2;
    consider k being Nat such that
A5: k1 = k and
A6: 1 <= k   m wherem isNat m indom  }by A3
A7: k <= len p by A1,A4;
A8: i+1 <= i+k by A6,XREAL_1:7;
    i+k <= i+lenp) by ,:7;
    hence thesis by A3,A5,A8;
  end;
  let x be object;
  ssume xin X;
  java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 14
A10: i+1 <= j1 and
A11: j1 <= i+(len p);
  i+(0 qua Nat) <= i+1 by XREAL_1:7;
  then consider k2 being Nat such that
A12: j1 = i+k2 by assume in dom IT1
A13: 1 <= k2 by A10,A12,XREAL_1:6;
  k2 <= len p by A11,A12,XREAL_1:6;
  then indom p by A1,A13;
  hence thesis by A2,A9,A12;
end;

    henthesis by A5,A7;
  for q being FinSubsequence ex ss being FinSubsequence st
  dom ss = dom q & rng ss = dom Shiftjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 4
  let pbe Function, k be Nat;
proof
  let qFinSubsequence;
  consider n being Nat such that
A1: dom q c= Seg n by FINSEQ_1:def 12;
  defpred P[object,A1: dom Shift(p,k) = { m+k where m is Nat:m in dom p } by Def12;
A2 forx being object st x in dom q ex y being object st P[x,y]
  proofproof
    let x be object;
    assume x in dom q;
    then reconsider x as Element of NAT;
    take i+x;
    thus thesis;
  endend
  consider f being Function
A3: dom f = dom q and
A4: for x being object st x in dom q holds P[x, f.x] from CLASSES1:sch 1(A2);
  reconsider ss = f as FinSubsequence by A1,A3,FINSEQ_1proof
A5: dom Shift(q,i) = {k+i where k is Nat: k in dom q} by Def12;
A6: rng ss = dom Shift(q,i)
  proof
    thus rng ss c= dom Shift(q,i)
    A1 java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 11
      let y be object;

      then consider x being object such that
A7:   x dom ss and
A8:   y = ss.x by FUNCT_1:def 3;
      ex k1 st ( k1 = x)&( ss.x = i+k1) by A3,A4,A7;
      hence thesis by A3,A5,A7,A8;
    end;
    let y x m1 being Nat st x = m1 + k &m1 in domP by A3;
    assume y in dom Shift(q,i);
    then consider k2 being Nat such that
A9: y = k2+i and
A10: k2 in dom q by A5;
    ex k3 being Element of NAT st ( k3 = k2)&( ss.k2 = i+k3)
A4,10;
    hence thesis by A3,A9,A10,FUNCT_1:def 3;
  end;
A11: for k st k in dom q holds ss.k = i+k
  proof
    let k;
    then considerm1java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 40
    then ex k1 st ( k1 = k)&( ss.k = i+k1) by A4;
    hence thesis;
  end;
  for x1,x2 being object
   x1&java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 63
  proof  end;
    let x1,x2 be object;
    assume that
A12: x1 in dom ss and
A13: x2 in dom ss and
A14: ssf nmbeing
:k1 ( k1= )(.java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 54
    ex k2 st ( k2 = x2)&( ss.x2 = i+k2) by A3,A4,A13;
    nce thesis by A14,A15;
  end;
  then ss is one-to-one;
  hence thesisat;
end;

Lm5: for p being FinSequence holds ex fs being FinSequence st
dom fs = dom p & rng fs = dom Shift(p,i) &
(for k st k in dom p holds fs.k = i+k) & fs is one-to-one
proof
  let p be FinSequence;
  consider ss being FinSubsequence such that
A1: dom ss = dom p and
A2: rng ss = dom Shift(p,i) and
A3: for k st k in dom p holds ss.k = i+k and
A4: ss is one-to-one by Th40;
  dom ss = Seg len p by A1,FINSEQ_1:def 3;
  then reconsider fs = ss as FinSequence by FINSEQ_1:def 2;
  dom fs = dom p by A1;
  hence thesis by A2,A3,A4;
end;

theorem Th41:
  for q java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 7
proof
  let q be FinSubsequence;x in {p+nwhere p is Nat:in A}
  ex ss being FinSubsequence st ( dom ss = dom q)&( rng ss =
  dom A6:   p in A;
  by Th40;
  then
A1:consider l being Nat such that
A2: card dom q = card A7:   p=lmand
  card dom Shift(q,i) = card Shift(q,i) by CARD_1:62;
  sis byA1,2,ARD_1:
end;

theorem Th42:
   dom =domSeq Shift(p,ijava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
proof
  let p be x = (q+m)+n qmbyA9;
A1: rng Sgm dom Shift(p,i) = dom Shift(p,i) by FINSEQ_1:50;
p =Seglen p by FINSEQ_1:def 3;
A3: dom thendom java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 32
A4 Sgm domi  java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 64
  card dom Shift(p,i) = card Shift(p,i) by CARD_1:62;
  card pi)  pby Th41;
  AT_1:
end;

 java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 13
    s) {njava.lang.StringIndexOutOfBoundsException: Range [64, 31) out of bounds for length 64
proof
  let p be FinSequence;
  assume
A1: k in dom p;
  consider fs being FinSequence such that
A2:dom fs = dom p and
A3: rng fs = dom Shift then  m  that
A4 forj st j in dom p holds fs.j = i+j
  and fs is one-to-one A4:    in domfs);
  reconsider(sjava.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 43
  for n,m being Nat st 1end;
  proof
    let n,m be Nat;
    assume that
A6: 1 <= n and
A7: n < m and
A8: m <tm0 in dom(f*s)by A6,java.lang.StringIndexOutOfBoundsException: Range [40, 37) out of bounds for length 41
    set k1 = fs.n;
    set k2 = fs.m;
    reconsider ;
A11: dom fs = Seg len fs by FINSEQ_1:defA7:domfShift(s,n))  {mn where m is Nat: m in dom(f*s) } by RELAT_1:147;
      .= {n1 where n1 is Nat: 1 <= n1 & n1 < len java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
    n+1 < in fs;
    then n+1 = fsA82
    then
A12: n <= (len =f.(sm A,
   +0java.lang.StringIndexOutOfBoundsException: Range [26, 21) out of bounds for length 56
    then (len fs) - 1 <= len fs by XREAL_1:20;
    then n <= len fs by java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 22
    then
A13: n in dom p by A2,let I,J be Function, n
    1 <= m by A6,A7,XXREAL_0:2;
    then
A14: m in dom p by A2,A8,A11;
:   n java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 24
    k2 = i+m by A4,A14;
    hence thesis by A7,A15,XREAL_1thenm+ in java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 39
  end;
  then .m by A4,Def12
  hence thesis by A1,A4;
end;

theorem Th44:
  for p being FinSequence st k in dom p holds (Seq Shift(p,i)).k = p.k
proof
  let p be FinSequence;
  sume
A1: k in dom p;
  then
A2: k in dom Seq Shift(p,i) by Th42;
  (Shift(p,i)*(Sgm dom Shift(p,i))).k
  = Shift(p,i).((Sgm  += ln&   java.lang.StringIndexOutOfBoundsException: Range [57, 58) out of bounds for length 57
    =Shiftpi).ik)by A1Th43;
  java.lang.StringIndexOutOfBoundsException: Range [20, 7) out of bounds for length 27
end;

theorem
  for java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 50
proof
  let p be FinSequence;
)=  ;
   holds
    domjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 55
  hence thesis by A1A:   = mn & injava.lang.StringIndexOutOfBoundsException: Range [26, 24) out of bounds for length 60
end;

reserve p1,p2 for FinSequencehence x java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 67

Lm6: for jassume x{ mn java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 60
1 <= j & j <= l or l+1 <= jA11: m  domI /J
proof
  let j,k,l be Nat;
  assume that
A1: 1 <h java.lang.StringIndexOutOfBoundsException: Range [20, 16) out of bounds for length 35
  per java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 48
  suppose
A2:1<=j& j <=l
    l+(0 qua s byA2,Def12;
    hence thesis by A2,XXREAL_0:2;
  end;
  suppose
A3: l+1 <= j & j <= l+k;
    0 qua Natfor,lNatstil in domp
    hence thesis by A3,XXREAL_0:2;
  end;
end;

theorem Th46:
  dom (p1 \/ Shift(p2,len p1)) = Seg (len p1 + len p2e
proof
A1: dom (p1 \/ java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 13
    by XTUPLE_0:23;
A2: dom p1 = Seg len p1 by FINSEQ_1:def 3
      .= {k where k is Nat: 1 <= k & k <= len p1};
A3: dom (Shift(p2,len p1))
    = {k1 where k1 is Nat: len p1 + 1 <= k1 & k1 <= len p1 + len p2}
    by Th39;
    thus dom (p1 \/ Shift(p2,len p1)) c= Seg (len p1 + len p2)
    proof
      let x be object;
      assume x in dom (p1 \/ (Shift(p2,len p1)));
      then
A4:    x in dom p1 or x in dom (Shift(p2,len p1)) by A1,XBOOLE_0:def 3;
      then
A5:  ex k3 being Nat st x = k3 & 1 <= k3 & k3 <=
      len p1 or x = k3 & len p1 + 1 <= k3 & k3 <= len p1 + len p2 by A2,A3;
     reconsider x as Nat by A4;
A6:  1 <= x by A5,Lm6;
      x <= len p1 + len p2 by A5,Lm6;
      hence thesis by A6;
    end;
    let x be object;
    assume x in Seg (len p1 + len p2);
    then consider j being Nat such that
A7: x = j and
A8: 1 <= j and
A9: j <= len p1 + len p2;
    reconsider i0 = len p1 as Integer;
    1 <= j & j <= i0 or i0 + 1 <= j & j <= i0 + len p2 by A8,A9,INT_1:7;
    then x in dom p1 or x in dom Shift(p2,len p1) by A2,A3,A7;
    hence thesis by A1,XBOOLE_0:def 3;
end;

theorem Th47:
  for p1 being FinSequence, p2 being FinSubsequence st len p1 <= i holds
  dom p1 misses dom Shift(p2,i)
proof
  let p1 be FinSequence, p2 be FinSubsequence;
  assume
A1: len p1 <= i;
A2: dom p1 = Seg len p1 by FINSEQ_1:def 3
    .= {k where k is Nat: 1 <= k & k <= len p1};
A3: dom Shift(p2,i) = {k+i where k is Nat: k in dom p2} by Def12;
  not ex x being object st x in dom p1 /\ dom Shift(p2,i)
  proof
    given x being object such that
A4: x in dom p1 /\ dom Shift(p2,i);
A5: x in dom p1 by A4,XBOOLE_0:def 4;
A6: x in dom Shift(p2,i) by A4,XBOOLE_0:def 4;
A7: ex k1 being Nat st ( x = k1)&( 1 <= k1)&( k1 <= len p1) by A2,A5;
    consider k2   let p be Function, kpbeFunction, k being Nat;
A8: x = k2+i and
A9: k2 in dom p2 by A3,A6;  let y be object;
    consider n being Nat such that
A10: dom p2 c= Seg n by FINSEQ_1:def 12;
A11consider m  Natsuch 
A12:  ex m being NatA4m java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 15
    reconsider x as Element of NAT by A4;
    len p1 + k2 <= i+k2 by A1,XREAL_1:7;
    then (len p1 + k2) - k2 < x - 0 by A8,A12,XREAL_1:15;
    hence contradiction by A7;
  end;
  hence dom p1 /\ dom Shift(p2,i) = {} by XBOOLE_0:def 1;
end;

theorem
  for p1,p2 being FinSequence holds p1^p2 = p1 \/ (Shift(p2,len p1))
proof
  let p1,p2;
A1: dom (p1 \/ (Shift(p2,len p1))) = Seg (len p1 + len p2) by Th46;
  dom p1 misses dom (Shift(p2,len p1)) by Th47;
  then reconsider p = p1 \/ (Shift(p2,len p1)) as FinSequence by A1,
FINSEQ_1:def 2,GRFUNC_1:13;
A2: dom p = Seg (len p1 + len p2) A2
A3: for k be Nat st k in dom p1 holds p.k = p1.k
  proof
    let k be Nat;
    assume k in dom p1;
    then [k,p1.k] in p1 by FUNCT_1:def 2;
    then [k,p1 in rng p;
    hence java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
  end;
  for k be Nat st k in dom p2 holds p.(len p1 + k) = p2.k
  proof
    let k java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 11
    assume
A4: k in dom p2;
     Sp,en p1)) =j+len  wherej is Nat:j in dom p2} Def12java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
    then len p1 + k in dom (Shift(p2,len p1)) by A4;
    then [len p1 + k, (Shift(p2,len p1)).(len p1 +assumee dom Shift(p,k);
   Shiftp2lp1)by def2;
    then [len p1 + k, (Shift(p2,len p1)).(len p1 + k)] in p
    by XBOOLE_0:def 3;
         hene   w w isElementNAT:w indom  };
     A4Def12java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
  end;
  reserve e1,  ;
end;

theorem
  p1beingFinSequence being  sti >lenp1
  holds p1 misses Shift(p2,i)
proof
  let p1 be FinSequence, p2 be FinSubsequence;
  ;
  then dom p1 misses dom Shift(p2A:   n <n1 NAT_113
  hence thesis by RELAT_1:179   ;
end;

theorem
 for F being total NAT-defined Function, p be NAT-defined Function,
     n be Element of NAT st Shift(p,n) c= F
 forlete1,;
 proof
  let F be total NAT-defined Function, p be NAT-defined Function,
     n be Element of NAT such that
A1: Shift(p,n) c= F;
  let i be Element p
  assume
 ;
   then n+i in dom Shift(p,n) by Th24;
  hence F.(n+i) = Shift(p,n).(n+i) by A1,GRFUNC_1:2
      .= p.i by A2,Def12;
 end;

theorem Th51:
  for p,q being FinSubsequence st q c= p holds Shift(q,i) c= Shift(p,i)
proof
  let p,q be FinSubsequence;
  
A1: q c= p;
A2: dom Shift(q,i) = {k+i where k is Nat: k in dom q} by Def12;
A3: dom Shift(p,i) = {k+i where k is Nat =NAT  in  byd1ORDINAL1djava.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 20
  assume

  then
A5: x in dom Shift(java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 31
A6: y = Shift(q,i).x by A4,FUNCT_1:1;
  consider k being Nat such that
A7: x = k+i andend;
A8: k in dom q by A2,A5;
A9:
  then
A10: x in dom Shift(p,i) by A3,A7,A8;
  y = q.k by A6,A7,A8,Def12
    .= p.k by A1,A8,GRFUNC_1:2end;
     ixbyA8ADef12java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
 java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 32
end;

theorem
  for p1,p2 being FinSequence holds Shift(p2,len p1) c= p1^p2
proof
  let p1,p2 be FinSequence
A1let e1,;
l )java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
whereis Nat: +1<k  k <=len p1   p2}
java.lang.StringIndexOutOfBoundsException: Range [11, 6) out of bounds for length 12
A3: dom (p1^p2) = Seg (len p1 + len p2) by FINSEQ_1:def 7
      .= {k where k is Nat: 1 <= k & k <= len p1 + len p2};
    let x,y be object;
    java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
A4: [x,y] in Shift(p2,len p1);
    then
java.lang.StringIndexOutOfBoundsException: Range [39, 2) out of bounds for length 43
A6: y = Shift(p2,len p1).x by A4,FUNCT_1:1;
java.lang.StringIndexOutOfBoundsException: Range [9, 4) out of bounds for length 34
A7: x = k and
A8: len p1 + 1 <= k and
A9: k <= len p1 + len p2 by A2,A5;
    1 <= len p1 + 1 by INT_1:6;
    thenjava.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 8
    then
A10: x in dom (p1^p2) by A3,A7then =1,n=e2 Nat;
    consider j being Nat such that
A11: x = j+len p1 and
A12: j in dom p2 by A1,A5;
    y = p2.j by A6,A11,A12,Def12
      .= (p1^p2).x by A11,A12,FINSEQ_1:def 7;
    hence thesis by A10,FUNCT_1:1;
end;

reserve q,q1,q2,q3,q4 for FinSubsequencefor  being holdsP[  : A30A26)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
        p2;

theorem Th53:
  dom q1 misses dom q2 implies dom Shift(q1,i) misses dom Shift(q2,i)
proof
  assume
A1: dom q1 misses dom q2;
A2: dom Shift(q1,i) = {k+i where k is Nat: k in dom q1} by java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 5
A3: dom Shift(q2,i) = {k+i where k is Nat: k in dom q2} by   defpredP1[et,set,set] means $in& f,  Elementof NAT stm
  now
    given x being object such that
A4: x in dom Shift(java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 13
A5: x in dom Shift(q1x   y
A6: x in dom Shift(q2,i) by A4,java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 14
A7: exthen reconsider mx = x as Element of NAT;
    consider k2 being Nat such that
A8: x thus my inNAT;
A9: k2 in dom q2 by A3,A6;
    k2 in dom q1 /\ dom q2 by A7,A8,A9,XBOOLE_0:def 4;
    hence contradiction by A1;
  end;
  hence dom thus thesis A5A6;
end;

theorem
  for q,q1,q2 being FinSubsequence st q = A12:for k beingNatholdsk implies[1 byA9;
  Shift(q1,i) \/ Shift(q2,i) = Shift(q,i)
proof
   FinSubsequencethat
A1: q = q1 \/ q2 and
A2: q1 misses q2;
A3: dom Shift(q,i) = {k+i where k is Nat: k in dom q} by Def12;
A4: dom java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 11
A5: dom Shift(q2,i) = {k+i where k is Nat: k in dom q2} by Def12;
A6: q1 c= q by A1,XBOOLE_1:7;
A7: q2 c= q by A1,XBOOLE_1:7;
A8: Shift(q1,i) c= Shift(q,i) by A1,Th51,XBOOLE_1:7;
A9:end;
  dom q1 misses dom q2 by A2,A6,A7,FUNCT_1:112;
  then dom Shift(q1,i) misses dom Shift(q2,i) by Th53;
  then reconsider q3 = Shift(q1,i) \/ Shift(q2,i) as Function by GRFUNC_1:13;
  let x,y be object;
  thus [x,y] in Shift(q1,i) \/ Shift(q2,i) implies [x,y] in Shift(q,i)
  proof
    assume
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 41
    then x in dom q3 by FUNCT_1:1;
    then
A11: x in dom Shift(q1,i) \/ dom Shift(q2,i) by XTUPLE_0:23;
A12: now
      assume
A13:  x in dom Shift(q1,i);
A14:  dom Shift(q1,i) c= dom Shift(q,i) by A8,GRFUNC_1:2;
      Shift(q1,i).x = Shift(q,i).x by A8,A13,GRFUNC_1:2;
      xShift(,)x]in (,)by A13F:def 2;
      then [x,Shift(q,i).x] in q3 by XBOOLE_0:def 3;
      hence x in dom Shift(q,i) & y = Shift(q,i).x by A10,A13,A14,FUNCT_1:def 1
;
    end;
    now
      assume
A15:  x in dom Shift(q2,i);
A16:  (,)c dom Shift(,)by A9GRFUNC_1:;
      Shift(q2,i).x = Shift(q,i).x by A9,A15,GRFUNC_1:2;
      then [x,Shift(q,i).x] in Shift(q2,i) by A15,FUNCT_1:def 2;
      then [x,Shift(q,i).x] in q3 by XBOOLE_0:def 3;
      hence x in dom Shift(q,i) & y = Shift(q,i).x by A10,A15,A16,FUNCT_1:def 1
;
    end;
    hence thesis by A11,A12,FUNCT_1:1,XBOOLE_0:def 3;
  end;
  assume
A17: y indomShift(,)
  then
A18: x in dom Shift(q,i) by FUNCT_1:1;
A19: y = Shift(q,i).x by A17,FUNCT_1:1;
  consider consider ibeingElementofNATsuchthat
A20: x = k+i and
A21: k in dom q by A3,A18;
  dom q = dom q1 \/ dom q2 by A1,XTUPLE_0:23;
  then
A22: k in dom q1 or k in dom q2 by A21,XBOOLE_0:def 3;
  hen  indom Shift(q1,)or x in dom Shift(q2,i) by A4,A5,A20;
  then x in dom Shift(q1,i) \/ dom Shift(q2,i) by XBOOLE_0
  then
A23: x in dom q3 by XTUPLE_0:23;
A24: now
    assume
A25: x in java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 44
    then
A26: ex k1 being Nat st ( xwhere m is Nat: m in dom F } A2;
     y =q.  ,20,21,Def12
      .= q1.k by A1,A20,A26,GRFUNC_1:15
      .= Shift(q1,iain {m :m in dom F }
      .= q3.x by A25,GRFUNC_1:15;
  end;
  now
    assume
A27: x in dom Shift(q2,i);
    then
A28: ex k2 being Nat st ( x = k2+i)&( k2 in dom q2) by java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 44
    thus y = q.k by A19,A20,A21,Def12
      .= q2.k by A1,A20,A28,GRFUNC_1:15
      .= Shift(q2,i).x by A20,A28,Def12
      .= q3.x by A27,GRFUNC_1:15;
  end;
  hence
end;

theorem Th55:
  for q being FinSubsequence holds dom Seq q = dom Seq Shift(q,i)
proof
  let q be FinSubsequence;
A1: len Seq q = card q by FINSEQ_3:158;
A2: len Seq Shift(q,i) = card Shift(q,i) by FINSEQ_3:158;
  thus dom Seq q = Seg len Seq q by FINSEQ_1:def 3
    .= dom Seq Shift(q,i) by Th41,A1,A2,FINSEQ_1:def 3;
end;

reserve l1 for Nat,
        

theorem Th56:
  for q being FinSubsequence st k in dom Seq q
  ex j st j = (Sgm dom q).k & (Sgm dom Shift(q,i)).k = i + j
proof
   qbe FinSubsequence such that
A1: k in dom Seq q;
  consider ss being FinSubsequence such that
A2: dom ss = dom q and
A3:rng ss = dom Shift(q,i) and
A4: for l st l in dom q holds ss.lthen  y  object that
  and ss is one-to-one A5: not [x,y] in R by A4,XBOOLE [,y] in Rby A4,XBOOLE_0:def 5;
g  ss = dom Shift(q,i) by A3,FINSEQ_1:101;
A6:  dom q =dom q by FINSEQ_1:50;
A7: dom Seq q = dom (q*Sgm dom q)
    .= dom Sgm dom q by A6,RELAT_1:27;
A8: for l1 st l1 in dom Seq q
  ex j1 st j1 = (Sgm dom q).l1 & (Seq ss).l1 = i+j1
  proof
    let l1 such that
A9: l1 in         then  = LastLocFby A3T: 1;
 S domq)l1 in rng Sgm dom byA7,A9,UNCT_1d 3java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
    then
A11: (Sgm dom q).l1 in dom q by FINSEQ_1:50
    reconsider j1 = (Sgm dom q).l1 as Element of NAT by A10;
    (Seq ss).l1 = (ss*Sgm dom ss).l1
      .= ss.j1 by A2,A7,A9,java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 5
      .= then
    hence thesis;
  end;
A12: rng ss = rng Sgm dom Shift(q,i) by A3,FINSEQ_1:50;
  rng Sgm dom Shift(q,i) c= NAT;
  then rng Seq ss c= NAT by A12,FINSEQ_1:101;
   fs = ss as  of NAT  FINSEQ_1:ef4;
A14: dom Seq ss = dom (ss*Sgm dom ss)
    .= dom Sgm dom q by A2,A6,RELAT_1:27;
  for n  let  be-elementNAT-defined finite Function;
  proof
    let n,m be Nat;
    assume that
A15: 1 <= n and
A16: n < m and
A17: m < lenfs;
     set k1 = fs.n;
     set k2 = fs.m;
 Elementof NAT y :def 12;
A20: dom fs = Seg len fs by FINSEQ_1:def 3
      .= {l3 where l3 is Nat: 1 <= l3 & l3 <= len fs};
    n+1 <= m by A16,INT_1:7;
    then n+1 <= len fs by A17,XXREAL_0:2;
    then
A21: n <= (len fs) - 1 by XREAL_1:19;
    (len fs) + (0 qua Nat) <= (len fs) + 1 by XREAL_1:7;
    then (len fs) - 1 <= len fs by XREAL_1:20;
    then n <= len fs by A21,XXREAL_0:2;
    then
A22: n in dom Seq q by A7,A14,A15,A20;
    1 <= m by A15,A16,XXREAL_0:2;
    then
A23: m in dom Seq q by A7,A14,A17,A20;
    consider j2 being Element of NAT such that
A24: j2 = (Sgm dom q).n and
A25: fs.n = i+j2 by A8,A22;
    consider j3 being Element of NAT such that
A26: j3 = (Sgm dom q).m and
A27: fs.m = i+j3 by A8,A23;
    dom Seq ss = Seg len fs by FINSEQ_1:def 3;
    then len fs = len Sgm dom q by A14,FINSEQ_1:def 3;
    then j2 < j3 by A15,A16,A17,A24,A26,FINSEQ_1:def 14;
    hence thesis by A25,A27,XREAL_1:8;
  end;
  then fs = Sgm dom Shift(q,i) by A5,FINSEQ_1:def 14;
  hence thesis by A1,A8;
end;

theorem Th57:
  for q being FinSubsequence st
  k in dom Seq q holds (Seq Shift(q,i)).k = (Seq q).k
proof
  let q be FinSubsequence;
  assume
A1: k in dom Seq q;
  then consider j such that
A2: j = (Sgm dom q).k and
A3: (Sgm dom Shift(q,i)).k = i+j by Th56;
A4: rng Sgm dom q = dom q by FINSEQ_1:50;
A5: dom Seq q = dom Seq Shift(q,i) by Th55
    .= dom (Shift(q,i)*(Sgm dom Shift(q,i)));
A6: dom Seq q = dom (q*Sgm dom q)
    .= dom Sgm dom q by A4,RELAT_1:27;
  then j in rng Sgm dom q by A1,A2,FUNCT_1:def 3;
  then
A7: j in dom q by FINSEQ_1:50;
  (Seq Shift(q,i)).k = (Shift(q,i)*(Sgm dom Shift(q,i))).k
    .= Shift(q,i).((Sgm dom Shift(q,i)).k)
  by A1,A5,FUNCT_1:12
    .= q.j by A3,A7,Def12
    .= (q*Sgm dom q).k by A1,A2,A6,FUNCT_1:13
    .= (Seq q).k;
  hence thesis;
end;

theorem
  for q being FinSubsequence holds Seq q = Seq Shift(q,i)
proof
  let q be FinSubsequence;
A1: dom Seq q = dom Seq Shift(q,i) by Th55;
  for x being object holds
   x in dom Seq q implies (Seq Shift(q,i)).x = (Seq q).x by Th57;
  hence thesis by A1;
end;

theorem Th59:
  for q being FinSubsequence st
  dom q c= Seg k holds dom Shift(q,i) c= Seg (i+k)
proof
  let q be FinSubsequence;
  assume
A1: dom q c= Seg k;
A2: dom Shift(q,i) = {j+i where j is Nat: j in dom q} by Def12;
  let x be object;
  assume x in dom Shift(q,i);
  then consider j1 being Nat such that
A3: x = j1+i and
A4: j1 in dom q by A2;
  j1 in Seg k by A1,A4;
  then
A5: ex j2 being Nat st ( j1 = j2)&( 1 <= j2)&( j2 <= k);
A6: 0 qua Nat+1 <= i+j1 by A5,XREAL_1:7;
  i+j1 <= i+k by A5,XREAL_1:7;
  hence thesis by A3,A6;
end;

theorem Th60:
  for p being FinSequence, q1,q2 being FinSubsequence st q1 c= p
  ex ss being java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 0
proof
  let p be FinSequence, q1,q2 be FinSubsequence;
  assume q1 c=thus  dom- c=X by A1;
  then
A1: dom q1 c= dom p by GRFUNC_1:2;
  dom p misses dom Shift(q2,len p) by Th47;
  then reconsider ss = q1 \/ Shift(q2,len p) as Function by A1,GRFUNC_1:13
,XBOOLE_1:63;
A2: dom p = Seg len p by FINSEQ_1:def 3;
  consider k be Nat such that
A3: dom q2 c= Seg k by FINSEQ_1:def 12;
  k in NAT by ORDINAL1:def 12;
  then
A4: dom Shift(q2,len p) c= Seg (len p + k) by A3,Th59;
  len p + (0 qua Nat) <= len p + k by XREAL_1:7;
  then Seg len p c= Seg (len p + k) by FINSEQ_1:5;
  then dom q1 c= Seg (len p + k) by A1,A2;
  then dom q1 \/ dom Shift(q2,len p) c= Seg (len p + k) by A4,XBOOLE_1:8;
  then dom (q1 \/ Shift(q2,len p)) c= Seg (len p + k) by XTUPLE_0:23;
  then reconsider ss as FinSubsequence by FINSEQ_1:def 12;
  take ss;
  thus thesis;
end;

java.lang.StringIndexOutOfBoundsException: Range [12, 3) out of bounds for length 49
dom Shift(q,i) c= dom Shift(p,i)
proof
  let p,q cluster -f -> total;
  assume
A1: q c= p;
A2: dom Shift(q,i) = {k+i where k is Nat: java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 32
A3: dom Shift(p,i) = {k+java.lang.StringIndexOutOfBoundsException: Range [0, 25) out of bounds for length 6
A4: dom q c= dom p by A1,GRFUNC_1"- java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
  let x be object;
  assume x in dom Shift(q,i);
  then ex k1 being Nat st ( x = k1hence java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 37
  hence thesis by A3,A4;
end;

Lm8: for p1,p2 being FinSequence, q1,q2 being FinSubsequence st
q1 c= p1 & q2 c= p2 holds Sgm (dom q1 \/ dom Shift(q2,len p1))
= (Sgm dom q1)^(Sgm dom Shift(q2,len p1))
proof
  let p1,p2 be FinSequence, q1,q2 be FinSubsequence;
  assume that
A1: q1 c= p1 and
A2: q2 c= p2;
  for m,n being Nat
  st m in dom q1 & n java.lang.StringIndexOutOfBoundsException: Range [2, 23) out of bounds for length 7
  proof
    let m,n be Nat such that
A5: m in dom q1 and
A6: nin dom Shift(q2,len p1);
A7: dom p1 = Seg len p1 by FINSEQ_1:def 3
      .= {k where k is Nat: 1 <= k & k <= lenproof
A8: dom Shift(p2,len p1)
   = {k where k is Nat : len p1 + 1 <= k & k <= len p1 + len p2}
    by Th39;
A9: dom q1 c= dom p1 by A1,GRFUNC_1:2;
A10: dom Shift(q2,len p1) c= dom Shift(p2registration
A11: m in dom p1 by A5,A9;
A12: n in dom Shift(p2,len p1) by A6,A10;
    consider k3 being Nat such that
A13: k3 = m
    and 1
 java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 28
    consider k4 being Nat such that
A15: k4 = n and
A16: len p1 + 1 <= k4
    and k4 <= len p1 + len p2 by A8,A12;
    len p1 < len p1 + 1 by XREAL_1:29;
    then k3 <= len p1 + 1 by A14,XXREAL_0:2;
    then
A17: k3 <= k4 by A16,XXREAL_0:2;
    k3 <> k4 by A5,A6,
    ,A15,17,XREAL_01java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
  end;
  hence thesis by FINSEQ_3:42;
end;

theorem Th61:
for p1,p2 being FinSequence, q1,q2 being FinSubsequence st q1 c= p1 & q2 c= p2
  cluster f-- total;
  dom Seq ss =coherence;
proof
  let p1, r() -total;
  assume that
A1: q1 c= p1 and
A2: q2 c= p2;
    consider ss being FinSubsequence such that
A3: ss = q1 \/ Shift(q2,len p1) by A1,Th60;
A6: rng Sgm dom ss = dom ss by FINSEQ_1:50;
A7: dom Seq ss = dom Sgm dom ss by A6,RELAT_1:27
      java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 67
      .= dom ((Sgm dom q1)^(Sgm dom Shift(q2,len p1))) by A1,A2,Lm8
      .= Seg (len Sgm dom q1 + len Sgm dom Shift(q2,len p1))
    by FINSEQ_1:def 7;
A8: len Sgm dom Shift(q2,len p1) = card dom Shift(q2,len p1) by FINSEQ_3:39;
A9: len Sgm dom q1 = card dom q1 by FINSEQ_3:39;
    len Sgm dom Shift(q2,len p1) = card Shift(q2,len p1) by A8,CARD_1:62;
    then
A10: len Sgm dom Shift(q2,len p1) = card q2 by Th41;
A11: len Sgm dom y hencethesis java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 37
A12:cluster f1()2 ->totaljava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    len Sgm  proof
    hence thesis by A3,A7,A12;
end;

theorem Th62:
for p1,p2 being FinSequence, q1,q2 being FinSubsequence st q1 c= java.lang.StringIndexOutOfBoundsException: Range [0, 67) out of bounds for length 6
  ex ss being FinSubsequence st ss = q1 \/ Shift(q2,len p1) &
  dom Seq java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 4
  Seq ss = Seq q1 \/ Shift(Seq q2,len Seq q1)
proof
  let p1,p2 be FinSequence, q1,q2 be FinSubsequence;
  assume that
A1: q1 c= p1 and
A2: q2 c= p2;
  consider 
A3: ss = q1 \/ Shift(q2,len p1) and
A4: dom Seq ss = Seg (len Seq q1 + len Seq q2) by A1,A2,Th61;
A5: dom Seq q1 = Seg len Seq q1 by FINSEQ_1:def 3
      .= {k where k is Nat: 1 <= k & k <= len Seq q1};
A6: dom Shift(Seq q2,len Seq q1)
    = {k where k is proof let f be Function;
          by Th39;
A7: Seg (len Seq q1 + len Seq q2)
    = dom Seq q1 \/ dom Shift(Seq  let i,n be Nat;
    proof
      thus Seg (len Seq q1 + len Seq q2)
      c= dom Seq q1 \/ dom Shift(Seq q2,len Seq q1)
      proof
        let x be object;
        assume x in Seg (len Seq q1 + len Seq  end;
        then consider k1 being Nat such that
A8:    x = k1 and
A9:    1 <= k1 and
A10:    k1 <= len Seq q1 + len Seq q2;
A11:    1 <= k1 & k1 <= len Seq q1 implies k1 in dom Seq q1 by A5;
        len Seqlet i be Nat;
        k1 in dom Shift(Seq q2,len Seq q1) by A6;
        hence thesis by A8,A9,A10,  cluster Shift(p,i) -> FinSubsequence;
      end;
      let x be object;
      assume
A12:  x in dom Seq q1 \/ dom Shift(Seq q2,len Seq q1);
A13:  now
        assume x in dom Seq q1;
        then consider k1 being Nat such that
A14:    x = k1 and
A15:    1 <= k1 and
A16:    k1 <= len Seq q1 by A5;
        len Seq q1 + (0 qua Nat) <= len Seq q1 + len Seq q2 by XREAL_1:7;
        then k1 <= len Seq q1 + len Seq q2 by A16,XXREAL_0:2;
        hence thesis by A14,A15;
      end;
      now
        assume x in dom Shift(Seq q2,len Seq q1);
        then consider k2 being Nat  that
A17:    x = k2 and
A18:    len Seq q1 + 1 <= k2 and
A19:    k2 <= len Seq q1 + len Seq q2 by A6;
        0 qua Nat+1 <= len Seq q1 + 1 by XREAL_1:7;
        then 1 <= k2 by A18,XXREAL_0:2;
        hence thesis by A17,A19;
      end;
      hence thesis by A12,A13,XBOOLE_0:def 3;
    end;
A20: dom Seq q1 \/ dom Shift(Seq q2,len Seq q1)
    = dom (Seq q1 \/ Shift(Seq q2,len Seq q1)) by XTUPLE_0:23;
    dom Seq q1 misses dom Shift(Seq q2,len Seq q1) by Th47;
    then reconsider ss1 = Seq q1 \/ Shift(Seq q2,len Seq q1) as Function
    by GRFUNC_1:13;
    for x being object st x in dom Seq ss holds (Seq ss).x = ss1.x
    proof
        etp FinSequence;
      assume
A21:  x in dom Seq ss;
22  Sss. sSdomss.x
        .= ss.((Sgm dom ss).x) by A21,FUNCT_1:12
        .= ss.((Sgm (dom q1 \/ dom Shift(q2,len p1))).x) by A3,XTUPLE_0:23
        . ss.(( domq)^Sgmdom Shiftq2lp1))
A23:  now
        assume
A24:    x in dom Seq q1;
        then
A25:    x in dom Sgm dom q1 by FINSEQ_1:100;
        then (Sgm dom q1).x in rng Sgm dom q1 by FUNCT_1:def 3;
        A9 x = and
A26:    (Sgm dom q1).x in dom q1 by FINSEQ_1A10:  i+< j1 
        (Seq ss).x = ss.((Sgm dom q1).x) by A22,A25,FINSEQ_1:def 7
          .= q1.((Sgm dom q1).x) by A3,A26,GRFUNC_1:15
          .= (q1*Sgm dom q1).x by A25,FUNCT_1:13
          .= (Seq q1).x;
        hence thesis by A24,GRFUNC_1:15;
      end;
      now
        assume
A27:x  dom Shift(Seq q2,len Seq q1);
        dom Shift(Seq q2,len Seq q1)
          = {j+len Seq q1 where j is Nat: j in dom Seq q2 }
        by Def12;
        then consider j being Nat such ,i) &
A28:    x = j+len Seq q1 and
A29:    j in dom Seq q2 by A27;
A30:    ss1.x = Shift(Seq q2,len Seq q1).x by A27,GRFUNC_1:15
          .= (Seq q2).j by A28,A29,Def12;
        card dom q1 = len Sgm java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 32
        then
A33:    card q1 = len Sgm dom q1 
len Seq q1 = q1 by FINSEQ_3:158;
A35:    dom Seq q2 = Seg len Seq q2 by FINSEQ_1:def 3;
 q2 = len Seq q2 by FINSEQ_3:158;
        then
A36:    card Shift(q2,len p1) = len Seq q2 by Th41;
        then
A37:    card dom Shift(q2,len p1) = len Seq q2 by CARD_1:62;
A38:    card dom Shift(q2,len p1) = len Sgm dom Shift(q2,len p1)
        by FINSEQ_3:39;
A39:    len Sgm dom Shift(q2,len p1) = len Seq q2 by A37,FINSEQ_3:39;
A40:    dom Seq q2 = dom Sgm dom java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 8
,FINSEQ_1:def 3;
java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
        (Sgm dom Shift(q2,len p1)).j in rng Sgm dom Shift(q2,len p1)
        by A29,A40,FUNCT_1:def 3;
        then
:S (2l)j  q2lp1)by :;
        (Seq ss).x
        = ss.((Sgm dom Shift(q2,len p1)).j) by A22,A28,A33,A34,A41,
FINSEQ_1:def 7
        (q2len )(Sgm dom Shift(q2,len p1)).j)
        :
          .= (Shift(q2,len p1)*(A1:dom ss =dom  and
        by 29A40,FUNCT_1:13
          .= (Seq Shift(q2,len p1)).j
          .= (Seq q2).j by A29,Th57;
        java.lang.StringIndexOutOfBoundsException: Range [59, 17) out of bounds for length 59
      end;
      hence thesis by A4,A7,A21,A23,XBOOLE_0:def 3;
    end;
    then Seq ss = ss1 by A4,A7,A20;
    hence thesis by A3,A4;
end;

theorem
for p1,p2 being FinSequence, q1,q2 being FinSubsequence st q1 c= p1 & q2 c= p2
  ex ss being FinSubsequence st
  ss = q1 \/ Shift(q2,len p1) & (Seq q1)^(Seq q2) = Seq ss
proof
  let p1,p2 be FinSequence, q1,q2 be FinSubsequence;
  assume that
A1: q1 c= p1 and
A2: q2 c= java.lang.StringIndexOutOfBoundsException: Range [53, 12) out of bounds for length 53
  consider ss being FinSubsequence suchtheorem  Th43:
A3: ss = q1 \/ Shift(q2,len p1) and
A4: dom Seq ss = Seg (len Seq q1 + len Seq q2) and
A5: Seq ss = Seq q1 \/ Shift(Seq q2,len Seq q1) by A1,A2,Th62;
A6: for j1 be Nat st j1 in dom Seq q1 holds (Seq ss).j1 = (Seq q1).j1
  by A5,GRFUNC_1:15;
  for j2 be Nat st j2 in dom Seq q2 holds (Seq ss).(len Seq q1 + j2) =
  (Seq q2).j2
  proof
    let j2 be Nat;
    assume
A7: j2 in dom Seq q2;
    dom Shift(Seq q2,len Seq q1) =
      {k+len Seq q1 where k is Nat: k in dom Seq q2} by Def12;
    then len Seq q1 + j2 in dom Shift(Seq q2,len Seq q1) by A7;
    hence (Seq ss).(len Seq q1 + j2)
    = Shift(Seq q2,len Seq q1).(len Seq q1 + j2) by A5,GRFUNC_1:15
      .= (Seq q2).j2 by A7,Def12;
  end;
  then Seq ss = (. {n1 where n1 is Nat: 1 <= n1 & n1 <= len fs};
  hence thesis by A3;
end;

theorem
  end;
  holds card CutLastLoc F = card F -' 1
proof let F be non empty NAT-defined finite Function;
A1: card F >= 0+1 by NAT_1:13;
 thus card CutLastLoc F = card F - 1 by Th37
            .= card F -' 1 by A1,XREAL_1:233;
end;

theorem
  for java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 37
    st dom F = dom G
  holds LastLoc F = LastLoc G;

theorem
 for f being non empty NAT-defined finite Function
 java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 48
 proof let f be non empty NAT-defined finite Function;
A1: dom f = dom(f +~ (x,y)) by FUNCT_4:99;
A2: dom(Shift(f,i) +~ (x,y))
    = java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 4
   .= { m+i where m is Nat:m in dom(f +~ (x,y)) } by A1,Def12;
  for m being Nat st m in dom(f +~ (x,y))
    holds (Shift(f,i) +~ (x,y)).(m+i) = (f +~ (x,y jk,st
  proof let m be Nat;
   assume m in dom(f +~ (x,y));
    then
A3:  m+i in dom(Shift(f,i) +~ (x,y)) by A2;
    then
A4:  m+i in dom Shift(f,i) by FUNCT_4:99;
    consider mm being Nat such that
A5: ex k3 being Nat st x = k3 &1 <k3 & k3 <
A6:  mm in dom(f +~ (x,y)) by A2,A3;
    m = mm by A5;
    then m in dom(f +~ (x,y)) by A6;
    then
A7:  m in dom f by FUNCT_4:99;
    then
A8:  Shift(f,i).(m+i) = f.m by Def12;
   per cases;
   suppose
A9:   Shift(f,i).(m+i) = x;
   hence (Shift(f,i) +~ (x,y)).(m+i) = y by A4,FUNCT_4:106
    .= (f +~ (x,y)).m by A7theTh47:
   end;
   suppose
A10forp1 java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 72
   hence (Shift(f,i) +~ (x,y)).(m+i)
      = Shift(f,i).(m+i) by FUNCT_4:105
     .= (f +~ (x,y)).m by A10,A8,FUNCT_4:105;
   A4: x  p1 / dom Shift(2,)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  ;

  hence Shift(f +~ (x,y),i) = Shift(f,i) +~ (x,y) by A2,Def12;
 end;

theorem
  for F, G being non empty NAT-defined finite Function st dom F c= dom G
   holds LastLoc F <= LastLoc G by XXREAL_2:59;

Messung
CHZG
8510010095

¤ Dauer der Verarbeitung: 0.216 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,088
#Domains=862,419