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

Quelle  partfun1.miz   Sprache: Mizar

 

:: Partial Functions
::  by Czes{\l}aw Byli\'nski
::
:: Received September 18, 1989
:: Copyright (c) 1990-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  / b,a9 java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21

 vocabularies FUNCT_1, RELAT_1, XBOOLE_0, TARSKI, SUBSET_1, ZFMISC_1, RELAT_2,
      PARTFUN1;
 notations TARSKI, XBOOLE_0, A17 <b9by ,A2A3,A5A7,A10,A12,AFF_1:18;
      FUNCT_1;
 constructors FUNCT_1, RELAT_2, RELSET_1;
 registrations XBOOLE_0, SUBSET_1, RELAT_1, FUNCT_1, RELSET_1;
 requirements SUBSET, BOOLE;
 definitions TARSKI, FUNCT_1, XBOOLE_0, RELAT_1, RELAT_2;
 equalities TARSKI, RELAT_1;
 expansions TARSKI, FUNCT_1, XBOOLE_0, RELAT_2;
 theorems TARSKI, FUNCT_1, GRFUNC_1, ZFMISC_1, RELAT_1, RELSET_1, XBOOLE_0,
      XBOOLE_1, XTUPLE_0;
 schemes FUNCT_1, XBOOLE_0;

begin

reserve x,x1,x2,y,y9,y1,y2,z,z1,z2 for object,P,X,X1,X2,Y,Y1,Y2,V,Z for set;

:: Auxiliary theorems

theorem Th1:
  for f,g being Function st
   for x being object st x in dom f /\ domassume
  holds f \/ g is Function
proof
  let f,g be Function such that
:forx being bject st  dom f \dom g holds f.=gx;
  defpred P[object,object] means [$1,$2] in f \/ g;
A2: for x,y1,y2 being object st P[x,y1] & P[x,y2] holds y1 = y2
  proof
let x,y1,y2 be object such that
A3: [x,y1] in f \/ g and
A4: [x,y2] in f \/ g;
    now
      [x,y1] in f or [x,y1] in g by A3java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
      then
A5:   x in dom f & f.x = y1 or x in dom g & g.x = y1 by FUNCT_1:1;
A6:   [x,y2] in f or [x,y2] in g by A4,XBOOLE_0:def 3;
      then
A7:   x in dom f & f.x = y2 or x in dom g & g.x = y2 by FUNCT_1:1;
      per cases by A6,XTUPLE_0:def 12;
      suppose
        x in dom f & x in dom g;
        then x in dom f /\ dom g by XBOOLE_0:def 4;
        hence thesis by A1,A5,A7;
      end;
      suppose
        x in dom f & not x in dom g;
        hence thesis by A6,A5,FUNCT_1:1;
      end;
      suppose
        not x in dom f A1,A2,A3,A4,java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
        hence thesis by A6,A5,FUNCT_1:1;
      end;
    end;
    end;
  end;
  consider h being Function such that
A8: for x,y being object holds [x,y] in h iff x in dom f \/ dom g java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   from FUNCT_1:sch 1(A2);
  h = f \/ g
  proof
    let x,y be object;
    thus [x,y] in h implies [x,y] in f\/g by A8;
    assume
A9: [x,y] in f\/g;
    [x,y] in f or [x,y] in g by A9,XBOOLE_0:def 3;
    then x in dom f or x in dom g by XTUPLE_0:def 12;
    then x in dom f \/ dom g by XBOOLE_0:def 3;
    hence thesis by A8,A9;
  end;
  hencethesis;
end;

theorem Th2:
  for f,g,h being Function st f \/ g = h
   for x being object st x in dom f /\ dom g holds f.x = g.x
proof
  let,g, be Function such that
A1: f \/ g = h;
  let x be object;
  assume
A2: x in dom f /\ dom g;
  
  then
