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

Quelle  msafree3.miz   Sprache: Mizar

 

:: Yet another construction of free algebra
::  by Grzegorz Bancerek and Artur Korni{\l}owicz
::
:: Received August 8, 2001
:: Copyright (c) 2001-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 XBOOLE_0, STRUCT_0, MSUALG_1, CARD_3, RELAT_1, FUNCT_1, SUBSET_1,
     PBOOLE,MSUALG_3, TARSKI, FUNCT_6, MEMBER_1, CATALG_1, ZF_MODEL,
      MSUALG_2, MSAFREE, FUNCOP_1, CARD_1, LANG1, ZFMISC_1, TREES_4, MCART_1,
      MARGREL1, FINSEQ_1, MSATERM, UNIALG_2, DTCONSTR, FINSET_1, TREES_2,
      TREES_9, ZF_LANG1, TREES_3, TREES_A, NUMBERS, ARYTM_3, ORDINAL4,
      XXREAL_0, NAT_1, PARTFUN1, MSUALG_6, PRELAMB, SETLIM_2;
 notations TARSKI, XBOOLE_0, ZFMISC_1, XTUPLE_0, SUBSET_1, DOMAIN_1, RELAT_1,
      FUNCT_1, RELSET_1, STRUCT_0, ORDINAL1, NUMBERS, XCMPLX_0, NAT_1, MCART_1,
        java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 79
      TREES_4, DTCONSTR, LANG1, PBOOLE,                . |(". *(/f1/h+).  (f2*/*.)|byA5,
      FUNCOP_1, MSUALG_3, EQUATION, MSATERM, MSUALG_6, CATALG_1, XXREAL_0;
 constructors DOMAIN_1, TREES_9, MSUALG_3, MSATERM, MSUALG_6, CATALG_1,
      EQUATION, SEQ_4, RELSET_1, XTUPLE_0;
 registrations XBOOLE_0, SUBSET_1,                 .= |.(h").m * (f2.((f1.h").m *f.(f1/hc).  ((f2*f1)/c).). by java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
      XREAL_0,                 .= |.(h").m * (f2.(f1.x0) - f2.(f1.(c.m))).| by A16,
      MSUALG_1, MSUALG_2, MSUALG_3, MSAFREEF:,A57
      MSUALG_9, INSTALG1, CATALG_1, MSSUBFAM, PBOOLE, XTUPLE_0;
 requirements BOOLE, SUBSET, NUMERALS;
 definitions TARSKI, XBOOLE_0, PBOOLE, MSUALG_2, MSUALG_6, CATALG_1;
 equalities TARSKI;
 expansions TARSKI, PBOOLE, MSUALG_2;
 theorems TARSKI, ZFMISC_1, FUNCT_1, FUNCT_2, FINSEQ_1, FINSEQ_3, NAT_1,
      MCART_1. .).*(f2(f1  f2f.)). byA7A57
      INSTALG1, TREES_4, PRE_CIRC, TREES_1, TREES_2, MSUALG_2, java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 35
      , MSATERM EQUATION ,XBOOLE_0  java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
      PARTFUN1, TREES_9, FINSEQ_2, XTUPLE_0;
 chemes PBOOLE,java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 25

begin

reserve x,y,z for set;

java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 69
let Sbe non empty voidManySortedSign;
  let A be non empty MSAlgebra over S;
  cluster Union the SEQ_26;
  coherence
  proof
A1: dom             ("#(f2*1/(h+  (f2*1/*)=diff(2,f1.x0)java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
    consider i being object such that
A2: i in thee;
A3: (the Sorts of A).i is non empty by PBOOLE:def 12;
    set x = the Element of (the Sorts of A).i;
    x in (the Sorts of A).i by A3;
    hence thesis by A2,A1,CARD_5:2;
  end;
;

definition
  let S be non empty non defpred P[objectmeans1 > f1x0
  let A be non empty A60:        for k ex n st k k  nn k &P(f1*h+)n by
  mode Elementjava.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 63
end;

theorem
  for I being set, A being ManySortedSet of I for F being
  ManySortedFunction of I st F is "1-1" & A c= A62:        n st r  r=(1/h+).  Pr exm st 
proof
  let  bebeset,A   of ;
  let F be ManySortedFunction of I such that
A1now
A2: A c= doms F;
A3: dom F = I by PARTFUN1:def 2;
  now
    let i be object;
    assume
A4: i in I;
    then
A5: F.i is one-to-one by              givenn beingNatsuch 
    A.i c= (doms F).i by A2,A4;
    then
A6: A.i c= dom (F.i) by A3,A4,FUNCT_6:22;
    thus F"F..A).  F.)"((F..A).i)byA4,EQUATION:def 1
      .= (F.i)"((F.i).:(A.i)) by A4,PBOOLE:def 20
      .= A.i by A6,A5,FUNCT_1:94;
  end;
  hence thesis;
end;

definition
  let S be non void Signature;
  let X be ManySortedSet of the.(f1/h+).I2.)-(f1/c).I2.n)by :1

  func Free(S, X) -> strict MSAlgebra over                =(/hc).I2.)-f1.c.I2n) by ,FUNCT_2:
  :Def1:
  ex A being MSSubset
 ( carrierof S - 0) stit  GenMSAlgA&A=
  Reverse (X (\/) ((the carrier of S) --> {0})))""X;
  niqueness;
  existence
  proof
    set I = the carrier 
    set R = Reverse Y;
    R""X is ManySortedSubset of FreeGen Y by EQUATION:8;
    then
A1: R""X c= FreeGen Y by PBOOLE:def 18;
    FreeGen Y c= the Sorts of FreeMSA Y by PBOOLE:def 18;
    then R""X c= the Sorts of FreeMSA Y by A1,PBOOLE:13;
    then reconsider Z = R""X as MSSubset of FreeMSA Y by PBOOLE:def 18;
    take GenMSAlg Z, Z;
    thus thesis;
  end;
end;

theorem Th2:
  for S being non void Signature for X being ManySortedSet of the
carrier of S for s being SortSymbol of S holds [x,s] in the carrier of DTConMSA
  X iff x in X.s
proof
  let S beA65:        d*)is non-zero by SEQ_1:;
  let X be ManySortedSet of the carrier of S;
            h*2) is subsequence of h by VALUED_0:def 17;
A1: DTConMSA X             java.lang.StringIndexOutOfBoundsException: Range [30, 27) out of bounds for length 62
    Union coprod X,RELX #) by MSAFREE:def 8;
A2: dom coprod X = the carrier of S by PARTFUN1:def 2;
  s in the carrier of S;
  hens <>the of Sjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
  then not s in {the carrier of S} by TARSKI:def 1;
  hen