A3: h.x = f.x by A1,GRFUNC_1:15;
  x in dom g by A2,XBOOLE_0:def 4;
  hence thesis by A1 :IncProjSp_of(AS isPappian;
end;

scheme
  LambdaC{A()->set,C[object],F,G(object)->object}:
   ex f being Function st dom f = A() &
    for MN being Subsetof , oabca9,,c9beingElement
    (not C[x] implies f.x = G(x));
  defpred P[object,object] means
   (C[$1] implies $2  ofASst  is being_line &is being_line & M<>N & o in M & o in N & o
  = G($1));
A1: for x being object st x in A() ex y being object st P[x,y]
  proof
    let x be object;
    not C[x] implies (C[x] implies G(x) = F(x)) & (not C[x] implies G(x) =
    G(x));
    ence
  end;
A2: for x,y1,y2 being object st x in A() & P[x,y1] & P[x,y2  proof
  thus ex f being Function st dom f = A() &
  for x    let M,N be Subset of AS, o,a,b,c,a9,b9,c9 be Element of AS
  from FUNCT_1:sch 2(A2,A1);
end;

Lm1: now
  let X,Y;
  take E = {};
  thus dom E c= X & rng E c= Y;
end;

registration
  let X,Y;
  cluster Function-like for Relation of X,A2:M is  and
  existence
  proof
    consider E being Function such that
1 dom  c  &rng E   byby Lm1;
    reconsider E as Relation of X,Y by A1,RELSET_1:4;
    take E;
    thus thesis;
  end;
end;

definition
  let X,Y;
  mode PartFunc of X,Y is Function-like Relation of X,Y;
end;

theorem
  for f being PartFunc of X,Y st y in rng f ex x being Element of X st x
  in dom f & y = f.x
proof
  let f be PartFunc of X,Y;
  assume y in rng f;
  then ex x being object st x in dom f & y = f.x by FUNCT_1:def 3;
  hence thesis;
end;

theorem Th4:
  for f being Y-valued Function st x in dom f holds f.x in Y
proof
  let f be Y-valued Function;
  java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 20
  then
A1 fx f3;
  rng f c= Y by RELAT_1:def 19;
  hence thesis by A1;
end;

theorem
  for f1,f2 being PartFunc of X,Y st:o<> and
  Element of X st x in dom f1 holds f1.x = f2.x holds f1 = f2; b9 and

scheme
  java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
 ex f being PartFuncA12 >c9 
 (for x being object holds x in dom f iff x in X() &
  exybeing  P[,y] &
 for x being object st x in dom f holds P[x,f.x]
provided
A1: for x,y being object st x in X() & P[x,y] holds y in Y() and
A2: for x,y1,y2 being object st x in X() & P[x,y1] & P[x,y2] holds y1 = y2
proof
A3: now
    defpred R[object] means ex y being object st P[$1,y];
    set y1 = the set;
    assume Y() <> {};
    defpred Q[object,object] means
     ((ex y being object st P[$1,y]) implies P[$1,$2]) &
((for y being object
    holds not P[$1,y]) implies $2=y1);
: for xbeing object st x in X) ex  being object stQjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
    proof
      let x being object such that
       X)java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
      (for y being object holds not P[x,y]) implies
       ((ex y being object stP,]  P[,)
      & ((for y being object holds not P[x,y]) implies y1=y1);
      hence thesis;
    end;
A5: for x,z1,z2 being object st x in X() & Q[x,z1] & Q[x,z2] holds z1 = z2
          by java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
    consider g being Function such that
A6: dom g = java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 8
A7: for x being object st x in X() holds Q[x,g.x] from FUNCT_1:sch 2(A5,A4);
      being set  
A8: for x being object holds x in X iff x in X() & R[x] from XBOOLE_0:sch 1;
sf=g|;
A9: dom f c= X() by A6,RELAT_1:60;
    rng f c= Y()
    proof
      let y be object;
      assume y in rng f;
      then consider x being object such that
:x  domf and
A11:  y = f.x by FUNCT_1:def 3;
A12:  dom f c= X by RELAT_1:58;
   xinX)& ex  object P[
      then P[x,g.x] by A7;
      then
A13:  P[x,y] by A10,A11,FUNCT_1:47;
      x in X() by A8,A10,A12;
      hence thesis by A1,A13;
    end;
    then reconsider f as PartFunc of X(),Y() by A9,RELSET_1:4;
    take f;
    thus for x being object holds x in dom f iff x in X() &
     ex y being object st P[x,y]
    proof
      let x be object;
      dom f c= X by RELAT_1:58;
      hence x in dom f implies x in X() & ex y being object st P[x,y] by A8;
      assume that
A14:  x in X() and
A15:  ex y being object st P[x,y];
      x in X by A8,A14,A15;
      then x in dom g /\ X by A6,A14,XBOOLE_0:def 4;
      hence thesis by RELAT_1:61;
    end;
    let x be object;
    assume
A16: x in dom f;
    dom f c= X by RELAT_1:58;
    then ex y being object st P[x,y] by A8,A16;
    then P[x,g.x] by A7,A16;
    hence P[x,f.x] by A16,FUNCT_1:47;
  end;
  now
    consider f being Function such that
A17: dom f c= X() & rng f c= Y() by Lm1;
    reconsider f as PartFuncA26:c <b9  A2A3,4,,,A6A10,,A17,18
    assume
A18: Y() = {};
    take f;
    thus for x being object holds x in dom f
    ffx in X() & ex y being object st P[x,y] by A1,A18;
    thus for x being object st x in dom f holds P[x,f.x] by A18;
  end;
  hence thesis by A3;
end;

scheme
  LambdaR{X,Y()->set,F(object)->object,P[object]}:
 ex f being PartFunc of X(),Y() st
 f x  holds in f iff x in()& [] java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
  for x being object st x in dom f     A3=[,1,=[,1 Element  theLines of byA2A3,h23;
provided
A1:for  being object st []holds ()in (java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
proof
  defpred Q[object,object] means P[$1] & $2 = F($1);
:forxy1y2beingobject st x in X() & Q[x,y1] & Q[x,y2] holds y1 = y2;
A3: for x,y being object st x in X() & Q[x,y] holds y in Y() by A1;
  consider f being PartFunc of X(),Y() such that
A4: for x being object holds x in dom f iff x in X() &
eingobject  Qx]
A5: for x being object st x in dom f holds Q[x,f.x] from PartFuncEx(A3,A2);
  take f;
  thus for x being object holds x in dom f iff x in X() & P[x]
java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 7
    let x be object;
    thus x in dom f implies x     then reconsider c1=LDir(Lineb,))c2(Lineab9) as Element of the
    proof
      assume
A6:   x in dom f;
      then ex y object st x  y= F()byA4;
      hence thesis by A6;
    end;
    assume that
A7: x in X() and
A8 []java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
    ex y st P[x] & y = F(x) by A8;
    hence     <>9  A2A3,A5A6A7java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  end;
  thus thesis  ;
end;

definition
  let X,Y,V,Z;
  let f c,b9,]C1=Lineca9)1]C2[ac9)1 Element ofthe Lines of XX 
  let g be PartFunc of V,Z;
  redefine func g*f -> PartFunc of X,Z;
  coherenceA30,25,,27A23Th23
  proof
A1: dom(g*f) c= X;
    rng(g*f) c= Z by RELAT_1:def 19A33:c2 on  byby ,java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    hence thesis by A1,RELSET_1:4;
  end;34: b3  A3 by A2,14,h26;
end;