A3: not [x,s] in [:the carrier' of Ss =h2()(f1/h2+)  f1/*)
  hereby
    assume [xA66:d*is ofdbydef17
    then [x,s] in Union coprod X by A1,A3,            then
    then consider y:d* byjava.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 47
A4: y in dom coprod X and
A5:[x,s]in coprod X.ybyCARD_5:
    (coprod X then  d1  d*2 as 0-onvergentnon-ero
    then consider z such that
A6: z in X.y and
A7: [x,s] = [z,y] by A4,A5,MSAFREE:def 2;
    x = z by A7,XTUPLE_0:1;
    .s byA6,A7,XTUPLE_0:;
  end;
  assume x in X.s;
  then [x,s] in coprod(s,            set t = d1"(#)f2/(d1+1) f2/*1);
  then [x,s] in (coprodquence of aby VALUED_0:def 17;
  then [x,s] in Union coprod X by A2,CARD_5:2;
  hence thesis by A1,XBOOLE_0:def 3;
end;

theorem Th3:
  for A69:       now
ManySortedSet of the carrier of S for X java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 20
mbol of S holds xin X.&xin Y.iff root-ree[,]in (
  Reverse Y)""X).s
proof
  let S be non void                 .= (f1/*(h+c (f1/(h+)n-a.  a.by :1
  let Y be non-empty ManySortedSet of the carrier of S;
  etXbe ManySortedSet of the carrier of S;
  let s be SortSymbol of S;
A1: (Reverse Y).s = Reverse (s, Y) by MSAFREE:def 18;
A2:dom Reverse s, Y) = FreeGen(s,Y)by :def 1;
  hereby
    assume that
A3: x in X.s and
A44:xin Y.;
A5: root-tree [x,s] in FreeGen(s,Y) by A4,MSAFREE:def 15;
    [x,s] in the
    then (Reverse Y).s.root-tree [x,s] = [x,s]`1 by A1,A5,MSAFREE:def 17
      .= x;
    then root-tree [x,s] in ((Reverse Y).s)"(X.s) by A1,A2,A3,A5,FUNCT_1:def 7;
    ence - xs]in(Reverse )").by EQUATIONdef ;
  end;
  assume root-tree [x,s] in ((Reverse Y)"" X).s;
  then
A6: root-tree [x,s] in ((Reverse Y).s)"(X.s) by EQUATION:def 1;
  then
A7:               .d1()f2/(+a1-f2/a1)()(f1/*h+)*I2 - f1/c2
A8: root-tree [x,s] in FreeGen(s,Y) by A1,A2,A6,FUNCT_1:def 7;
  then consider z such that
A9: z in Y.s and
A10: root-tree [x,s] = root-tree [z,s] by MSAFREE:def 15;

A11: [x,s] = [z,s] by A10,TREES_4:4;
  then [x,s] in the carrier of DTConMSA Y             #)" by A16,FUNCT_2110
  then [x,s]`1 in.= ((/*d1+1 -/a1/d1)()(d1#h2" byRFUNCT_2:
  hence  x in X.s & x in Y.s .= ((f2/*(d1+a1) f2/*a1)/"d1) (#) d1(#)h2" by SEQ_1:14
end;

            .(2/(d1+ -f2/a1 # "by 
  for S being               .=  f2/f1*(+)*2  f2/*1)( h2" by A15,A70,FUNCT_2:110
carrier of S for s being SortSymbol of S st x in X.s holds root-tree [x,s] in (
  the Sorts of Free(S X).
proof
  let S be non void Signature;
    beManySortedSet ofthecarrier of ;
  let s be SortSymbol of S such that
A1:xin .;
  set Y = X (\/) ((the carrier of S) --> {0});
  consider A being MSSubset of FreeMSAVALUED_0:1
A2: Free(S, X) = GenMSAlg A and
A3 A=(Reverse Y)Xby Def1;
  A is MSSubset of Free(S,X) by A2,MSUALG_2:def 17;
  then A c  Sortsof Free(SX by PBOOLEdef18
  then
A4: A.s c= (the Sorts of Free(S,X)).s;
 Xc=Y  :14
  then X.s c= Y.s;
  then root-tree [x,s] in A.s by A1,A3,Th3;
  hence thesis by A4;
end;

theorem Th5:
  for S being non void Signature for X being ManySortedSet of the
carrier of S for o being OperSymbol of S              (f1/(+c)*) =rng (f1/(h+))by VALUED_0:21;
  [o,            then
proof
  let S be non void Signature;
   Xbe ManySortedSet of the carrier of S;
  let o be OperSymbol of S such that
A1:the_arity_of o ={;
  set Y = X (\/) ((the carrier of S) --> {0});
A2: Argso FreeMSA Y  ( Sortsof FreeMSA Y) *the of S.oby
MSUALG_1:def 4
    .= (the Sorts of FreeMSA Y)#.((the Arity of S).o) by FUNCT_2:15
. (the Sorts of  Y#.*thecarrier ofSby ,MSUALG_1def 
    .= {{}} by PRE_CIRC:2;
  then
A3 dom Den(oFreeMSA Y)c={{};
A4: ex A being MSSubset of FreeMSA Y st Free(S, X) = GenMSAlg A & AA73:       h2 +c2)c=dom f1 by RFUNCT_2:;
  Reverse Y)""X by Def1c2 is  of  byVALUED_0:def ;
  then reconsider FX = the Sorts of Free(S,X) asthen
MSUALG_2:def 9;
 (FX#  Arityof S)o =FX#.(he Arityof )o FUNCT_215
    .= FX#.<*>the carrier of S by A1,MSUALG_1:def 1
    .= {{}} by PRE_CIRC:2;
  then
5 DenoFreeMSA Y)|FX#*the Arityof )o)  Den(oFreeMSA Y)by A3,
RELAT_1:68;
  set a = the ArgumentSeq of Sym(o, Y);
  a  Elementof Argso FreeMSA Y)by :1;
  a = {} by A2,TARSKI:def 1;
  then root-tree [o, the carrier            then
TREES_4:20;
  then DenA76:s is convergent by ,A74,,Th12;
  then
A6: root            diff(2,f1.0)=diff(f2,f1.0)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
  FXis java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 42
  then FX is_closed_on o;
  then
A7: rng ((Den(o,FreeMSA Y))|((FX# * the Arity of S).o)) c= (FX * the
  ResultSort of S).;
  (FX * the ResultSort of S).o = FX.((the ResultSort of S).o) by FUNCT_2:15
    .= FX.the_result_sort_of olim t =diff(f2,1.0 by A3A68,A72,Th12;
  hence thesis by A7,A5,A6;
end;

registration
  let S be non void Signature;
  let X be non empty-java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 16
          (h(#((2*1/*+ -f2*)*)*I2  difff,.
  coherence
  proof
                )*diff(f1,x0 A71,A76,A75,,:;
A1: s in the carrier of S and
A2 X. is non empty by PBOOLE:def ;
    reconsider s as SortSymbol of S by A1;
    set x = the Element of X.s;
    root-tree              set DF=diff(2f.0 *difff1x0);
    hence the Sorts of Free(S, X) is not empty-yielding;
  end;
end;

theorem
  for S being non void Signature for X beingA81:0< g;
  the carrier of S holds x is Element of FreeMSA X iff x is Term of S, X
roof
  let S be non void Signature;
  let X be non-empty ManySortedSet of the carrier of S;
A1: S-Terms X = TS DTConMSA X by MSATERM:def 1
    .=               f1)/*)*I2).m -DF.< A78,79,,SEQ_2def ;
    .= Union FreeSort X by CARD_3:def 4;
  FreeMSA X = MSAlgebra(# FreeSort X, FreeOper X #) by MSAFREE:def 14;A83:          k   ORDINAL1def 12java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
  hence thesis by A1;
;

theorem Th7:
  for S being non void Signature for               let m be Nat such that
ManySortedSet of the java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 21
  of S, X holds x in (A85  inNATby ORDINAL1:ef ;
proof
  let S be non void Signature;
  let X be non-emptyjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  let s be SortSymbol of S;
  FreeMSA X = MSAlgebra(# FreeSort X, FreeOper X #) by MSAFREE:def 14;
  then (the Sorts of FreeMSA X).s = FreeSort(X, s) java.lang.StringIndexOutOfBoundsException: Range [0, 53) out of bounds for length 40
  hence thesis                  .h"#(f2*1/*h+c)- (f2*f1)/*).m  DF.|
end;

theorem Th8:
  for S being non void Signature for X being non empty-yielding
ManySortedSet  the  ofS for xbeing Element ofFree(, X java.lang.StringIndexOutOfBoundsException: Range [78, 74) out of bounds for length 78
  Term of S, X (\/by RFUNCT_2:1
proof
  let S be non void                     .= |=|(h)m*(*f1/*+c.-(f2/f1*))m).|A8
  let X be non empty-yielding ManySortedSetVALUED_031
  set Y = X (\/) ((the carrier of S) --> {0});
  let x be Element of Free(S, X);
1:S-erms =TS DTConMSA Y MSATERM:def 
    .= union rng FreeSort Y by MSAFREE:11
    .Union)). A16,
A2: FreeMSA Y = MSAlgebra(# FreeSort Y, FreeOper Y #) & dom the Sorts of
  FreeMSA Y = the carrier of S by MSAFREE:def 14FUNCT_2108A85
  consider y being object such that
A3: y in dom the Sorts of Free(S, X) and
A4: x in (the Sorts of Free(S,X)).y by CARD_5:2;
 ex A being MSSubset of FreeMSA  st Free(S,X = GenMSAlg A  A =(
  Reverse Y)""X by Def1;
  then the Sorts of Free(S, X) is MSSubset of FreeMSA Y by MSUALG_2:                    .= |.(h").m *((f2/*(f1/*(h+c))).m - f2.(f1.x0)).| by
VALUED_0:31
  then (the Sorts of Free(S,X)).y c= (the Sorts of FreeMSA Y).y by A3;
  hence thesis by A1AA4,A2,CARD_5:2java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
end;

registration
  let S be non empty non void ManySortedSign
  let X be non empty-yielding ManySortedSet of the carrier of S;
  cluster -> Relation-like Function-like for Element of  hence
  coherence by Th8;
end;

egistration
  let S be non empty non void ManySortedSign;
  let X be non empty-yielding ManySortedSet of the carrier of S;
  cluster -> finite DecoratedTree-like for Element of Free(S, X);
  coherence by Th8;
end;

registration
  let S be non empty non void ManySortedSign;
  letA87:               = I2.  A62,85;
  cluster -> finite-branching for Element of Free(S, X);
  coherence;
end;

registration
  cluster -> non empty                   l > kby A84,A87,VALUED_0def 13,;
  coherence by RELAT_1:38;
nd;

definition
  let S be ManySortedSign;
  let t be non empty Relation;
  func S variables_in t                    |.h"#)(f2*f1)/(h+c)-(f2*f1)/*c)).m - DF.| < g by
  : Def2:
  for s being object st s in the carrier of S
  holds it.s = {a`1 where a is Element of rng t: a`2 = s};
  existence
  proof
    deffunc F( end;
    ex f being ManySortedSet of the java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 19
 i be object st i in
    the carrier of S holds f.i = F(i) from PBOOLE:              *iff(x0.<;
    hence thesis;
       end;
  uniqueness
  proof
    let java.lang.StringIndexOutOfBoundsException: Range [12, 10) out of bounds for length 69
A1: for s being object st s in the carrier of S holds V1.s = {a`1 where a
    is  hence lim h()(f2*1)*h+ -f2*)/c)  (,1.)*
A2: for s being object st s in the carrier of S holds V2.s = {a`1 where a
    is Element of rng t: a`2 = s};
    now
      let s be object;
      assume
A3:   s in the carrier of S;
      hence V1.s = {a`1 where a is Element of rng t: a`2 = s}hence thesis;
        .= V2.      end;
    end;
    hence thesis;
  end;
end;

definition
  let S be ManySortedSign;
  let X be ManySortedSet of the carrier of S;
  let t be non empty java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 26
  func X variables_in t -> ManySortedSubset of X equals
     X (A6  c and
  coherence
  proof
    thus X (/\) (S variables_in t) c= X by PBOOLE:15;
  end;
end;

theorem Th9:
  for S being java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 20
of S for t being nonA8  inN;
  variables_in t iff for s being set st  then reconsider x9 = x as Real;
  /\ {a`1 where a is Element of rng t: a`2 = s}
proof
  let S be ManySortedSign, X be ManySortedSet of java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 21
  let t be non empty Relation,     then .x9inf1.  A5A8,java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 51
  hereby
    assume
A1: V = X variables_in t;
 be set;
    assume
A2: s in the carrier of S;
    then V.s = (X.s) /\ ((S variables_in t).s) by   hence hesisA1,A2L;
    hence V.s = (X.s) /\endjava.lang.StringIndexOutOfBoundsException: Range [4, 5) out of bounds for length 4
  end;
  assume
theorem :
  where a is Element of rng t: a`2 = s};
  now
    let s be object;
    assume
A4: s  x0impliesf1/2is_differentiable_inx0 &diff(f1/2x0)
    hence V.s = (X.s) /\ {a`1 where difff1x0 *f2.0-diff(2x0)*.x0/f2.)2
      .= (X.s) /\ ((S variables_in t).s) by A4,Def2;
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  hence thesis by PBOOLE:def  assume that
end;

theorem Th10:
  for S being ManySortedSign, s,x being object holds (s in the
  carrier of S implies (S variables_in root-tree [x,s]).s = {x}) &
 for s9 being object st s9 <> s or not s in the carrier of S
  holds (S variables_in root-tree [x,s]).s9 = {}
proof
  let S be ManySortedSign, s,x be object;
  reconsider t = root-tree [x,s] as DecoratedTree;
A1: [x,s]`consider N3be  of x0 such that
  t = {[{},[x,s]]} by TREES_4:6;
  then
A2: rng t = A6: for  st g in N3 holds f2.g <> 0 by A1,A3,FCONT_3:7,FDIFF_1:24;
A3: [x,s]`1 = x;
  hereby
    assume s in the carrier of S;
    then
A4: (S variables_in t).s = {a`1 where a is Element of rng t: a`2 = s} by Def2;
    thus (S variables_in root-tree [x,s]).s = {x}
    proof
      hereby
        let y be object;
        assume y in (S variables_in root-tree [x,s]).s;
        then consider a being Element of rng t such that
A5:     y = a`1 and
        a`2 = s by A4;
        a = [x,s] by A2,TARSKI:def 1;
        hence y in {x} by A5,TARSKI:def 1;
      end;
      [x,s] in rng t by A2,TARSKI:def 1;
      then x in {a`1 where a is Element of rng t: a`2 = s} by A3,A1;
      hence thesis by A4,ZFMISC_1:31;
    end;
  end;
  let s9 be object such that
A6: s9 <> s or not s in the carrier of S;
  set y = the Element of (S variables_in root-tree [x,s]).s9;
  assume
A7: (S variables_in root-tree [x,s]).s9 <> {};
  then
A8: y in (S variables_in t).s9;
  dom (S variables_in t) = the carrier of S by PARTFUN1:def 2;
  then
A9: s9 in the carrier of S by A7,FUNCT_1:def 2;
  then (S variables_in t).s9 = {a`1 where a is Element of rng t:a`2 = s9} by
Def2;
  then ex a being Element of rng t st y = a`1 & a`2 = s9 by A8;
  hence thesis by A2,A1,A6,A9,TARSKI:def 1;
end;

theorem Th11:
  for S being ManySortedSign, s being set st s in the carrier of S
  for p being DTree-yielding FinSequence holds x in (S variables_in ([z, the
  carrier of S]-tree p)).s iff ex beingDecoratedTree st t in rngp & xin (S
  variables_in t).s
proof
  let S be ManySortedSign, s be set  considerN be  of x0such 
A1: s in the carrier of S;
  let p be DTree-yielding FinSequence;
  reconsider   z  carrier of ]tree p asDecoratedTreejava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
A2: (proof
,Def2;
A3: dom q = let x be object;
A4: dom doms p = dom p by TREES_3:37;
  then
A5: len p = len doms p by FINSEQ_3:29;
  hereby
    assume x in (S variables_in ([z, the carrier A10:x inN;
   thenconsider a  Element of rng qsuch that
A6: x = a`1 and
A7: a`2 = s by A2;
    f1/-f2,x0  f1.0)/(.x0)^)
A8: y in proof
A9: a = q.y by FUNCT_1:def 3;
    reconsider y asElement  domq by A8;
    q.{} = [z, the carrier
    then y <> {} by A7,A9 dom f2)c java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 40
    then consider n being Nat, r being FinSequence such that
A10: n < A17  h +c)c=dom f1/2);
A11: r in (doms p).(n+1) and
 y=<**rbyA3,REES_3:ef15java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
     =n+1  n+ =len domsp  NAT_1:1,;
    then
A13: n+1 in dom doms p by FINSEQ_3:25;
    then reconsider t = p.(n+1) as DecoratedTree by A4,TREES_3:24;
    reconsider r as FinSequence of NAT by A12,FINSEQ_1:36;
    take t;
    thus t in rng p by A4,A13,FUNCT_1:def 3;
A14: (doms p).(n+1) = dom t by A4,A13,FUNCT_6:22;
    econsider n as Element of NAT by ORDINAL1:def 12;
A15: t = q|<*n*> by A5,A10,TREES_4:def 4;
    then dom t = (dom q)|<*n*> by TREES_2:def 10;
    then tr y A9,11,A12,A15,14TREES_2:def 10;
    then a in rng t by A11,A14,FUNCT_1:def 3;
    then x in {b`1 where b is Element of rng t: b`2 = A22:lim c  by A16Th4;
    hence x in (S variables_in t)    set u2  f2*;
  end;
  given t being DecoratedTree such that
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 19
A17: x in (S variables_in t).s;
  consider y being object such that
A18: y in dom p and
NCT_1:def ;
  reconsider y as Element of NAT by A18;
  y>=1by A18,FINSEQ_3:;
  then consider n being Nat such that
A20: y = 1+n by NAT_1:10;
  java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
letxbe object;
  then
A21: n < len p java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 24
  then
A22: t  q|**by A19,20TREES_4:def ;
A23: {} in dom t & <*n*>^{} = <*n*> by java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 33
  dom t = (doms p).(n+1) by  0in N byRCOMP_1:16;
  then <*n*> in dom q by A3,A5,A21,A23,TREES_3:def 15;
  then
      then x in dom f1 / (dom f2\f2"{0} byA13,A25;
  x in {b`1 where b is Element of rng t: b`2 = s} by A1,A17,Def2hence thesisbyRFUNCT_1:2
  then consider b being Element of rng t such that
A25: x = b`1 & on-ero A24,RFUNCT_2:,XBOOLE_1:1;
  b in rng t;
  hence thesis by A2,dom f1 /\ (dom f2 \ f20} c dom byXBOOLE_1:7;
end;

theorem Th12:
  for S  ManySortedSign  X being ManySortedSet of the
  carrier of S for s,x being set holds (x in X.s implies (X variables_in
root-tree [x,s]). = {x} &for s9 being set st s9 >s or not x in X. holds (
  X variables_in root-tree [x,s]).s9 = {}
proof
  let Sbe ManySortedSign,Xbe  ofthecarrier ofS;
  let s,x be set;
. h()(f1#(^)/h  c -(1#(f2^)/c by RFUNCT_13
  hereby
    assume
A1 xin Xjava.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
    then
A2: {x} c=.h()(f1/h+/(2/h +c)-(f1()f2^)/c byA20,FUNCT_212
    dom X = the carrier of S by PARTFUN1:def 2;
    then
A3: s in the carrier of S by A1,FUNCT_1:def 2;
    then (S variables_in root-tree [x,s]).s = {x
    then X.)/ (S variables_in root-ree [,s].)={} byA2,:28;
    hence (X variables_in root-tree [x,s]).s = {x} by A3,PBOOLE:def 5;
end;
  let s9 be set such that
4 s9 >sor  xin X.;
  set y = the Element of (X variables_in root-tree [x,s]rng  c=dom f2^)byA24,26;
  assume
A5: (X variables_in root-tree [x,s]).s9 <> {};
A3 rngcc=dom f2  ;
  then s9 in the carrier of S by A5,FUNCT_1:def 2;
  then
A6: A32 f2/ is   A12,22,CONT_1def ;
  = s9} by Th9;
   yin a`1where a Elementof rng t a2=s9}by A5XBOOLE_0:def ;
  then consider a being Element of rng t such that
A7: y = a`1 & a`2 = s9;
  t = {[{},[x,s]]} by TREES_4:6;
  then rng t = {[x,s]} by java.lang.StringIndexOutOfBoundsException: Range [49, 30) out of bounds for length 49
  then a = [x,s] then
  hence thesis by A4,A5,A6,A7,XBOOLE_0:def A:rng (h+c)c=  by A19
end;

theorem Th13:
  for S being ManySortedSign for X being ManySortedSet of the
  carrier of S for s being set st s in the carrier of S for p being
  DTree-yielding FinSequencethen
-tree p)).s iff ex t being DecoratedTree st tA38:u1#)h2isconvergent by A36;
  ).s
proof
  let S be ManySortedSign, X be ManySortedSet of the carrier of S;
  let s be set such that
A1: s in the carrier of S;
  let p be DTree-yielding FinSequence;
  reconsider q = [z, the carrier of S]-tree p as DecoratedTree;
  Xvariables_in q).s = (X.s) /\ ((S variables_in q).s) by A1,PBOOLE:def 5;
  then
A2: x in     set w1 = f2/*+) # f2/c)java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
  n(S variables_in ([z, the carrier of S]-tree p)).s by XBOOLE_0:def 4;
  then
A3: x in (X variables_in ([z, the carrier of CONT_1:def 1;
  t being DecoratedTree st t    then
  hereby
A: isconvergent by A32;
    then consider t being DecoratedTree such that
A4: t rngp and
A5: x in X.s & x in (S variables_in t).s by A3;
    take t;
    thus t in rngA43  isnon-ero by ,SEQ_135java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
    x in (X.s) /\ ((S variables_in t).s) by A5,XBOOLE_0:def 4;
    hence x inX variables_in t). by 1PBOOLE:def ;
  end;
  given t being DecoratedTree such that
 rngp java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
java.lang.StringIndexOutOfBoundsException: Range [4, 2) out of bounds for length 8
A8: (X variables_in t)A46: ()u2   byA32;
  then x in (S variables_in t).s by A7,XBOOLE_0:def 4;
  hence thesis by A1,A2,A6,A7,A8,Th11,XBOOLE_0:def 4;
end;

theorem Th14:
  for S being non void Signature for X being non-empty
ManySortedSet of the carrier of S for t being Term of S, X holds S variables_in
  t c= X
java.lang.StringIndexOutOfBoundsException: Range [6, 2) out of bounds for length 12
  let S be non void Signature;
  let X be non-empty ManySortedSet of the carrier of S;
  defpred P[DecoratedTree] means S .(h #( -u1) #)u2).n -u1.* h"()(v2-u2))n by :java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
: o beingOperSymbol ofS  beingArgumentSeq  (o,) st for t
being Term of S,X st t in rng p holds P[t] holds P[[o,the carrier of S]-tree p]
  proof
        .= ("()v1  ) #  -u1() h"()(v2 -u2).n  RFUNCT_2:1
A2: for t being Term of S,X st t in rng p holds ;
    set q = [o, the    end;
    thus S variables_in q    thus S variables_in q 
    oof
      let s9 be object;
      ume  inthecarrier ofS;
      then reconsider z = s9 as SortSymbol of S;
      let x be object;
      assumex in Svariables_in q.s9;
      then consider t being DecoratedTree such that

A4:   x in (S variables_in t).z by Th11;
      consider i being object such that
A5:iin domp and
A6:   t = p.i by A3,FUNCT_1:def 3;
      reconsider i as  byA5;
      reconsider   pi asTerm of ,X byA5,SATERM;
      S variables_in t c= X by A2,A3,A6;lim h"() v1#)  u1() v2)  java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 73
      thenSvariables_in t)z c=X.z;
      hence thesis by A4,A6;
    end
  end;
A7: for s being SortSymbol of S, v java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 6
  ,s]]
  proof
    let s be SortSymbol of S, v be Element of X.s;
    thus S variables_in root-tree [v,s] c= X
    proof
      let s9 be object;
      assume s9 in the carrier of S;
      then reconsider z = s9 as SortSymbol of S;

      assume
A8:   x in (S variables_in rootf^ is_differentiable_in x0  diff(^,0  -difffx0)(.0^2
      then
A9:   s <> z implies   reconsiderf1=dom f - jjas PartFuncofdom f,REAL byFUNCOP_145java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
      s = z implies x in {v} by A8,Th10;
      hence thesis by A9;
    end;
  end;
  for f1  dom fbyFUNCOP_1:;
  hence thesis;
end;

definition
  let S be non void Signature;
  let X be non-empty java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 7
  let t be Term of S Xjava.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
  func    let x be object;
  S variables_in t;
  correctness
  proof
    S variables_in t c= X by Th14;
   then S  t  X variables_intby PBOOLE:;
    hence thesis;
  endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
end

theorem Th15:
  for S being non void Signature for X being non-empty
ManySortedSet of the carrier of Sjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
    variables_in t byTh14,PBOOLE:23java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39

definition
  let S be non void  f1 is_differentiable_inx0by A4,FDIFF_1:9;
  let Y be non-  0 = (f1`|N).x0 by A3,6,11RCOMP_116
  let X be ManySortedSet of the carrier of S . (f1,0 byA8,,:def7;
  func S-Terms(X,Y) -> MSSubset of FreeMSA Y means
  : Def5:
  for s being
  SortSymbol of S holds it.s = {t where t is Term of S,Y: diff(f1/f,x0) = (0 * f.x0 - diff(f,x0) * f1.x0)/((f.x0)^2) byA2,9Th14java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
  variables_in t c= XA10:diff(f1/,x0  ( diff(fx)*f1.0/(.)2
  existence
  proof    . (-difffx0)*1/(f.0)2 A3,4FUNCOP_17
    deffunc F(SortSymbol of S) = {t where t is Term of S,Y: the_sort_of t = $ .  (f,x0)((f.0)2) by XCMPLX_1:187;
    les_int = X};
    consider T being ManySortedSet of the carrier of S such that
A1: for s being SortSymbol of S holds T.s = F(s) from PBOOLE:sch 5;
    T c= the Sorts of FreeMSA Y
    proof
      let s be object;
      assume s in the carrier of S;
      then reconsider s9 = A13:now
      let x be object;
      ssume
A2:   x in T.s;
      .s9={t where t is  of S,Y:the_sort_of t=s9 & variables_in
      t c= X} by A1;
      then
      ex t being Term of S, Y st x = t & the_sort_of t = s9 & variables_in
      t c= X by A2;
      hence thesis by Th7;
    end;
    then reconsider T as MSSubset of FreeMSA Y by PBOOLE:def 18;
    take T;
    thus thesis by A1;
  end;
  correctness
  proof
    let T1, T2 be MSSubset of FreeMSA Y such that
A3: for s being SortSymbol of S holds T1.s = {t where t is Term of S,Y
    : the_sort_of t = s & java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 0
A4: for s being SortSymbol of S holds T2.s = {t where t is Term of S,Y
  f  A implies
    now
      let s be object
      assume
A5:   s in thejava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
  let Abe Subsetof REALjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
      t c= X} by A3
        .= T2.s by A4,A5;
    A1: f is:f is_differentiable_on A;
    hence thesis;
  end;
end;

theorem Th16:
  for S being non void Signature for Y being non-empty
ManySortedSet of the carrier of S for X beingA2:Ac dom(|)by RELAT_161;
  for s java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
proofet x0java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
  let S be non void Signature;
  let Y be non-empty ManySortedSet of the carrier of S;
  let X be ManySortedSet of the carrier of S;
 letsbe  ofS;
  assume x in S-Terms(X,Y).s;
  then
  x in {t where t is Term of S,Y: the_sort_of t = s & variables_in t c= X}
  by Def5;
  then
  ex t being Term of S,Y st  then
  hence thesis;
end;

theorem Th17:
  for S being non void Signature for Y being non-empty
ManySortedSet of the carrier of S for X being ManySortedSet of the carrier of S
  for  being  of ,Y for s beingSortSymbolof S  tinS-ermsX,)s
  holds the_sort_of t = s & variables_in t c= X
proof
  let S be non void Signature;
    let x0 be Element ofREAL;
  let X be ManySortedSet of the carrier of S;
  let q be Term of java.lang.StringIndexOutOfBoundsException: Range [0, 20) out of bounds for length 12
A1: q in S-Terms(X,Y).s;
  S-Terms(X,Y).s = {t where t is Term of S,Y: the_sort_of t = s &
  variables_in tc  byDef5;
  then
  ex t being Term of S,Y st q = t & the_sort_of t = s & variables_in t c=
  X by A1;
  hence thesis;
end;

theorem Th18:
A java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 20
ManySortedSet of the carrier S forX beingManySortedSet   carrier ofS
for s being SortSymbol of S holds root-tree [x  N1and
  X.s & x in Y.s
proof
  let S be non void Signature;
  let Y be non-empty ManySortedSet of the carrier of S;
  let X be ManySortedSet of the carrier of S;
  let s be SortSymbol of S;
A1 S-erms(,).  twhere  is erm of ,Y:the_sort_oft  s&
  variables_in t c= X} by java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 20
  hereby
    assume root-tree [x,s] in (S-Terms(X,Y)).s;
    then consider t being Term of S,Y such that
A2: root-tree [x,s] = t and
    the_sort_of t = s and
A3: variables_in t c= X by A1;
A4: t.{} = [x,s] by A2,TREES_4:3;
    s in the carrier of S;
   then s > the carrier of S;
    then not s in {the carrier of S} by TARSKI:def 1;
    then not t.{} in [:the carrier' of S,{the carrier of S}:] by A4,ZFMISC_1:87
;
    then consider s9 being SortSymbol of S, v being Element of Y.s9 such that
A5: t.{} = [v,s9] by MSATERM:2;
     x  v byA4,5XTUPLE_0:;
    (S variables_in t).s = 3. (fA)`|.0 byA3A6,def7;
    hence x in X.s & x in Y.s by A6,ZFMISC_1:31;
  end;
  assume that
A7: x in X.s and
A8: x in Y.s;
  reconsider t = root-tree [x,s] as Term of S,Y by A8,MSATERM:4;
A9: variables_in t c= X
  proof
    let i be object;
    assume i in the carrier of  f1+f2is_differentiable_on   f1 +f2`|  `A  f2|A
A10: (S variables_in t).java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
    i <> s implies (S variables_in t).i = {} by Th10;
    hence thesis by A7,A10,ZFMISC_1:31;
  end;
  the_sort_of t = s by A8,MSATERM:14;
  hence thesis A1,A9
end;

theorem Th19:
  for S being non void Signature for Y being non-empty
ManySortedSet of the carrier of S for X   then
for o being OperSymbol A4 c=  f1 +f2  VALUED_1:def1
-tree p in (S-Terms(X,Y)).the_result_sort_of o thenf1 +f2 is_differentiable_on A by A1,A2,FDIFF_1:18;
  )
proof
  let S be non void Signature;
  let Y be non-empty ManySortedSet of the carrier   dom (1`|A) = A by A1,FDIFF_1:def 7;
  let X be ManySortedSet of the carrier of S;
  et  be OperSymbol of S;
  let p be ArgumentSeq of Sym(o,Y);
  set s = the_result_sort_of o;
A1: dom (S-Terms(X,Y)A7:dom (f1`|  f2`A)   byVALUED_1:ef 1;
A2: Sym(o,Y) = [o,the carrier of S] by MSAFREE:def 9;
A3: (S-Terms(X,Y  now
  variables_in t c= X} by Def5;
  hereby
    assume Sym(o,Y)-tree p in (S-Terms(X,Y)).s;
    then consider t being Term of S,Y such that
A4: [o,the carrier of S]-tree p = t and
    the_sort_of t = s and
A5: variables_in t c= X by A3,A2;
    thus rng p c= Union (S-Terms(X,Y))
    proof
      let y be object;
      assume
A6:   y in rng p;
      then consider x being object such that
A7:   x in dom p and
A8:   y = p.x by FUNCT_1:def 3;
      reconsider x as Nat by A7;
      reconsider q = p.x as Term of S,Y by A7,MSATERM:22;
A9:   variables_in q c= X
      proof
        let z be object;
        assume
A10:    z in the carrier of S;
        let a be object;
        assume a in (variables_in q).z;
        then
A11:    a in (variables_in t).z by A4,A6,A8,A10,Th11;
        (variables_in t).z c= X.z by A5,A10;
        hence thesis by A11;
      end;
      set sq = the_sort_of q;
      (S-Terms(X,Y)).sq = {t9 where t9 is Term of S,Y: the_sort_of t9 =
      sq & variables_in t9 c= X} by Def5;
      then q in (S-Terms(X,Y)).sq by A9;
      hence thesis by A1,A8,CARD_5:2;
    end;
  end;
  set t = Sym(o,Y)-tree p;
  assume
  c (TermsX,Y));
A13: variables_in t c= X
  proof
    ;
    assume
A14  inthe carrier of S;
    let x be object;
    assume x in (variables_in t).z;
    enconsider q being DecoratedTree such that
A15: q in rng p and
A16: x in (S variables_in q).z by A2,A14,Th11;
    consider y being object such that
A17: y in the carrier of S and
A18: q in (S-Termsthen
    (S-Terms(X,Y)).yA5: dom ((f1 -f2)|)=A by FDIFF_1:def ;
    variables_in t9 c= X} by A17,Def5;
    then consider t9 being Term of S,Y such that
A19: q = t9 and
    the_sort_of t9 = y   dom (f1`|)=A by A1,FDIFF_1:def 7;
A20: variables_in t9 c= X by A18;
    (variables_in t9).zc=X.z by A14,A20;
    hence thesis by A16,A19;
  end;
  the_sort_of t = s by MSATERM:20;
  hence thesis by A3,A13;
end;

theorem Th20:
  for S beingnon void Signaturefor X  non-mpty
ManySortedSet of the carrier of S for A being MSSubset of FreeMSA)by A1,A2,A4,FDIFF_1:
  opers_closed iff for o being OperSymbol of S, p being ArgumentSeq of Sym      .= f1|A.7
      . f1`A.x0  ( 7
proof
  let be nonvoid Signature;
  let X be non-empty ManySortedSet of the carrier of S;
  set A = FreeMSA X;
  let T be MSSubset of FreeMSA X;
  hereby
    assume
A1: T is opers_closed;
    let o be OperSymbol of S, p be ArgumentSeq of Sym(o,X);
    T is_closed_on o by A1;
    then
A2: rng (f is_differentiable_onA implies
    ).o;
  r()f is_differentiable_on A  (r(#f)| = #)(`|A)
A4: dom p = dom the_arity_of o by MSATERM:22;
A5: dom T = the carrier of S by PARTFUN1:def 2;
    assume
A6: rng p c= Union T;
A7: now
      let x be object;
      assume
A8:   x in  then
      then reconsider i = x as Nat;
      reconsider t  p. as Termof SXby A8MSATERM:2java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
A9:   the_sort_of t = (the_arity_of o).x & (T*the_arity_of o).x = T.((
      the_arity_of o).x) by A4,A8,FUNCT_1:13,MSATERM:23;
      .x in rng p by A4,A8,FUNCT_1:def 3;
      then consider y being object such that
A10:  y in dom T and
A11:  p.x in T.y by A6,CARD_5:2;
      T c      (`|) =A by A1,FDIFF_1:def ;
      then T.y c= (the Sorts of A).y by A10;
      hence p.x in (T*the_arity_of o).x by A10,A11,A9,Th7;
    end;
    rng the_arity_of o c= dom T by A5;
    then dom (T*the_arity_of o) = dom the_arity_of o by RELAT_1:27;
    then
A12: p in product (T*the_arity_of o) by A4,A7,CARD_3:9;
A13: (T# * the Arity of S).o = A5:x0 in A;
      .= T#    hence (r#)f`|.    difff,x0 A1,,FDIFF_120
            . r * ((f`|A).x0) by A1,A5,FDIFF_1:def 7
    hen
A14: ((Den(o,A))|((T# * the Arity
    dom Den   thesis by A1,A2,A3,A4FDIFF_1:20,PARTFUN1:5;
    then p in dom ((Den(o,A))|((T# * the Arity of S).o)) by A13,A3,A12,
RELAT_1:57;
    then
A15: java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 0
FUNCT_1:ef 3java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
( *the ResultSort S).=T.ResultSort ofS). byFUNCT_215
      .= T.the_result_sort_of o by MSUALG_1:def 2;
    proof
    [o,the carrier of S] = Sym(o, X) & Den(o,A).p in T.the_result_sort_of
    o by A2,15,MSAFREE:def 9;
    hence Sym(o,X)-tree p in T.the_result_sort_of o by A3,INSTALG1:3;
  end;
  assume
A16: for o being OperSymbol of S, p being ArgumentSeq of Sym(o,X) st rng
  p c= A4: A c= dom f2 by A2;
  let o be OperSymbol of S;
  let x be object;
A17: (T * the ResultSort of S).o = T.((the ResultSort of S).o) by FUNCT_2:15
    .=T.he_result_sort_of o by MSUALG_1:ef 2;
  assume x in rng ((Den(o,A))|((T# * the Arity of S).o));
  then consider y being object such that
java.lang.StringIndexOutOfBoundsException: Range [21, 3) out of bounds for length 56
A19: x = ((Den(o,A))|((T# * the Arity of S).o)).y by FUNCT_1:def 3;
  y in dom Den(o,A) by A18,RELAT_1:57;
  then reconsider y as Element of Args(o, A);
  reconsider p = y as ArgumentSeq of Sym(o, X) by INSTALG1:1;
A20: ( *the Arity of )o  #.(he Arity ofS).)by FUNCT_2:15
    .= T#.the_arity_of o by MSUALG_1:def 1  then
    .product(*java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 52
A21: rng p c= Union T
  roof
    let z be object;
A22:domT=the    byPARTFUN1def 2
    assume z in rng p;
    then consider a being object such that
A23: a  dom p and
A24: z = p.a by FUNCT_1:def 3;
A25: dom p = dom (T*the_arity_of o) by A18,A20,CARD_3:9;
    then
A26: z in (T*the_arity_of o)now
    )    letx0   ofREAL;
    rng the_arity_of o c= the carrier of S;
    then dom (T*the_arity_of o) = dom the_arity_of o: in java.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
    then (the_arity_of o).a inrng the_arity_of o by A23,A25,FUNCT_1:def 3;
    hence thesis by A22,A26,CARD_5:2;
  end;
  x = Den(o, A).y by A18,A19,FUNCT_1:47
    . o,the carrier  S]tree yby INSTALG13
    .= Sym(o, X)-tree p by MSAFREE      .(`A).0f2.x0+(.x0)(f2|. A2,9F:def7
      . (f1|)#f2.0+(.)*f2`A). by VALUED_15
end;

theorem Th21:
  for S being non void Signature for Y being non-empty
ManySortedSet of the carrier of S for X being ManySortedSet of the carrier of S
  holds S-Terms(X,Y) is opers_closed
proof
  let S be non void Signature;
  let Y be non-empty ManySortedSet of the carrier of S;
  let X be ManySortedSet of the carrier of S;
  for o being OperSymbol of S for p being ArgumentSeq of Sym(o,Y) st rng p
  c= Union (S-Terms(X,Y)) holds Sym(o,Y)-tree p in (S-Terms(X,Y)).
  the_result_sort_of o by Th19;
  hence thesis by Th20;
end;

theorem Th22:
  for S being non
ManySortedSet of the carrier of S for X being ManySortedSetLm3:(f))"0 =f"0java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
  holds (Reverse Y)""X c= S-Terms(X,Y)
proof
  let S be non void Signature;
  let Y be non-empty ManySortedSet of the carrier of S;
  let X be ManySortedSet of the  thus f())"{}c=f{}
  let s be object;
  assume s in the carrier java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 20
  then reconsider s9 = s as SortSymbol of S;
  let x be object;
  assume x in ((Reverse Y)""X).s;
  then
A1: x in    (f ()f).9 0  ,UNCT_1:def 7;
  then
A2: x in dom ((Reverse Y).s) by FUNCT_1:def 7;
A3 (Reverse Y)s). in X. by A1,UNCT_1:def ;
A4: (Reverse Y).s = Reverse(s9, Y) by MSAFREE:def 18;
  then
A5 dom (Reverse Y)s)=FreeGen(s9, Y) by FUNCT_2:def 1;
  then consider b being set such that
A6: b in Y.s9 and
A7: x = root-tree [b,s9] by A2,MSAFREE:def 15;
  FreeGen(s9, Y) = {root-tree t java.lang.StringIndexOutOfBoundsException: Range [0, 37) out of bounds for length 32
      x9 f()f by F:;
  then consider at x9in domf / f VALUED_1:ef4
A8:x=root- aand
  a in Terminals DTConMSA(Y) and
  a
  Reversex9in { byA3,FUNCT_1:ef 7java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
    .= [b,s]`1thenf.  java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
     hen
  hence thesis by A3,A4,A6,A7,Th18 f # ). in{}byTARSKI:ef ;
end;

theorem Th23:
  for S being non voidthenx9 in om f()f byVALUED_1:def ;
carrier of S for t being Term of S, X (\  thesisby A4,UNCT_1:ef ;
 for s being SortSymbol of S st
  t in S-Terms(X, X (\/) ((the carrier of S)-->{0})).s holds t
  in (the Sorts of Free(S, X)).s
proof
  let S be non void non empty ManySortedSign;
  let X be ManySortedSet of the carrier of S;
  set Y = X (\/) ((the carrier of S)-->{0});
  set T = the Sorts of Free(S, X);
  defpred P[set] means for s being SortSymbol of S st $1 in S-Terms(X, Y).s
  holds $1 in T.s;
A1: ex A being MSSubset of FreeMSA Y st Free(S, X) = GenMSAlg A & A = (
  Reverse Y)""X by Def1;
  then reconsider TT = T as MSSubset of FreeMSA Y by MSUALG_2:def 9;
A2: now
    let o be OperSymbol of S, p be ArgumentSeq of Sym(o,Y) such that
A3  t ofS, sttinrngp holds P[t;
    thus P[[o,the carrier of S]-tree p]
    proof
      let s be SortSymbol of S;
      assume
A4:   [o, the carrier of S]-tree p in S-Terms(X, Y).s;
A5:   Sym(o,Y) = [o, the carrier of S] by MSAFREE:def 9;
      the_sort_of (Sym(o,Y)-tree p) = the_result_sort_of o by MSATERM:20;
      hen
A6:   s = java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 5
      then
A7:   rng p c= Union (S-Terms(X,Y)) by A4,A5,java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 39
A8:   rng p c= Union TT
      proof
        let x be object;
        assume
A6:  c=dom \f2"0java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
        then consider y being object such that
A10:    y in dom (S-Terms(X,Y)) and
A11:    x in (S-Terms(X,Y)).y by A7,CARD_5:2;
        reconsider y as SortSymbol of S by A10;
        S-Terms(X, Y).y = S-Terms(X, Y).y;
        then reconsider x as Term of S,Y by A11,Th16;
        dom T = the carrier of S & x in T.y by A3,A9,A11,PARTFUN1:def 2;
        hence thesis by CARD_5:2;
      end;
      TT is opers_closed by A1,MSUALG_2:def 9;
      hence thesis by A5,A6,A8,Th20;
    end;
  end;
A12: S-Terms(X, Y) c= the Sorts of FreeMSA Y by PBOOLE:def 18;
A13: now
    let s1 be SortSymbol of S, v be Element of Y.s1;
    thus P[root-tree [v,s1]]
    proof
      reconsider t = root-tree [v,s1] as Term of S,Y by MSATERM:4;
      let s be SortSymbol of S;
      assume
A14:  root-tree [v,s1] in S-Terms(X, Y).s;
      S-Terms(X, Y).s c= (the Sorts of FreeMSA Y).s by A12;
      then
A15:  the_sort_of t = s by A14,Th7;
A16:  the_sort_of t = s1 by MSATERM:14;
      then v in X.s by A14,A15,Th18;
      hence thesis by A15,A16,Th4;
    end;
  end;
  thus for t being Term of S,Y holds P[t] from MSATERM:sch 1(A13,A2);
end;

theorem Th24:
  for S being non void Signature
  for X being ManySortedSet of the carrier of S
 holds the Sorts of Free(S, X)
   = S-Terms(X, X (\/) ((the carrier of S)-->{0}))
proof
  let S be non void Signature;
  let X be ManySortedSet of the carrier of S;
  set Y = X (\/) ((the carrier of S)-->{0});
  set B = MSAlgebra(# S-Terms(X, Y), Opers(FreeMSA Y, S-Terms(X, Y)) #);
  for Z being MSSubset of FreeMSA Y st Z = the Sorts of B holds Z is
  opers_closed & the Charact of B = Opers(FreeMSA Y, Z) by Th21;
  then reconsider B as MSSubAlgebra of FreeMSA Y by MSUALG_2:def 9;
A1: FreeMSA Y = MSAlgebra(#FreeSort Y, FreeOper Y#) & dom FreeSort Y = the
  carrier of S by MSAFREE:def 14,PARTFUN1:def 2;
  (Reverse Y)""X c= S-Terms(X, Y) by Th22;
  then
A2: (Reverse Y)""X is MSSubset of B by PBOOLE:def 18;
  let s be Element of S;
  ex A being MSSubset of FreeMSA Y st Free(S, X) = GenMSAlg A & A = (
  Reverse Y)""X by Def1;
  then Free(S, X) is MSSubAlgebra of B by A2,MSUALG_2:def 17;
  then the Sorts of Free(S, X) is MSSubset of B by MSUALG_2:def 9;
  then the Sorts of Free(S, X) c= S-Terms(X, Y) by PBOOLE:def 18;
  hence (the Sorts of Free(S, X)).s c= S-Terms(X, Y).s;
  let x be object;
  assume
A3: x in S-Terms(X, Y).s;
  S-Terms(X, Y) c= the Sorts of FreeMSA Y by PBOOLE:def 18;
  then (S-Terms(X, Y)).s c= (the Sorts of FreeMSA Y).s;
  then x in Union FreeSort Y by A3,A1,CARD_5:2;
  then x is Term of S,Y by MSATERM:13;
  hence thesis by A3,Th23;
end;

theorem
  for S being non void Signature for X being ManySortedSet of the
  carrier of S holds
  (FreeMSA (X (\/) ((the carrier of S)-->{0})))|
   (S-Terms(X, X (\/) ((the carrier of S)-->{0}))) = Free(S, X)
proof
  let S be non void Signature;
   let be ManySortedSet of the carrier ofS;
  set Y = X (\/) ((the carrier of S)-->{0});
  (FreeMSA Y)|(S-Terms(X, Y)) = MSAlgebra(#S-Terms(X, Y), Opers(FreeMSA Y,
S -erms(X,Y)#)&ex  beingMSSubset   Y st Free( X   A
  & A = (Reverse Y)""    thenf2.x9   :1
  hence thesis by Th24,MSUALG_2:9;
end;

theorem Th26:
  for S being non void Signature for X,Y being non-empty
  ManySortedSet of the carrier of S for A being MSSubAlgebra of FreeMSA X for B
  being MSSubAlgebra of FreeMSA Y st the Sorts of A = java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  MSAlgebra of A = the MSAlgebra of B
proof
  let S be non void Signature;
  let X,Y be non-empty ManySortedSet java.lang.StringIndexOutOfBoundsException: Range [37, 10) out of bounds for length 10
  let A be MSSubAlgebra of FreeMSA X;
  A11: f2. x0< 0 by A3java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
A1 the Sorts of A  the Sorts ofB
  reconsider SB = the Sorts of B as MSSubset of FreeMSA Y by MSUALG_2:def 9;
  reconsider SA = the Sorts of A as MSSubset of FreeMSA X by MSUALG_2:def 9;
A2: SA is opers_closed java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
A3: SB is opers_closed by MSUALG_2:def 9;
  now
    let x be object;
A4: SA c= the Sorts of FreeMSA X & the Sorts of FreeMSA X is MSSubset of
    FreeMSA X by PBOOLE:def 18;
    assume x in the carrier' of S;
    then reconsider o = x as OperSymbol of S;
A5: SA is_closed_on o by A2;
A6: (the Charact of A).o = Opers(FreeMSA X, SA).o by MSUALG_2:def 9
      .= o /. SA by MSUALG_2:def 8
      .= (Den(o, FreeMSA X))|((SA# * the Arity of S).o) by A5,MSUALG_2:def 7;
    Args(o, FreeMSA X) = ((the Sorts of FreeMSA X)#*the Arity of S).o by
MSUALG_1:def 4;
    then dom Den(o,FreeMSA X) = ((the Sorts of FreeMSA X)#*the Arity of S).o
    by FUNCT_2:def 1;
    then
A7: dom ((the Charact of A).o) = (SA#*the Arity of S).o by A6,A4,MSUALG_2:2
,java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
A13 f1/2 is_differentiable_on A by A8,FDIFF_1:9;
    FreeMSA Y by PBOOLE:def 18;
    then
  then
    o by MSUALG_2:2;
:SB is_closed_on o by A3;
A11: (the Charact of B).o = Opers(FreeMSA Y, SB).o by MSUALG_2:def 9
      .= o /. SB by MSUALG_2:def 8
      .=    let x0 be Element of REAL;
    Args(o, FreeMSA Y) = ((the Sorts of FreeMSA Y)#*the Arity of S).o by
MSUALG_1:def 4;
FreeMSA Y)= (the Sorts of FreeMSA Y)#*the Arity of S).o
    by FUNCT_2:def 1;
    then
A12: dom ((the Charact of B).o) = (SB#*the Arity of S).o by A11,A8,MSUALG_2:2
,RELAT_1:62;
A13: (SA#*the Arity of S).o c= ((the java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
    .o by A4,MSUALG_2:2;
    now
      let x be object;
      assume
A14:  x in (SA#*the Arity of S).o;
      then reconsider p1 = x as Element of A18 x0 in dom (f2|)#)1)byVALUED_1:def4java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
MSUALG_1:def 4;
      reconsider p2 = x as Element of Args(o, FreeMSA Y) by A1,A9,A14,
MSUALG_1:def 4;
      thus ((the Charact of A).o).x = Den(o, FreeMSA X).p1 by A6,A7,A14,
FUNCT_14
        .= [o, the carrier of S]-tree p1 by INSTALG1:3
        .= Den(o, FreeMSA Y).p2 by INSTALG1:3
        .= ((the Charact of B).o).x by A1,A11,A12,A14,FUNCT_1:47;
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 8
    hence the Charact of A.x  (he  of B)xby ,A7,A12,FUNCT_1:2java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
  end;
  hence thesis by A1,PBOOLE:3;
end;

theorem Th27:
  for S being non void Signature for X being non empty-yielding
ManySortedSet of the carrier of S for Y being ManySortedSet of the carrier of  thenx0  dom (2 ()f2)by VALUED_1:ef;
    beingElementofFree(,X holds S variables_in t c= X
proof
  let S be non void Signature;
  let X be non empty-yielding ManySortedSet java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 8
  let Y  ManySortedSet of the carrier of S;
  let t be Element of Free(S, X);
  set  =X(\)((the carrier of S--{0});
  reconsider t as Term of S,Z by Th8;
  t in Union the Sorts of Free(S, X);
  then
A1: t in Union (S-Terms(X,Z)) by Th24;
  dom (S-Terms(X,Z)) = the carrier of S by PARTFUN1:def 2;
  then ex s being object st s in the carrier of S & ,16FDIFF_1:def 7
CARD_5:2;
   variables_in t c=X by Th17;
  hence thesis;
end;

theorem Th28:
 for   -
ManySortedSet of the carrier of S for t being Term of S,X holds variables_in t
  c= X
proof
 let Sbe non void Signature;
  let X be non-empty ManySortedSet of FDIFF_1:def 7
  defpred P[DecoratedTree] means S variables_in $1 c= X;
  let t be Term of S,      . ((f1`|A)()f2.x0  (2|A)x0*f1.x0)(f2.0^2 yVALUED_1:5
A1: for o being OperSymbol of S, p being ArgumentSeq of Sym(o,X) st for t
being Term of S,X st t in rng p holds P[t] holds P[[o,the carrier of S]-      = ((1|A)(#)f2-(f2`|A)()f1.x0/(f2. *f2.x0)by ,
  proof
    let o be OperSymbol of S, p be ArgumentSeq of Sym(o, X) such that
2:for being  of S, st t inrngp  S variables_in  c ;
    thus S variables_in ([o, the carrier of S]-tree p) c= X
    proof
      let s be object;
      RFUNCT_1:def ;
A3:   s in the carrier of S;
      let x be object;
 assume x in (S variables_in ([o, the carrier of S]-tree p)).s;
      then consider t being DecoratedTree such that
A4:   t in rng p and
A5:   x in (S variables_in t).s by A3,Th11;
      consider i being object such that
A6:   i in dom p and
A7:   t = p.i by A4,FUNCT_1:def 3;
      reconsider i as Natby A6;
      reconsider t = p.i as Term of S,X by A6,MSATERM:22;
      S variables_in t c= X by A2,A4,A7;
          .= domf|A)/ dom f2 /\dom (2|A #)f1)/\ dom (f2 ( f2
      hence thesis by A5,A7;
    end;
  end;
A8: for s being SortSymbol of S, v being Element of X.s holds P[root-tree [v
  ,s]]
  proof
    let s be SortSymbol of S, x be Element of X.s;
    thus S variables_in root-tree [x,s] c= X
    proof
      let y be object;
      assume y in the carrier of S;
A9:   y <> s implies (S variables_in root-tree [x,s]).y = {} by Th10;
      (S variables_in root-tree [x,s]).s = {x} by Th10;
      hence thesis by A9;
    end;
  end;
  for t being Term of S,X holds P[t] from MSATERM:sch 1(A8,A1);
  hence thesis;
end;

theorem Th29:
  for S being non void Signature for X
ManySortedSet of the carrier of S for     .= A /\ dom (f2`|A (#) f1) /\ (dom (f2 f2)\(f2 ()f2"{0)by A5,
  stt1  t2 holds the_sort_of t1 =the_sort_of t2
proof
  let S be non void Signature;
  let X,Y be non-empty ManySortedSet of the carrier of S;
  let t1 be     =A/\ (A / dom f1)/\(dom (f2 #)f2)\(f2 ()f2"{}) by A2,
A1: t1 = t2;
  per cases by MSATERM:2;
  suppose
    ex s being SortSymbol of S, v being Element of X.s st t1.{} = [v,s ];
    then consider s being SortSymbol of S, x be Element of X.s such that
A2: t1.{} = [x,s];
    s in the carrier of S;
    then s <> the carrier of S;
    then not s in {the carrier of S} by TARSKI:def 1;
    then not [xnot [x,s] in [thecarrier' of S, {the carrier of S}:] by ZFMISC_1:87;
    then consider s9 being SortSymbol of S, y be Element of Y.s9 such that
A3: t2.{} = [y,s9] by A1,A2,MSATERM:2;
    t1 = root-tree [x,s] by A2,MSATERM:5;
    then
A4: the_sort_of t1 = s by MSATERM:14;
    t2 = root-tree [y,s9] by A3,MSATERM:5;
    then the_sort_of t2 = s9 by MSATERM:14;
    hence thesis by A1,A2,A3,A4,XTUPLE_0:1;
  end;
  suppose
    t1.{} in [:the carrier' of S,{the carrier of S}:];
    then consider o,z being object such that
A5: o in the carrier' of S and
A6: z in {the carrier of S} and
A7: t1.{} = [o,z] by ZFMISC_1:def 2;
    reconsider o as OperSymbol of S by A5;
A8: z = the carrier of S by A6,TARSKI:def 1;
    then the_sort_of t1 = the_result_sort_of o by A7,MSATERM:17;
    hence thesis by A1,A7,A8,MSATERM:17;
  end;
end;

theorem Th30:
  for S being non void Signature for X,Y being non-empty
ManySortedSet of the carrier of S for t being Term of S,Y st variables_in t c=
  X holds t is Term of S,X
proof
  let S be non void Signature;
  let X,Y be non-empty ManySortedSet of the carrier of S;
  defpred P[DecoratedTree] means Y variables_in $1 c= X implies $1 is Term of
  S,X;
  let t be Term of S,Y;
A1: for o being OperSymbol of S, p being ArgumentSeq of Sym(o,Y) st for t
being Term of S,Y st t in rng p holds P[t] holds P[[o, the carrier of S]-tree p
  ]
  proof
leto be OperSymbol ofS p be ArgumentSeq ofSym(,) suchthat
.diff(,A12def7
    holds /dom(f1`|  A1FDIFF_1:7
A3: Y variables_in ([o, the carrier of S]-tree p) c= X;
A4: now
      let i be Nat;
      assume
A5:   i in dom p;
      then reconsider t = p.i as Term of S,Y by MSATERM:22;
A6:   t in rng p by A5,FUNCT_1:def 3;
      Y variables_in t c= X
      proof
        let y be object;
        assume y in the carrier of S;
then reconsider s = y as SortSymbol of S;
        let x be object;
        assume x in (Y variables_in t).y;
        then
A7:     x in (Y variables_in ([o, the carrier of S]-tree p)).s by A6,Th13;
        (Y variables_in ([o, the carrier of S]-tree p)).s c= X.s by A3;
        hence thesis by A7;
      end;
      then reconsider t9 = t A6:  rng c  x0}and
      take t9;
      thus t9 = p.i;
      the_sort_of t = (the_arity_of o).i by A5,MSATERM:23;
      hence the_sort_of t9 = (the_arity_of o).i by Th29
    end;
    len p = len the_arity_of o by MSATERM:22;
    then reconsider p as ArgumentSeq of Sym(o,X) by A4,java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 41
    Sym(o,X)-tree p is Term of S,X
    hence thesis by MSAFREE:def 9;
  end;
  assume variables_in t c= X;
  then
A8:  java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 34
A9: for s         x0 in N 
,]
  proof
    let s be SortSymbol of S, x be  (h()f/(h+)-f/c)^njava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
    assume Y variables_in root-tree [x,s      c1  c^n;
    then  rngc1c=A
A10proof
    (Y variables_in    rngc1c= rngcby2;
    thenlxbe
    hence thesis by MSATERM:4;
  end;
  for t being Term of S,Y holds P[t] java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  hence thesis by A8;
end;

theorem
  S beingnon void java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 71
  the carrier of S holds Free(S, X) = FreeMSA X
proof
  let S be non void Signature;
  let X be non-empty ManySortedSet of the carrier of S;
  set Y = X (\/) ((the carrier of S)-->{0});
A1: the Sorts of Free(S, X) = S-Terms(X,Y) by Th24;
A2: FreeMSA X = MSAlgebra(#FreeSort X, FreeOper X#) by MSAFREE:
A3: the Sorts of Free(S, X) = the Sorts of FreeMSA X
  proof
       Elementof;
rjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 43
      thus (the Sorts of Free(S, X)).s c= (the Sorts of  .=|. # (f/*+c)-f/c)\n)..by SEQ_1
      proof
        let x be object;
        assume
A4:     x in (the Sorts of Free(S, X)).s;
        then reconsider t   .h"(#)(f/(h+) -f/c)^n.mbySEQM_319;
        variables_in t c=         0 <= |. fn.m .| by ;
        reconsider t9=t asTermof SXTh30
        the_sort_of t = s by A1,A4,Th17;
        then the_sort_of t9 = s by Th29;
       xin X  by def5;
hencebyA2,def;
      end;
      reconsider s9 = s as SortSymbol of S;
      let x be object;
      assume x in (the Sorts of FreeMSA X).s;
      then
A5:   x in FreeSort(X, s9) by A2,MSAFREE:def 11;
      FreeSort(X, s9) c= S-Terms X by MSATERM:        
      thenjava.lang.StringIndexOutOfBoundsException: Range [49, 21) out of bounds for length 49
      X c= Y by PBOOLE:14;
      then reconsider t9 = t as Term of S,Y by MSATERM:26;
      variables_in t = S variables_in t;
      then
A6:   variables_in t9 c= X by Th28;
      the_sort_of t = s by A5,MSATERM:def 5;
      then the_sort_of t9 = s by Th29;
      thenA27:    abs(1.< by ,SEQ_15
tin{ qisTerm ofSY q  s9&q
      c= X} by A6;
      hence thesis by A1,Def5;
  end;
  FreeMSA X.abs(1).m;
  Y st Free(S, X) = GenMSAlg        .f.hc.)-f.c.m).=|(f/hc.m  f(c1.m.  A1,A12
  hence FUNCT_2:108,:,A21
end;

theorem Th32:
  for S being non void Signature for Y being non-empty
  ManySortedSet of the carrier of S for t being Term of S,Y for p being Element
  of dom t holds variables_in (t|p) c= variables_in t
proof
  S e  void Signature;
  let Y be non-empty ManySortedSet of the carrier of S;
  let t be Term of S,Y;
  let p be Element of dom t;
  reconsider q = t|p as Term of S,Y;
  let s be object;
  assume
A1: s in the carrier of S;
  let x be object;
   x in variables_in(|p)s;
  then x in {a`1 where a is Element of rng q: a`2 = s}        ;
  then consider a being Element of rng (t|p) such that
A2: x = a`1 & a`2 = s;
  rng (t|p) c= rng t & a in rng (t|p) by TREES_2:32;
  then x in {b`1 whereA33:  fn is convergent A31,SEQ_4:15
  hence      hence h"(#(f/hc)-f*)is onvergent by SEQ_421


theorem Th33:
  for S being non void Signature for X being non empty-yielding
ManySortedSet of the carrier of S for t being Element of Free(S, X) for p being
  Element of dom t holds t|p is Element of Free(S, X)
proof
  let S be non void Signature;
  let X be non empty-yielding ManySortedSet of the carrier of S;
  let t be Element of Free(S, X);
  let p be Element of dom t;
  set Y = X (\/) ((the carrier of S) --> {0});
  reconsider t as Term of S,Y by Th8;
  reconsider p as Element of dom t;
A1: variables_in (t|p) c= variables_in t by Th32;
A2: the Sorts of Free(S, X) = S-Terms(X, Y) & dom (S-Terms(X, Y)) = the
  carrier of S by Th24,PARTFUN1:def 2;
  then ex x being object st x in the carrier of S & t in (S-Terms(X, Y)).x
   by CARD_5:2;
  then variables_in t c= X by Th17;
  then variables_in (t|p) c= X by A1,PBOOLE:13;
 .,g.c=dom ;
  java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 6
  then| inS-erms(,). tp)by Def5;
  hence thesis by A2,CARD_5:2;
end;

theoremTh34:
  for S being non void Signature( ,r2st  inleft_open_halfline)&
  ManySortedSet of the carrier of S for t being Term of S,X for a being Element
  of rng t holds a = [a`1,a`            f|eft_open_halfline ris 
proof
  let S be non void Signature;
  let X be non-empty ManySortedSet of the carrier of S;
  let t be Term of S,X;
  let a be Element of rng t;
  consider x being object suchnow
A1:x  dom t and
A2: a = t.x by FUNCT_1:def 3;
  reconsider x as Element of dom t A3: r1 in left_open_halfline(r) /\ dom f and
  a = (t|x).{} by A2,TREES_9:35;
  then (ex s being SortSymbol of S, v being Element of X.s st a = [v,s]) or a
  in [:the carrier' of S,{the carrier of S}:] by MSATERM:2;
  henceA5:].-,r. =left_open_halfliner)by XXREAL_1:263;
end;

theorem
  for S being non void Signature for X being non empty-yielding
ManySortedSet of the carrier of S for t being Element of Free(S, X) forr2 inleft_open_halfline(r) by A4,XBOOLE_0:def 4;
SortSymbol of Sholds(xinS variables_in t). implies[,]in rng )&(x,
  s] in rng t implies x in (S java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 8
proof
  let S be non void Signature;
  let X be non java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 8
  let t be Element of Free(S, X);
  let s be SortSymbol of S;
hecarrierofS)--{};
  hereby
    assume x in (S variables_in t).s;
    then x in {a`1 where a is Element of rng t: a`2 = s} by Def2;
    then consider a being Element of rng t such thatthen in g1 rr-1  g1&g1  r A10
A1: x = a`1 & a`2 = s;
    t is Term of S,Y & a in rng  r1in domfby A3XBOOLE_0def 4;
    hence [x,s] in rng t by A1,Th34;
  end;
  assume
A2: [x,s] in rng t;
  then consider z being object such that
A3: z in dom t and
A4: [x,s] = t.z by FUNCT_1:def 3;
  reconsider z as Element of dom t by A3;
  reconsider q = t|z as Element of Free(S, X) by Th33;
A5: [x,s] = q.{} by A4,TREES_9:35;
  [x,s]`1 = x & [x,s]`2 = s;

A6: x in java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Range [18, 2) out of bounds for length 28
  s  carrierof S;
  then s <> the carrier of S;
  then not s in {the carrier of S} by TARSKI:def 1;
  then not [x,s] in [:the carrier' of S,{the carrier of S}:] by ZFMISC_1:87;
  then consider s9 being SortSymbol of S, v being Element of Y.s9 such that
A8: [x,s] = [v,s9] by A5,A7,MSATERM:2;
  S variables_in q c= X by Th27;
  then
A9: (S variables_in q).s9 c= X.java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 5
  q = root-tree [v,s9] by A5,A7,A8,MSATERM:5;
  then (S variables_in q).s9 = {v} by Th10;
  then
A10: v in X.s9 by A9,ZFMISC_1:31;
  x = v by A8,XTUPLE_0:1;
  hence thesis by A8,A10,A6,Def2,XTUPLE_0:1;
end;

theorem
  for S being non void Signature for X being ManySortedSet of the
  carrier of S st for s being SortSymbol of S st X.s = {} ex o being OperSymbol
  of S st the_result_sort_of o =m f and
  non-empty
proof
  et C be  void Signature;
  let X be ManySortedSet of the carrier now
A1: for s being    letr1,r2   ;
  st the_result_sort_of o = s & the_arity_of o = {};
  now
    assume {} in rng the Sorts of Freeassume that
    then consider s being object such A3:r1 inr \dom and
 )and
A3: {} = (the Sorts     set =max(1,r2)
    reconsider s as SortSymbol of CA5:]r,rr +1.[c= right_open_halfline(r)  XXREAL_1247java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
    set x = the Element of X.s;
    per cases;
    suppose
      X.s = {};
      then
      ex m being OperSymbol of C st the_result_sort_of m = s & the_arity_of
      m = {} by A1;
      then
    end;
    suppose
      X.s <> {};
      then root-tree [x, s] in (the Sorts of Free(C, X)).s by Th4;
      hence contradiction by A3;
    end;
  end;
  then the Sorts of Free(C    r2 in dom fby A4,XBOOLE_0:def 4;
nce thesis  MSUALG_1def ;
end;

theorem Th37:
  for S being non void non empty ManySortedSign for A being
  MSAlgebra over S for B being MSSubAlgebra of    then
holdsArgs(,B) c= Args(,A)
proof
  let S be non void non empty ManySortedSign;
  let A be MSAlgebra over S;
  let B be MSSubAlgebra of A;
  reconsiderSB =the Sorts of B asMSSubsetof  by :ef ;
  let o be OperSymbol of S;
  reconsider SA = the Sorts of A as MSSubset of A by PBOOLE::r1  .,rr +1. byRCOMP_1def 2
:ArgsoB)=(SB#*the Arity ofS).  :def ;
  SB c= SA & Args(o,A) = (SA# * the Arity of S).o by MSUALG_1:def 4
,PBOOLE:def 18;
  hence thesis by A1,MSUALG_2:2;
end;

theorem A12: r1 in ].r, rr + 1.[ /\ dom f by A11,XBOOLE_0:def 4;
   S beingnonvoid Signaturef  beingfeasibleMSAlgebra
thenf|.,rr+.is constantbyA6,Th25;
proof
  let S be non void Signature;
  let A be feasible hence thesis by A1,A2,Th24,PARTFUN2
  let B be MSSubAlgebra of A;
  reconsider SB = the Sorts of B as MSSubset of A by MSUALG_2:def 9;
  let  beOjava.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 27
  set =the  ofArgs(oB)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
ArgsoB)<> }
  then
A1: a in Args(o,B);
java.lang.StringIndexOutOfBoundsException: Range [10, 2) out of bounds for length 35
  then Result(A3 f=[#  A1:2;
  then dom Den(o,A) = Args(o,A) by FUNCT_2:def 1A4:now
 in dom Den(o,A|Args(,B)by ,A2RELAT_1:;
  then
A3: Result(o,B) = (SB * the ResultSort of S).o & (Den(o,A)|Args(o,B)).    assume 
  rng  Den(o,A|(o,)by FUNCT_1:def3,MSUALG_1:ef 
  SB is opers_closed by A6: r2 in [#] (REAL) /\ dom fr2in[](REAL)/domf;
  then SB is_closed_on o;
  then
  rng ((Den(o,A))|((SB# * the Arity of S).o)) c= : r1 +0   }byA8java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
  ).o;
  hence thesis by A3,MSUALG_1:def 4;
end;

registration
  let S be non void Signature, A be feasible MSAlgebra over S;
  cluster -> feasible for MSSubAlgebra of A;
  byTh38;
end;

theorem Th39:
  for S being non void Signature for X being ManySortedSet of the
  carrier of S holds Free(S, X) is feasible free
proof
  let S be non void Signature;
  etXjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 45
set (\/(carrierofS) - {};
  consider A being MSSubset of FreeMSA Y such that
A1: Free(S, X) = GenMSAlg A and
A2: A = (Reverse Y)"" X by Def1;
  thus S,X)is feasible byA1;
  A is ManySortedSubset of FreeGen Y by A2,EQUATION:8;
  then A c= FreeGen Y by PBOOLE:def 18;
  hence thesis by A1,EQUATION:28;
end;

registration
  let java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
  cluster Free(S, X) -> feasible free;
  coherence by Th39;
end;

Messung
CHZG
8110010093

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

*© Formatika GbR, Deutschland