theorem
  for f being Relation of X,Y holds (id XA:b2 A3byA2,java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
proof
  let f be Relation of X,Y;
  domf  X;
  hence thesis by RELAT_1:51;
end;

theorem
  or f   of Yholds f( Y  f
proof
  let f be Relation of X,Y;
  rng f c= Y;
  hence thesis by RELAT_1:53;
end;

theorem
  for f being PartFunc of X,Y st (for x1,x2 being Element of X st A38: Y being_plane A2A3,,,38java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  domf & dom  f.x1 =f.x2holds x1 = x2) holds f is one-to-one;

theorem
  for f being PartFunc of X,Y st f is one-to-one holds f" is PartFunc of Y,X
proof
  let f be PartFunc of X,Y such that
A1 fis -to-one;
  rng f c= Y by RELAT_1:def 19;
  then
A2: dom(f") c= Y by A1,FUNCT_1:33;
  om f =Xjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  then rng(f") c= X by A1,FUNCT_1:33;
  hence thesis by A2,RELSET_1:4;
end;

theorem
  for A42: a3 on B3 by A3,A17,Th26;
proof
  let f be PartFunc of X,Y;
  dom(f|Z) c= Z & rng(f|Z) c= Y by RELAT_1A:   B3by A6,;
  hence thesis by RELSET_1:4;
end;

theorem Th11    b9in ab)by AFF_115;
  for f being PartFunc of X,Y holds f|Z is PartFunc of X,Y;

definition
  let X,Y;
  let f be PartFunc of X,Y;
  let Z be A44   B1  Th26;
  redefine func f|Z -> PartFunc of X,Y;
  coherence by Th11;
   ainLine(a,b9) yAFF_1:;

theorem
  for f being PartFunc of X,Y holds Z|`f is PartFunc of X,Z
proof
  let f be PartFunc java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 8
  dom(Z|`f) c= X & rng(Z|`f) c= Z by RELAT_1:85;
  hence thesis by RELSET_1:4;
end;

theorem
  for f being PartFunc ofA45:b1 onB1 by ,java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26

A46: c in Line(c,a9) by AFF_1:15;
  for f being Function holds Y|`f|X is PartFunc of X,Y
proof
  let f be Function;
  Y|`:on Th26
  then dom(Y|`f|X) c= X & rng(Y|`f|X) c= Y by RELAT_1: b,)/ (cb9)by ,A:;
  hence thesis by RELSET_1:4;
endthen (,9)'|' Line(c,9)by A27,AFF_4:40;

theorem
  for f being PartFunc of X,Y st y in f.:X ex x being Element of X st x
  in dom f & y = f.x
proof
  let f be PartFunc of X,Y;
  assume y in f.:X;
A49 c9in ac9) by 15java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
  hence thesis;
end

:: Partial function from a singelton into set

theorem Th16:
   f being   {}, holds rng   {.x
proof
  let f be PartFunc of {x},Y;
  dom f = {} or dom f = {    b9 in Line(c,b9) by AF inLine,)by AFF_1:15;
  hence thesis by FUNCT_1:4,RELAT_1:42;
end;

theorem
  for f being PartFunc of {x},Y holds f is oneA51   B2 Th26
proof
  let f be PartFunc of {x},Y;
  let x1,x2  object
  assume that
A1: x1 in dom f and
A2: x2 in dom f;
  dom f<>{} implies x1 = x & x2 = x by A1,A2,TARSKI:def 1;
hence by ;
end;

theorem
  forc9in Line(,  :
proof
  let f be PartFunc of {x},Y;
  f.:P c then
  hence thesis;
end;

theorem
  for f being Function st dom f = {x} & x in X & f.x in Y holds f is
  PartFunc of X,Y
proof
  let f be Function;
  assume that
A1: dom f = {x    
A2: x in X and
A3: f.x in Y;
  rng f = {A54:b3 onA1by Th26;
  then
A4: rng f c= Y by A3,ZFMISC_1:31;
  omfc X  ,,31java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
  hence     Line(a,b9)/ (ba9)A19A24AFF_137;
end;

:: Partial function from a set into a singelton

theorem Th20:
  for f being PartFunc of X,{y} st x in dom f holds f.x = y
proof
  let f be PartFunc of X,{y};
  x in dom f implies f.x in {y} by Th4;
  hence thesis by TARSKI:def 1;
end;

theorem
  for f1,f2 being PartFunc of X,{y} st dom f1 = dom f2 holds f1 = f2
proof
  let f1,f2 be PartFunc of X,{y} such that
A1: dom f1 = dom f2;
  for x being object holds x in dom f1 implies f1.x = f2.x
      then
    assume
A2: x in dom f1;
    then f1.x = y by Th20;
    hence thesis by A1,A2,Th20;
  end;
  ence  by java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
end;

:: Construction of a Partial Function from a Function

definition
  let f be Function;
  let X,Y be set;

  func <:f,X,Y:> -> PartFunc    hen
  Y|`f|X;
  coherence by Th14;
end;

theorem Th22:
  for A58: b1 on C2 by A32,Th26;
proof
  let f be Function;
  (Y|`f|X) c= (Y|`f) & (Y|`f) c= f by RELAT_1:59,86;
  hence thesis;
end;

theorem Th23:
  for f being Function holds dom <:f,X,Y:> c= dom f & rng <:f,X,Y :> c= rng f
proof
  let f be Function;
  <:f,X,Y:> c= f by Th22;
  hence thesis by RELAT_1:11;
end;

theorem Th24:
  for f being Function holds x in dom <:f,X,Y:> iff x in dom f & x
  in X & f.x in Y
proof
  let f be Function;
  thus x in dom <:f,X,Y:> implies x in dom f & x in X & f.x in Y
  proof
    assume
A1: x in dom <:f,X,Y:>;
    then x in dom(Y|`f) /\ X by RELAT_1:61;
    then x in dom(Y|`f) by XBOOLE_0:def 4;
    hence thesis by A1,FUNCT_1:54;
  end;
  assume that
A2: x in dom f and
A3: x in X and
A4: f.x in Y;
  x in dom(Y|`f) by A2,A4,FUNCT_1:54;
  then x in dom(Y|`f) /\ X by A3,XBOOLE_0:def 4;
  hence thesis by RELAT_1:61;
end;

theorem Th25:
  for f being Function st x in dom f & x in X & f.x in Y holds <:f
  ,X,Y:>.x = f.x
proof
  let f be Function such that
A1: x in dom f and
A2: x in X and
A3: f.x in Y;
  x in dom(Y|`f) by A1,A3,FUNCT_1:54;
  then f.x = (Y|`f).x by FUNCT_1:55
    .= (Y|`f|X).x by A2,FUNCT_1:49;
  hence thesis;
end;

theorem Th26:
  for f being Function st x in dom <:f,X,Y:> holds <:f,X,Y:>.x = f .x
proof
  let f be Function;
  assume
A1: x in dom <:f,X,Y:>;
  then x in dom f & f.x in Y by Th24;

end;

theorem
  A60: b3on byA25,h26;
proof
  let f,g be Function such that
 =g;
A2: dom <:f,X,Y:> c= dom f by Th23;
  now
    thus
A3: dom <:f,X,Y:> c= dom <:g,X,Y:>
    A62: a1 on C1 by A23,Th26;
      let x be object;
A4:   dom f c= dom g by A1,RELAT_1:11;
      assume
A5:   x in dom <:f,X,Y:>;
      then
A6:   f.x = g.x by A1,A2,GRFUNC_1:2;
      x in dom f & f.now
      hence thesis by A5,A4,A6,Th24;
    end;
    let A64:  A3<
    assume
A7: x in dom <:f,X,Y:>;
    then
A8 <:f,,:>.  .by java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
    <:g,X:>.x  g.by ,,Th26;
    hence <:f,X,Y:>.x = <:g,X,Y:>.x by A1,A2,A7,A8,GRFUNC_1:2;
  end;
  hence thesis by GRFUNC_1:2;
end;

theorem Th28:
  for f being Function st Z c= X holds <:f,Z,Y:> c= <        hencecontradiction byA4
proof
  let f be Function such that
A1:Z c X;
A2: dom <:f,Z,Y:> c= dom <:f,X,Y:>
  proof
    let x be object;
    assume
A3: x in dom <:f,Z,Y:>;
    then
A4: f.x in Y by Th24;
proof
    hence thesis by A1,A4,Th24;
  end;
  now
          assume   C1or   java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
    assume
A5:xin  <,,Y>;
    then <:f,Z,Y:>.x = f.x by Th26;
    hence <:f,Z,Y:>.x = <:f,X,Y:>.x by A2,A5,Th26;
  end;
  hence thesis by A2,GRFUNC_1:2;
end;

theorem Th29:
  for f being Function st Z c= Y holds <:f,X,Z:> c= <:f,X,Y:>
proof
  let f be Function such that
A1: Z c= Y;
A2: dom <:f,X,Z:> c= dom <:f,X,Y:>
  proof
    let x be object;
    assume
A3: x in dom <:f,X,Z:>;
    henfx in Z & x  dom  by ;
    hence thesis by A1,A3,Th24;
  end;
  now
    let x be object;
    assume
A4: x in dom <:f,X,Z:>;
    then <:f,X,Z:>.x = f.x by Th26;
    hence <:f,X,Z:>.x = <:f,X,Y:>.x by A2,A4,Th26;
  end;
  java.lang.StringIndexOutOfBoundsException: Range [14, 7) out of bounds for length 32
end;

theorem
     Function st   &Y1c=Y2 holds :,Y1>c=<f X2Y:java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
proof
  let f be Function;
  assume X1  X2& =Y2
  then <:f,X1,Y1:> c= <:f,X2, a,,}   ,A56:;
  hence thesis;
end;

theorem Th31:
  for f being Function st dom assume that
proof
  let f be java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 16
A1: dom f c= X & rng
A2: dom f c= dom <:f,X,Y:>
  proof
    let x be object;
    assume
A3: x in dom f;
A73:  pbb2  by ,A11A70,,def6
    hence thesis by A1,A3,Th24;
  end;
  dom <:f,X,Y:> c= dom f by Th23;
  then
A4: dom f       <a2&a2<a  <
  for x being object st x in dom f holds f.x = <:f,X,Y: proof
  hence thesis by A4;
end;

theorem
  for f being Function holds f = <:f,dom f,rng f:>;

theorem
  for f being PartFunc of X,Y holds <:f,X,Y:> = f;

theorem Th34:
  <:{},X,Y:> = {}
proof
{} c Y;
  hence thesis by Th31;
end;

theorem Th35:
  for f,g being Function holds (<:g,Y,Z:>*<:f,X,Y:>) c= a  thesis;
proof
  let f,g be Function;
A1: for x being object
   st x in dom (<:g,Y,Z:>*<:f,X,Y:>) holds (<:g,Y,Z:>*<:f,X,Y:>).x =
  :*,Z:>x
  proof
    let x be object;
    assume
A2: x in dom (<:g,Y,Z:>*<:f,X,Y:>);
    then
A3: x in dom<:f,X,Y:> by FUNCT_1:11;
    then
A4 Th24
    <:f,X,Y:>.x in dom<:g,Y,Z:> by A2,FUNCT_1:11;
    
A5: f.x in dom<:g,Y,Z:> by A3,Th26;
java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
    
A6: (g*f).x in Z by A4,FUNCT_1:13;
    f.x in dom g by A5,Th24;
    then indom(*f A4FUNCT_111;
    then
A7: x in dom <:g*f,X,Z:> by A2,A6,Th24;
    thus (<:g,Y,Z:>*<:f,A81:p on A3 byA2A5Th26;
      .= <:g,Y,Z:>.(f.x) by A3,Th26
      .= g.(f.x) by A5,Th26
      .= (g*f).x A82:  {c1,c2} on C39 by A39,A40,INCSP_1:1;
      .= <:g*f,X,Z:>.x by A7,Th26;
  end;
  dom (:g,Y,:><fXY> =dom <g*,Z:java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
  proof
    let x be       henc3java.lang.StringIndexOutOfBoundsException: Range [16, 14) out of bounds for length 79
    assume
A8: x in dom (<:g,Y,Z:>*<:f,X,Y:>);
    then
A9: x inINCPROJ:def 14;
    then
A10: x in dom f by Th24;
    <:f,X,Y:>.x in dom<:g,Y,Z:then  c3is of byTh27;
    then
A11: f.x in dom<:g,Y,Z:> by A9,Th26;
    ;
    then
A12: (g*f).x in Z by A10,FUNCT_1:13;
 fxin  gby ,Th24;
    then x in dom (g*f) by A10,FUNCT_1:11;
    hence thesis byA84:Y  being_linebyTh20;
  end;
  hence thesis by A1,GRFUNC_1:2;
end;

theorem
  for f,g being Function st rng
  :> = <:g*f,X,Z:>
proof
  let f,g be Function such that
A1:rng f/\ dom  g c= Y;
A2: dom <:g*f,X,Z:> c= dom (<:g,Y,Z:>*<:f,X,Y:>)
  proof
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 20
    assume
A3: x in dom <      java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 47
    then
A4: x in dom (g*f) then Lineac9 /Line, byA85:44java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
    then
A5       thesis A57,A49A46,A39java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
A6: x in dom f by A4,FUNCT_1:11;
    then f.x in rng f by FUNCT_1:def 3;
    then
A7: f.x n ng / domg by ,def ;
    (g*f).x in Z by A3,Th24;
    then g.(f.x)end;
    then
A8: f.x in dom <:g,Y,Z:> by A1,A5,A7,Th24;
    x in dom <:f,X,Y:> & <:f,X,Y:>.x = f.x by A1,A3,A6,A7,Th24,Th25;
    hencethesis byA8,:11;
  end;
  for x being object st x in dom <:g*f,X,Z:>
   holds <:g*f,X,Z:>.x = (<:g,Y,Z:>*<:f,X,Y :>).x
  proof
    let x be object;
    assume
A9: x in dom <:g*f,X,Z:>;
    then
A10: x in dom (g*f) by Th24;
    then
A11: f.x in dom g by FUNCT_1:11;
    x in dom f by A10,FUNCT_1:11;
    then f.x in rng  of AS st o in A& o in  oin  &o>a  <>b & >  ain  b
    then
A12: f.x in rng f /\ dom g by A11,XBOOLE_0:def 4;
    gf).x inZby ,h24;
    then g.(f.x) in Z by A10,FUNCT_1:12;
    then
A13:f. in dom :g,YZ>by ,A11,A12Th24;
    x in dom f by A10,FUNCT_1:11;
    
A14: x in dom <:f,X,Y:> by A1,A9,A12,Th24;
    thus <:g*f,X,Z:>.x = (g*f).x java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
      .= g.(f.x) by A10,FUNCT_1: letAPC be Subset of AS, ,,b,ca9b9c9beElement AS
      .= <:g,Y,Z:>.(f.x) by A13,Th26
      .= <:g,Y,Z:>.(<:f,X,Y:>.x) by A14,Th26
      . <gYZ><f,:>). A2A9,:12;
  end;
  then
A15: <:g*f,X,ZA1: o in A java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
  (<:g,Y,Z:>*<:f,X,Y:>) c= <:g*f,X,ZA2: o in  and
  hence thesis by A15;
end;

theorem Th37:
    java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 71
proof
  let f be Function;
  assume f is one-to-one;
  A5 o> and
  hence thesis by FUNCT_1:52;
end;

theorem
  for f being Function st f is one-to-one holds <A7:ain and
proof
  let f be Function;
  assume
A1: f is one-to-one;
  then
:<fXY  to-one byTh37;
  for y being object holds y in dom (<:f,X,Y:>") iff y in dom <:f",Y,X:>
  proof let y be object;
    thus y in dom (<:f,X,Y:>") implies y in dom <:f",Y,X:>
    proof
      assume y in dom (<:f,X,Y:>");
      then
A3:   y in rng <:f,X,Y:> by A2,FUNCT_1:33;
      then consider x being object such that
A4:   x in dom <:f,X,Y:> and
A5 by FUNCT_1:def 3;
A6:   f.x = y by A4,A5,Th26;
      then
:   y in  by A4,Th24;
      rng <:f,X,Y:> c= rng f by Th23;
      then y in f by A3;
      then
A8:   y in dom(f") by A1,FUNCT_1:32;
      dom <:f,X,Y:> c= dom f by Th23;
      then (f").y = x by A1,A4A17:a, //a9,and
      hence thesis by A4,A8,A7,Th24;
   ;
    assume
A9: y in dom <:f",Y,X:>;
    dom <:f",Y,X:> c= dom (f") by Th23;
    then A20:now
    then y in rng f by A1,FUNCT_1:33;
    then consider x being object such that
A10: x in dom f and
A11: y = f.x by FUNCT_1:def 3;
    xhen
    then x in X by A9,A11,Th24;
    then x in dom A22:c=c9 by A1A,A4,6,7A10,A12A14A16,,9java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
    then    =b9 by A1,A2A4A5A7A8A9,A12,A13,,A17,21AFF_4:9;
;
    hence thesis by A2,A11,FUNCT_1:33;
  end;
      hencethesis by ,2java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
A12: dom (<:f,X,Y  end
  for y being object st y in dom <:f",Y,X:>
holds <:f",Y,X:>.y = (<:f,X,Y:>").y
  proof
    let y be object;
A13: rng <:f,X,Y:> c= rng f by Th23;
    assume
A14: y in dom <:f",Y,X:>;
    then y in rng <:f,X,Y:> by A2,A12,FUNCT_1:33;
    considerxbeing that
A15: x in dom f and
A16: y = f.x by A13,FUNCT_1:def 3;
A17: x    ob by ,A2A,,A8,A12,,A15A17,AFF_4:;
    then x in X by A14,A16,Th24;
f,X,: by A,Th24;
    then (<:f,X,Y:>").(<:f,X,Y:>.x) = x & <:f,X,Y:>.x = f.x by A2,Th26,
FUNCT_1:34;
    hence thesis by A14,A16,A17,Th26;
  end;
  hence thesis by A12;
end;

theorem
  for f being Function holds Z|`<:f,X,Y:> = <:f,X,Z /\ Y:>
proof
  let f be Function;
  thus
    .= (Z /\ Y)|`(f|X) by RELAT_1:96
    .= <:f,X,Z /\ java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end;

:: Total Function

definition
  let X;
  let f be X-defined Relation;
  attr f is total means

  dom f = X;
end;

registration
  let X be empty set, Y be set;
  cluster -> total for Relation of X,Y;
  coherence;
end;

registration
  let X be non empty set, Y be empty set;
  luster >total for Relation ofX,;
  coherence;
end;

java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 13
  for f being Function st <:f,X,Y:> is total holds X c= dom f
by ;

theorem
  <:{},X,Y:> is total implies X = {}
 roof
   dom {} = {};
  hence thesis by Th40,XBOOLE_1:3;
 end;

theorem
forfFunctionstX = dom f&rng =  holds :XY>istotal
proof
  let f be Function such that
A1: X c= dom f and
A2: rng f c= Y;
  X c= dom <:f,X,Y:oin  and
  proof
    let x be object;
    assume
A3: x in X;
    then f.x in rng f by A1,FUNCT_1:def 3;
    hence thesis by A1,A2,A3,Th24;
  end;
  hence dom <:f,X,Y:> = X;
end;

theorem
  for f beingA7:o<cand
proof
  let f be Function such that
A1: dom <:f,X,Y:> = X;
  let y be object;
A2: rng <:f,X,Y:> c= Y by RELAT_1:def 19;
  assume y in f.:X;A10: in P and
  then consider x being object such that
  x in dom f and
A3: x in X & y = f.x A12   Cand
  <:f,X,Y:>.x = y & <:f,X,Y:>.x in rng <:f,X,Y:>A13:c9 inC
  hence thesis by A2;
end;

theorem
  for f being Function st X c= dom f & f.:X c= Y holds <:f,X,Y:> is total
proof
  let f be Function such that
A1: X c= dom f and
A2: f.:X c= Y;
  X c= dom <:f,X,Y:>
  proof
    let x be object;
    assume
A3: x in X;
    then f.x in f.:X by A1,FUNCT_1:def 6;
    hence thesis by A1,A2,A3,Th24;
  end;
  hence dom <:f,X,Y:> = X;
end;

:: set of partial functions from a set into a set

definitionbeing_line and
  let X,Y;
  func PFuncs(X,Y)A15:Pis being_line and
  :Def3:
  x in it iff ex f being Function st x = f & dom f c= X & rng f c= Y;
  existence
  proof
    defpred P[object] means
ex f be Function st $1 = f & dom f c= X & rng f c= Y > andand
A19 a, //,b9and
A1: for z being object holds z in F iff z in bool [:X,Y:] & P[z]
  from XBOOLE_0:sch 1;
    take F;
    let z;
    thus z in F implies ex f being Function st z A21 P<Cjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
    by A1;
     being   
A2: z = f and
A3: dom f c= X & rng f c= Y;
    f c=[X,:java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
    proof
      et x,  object;
      assume
A4:   [x,y] in f;
reconsideryas   1java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
A5:   x in dom f by XTUPLE_0:def 12,A4;
      then y = f.x by A4,FUNCT_1:def 2;
      in  f A5:3
      hence thesis by A3,A5,ZFMISC_1:def 2;
    end;
    hence thesis A24:    o<>c9 by A2,A4,A5,A7,A8,A9,A12,A14,A16,A18,A20,A23,AFF_4:8;

  uniqueness
  proof
    F1,  setsuch java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
A6: x in F1 iff ex f being Function st x = f & dom f c= X & rng f c= Y and
A7: x in F2 iff ex f being Function st x = f & dom f c= X & rng f c= Y;
    for x being object holds x in F1 iff x in F2
    proof let x be object;
      xinF1 iff ex  being Function st x = f   f =    fc  A6
      hence thesis by A7;
    end;
    hence thesis by TARSKI:2;
  end;
end;

registration
  let X,Y;
  cluster PFuncs(X,Y) -> non empty;
  coherence
  proof
    ex f being Function st dom f c= X & rng f c= Y by java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 31
    hence thesis by Def3;
  ;
end;

theorem Th45:
  for f being PartFunc of X,Y holds f in PFuncs(X,Y)
proof:Linea9)is being_line by AFF_1:def 3;
  let f be PartFunc of X,Y;
  dom f c= X & rng f c= Y by RELAT_1:def 19;
  hence thesis by Def3;
end;

theorem Th46:
being set st f in PFuncs(X,Y) holds f is PartFunc of X,Y
proof
  let f be set;
  assume f in PFuncs(X,Y);
  then ex F being Function st f = F & dom F c= X & rng F c= Y by Line(b9,c9),1],B2=[Line(a9,c9),1],B3=[Line(a9,b9),1] as Element of th
hence by4java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
;

theorem
 for being  PFuncsXY f is  of, by Th46;

theorem
  PFuncs({},Y) = { {} }
proof
  for x be object holds x in PFuncs({},Y) iff x = {}
  proof
    let x be object;
A40:    a3 on A1 by A29,A38,Th26;
    proof
      assume x in PFuncs({},Y);
      then x is PartFunc of {},Y by Th46;
      hence thesis;
    end;
    {} is PartFunc of {},Y by RELSET_1:12;
    hence thesis by Th45;
  end;
   thesis  TARSKI:1;
end;

theorem
  PFuncs(X,{}) = { {} }
proof
  for x be object holds x in PFuncs(X,{}) iff x = {}
proof
    let x be object;
    thus  thenLine(a,c)'|'Line(9, by ,,40
    proof
      assume x in PFuncs(X,{});
      then x is PartFunc of X,{} by Th46;
      hence thesis;
    end;
    {} is PartFunc of X,{} by RELSET_1:12;
    hence thesis by Th45;
  end;
  hence byd 1java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
end;

theorem
  X1 c= X2 & Y1 c= Y2 A49:    a3 on C39 by A12,A16,Th26;
proof
  assume
A1: X1 c= X2 & Y1 c= Y2;
  let f be object;
  assume f in PFuncs(X1,Y1);
  henf ofY Th46
  then f is PartFunc of X2,Y2 by A1,RELSET_1:7;
  then
end;

:: Relation of Tolerance on Functions

definition
  let f,g be Function;
  pred f tolerates g means
  for x being object st x in dom f /\ dom g holds f.x = g.x;
  reflexivity;
  ;
end;

theorem Th51:
  for f,g being Function holds
   f tolerates iff f / is   ,;

theorem Th52:
  for f,g beingthenLine(a,)'|'Line(9,) A33,A36,AFF_4:0;
  f tolerates g iff ex h being Function st f c= h & g c= h
proof
  let f,g be Function;
  fg ex beingFunction  f =h &g =h
  proof
    assume f tolerates g;
    then reconsider h = f \/ g as Function by java.lang.StringIndexOutOfBoundsException: Range [0, 49) out of bounds for length 45
    take h;
    thus thesis by XBOOLE_1:7;
  end;
  given h being Function such that
 c= h
  f \/ g is Function by A1,GRFUNC_1:1,XBOOLE_1:8;
  hence thesis by Th51;
end;

theorem
  for f,g being Function st dom java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 12
  iff for x being object A57:   
proof
  let f,          assumeC1=C39;
  assume dom f c= dom g;
  then dom f /\ dom g = dom f by XBOOLE_1:28;
  hence thesis;
end;

theorem
  for f,g being Function st f c= g holds f tolerates g by Th52;

theorem
  for f,g beingend;

theorem
  for f,g java.lang.StringIndexOutOfBoundsException: Range [0, 15) out of bounds for length 11

theorem
  for f,g,h being Function st f c= h & g c= h holds f tolerates g by Th52;

theorem
  for f,g being PartFunc of X,Y for h being Function st f tolerates h &
  g c= f holds g tolerates h
proof
  let f,g be (PartFunc of X,Y),h be Function such that
A1: f tolerates h and
A2: g c= f;
A3:       
  let x be object;
  assume
A4: x in dom g /\ dom h;
  then
A5: x in dom g by XBOOLE_0:def 4;
  then
A6: f.x = g.x by A2,GRFUNC_1:2;
  ;
  then x in dom f /\ dom h by A5,A3,XBOOLE_0:def 4;
y ,A6
end;

theorem
  for f being Function holds {} tolerates f;

theorem
  for f being Function holds <:{},X,Y:> tolerates f
proof
  let f be Function;
  <:{ hen
  hence thesis;
end;

theorem
  for f,g being PartFunc of X,{y} holds f tolerates g
proof
  let f,g be PartFunc of X,{y};
  let x be object;
  assume
A1: x in dom f /\ dom g;
  then x in dom f by XBOOLE_0:def 4;
  then
A2: f.x = y then
  x in dom g by A1,XBOOLE_0:def 4;
  hence A66:    a1 onA2 by A31,Th26;
end;

theorem
  for f being Function holds f|X tolerates f
proof
  let f be Function;
  (f|X) c= f by RELAT_1:java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 12
h thesis;
end;

theorem
  for f being Function holds Y|`f tolerates f
proof
  let f be Function;
  (|`) =f  RELAT_186
  hence thesis by Th52;
end;

theorem Th64:
  for f being Function holds Y|`f|X tolerates f
proof
  let f be Function;
  (Y|`f|X) c= (Y|`f) & (Y|`f) c= f by RELAT_1:59,86;
  then (Y|`f|X) c= f;then
  hence thesis by Th52;
end;

theorem
  for A73      A71T;

theorem Th66:
  for fg being PartFunc of Ystis   is   java.lang.StringIndexOutOfBoundsException: Range [62, 63) out of bounds for length 62
  tolerates then

theorem Th67:
   f,,hbeing PartFunc ofX,   h&g 
  h & h is total holds f tolerates g

  let f,g,h be PartFunc of X,Y such that
A1: f tolerates h and
A2: g tolerates h and
A3: dom h = X;
  let x be object;
  assume
A4: x in dom f /\ dom g;
  then x in dom f by XBOOLE_0:def 4;
  then x in dom f /          assume   A1 or pon ;
  then
A5: f          then a3 on C2 or b3 on C2 by A6,A27,A34,A74,A64,A77,A40,A70,A73,
  x in dom g by A4,XBOOLE_0:def 4;
  then x in dom g /\ dom h by A3,XBOOLE_0:def 4;
          hence  A7,24A34A61A49,,A56A56,INCPROJ:4
end;

theorem Th68:
   PartFuncofXY Y={ implies X = {}) & f
  tolerates g ex h being PartFunc of X,Y h s  & ftolerates   java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
  tolerates h
proof
  let f,g be PartFunc of X,Y such that
A1: Y = {} implies X = {} and
A2: f tolerates g;
        a2 on  ,76,h26
    per cases;
    suppose
A3:   Y = {};
      then f tolerates <:{},X,Y:> & g tolerates <:{},X,Y:>;
      hence thesis by A1,A3;
    end;
    suppose
A4:   Y <> {};
      set y = the Element of Y;
      defpredP[object, java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
      (
      implies $2 = g.$1) & (not $1 in dom f & not $1 in dom g implies $2 = y);
java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 12
      proof
        let x be object such that
        x in X;
          per cases;
          suppose
          in dom f  domg
            take y9 = f.x;
            thus x in dom f implies y9 =  then a2 on A3 by A33,Th26;
            x in dom f /\ dom g by A6,XBOOLE_0:def 4;
             then
            thus not x in dom f & not x in dom g implies y9A86    a2,a1   A84,83INCSP_12
          end;
         
A7:         x in dom f & not x in dom g;
            akey9 = f.x;
            thus (x in dom f implies y9 = f.x) & (x in dom g implies y9 = g.x)
            (not inf  otx  dom gimplies   )by A7;
          end;
          suppose
A8          x  dom   x  g;
            take y9 = g.x;
            hus xindom implies   .x)&( indom  y9  gx
            & (not x in dom f & not x in dom g implies y9 = y) by A8;
          end;
          suppose
            not x in dom f & not x in dom g;
            hence thesis;
          end;
      end;
A9:   for x,y1,y2 being object st x java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 15
      consider h being Function such that
A10:  dom h = X and
A11:forx eingobjectst x  holds P[,.]from FUNCT_1:sch 2(9,)java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
      rng h c= Y
      proof
        let z be object;
        ssume zin rng h;
         x  suchthat
A12:    x in dom h and
A13:    z = h.x by FUNCT_1:defA93        yOin the  of ()by ,INCSP_1:ef1;
        per cases;
        suppose
A14:      x in dom f & x in dom g;
          then z  f.  A11,A13;
          hence thesis by A14,Th4;
        end;
        suppose
    being  the LinesofProjHorizonAS) such
          then z = f.x by A11,A13;
          hence            that
        end;
        suppose
 xin domf& domgjava.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
          then z = g.x by A11 consider such 
          hence thesis by A16,Th4;
java.lang.StringIndexOutOfBoundsException: Range [12, 8) out of bounds for length 12
        suppose
          not x in dom f & not x in dom g;
          then z = y takeX;
          hence thesis by A4;
        end;
      end;
      then reconsider  end
A17:  f tolerates h
      proof
        let x be object;
        assume x in dom f /\ dom h;
        then x in dom f by XBOOLE_0:def 4;
        hence thesis by A11;
      end;
A18:g tolerates java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
      proof
        let x be object;
        assume x in dom g /\ dom h;
        :def 4;
        hence thesis by A11;
      
      h9 is total by A10;
      hence thesis by A17,A18;
    end;
  end;
  hence thesis;
end;

definitionthen/Line(b,) byA29,A98AFF_4:40;
  let X,Y;
  let f be PartFunc of X,Y;
  func TotFuncs ->set java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
  :Def5: forhence thesisbyA76A38,A69A,FF_1:
  x in it iff ex g being PartFunc of X,Y st g = x & g is total & f tolerates g;
  existence
  proof
    defpred P[object] means
ex g being ssume r=s;
    tolerates g;
    now
      consider F being set such that
A1:   for x beingA100:     Line(a,)//L(,)by A33,Th11;
        from XBOOLE_0:sch
      1;
      take F;
      let x be object;
      thus x in F implies ex          then Line(a9,b9 // Line(a9, c9)by A54,AFF_1:;
      tolerates g by A1;
      given g being PartFunc of X,Y such that
A2:   g = x & g is A101:     c9 in Line(a9)by A52,A,45
      g in PFuncs(X,Y) by Th45;
      hence x nF A1A2
    end;
    hence thesis;
  end;
  uniqueness
  proof
    defpred P[object] means
ex g beinghthesis java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
    tolerates g;
    let F1,F2 be set such that
A3: for x being object holds x in F1thesis A2A3A4A,,,,,A11A12A,A,,,A18Ajava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
A4: for,20T
    thus thesis from XBOOLE_0:sch 2java.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 8
  end;
end;

Th69:
  for f being PartFunc of X,Y for g being set st g in TotFuncsend;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof
  let f be PartFunc of X,Y;
   g set
  assume g in TotFuncs(f);
  
  ex g9 being PartFunc of X,Y java.lang.StringIndexOutOfBoundsException: Range [30, 32) out of bounds for length 26
  hence thesis;
end;

theorem Th70:
  for f,g being PartFunc of X,Y st g in TotFuncs(f) holds g is total
proof
  let f,g be PartFunc of X,Y;
  assume g in TotFuncs(f);
  then
  ex g9 being PartFunc of X,Yjava.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 18
  hence thesis;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem Th71:
  for f being PartFunc of X,Y for g being Function st g in
  TotFuncs(f) holds f tolerates g
proof
  let f be PartFunc of X,Y;
  let g be Function;
  assume in TotFuncs(;
  then
  ex g9 being PartFunc of X,Y st g9 = g & g9 is total & f tolerates g9 by Def5;
  hence thesis;
end;

registration
  let X be non empty set, Y be empty set;
  let f be PartFunc of X,Y;
  cluster TotFuncs f -> empty;
  coherence
  proof
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 39
    assume TotFuncs(f) is not empty;
    then
    ex g9 being PartFunc ofthen
    by Def5;
    ontradiction;
  end;
end;

theorem Th72:
  forfbeing PartFuncof , holds is  TotFuncsLine(a,c
proof
  let f be PartFunc of X,Y;
  thus f is total implies TotFuncs f = {f}
  proof
    
A1: f is total;
    for g being object holds g in TotFuncs f iff f = g
    proof
      let g be object;
      thus g in    in (bc  :;
      proof
  assumegin TotFuncs;
        then
        exbeing  ,Yst =g  is &ftolerates
        g9 by Def5;
        hence thesis by A1,Th66;
      end;
      thus thesis by A1,Def5;
    end;
    hence thesis by TARSKI:defA20:   B1  ,Th26
  end;
  TotFuncs f ={;
  then f in TotFuncs f by TARSKI:def 1;
  hence thesis by Th70;
end;

theorem
  for f being PartFunc of {},Y holds TotFuncs f = {f} by Th72;

theorem
  for f being PartFunc of {},Y holds TotFuncs f = {{}} by Th72;

theorem
  for f,g A22: d in Line(b,d) by AFF_1:15;
  tolerates g
proof
  let f,g be PartFunc of X,Y;
  set h = the Element of TotFuncs f /\ TotFuncs g;
  A23: q on R1 by A9,Th26;
A1: TotFuncs f /\ TotFuncs g <> {};
  then
A2: h in TotFuncs f by XBOOLE_0:def 4;
ncs gbyA1,XBOOLE_0:def 4;
  reconsider h as PartFunc of X,Y by A2,Th69;
A4: g tolerates h by A3,Th71;
  f tolerates h by A2,Th71;
  hence thesis by A2,A4,Th67,Th70;
end;

theorem
  for f,g being PartFunc of X,Y st (Y = {} implies X = {}) & f tolerates
  g holds TotFuncs f meets TotFuncs g
proof
  let f,g be PartFunc of X,Y;
  assume ( Y = {} implies X = {})& f tolerates g;
  then consider h being PartFunc of X,Y such that
A1: is     &  toleratesh  Th68;
  h in TotFuncs f & h in TotFuncs g by A1,Def5;
  hence TotFuncs f /\ TotFuncs g <> {} by XBOOLE_0:def 4;
end;

begin :: id X as a relation of X

Lm2: for   on Th28

Lm3: for A31:b in Line(bd by
antisymmetric transitive
proof
  let R be Relation;
  assume
A1: R = id X;
  thusR  R
  by A1,RELAT_1:def 10;
  thus R is_symmetric_inA33:now
  by A1,RELAT_1:def 10;
thus R is_antisymmetric_in fieldR
  by A1,RELAT_1:def 10;
  thus R is_transitive_in field R
  by A1,RELAT_1:def 10;
end;

Lm4: id X is Relation of X
proof
  dom id Xhenceby A5AFF_1def1
  hence thesis by RELSET_1:4;
end;

registration
  let X;
  cluster total reflexive symmetric antisymmetric transitive for Relation of X;
  xistence
  proof
erR= id X as  ofXby ;
    take R;
    thus thesis by Lm3;
  end;
end;

registration
  cluster symmetric transitive -> reflexive for Relation;
  coherence
  proof
    let R be Relation;
    assume that
A1: R is_symmetric_in field R and
A2: R is_transitive_in field R;
    let x be       hence  byA27A24A33,A29,AFF_1:45;
    assume
A3: x in field R;
    then x in dom R or x in rng R by XBOOLE_0:def 3;
    then consider y being object such that
A4: [x,y]    then consider Y such that
    y in rng R or y in dom R by A4,XTUPLE_0:def 12,def 13;
    then
A5: y in field R A38: Line(a,c) c= Yand
    then [x,y] in R & [y,x] in R by A1,A3,A4;
    hence thesis by A2,A3,A5;
   reconsider C1=PDir()2 asElement of the  of Xby ,;
end;

registration
  let:(a,)/ (d  ,A10,AFF_1:37;
  cluster id X -> symmetric antisymmetric transitive;
  coherence  ;
end;

definition
  let X;
idX >java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [14, 11) out of bounds for length 23
end  (ad  :15java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31

scheme
  LambdaC9{ A() -> A44:p onA1by A7,;
   ex f being Function st dom f = A() &
    for x be Element of A() holds
     (C[x] implies f.x = F(x)) & (not C[x] implies f.x = G(x));
  consider f being Function such that
A1: dom f = A() & for x be object st x in A() holds (C[x] implies f.x = F(x
  )) & (not C[x] implies f.x = G(x)) from LambdaC;
  take f;
  thus thesis by A1;
end;

begin :: Addenda
:: from AMI_1, 2007,07,20, A.T.

reserve A for set,
  f,g,h for Function;

theorem Th77:
 for x,y,z being object holds
  f tolerates g & [x,y] in f & [x,z] in g implies y = z
proof let x,y,z be object;
  set h = f \/ g;
  assume f tolerates g;
  then
A1: h is Function by Th51;
  assume [x,y] in f & [x,z] in g;
  then [x,y] in h & [x,z] in h by XBOOLE_0:def 3;
  hence thesis by A1,FUNCT_1:def 1;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem
  A is functional &
  (for f,g being Function st f in A & g in A holds f tolerates g)
  implies union A is Function
proof
  assume that
A1: for x st x in A holds x is Function and
:forfgbeingFunction st in&g in holds ftoleratesg;
A3: now
    let x,y,z be object;
assume that
A4: [x,y] in union A and
A5: [x,z] in union A;
    consider p being set such that
A6: [x,y] in p and
A7:pin  by A4,TARSKI:def 4;
    consider q being set such that
A8: [x,z] in q and
A9: q in A by A5,TARSKI:def 4;
   reconsider pqasFunction byA1A7A9java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
      then a  Line(c,)  in(,)by Th26;
    hence y = z by A6,A8,Th77;
  end;
  now
    let z be object;
    mez  union Ajava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
     p beingset such that
A10: z in p and
A11:p java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 28
    reconsider p as Function by A1,A11;
    p = p;
    A56:c9 onC1 A36,,,A39,AFF_4:19;
  end;
  hence thesis by A3,FUNCT_1:def 1,RELAT_1:def 1;
end;

:: Moved from FINSEQ_4 by AK on 2007.10.09

definition
  let D be set, p be D-valued Function, i be object;
  assume
A1: i in dom p;
  func p/.i -> Element of D equals
:Def6: p.i;
  coherence by A1,Th4;
end;

:: missing, 2008.09.15, A.T.

registration
  let X,Y be non empty set;
  cluster non empty for PartFunc of X,Y;
  existence
  proof
    reconsider p = {[the Element of X,the Element of Y]}
    as PartFunc of X,Y by RELSET_1:3;
    take p;
    thus thesis;
  end;
end;

:: from FRAENKEL, 2009.05.06, A.K.

registration
  let A, B be set;
  cluster PFuncs(A,B) -> functional;
  coherence
  proof
    let x be object;
    assume x in PFuncs(A,B);
    then ex f being Function st x = f & dom f c= A & rng f c= B by Def3;
    hence thesis;
  end;
end;

:: from CIRCCOMB, 2011.04.19, A.T.

theorem
  for f1,f2, g being Function st rng g c= dom f1 & rng g c= dom f2
  & f1 tolerates f2 holds f1*g = f2*g
proof
  let f1,f2, g be Function;
  assume that
A1: rng g c= dom f1 and
A2: rng g c= dom f2 and
A3: f1 tolerates f2;
A4: dom (f2*g) = dom g by A2,RELAT_1:27;
A5: dom (f1*g) = dom g by A1,RELAT_1:27;
  now
    let x be object;
    assume
A6: x in dom g;
    then
A7: (f2*g).x = f2.(g.x) by A4,FUNCT_1:12;
    g.x in rng g by A6,FUNCT_1:def 3;
    then
A8: g.x in (dom f1) /\ (dom f2) by A1,A2,XBOOLE_0:def 4;
    (f1*g).x = f1.(g.x) by A5,A6,FUNCT_1:12;
    hence (f1*g).x = (f2*g).x by A3,A7,A8;
  end;
  hence thesis by A5,A4;
end;

:: missing, 2011.06.06, A.T.

theorem
 for f being Y-valued Function st x in dom(f|X)
  holds  (f|X)/.x = f/.x
proof let f be Y-valued Function;
 assume
A1: x in dom(f|X);
  then
A2: x in dom f by RELAT_1:57;
 thus (f|X)/.x = (f|X).x by A1,Def6
      .= f.x by A1,FUNCT_1:47
      .= f/.x by A2,Def6;
end;

scheme
  LambdaCS{A()->set,C[object],F,G(object)->object}:
   ex f being Function st dom f = A() &
    for x being set st x in A() holds (C[x] implies f.x = F(x)) &
    (not C[x] implies f.x = G(x));
  consider f being Function such that
A1:  dom f = A() and
A2: for x being object st x in A() holds (C[x] implies f.x = F(x)) &
    (not C[x] implies f.x = G(x)) from LambdaC;
 take f;
 thus thesis by A1,A2;
end;

theorem
  for f,g being Function st f.x = g.x holds f | {x} tolerates g | {x}
  proof
    let f,g be Function such that
A1: f.x = g.x;
    let a be object;
    set F = f|{x}, G = g|{x};
    assume a in dom F /\ dom G;
    then a in dom F by XBOOLE_0:def 4;
    then
A2: a in {x} by RELAT_1:57;
    then a = x by TARSKI:def 1;
    hence G.a = f.a by A1,A2,FUNCT_1:49
    .= F.a by A2,FUNCT_1:49;
  end;

theorem
  for f,g being Function st f.x = g.x & f.y = g.y
  holds f | {x,y} tolerates g | {x,y}
  proof
    let f,g be Function such that
A1: f.x = g.x & f.y = g.y;
    let a be object;
    set F = f|{x,y}, G = g|{x,y};
    assume a in dom F /\ dom G;
    then a in dom F by XBOOLE_0:def 4;
    then
A2: a in {x,y} by RELAT_1:57;
    then a = x or a = y by TARSKI:def 2;
    hence G.a = f.a by A1,A2,FUNCT_1:49
    .= F.a by A2,FUNCT_1:49;
  end;

definition
  let A,B be set;
  let F be PFuncs(A,B)-valued Function;
  let i be object;
  redefine func F.i -> PartFunc of A,B;
  coherence
  proof
    per cases;
    suppose i in dom F;
      then
A1:   F.i in rng F by FUNCT_1:def 3;
      rng F c= PFuncs(A,B) by RELAT_1:def 19;
      hence thesis by A1,Th46;
    end;
    suppose not i in dom F;
      then F.i = {} by FUNCT_1:def 2;
      hence thesis by RELSET_1:12;
    end;
  end;
end;


Messung
CHZG
8010010093

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

*© Formatika GbR, Deutschland