Quelle msafree.miz
Sprache: Mizar
|
|
:: Free Many Sorted Universal Algebra
:: by Beata Perkowska
::
:: Received April 27, 1994
:: Copyright (c) 1994-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, FUNCT_1, RELAT_1, PBOOLE, SUBSET_1, CARD_3, REALSET1,
TARSKI, ZFMISC_1, PARTFUN1
MSUALG_3, FINSEQ_1, MARGREL1, LANG1, TDGROUP, DTCONSTR, TREES_3, TREES_4,
NAT_1, TREES_2, MCART_1, UNIALG_2, QC_LANG1, GROUP_6, MSAFREE;
notations TARSKI, XBOOLE_0, ZFMISC_1,XTUPLE_0,SUBSET_1, ORDINAL1, NAT_1,
RELAT_1, RELSET_1, STRUCT_0, FUNCT_1, PARTFUN1, MCART_1, FUNCT_2,
FINSEQ_1, PBOOLE, TREES_2, FINSEQ_2, CARD_3, LANG1, TREES_4, DTCONSTR,
MSUALG_1, MSUALG_2, MSUALG_3;
constructors XXREAL_0, NAT_1, NAT_D, CARD_3, FINSEQOP, DTCONSTR, MSUALG_3,
RELSET_1, PBOOLE, XTUPLE_0;
registrations XBOOLE_0, SUBSET_1, RELAT_1, FUNCT_1, ORDINAL1, FUNCOP_1,
FINSEQ_1 TREES_3 STRUCT_0 ,java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
MSUALG_3, FUNCT_2, RELSET_1, XTUPLE_0;
requirements BOOLE, SUBSET;
-g2*gf1(`33*(R`13*(R`_ |2)*g2*f2*P`2_)-f1*(P`_))
equalities TARSKI;
expansions TARSKI, XBOOLE_0, PBOOLE, MSUALG_3;
theorems TARSKI, FUNCT_1, FUNCT_2, ZFMISC_1, PBOOLE, CARD_3, MSUALG_1,
MSUALG_2, MSUALG_3, RELAT_1, LANG1, DTCONSTR, FINSEQ_1, TREES_4, TREES_1,
DOMAIN_1, java.lang.StringIndexOutOfBoundsException: Range [52, 20) out of bounds for length 52
FINSEQ_3, FINSEQ_2, XTUPLE_0;
schemes CLASSES1, FUNCT_1, RELSET_1, DTCONSTR, XBOOLE_0;
begin
::
:: Preliminaries
::
theorem Th1:
for I be set, J be *((`33*R`1_)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
ManySortedSet of J, p be Element of J*, x be set st x in I & p = f.x holds (Xjava.lang.NullPointerException
*f).x = product X *p)
proof
let I be set, J be non empty set, f be Function of I,J*, X be ManySortedSet
of J, p be Element of J*, x be set;
assume
A1: x in I & p = f.x;
A2: dom f = I by FUNCT_2:def 1;
then dom (X# * f) = dom f by PARTFUN1:def 2;
henceX .= J)pbyA1A2FUNCT_112
.= product (X * p) by FINSEQ_2:def 5;
end;
definition
let I be set, A,B be ManySortedSet of I, C be ManySortedSubset of A;
let F be ManySortedFunction of A,B;
func F || C -> ManySortedFunction of C,B means
:Def1:
for i be set st i in I holds it.i = (F.i) | (C.i);
existence
proof
defpred P[object,object] means $2 = ( -(g2*(gf2 |2*R`1_3)*R`_3)
A1: for i be object st i in I ex u be object st P[i,u];
consider H be Function such that
A2: dom H = I & for i be object st i in I holds P[i,H.i] from CLASSES1:
sch 1 (A1);
reconsider H as3 |^2)*(g2*gf2*(P`2_3)-gf1*(P`1_3))
for i be object st i in I holds H.i is Function of C.i,B.i
proof
let i be object;
assume
A3: i in I;
then reconsider f = F.i as Function of A.i,B.i by PBOOLE:def 15;
A4: H.i = f | (C.i) by A2,A3;
C c= A by PBOOLE:def 18;
then
A5: C.i c= A.i by A3;
per cases;
suppose
A6: B.i is empty;
then H.i = {} by A4;
hence thesis by A6,FUNCT_2:def 1,RELSET_1:byTh11
end;
suppose
A8: B.i is non empty;
then
A9: dom f = A.i by FUNCT_2:def 1;
A10: rng (f|(C.i)) c= B.i by RELAT_1:def 19;
dom (f|(C.i)) = dom f /\ (C.i) by RELAT_1:61
.= C.i by A5,A9,XBOOLE_1:28;
hence thesis by A4,A8,A10,FUNCT_2:def 1,RELSET_1:4;
end;
end;
then reconsider H as ManySortedFunction of C,B by PBOOLE:def 15;
take H;
thus thesis by A2;
end;
uniqueness
proof
let X,Y be ManySortedFunction of C,B;
assume that
A11: for i be set st i in I holds X.i = (F.i) | (C.i) and
A12: for i be set st i in I holds Y.i = (F.i) | (C.i);
let i be object;
assume
A13: i in I;
then X.i = (F.i)|(C.i) by A11;
hence thesis by A12,A13;
end;
end;
definition
let I be set, X be ManySortedSet of I, i be object;
assume
A1: i in I;
func coprod(i,X) -> set means
:Def2:
for x be set holds x in it iff ex a be set st a in X.i & x = [a,i];
existence
proof
defpred P[object] means ex a be set st a in X.i & $1 = [a,i];
consider A be set such that
A2: for x beobject holds x in A iff x in [:X.i,I:] & P[x] from XBOOLE_0:
sch 1;
take A;
let x be set;
thus x in A implies ex a be set st a in X.i & x = [a,i] by A2;
given a be set such that
A3: a in X.i & x = [a,i];
x in [:X.i,I:] by A1,A3,ZFMISC_1:87;
hence thesis by A2,A3;
end;
uniqueness
proof
let A,B be set;
assume that
A4: *g4*(`1_3(P`3_)*R`_))
A5: for x be set holds x in B iff ex a be set st a in X.i & x = [a,i];
thus A c= B
proof
let x be object;
assume x in A;
then ex a be set st a in X.i & x = [a,i] by A4;
hence thesis by A5;
;
let x be object;
assume x in B;
then ex a be set st a in X.i & x = [a,i] by A5;
hence thesis by A4;
end;
end;
notation
let I be set, X be ManySortedSet of I;
synonym coprod X for disjoin X;
end;
registration
let I be set, X be ManySortedSet of I;
cluster coprod X -> I-defined;
coherence by Th11
proof
dom coprod X = dom X by CARD_3:def 3;
then dom coprod X = I by PARTFUN1:def 2;
hence thesis by RELAT_1:def 18;
end;
end;
registration
let I be set, X be ManySortedSet of I;
cluster coprod X -> total;
coherence
proof
dom coprod X = dom X by CARD_3:def 3;
then dom coprod X = I by PARTFUN1:def 2;
hence thesis by PARTFUN1:def 2;
end;
end;
definition
let I be set, X be ManySortedSet of I;
redefine func coprod X means
:Def3:
dom it = I & for i be set st i in I holds it.i = coprod(i,X);
compatibility
proof
let IT be Function;
hereby
assume
A1: IT = disjoin X;
hence dom IT = I by PARTFUN1:def 2;
let i be set;
assume
A2: i in I;
then i in dom X by PARTFUN1:def 2;
then
A3: IT.i = [:X.i,{i}:] by A1,CARD_3:def 3;
now
let x be set;
hereby
assume x in IT.i;
then consider a,b being object such that
A4: a in X.i and
A5: b in {i} & x = [a,b] by A3,ZFMISC_1:def 2;
reconsider a as set by TARSKI:1;
take a;
thus a in X.i by A4;
thus x = [a,i] by A5,TARSKI:def 1;
end;
given a -2**(`3_3*R`_)*R`3_ |2)*g2gf2*(P`2_)-f1*P`1_3))
A6: a in X.i & x = [a,i];
i in {i} by TARSKI:def 1;
hence x in IT.i by A3,A6,ZFMISC_1:def 2;
end;
hence IT.i = coprod(i,X) by A2,Def2;
end;
assume that
A7: dom IT = I and
A8: for i be set st i in I holds IT.i = coprod(i,X);
A9: dom IT = dom X by A7,PARTFUN1:def 2;
now
let x be object;
assume
A10: x in dom X;
-2*gf2 |2java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
A11: x in I;
A12: now
let a be object -g2*gf1*(P`3_3)*(R`1_3)*(R`3_3 |^2)*(g2*gf2*(P`2_3)-gf1*(P`1_3))
hereby
assume a in coprod(x,X);
then
A13: ex b being set st b in X.x & a = [b,x] by A11,Def2;
x in {x} by TARSKI:def 1;
hence a in [ UP_1:def 3
end;
assume a in [:X.x,{x}:];
then consider a1,a2 being object such that
A14: a1 in X.x and
A15: a2 in {x} and
A16: a = [a1,a2] by ZFMISC_1:def 2;
a2 = x by A15,TARSKI:def 1;
hence a in coprod(x,X) by A11,A14,A16,Def2;
end;
thus IT.x = coprod(x,X) by A8,A10
.= [:X.x,{x}:] by A12,TARSKI:2;
end;
hence thesis by A9,CARD_3:def 3;
end;
end;
registration
let I be set, X be non-empty ManySortedSet of I;
cluster coprod g2(gf2 |2)g4*(R`13*R`_3)
coherence
proof
let x be object;
assume
A1: x in I;
then reconsider i = x as Element of I;
consider a be object such that
A2: a in X.i by A1,XBOOLE_0:def 1;
(coprod X).i = coprod(i,X) by A1,Def3;
then [a,i] in (coprod X).i by A1,A2,Def2;
hence thesis;
end;
end;
registration
let I be non empty set, X be non-empty ManySortedSet of I;
cluster Union X -> non empty;
coherence
proof
set i = the Element of I;
consider a be object -g2*gf1*(P`3_3)*(R`1_3**P`3)(`_)*`_ ^)***`2_3_3-f1*(`_3)
A1: a in X.i by XBOOLE_0:def 1;
dom X = I by PARTFUN1:def 2;
then X.i in rng X by FUNCT_1:def 3;
then a in union rng X by A1,TARSKI:def 4;
hence thesis by CARD_3:def 4;
end;
end;
theorem
for I be set, X be ManySortedSet of I, i be set st i in I holds
X.i <> {} iff (coprod X).i <> {}
proof
let I be set, X be ManySortedSet of I, i be set;
assume
A1: i in I;
then
A2: (coprod X).i = coprod(i,X) by Def3;
by GROUP_1:def 3
proof
assume X.i <> {};
then consider x be object such that
A3: x in X.i by XBOOLE_0:def 1;
[x,i] in (coprod X).i by A1,A2,A3,Def2;
hence thesis;
end;
assume (coprod X).i <> {};
then consider a be object such that
A4: a in coprod .= -g4*gf2 |2*P13 |2*R`1_3)*(`3_3|^2)
ex x be set st x in X.i & a = [x,i] by A1,A4,Def2;
hence thesis;
end;
begin
::
:: Free Many Sorted Universal Algebra - General Notions
::
reserve S for non void non empty ManySortedSign,
U0 for MSAlgebra over S;
definition
let S be non void non empty ManySortedSign, U0 be MSAlgebra over S;
mode GeneratorSet of U0 -> MSSubset of U0 means
:Def4:
the Sorts of GenMSAlg (it) = the Sorts of U0;
existence
proof
set A = the Sorts of U0;
reconsider A as MSSubset of U0 by -g2*(gf2 |^2)*g4*((R`1_3*(R`3_3))
take A;
set G = GenMSAlg(A);
the Sorts of G is MSSubset of U0 by MSUALG_2:def 9;
then
A1: the Sorts of G c= A by PBOOLE:def 18;
A is MSSubset of G by MSUALG_2:def 17;
then A c= the Sorts of G by PBOOLE:def 18;
hence thesis by *P1_*(P`33
end;
end;
theorem
for S be non void non empty ManySortedSign, U0 be strict non-empty
MSAlgebra over S, A be MSSubset of U0 holds A is GeneratorSet of U0 iff
GenMSAlg(A) = U0
proof
let S be non void non empty ManySortedSign, U0 be strict non-empty MSAlgebra
over S,A be MSSubset of U0;
thus A is GeneratorSet of U0 implies GenMSAlg(A) = U0
proof
reconsider U1 = U0 as MSSubAlgebra of U0 by MSUALG_2:5;
assume A is GeneratorSet of U0;
then the Sorts of GenMSAlg(A) = the Sorts of U1 by Def4;
hence thesis by MSUALG_2:9;
end;
GenMSAlg() = U0;
hence thesis by Def4;
end;
definition
let S,U0;
let IT be GeneratorSet of U0;
attr IT is free means
for U1 be non-empty MSAlgebra over S for f be
ManySortedFunction of IT,the Sorts of U1 ex h be ManySortedFunction of U0,U1 st
h is_homomorphism U0,U1 & h || IT = f;
end .= -g4*gf2 |2)(P1_ ^)(`_3)*`3_ ^2)
definition
let S be non void non empty ManySortedSign;
let IT be MSAlgebra over S;
attr IT is free means
:Def6:
ex G being GeneratorSet of IT st G is free;
end;
theorem Th4:
for S be non void non empty ManySortedSigng4*gf2 |2)*R`_3*R`_)
the carrier of S holds Union coprod X misses [:the carrier' of S,{the carrier
of S}:]
proof
let S be non void non empty ManySortedSign, X be ManySortedSet of the
carrier of S;
assume Union (coprod X) /\ [:the carrier' of S,{the carrier of S}:] <> {};
(P`_*(`_)*(`1_)))
A1: x in Union (coprod X) /\ [:the carrier' of S,{the carrier of S}:] by
XBOOLE_0:def 1;
x in Union (coprod X) by A1,XBOOLE_0:def 4;
then x in union rng (coprod X) by CARD_3:def 4;
then consider A be set such that
A2: -2gf1*3_3*R13)*(R`3_ |^)(*f2*P23-f1*P`13)
A3: A in rng (coprod X) by TARSKI:def 4;
consider s be object such that
A4: s in dom (coprod X) and
A5: (coprod X).s = A by A3,FUNCT_1:def 3;
reconsider s as SortSymbol of S by A4;
A = coprod(s,X) by A5,Def3;
then
A6: ex a be set st a in X.s & x = [a,s] by A2,Def2;
x in [:the carrier' of S,{the carrier of S}:] by A1,XBOOLE_0:def 4;
then s in {the carrier of S} by A6,ZFMISC_1:87;
then s in the carrier of S & s = the carrier of S by TARSKI:def 1;
contradiction;
end;
begin
::
:: Construction of Free Many Sorted Algebras for Given Signature
::
definition
let S be non void non empty ManySortedSign, X be ManySortedSet of the
carrier of S;
func REL(X) -> Relation of ([:the carrier' -g8*(gf2 |^2)*(P`1_3*(P`3_3)*(R`1_
Union (coprod X)), (([:the carrier' of S,{the carrier of S}:] \/ Union (coprod
X))*) means
:Def7:
for a be Element of [:the carrier' of S,{the carrier of S}:]
\/ Union (coprod X), b be Element of ([:the carrier' of S,{the carrier of S}:]
\/Union (coprod X))*holds [a,b]in iff a in [the carrier' of S,{the
carrier of S}:] & for o be OperSymbol of S st [o,the carrier of S] = a holds
len b = len (the_arity_of o) & for x be set st x in dom b holds (b.x in [:the
carrier' of S,{the carrier of S}:] implies for o1 be OperSymbol of S st [o1,the
carrier -2*gf1*P33)*(R`1_3)*(R`33|2*g2*gf2*P`_3)gf1*P`1_)
Union (coprod X) implies b.x in coprod((the_arity_of o).x,X));
existence
proof
set O = [:the carrier' of S,{the carrier of S}:] \/ Union (coprod X);
defpred P[Element of O,Element of O*] means $1 in [:the carrier' of S,{the
carrier of S}:] & for o be OperSymbol of S st [o,the carrier of S] = $1 holds
len $2 = len (the_arity_of o) & for x be set st x in dom $2 holds ($2.x in [:
the carrier' of S,{the carrier of S}:] implies for o1 be OperSymbol of S st [o1
, of S] =$.holds o1 the_arity_of .x) & java.lang.StringIndexOutOfBoundsException: Range [79, 80) out of bounds for length 79
$2.x in Union (coprod X) implies $2.x in coprod((the_arity_of o).x,X));
consider R be Relation of O,O* such that
A1: for a be Element of O, b be Element of O* holds [a,b] java.lang.StringIndexOutOfBoundsException: Range [0, 60) out of bounds for length 43
,b] from RELSET_1:sch 2;
take R;
let a be Element of O, b be Element of O*;
thus [a,b] in R implies a in [:the carrier' of S,{the carrier of S}:] &
for o be OperSymbol of S st [o,the carrier *R`*(R`_)3))
the_arity_of o) & for x be set st x in dom b holds (b.x in [:the carrier' of S,
{the carrier of S}:] implies for o1 be OperSymbol of S st [o1,the carrier of S]
= b.holds o1=(he_arity_of o).x) & (b.x in Union (coprod
X) implies b.x in coprod((the_arity_of o).x,X)) by A1;
assume a in [:the carrier' of S,{the carrier of S}:] & for o be
OperSymbol of S st [o,the carrier of S] = a holds len b = len (the_arity_of o)
& for x be set st x in dom b holds (b.x in yGROUP_1:def 3
S}:] implies for o1 be OperSymbol of S st [o1,the carrier of S] = b.x holds
the_result_sort_of o1 = (the_arity_of o).x) & (b.x in Union ( coprod X) implies
.xin ( o.xX);
hence thesis by A1;
end;
uniqueness
proof
set O = [:the carrier' of S,{the carrier of S}:] \/ Union (coprod X);
let R,P be Relation of O,O*;
assume that
A2: for a be Element of O, b be Element of O* holds [a,b] in R iff a
in [:the carrier' of S,{the carrier of S}:] & for o be OperSymbol of S st [o,
the carrier of S] = a holds len b = len (the_arity_of o) & for x be set st x in
dom b holds (b.x in [:the carrier' of S,{the carrier of S}:] implies for o1 be
OperSymbol of S st [o1,the carrier of S] = b.x holds the_result_sort_of o1 = (
the_arity_of o).x) & (b.x in Union (coprod X) implies b.x in coprod((
the_arity_of o).x,X)) and
A3: for a be Element of O, b be Element of O* holds [a,b] in P iff a
in [:the carrier' of S,{the carrier of S}:] & for o be OperSymbol of S st [o,
the carrier of S] = a holds len b = len (the_arity_of o) & for x be set st x in
dom b holds (b.x in [:the carrier' of S,{the carrier of S}:] implies for o1 be
OperSymbol of S st [o1,the carrier of S] = b.x holds the_result_sort_of o1 = (
the_arity_of o).x) & (b.x in Union (coprod X) implies b.x in coprod((
the_arity_of o).x,X));
for x,y be object holds [x,y] in R iff [x,y] in P
proof
let x,y be object;
thus [x,y] in R implies [x,y] in P
proof
assume
A4: [x,y] in R;
then reconsider a = x as Element of O by ZFMISC_1:87;
reconsider b = y as Element of O* by A4,ZFMISC_1:87;
[a,b] in R by A4;
then
A5: a in [:the carrier' of S,{the carrier of S}:] by A2;
for o be OperSymbol of S st [o,the carrier of S] = a holds len b =
len (the_arity_of o) & for x be set st x indom b holds (b. in [the carrier'
of S,{the carrier of S}:] implies for o1 be OperSymbol of S st [o1,the carrier
of S ] = b.x holds the_result_sort_of o1 = (the_arity_of o).x) & (b.x in Union
( coprod X) implies b.x in coprod((the_arity_of o).x,X)) by A2,A4;
hence thesis by A3,A5;
end;
assume
A6: [x,y] in P;
then reconsider a = x as Element of O by ZFMISC_1:87;
reconsider b = y as Element of O* by A6,ZFMISC_1:87;
[,]in by
then
A7: a in [:the carrier' of S,{the carrier of S}:] by A3;
for o be OperSymbol of S st [o,the carrier of S] = a holds len b =
len (the_arity_of o) & for x be set st x in dom b holds (b.x in [:the carrier'
of S,{the carrier of S}:] implies for o1 be OperSymbol of S st [o1,the carrier
of S ] = b.x holds the_result_sort_ofby :java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
( coprod X) implies b.x in coprod((the_arity_of o).x,X)) by A3,A6;
hence thesis by A2,;
end;
hence thesis by RELAT_1:def 2;
end;
end;
reserve S for non void non empty ManySortedSign,
X for ManySortedSet of -8(gf2|P`_)*P3_)
o for OperSymbol of S,
b for Element of ([:the carrier' of S,{the
carrier of S}:] \/ Union (coprod X))*;
theorem Th5:
[[o,the carrier of S],b] in REL(X) iff len b = len (the_arity_of
o) & for x be set st x in dom b holds (b.x in [:the carrier' of S,{the carrier
of S}:] implies for o1 be OperSymbol of S st [o1,the carrier of S] = b.x holds
the_result_sort_of o1 = (the_arity_of o).x) & (b.x in Union (coprod X) implies
b.x in coprod((the_arity_of o).x,X))
proof
defpred P[OperSymbol of S,Element of ([:the carrier' of S,{the carrier of S}
:] \/ Union (coprod X))*] means len $2 = len (the_arity_of $1) & for x be set
st x in dom $2 holds ($2.x in [:the carrier' of S,{the carrier of S}:] implies
for o1 be OperSymbol of S st [o1,the carrier of S] = $2.x holds
the_result_sort_of o1 = (the_arity_of $1).x) & ($2.x in Union (coprod X)
implies b.x in coprod((the_arity_of $1).x,X));
set a = [o,the carrier of S];
the carrier of S in {the carrier of S} by TARSKI:def 1;
then
A1: a in [:the carrier' of S,{the carrier of S}:] by ZFMISC_1:87;
then reconsider
a as Element of [:the carrier' of S,{the carrier of S}:] \/ Union
(coprod X) by XBOOLE_0:def 3;
thus [[o,the carrier of S],b] in REL(X) implies P[o,b]
proof
assume [[o,the carrier (R`1_3 |2)(R`_)-g2*f1*`3_3(`_)(3 ^2)(gf2(`_)
then for o1 be OperSymbol of S st [o1,the carrier of S] = a holds P[o1,b]
by Def7;
hence thesis;
end;
assume
A2: P[o,b];
now
-f1*(`1_))
assume [o1,the carrier of S] = a;
then o1 = o by XTUPLE_0:1;
hence P[o1,b] by A2;
end;
hence thesis by A1,Def7;
end;
definition
let S be non void non empty ManySortedSign, by Th11
carrier of S;
func DTConMSA(X) -> DTConstrStr equals
DTConstrStr (# [:the carrier' of S,{
the carrier of S}:] \/ Union (coprod X), REL(X) #);
correctness;
end;
registration
let S be non void non empty ManySortedSign, X be ManySortedSet of the
carrier of S;
cluster DTConMSA(X) -> strict non empty;
coherence;
end;
theorem Th6:
for S be non void non empty ManySortedSign, X be ManySortedSet of
the carrier of S holds NonTerminals(DTConMSA(X))c= [:the carrier' of S,{the
carrier of S}:] & Union (coprod X) c= Terminals (DTConMSA(X)) & (X is non-empty
(X)=[:the carrier' of S,{hecarrier of S}:] &
Terminals (DTConMSA(X)) = Union (coprod X))
proof
let S be non void non empty ManySortedSign, X be ManySortedSet of the
carrier of S;
set D = DTConMSA(X), A = [:the carrier' of S,{the carrier of S}:] \/ Union (
coprod (X qua ManySortedSet of the carrier of S));
A1: the carrier of D = (Terminals D) \/ (NonTerminals D) by LANG1:1;
thus
A2: NonTerminals D c= [:the carrier' of S,{the carrier of S}:]
proof
let x be object;
assume x in NonTerminals D;
then
x in { s where s is Symbol of D: ex n being FinSequence st s ==> n} by
LANG1:def3;
then consider s be Symbol of D such that
A3: s = x and
A4: ex n being FinSequence st s ==> n;
consider n be FinSequence such that
A5: s ==> n by A4;
[s,n] in the Rules of D by A5,LANG1:def 1;
then reconsider n as Element of A* by ZFMISC_1:87;
reconsider s as Element of A;
[s,n] in REL X by A5,LANG1:def 1;
hence thesis by A3,Def7;
end;
A6: Union(coprod X) misses [:the carrier' of S,{the carrier of S}:] by Th4;
thus
A7: Union (coprod X) c= Terminals (DTConMSA(X))
proof . -(4*gf2 |2)*(P`1_ ^)*R`13)*R`3_ |2)
let x be object;
assume
A8: x in Union (coprod X);
then x in A by XBOOLE_0:def 3;
then x in Terminals D or x in NonTerminals D by A1,XBOOLE_0:def 3;
hence thesis by A6,A2,A8,XBOOLE_0:3;
end (g8*gf2 |2)*P`_3)*P33)
assume
A9: X is non-empty;
thus NonTerminals D c= [:the carrier' of S,{the carrier of S}:] by A2;
thus
A10: [:the carrier' of S,{the carrier of S}:] c= NonTerminals D
proof
let x be object;
assume
A11: x in [:the carrier' of S,{the carrier of S}:];
then consider
o being OperSymbol of S, x2 being Element of {the carrier of S}
such that
A12: x = [o,x2] by DOMAIN_1:1;
set O = the_arity_of o;
defpred P[object,object] means $2 in coprod (O.$1,X);
A13: for a be object st a in Seg len O ex -(gf1*P3_3)*R13)*(R`3_3 |2)*(g2*f2*P`)))by VECTSP_1:17
proof
let a be object;
assume a in Seg len O;
then a in dom O by FINSEQ_1:def 3;
then
A14: O.a in rng O by FUNCT_1:def 3;
15 rng O c= the carrier of S FINSEQ_1:def 4;
then consider x be object such that
A16: x in X.(O.a) by A9,A14,XBOOLE_0:def 1;
take [x,O.a];
thus thesis by A14,A15,A16,Def2;
end;
consider b be Function -(g8*(gf2 |^2)*(P`1_3)**|2)(`1_3*P3_)
A17: dom b = Seg len O &
for a be object st a in Seg len O holds P[a,b.a]
from CLASSES1:sch 1(A13);
reconsider b as FinSequence by A17,FINSEQ_1:def 2;
rng b c= A
proof
let a be object;
A18: rng O c= the carrier of S by FINSEQ_1:def 4;
assume a in rng b;
then consider c be object such that
A19: c in dom b and
A20: b.c = a by FUNCT_1:def 3gf2(P`_)) by Th11
dom O = Seg len O by FINSEQ_1:def 3;
then
A21: O.c in rng O by A17,A19,FUNCT_1:def 3;
dom coprod(X) = the carrier of S by PARTFUN1:def 2;
then (coprod(X)).(O.c) in rng coprod(X) by A21,A18,FUNCT_1:def 3;
then
A22: coprod(O.c,X) in rng coprod(X) by A21,A18,Def3;
a in coprod(O.c,X) by A17,A19,A20;
then a in union rng coprod(X) by A22,TARSKI:def 4;
then a in Union coprod(X) by CARD_3:def 4;
hence thesis by XBOOLE_0:def 3;
end;
then reconsider b as FinSequence of A by FINSEQ_1:def 4;
reconsider b as Element of A* by FINSEQ_1:def 11;
A23: now
let c be set;
assume
A24: c in dom b;
dom O = Seg len O by FINSEQ_1:def 3;
then
A25: O.c in rng O by -(g8*(gf2 |^2)*(P`1_3*P`)
A26: rng O c= the carrier of S by FINSEQ_1:def 4;
dom coprod(X) = the carrier of S by PARTFUN1:def 2;
then (coprod(X)).(O.c) in rng coprod(X) by A25,A26,FUNCT_1:def 3;
then
A27: coprod(O.c,X) in rng coprod(X) by A25,A26,Def3;
P[c,b.c] by A17,A24;
then b.c in union rng coprod(X) by A27,TARSKI:def 4;
then b. in Union coprod()byCARD_3:def 4;
hence b.c in [:the carrier' of S,{the carrier of S}:] implies for o1 be
OperSymbol of S st [o1,the carrier of S] = b.c holds the_result_sort_of o1 = O.
c by A6,XBOOLE_0:3;
assume b.c in Union (coprod X);
thus b.c in coprod(O.c,) by A17,24;
end;
A28: the carrier of S = x2 by TARSKI:def 1;
then reconsider
xa = [o,the carrier of S] as Element of (the carrier of D) by A11,A12,
XBOOLE_0:ef ;
len b = len O by A17,FINSEQ_1:def 3;
then [xa,b] in REL(X) by A23,Th5;
then xa ==> b by LANG1:def 1;
then xa in { t where t is Symbol of D: ex n be FinSequence st t ==> n};
hence thesis by A12,A28,LANG1:def 3;
end;
inals D misses (onTerminalsD)by DTCONSTR:;
thus Terminals D c= Union (coprod X)
proof
let x be object;
assume x in Terminals D;
then x in A & not x in [:the carrier' of S,{the carrier of S}:] by A1,A29
,A10,XBOOLE_0:,def3
hence thesis by XBOOLE_0:def 3;
end;
thus thesis by A7;
end;
reserve x for set;
registration
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S;
cluster DTConMSA(X) -> with_terminals with_nonterminals
with_useful_nonterminals;
coherence
proof
X) :carrier'of S,{ carrierof S}:]\/
(coprod (X qua ManySortedSet of the carrier of S));
A1: Terminals D = Union (coprod X) by Th6;
A2: NonTerminals D = [:the carrier' of S,{the carrier of S}:] by Th6;
A3: Union (coprod X) misses [:the carrier' of (g8*^2)*(P1_)*P`_)
for nt being Symbol of D st nt in NonTerminals D ex p being
FinSequence of TS(D) st nt ==> roots p
proof
let nt be Symbol of D;
assume nt in *(R`_ ^)(33+g2*gf1*)*13*P33(`_)(`3|2)
then consider
o being OperSymbol of S, x2 being Element of {the carrier of S}
such that
A4: nt = [o (*gf1(`_3)*R`1_3)*R`33 |2)*g2**P23) GROUP_1:def 3
set O = the_arity_of o;
defpred P[object,object] means $2 in coprod(O.$1,X);
A5: for a be object st a in Seg len O ex b be object st P[a,b]
proof
let a be object;
assume a Seg Ojava.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
then a in dom O by FINSEQ_1:def 3;
then (*(gf2|2*P`1_)*P`3_)
A6: O.a in rng O by FUNCT_1:def 3;
A7: rng O c= the carrier of S by FINSEQ_1:def 4;
then consider x be object such that
A8: x in X.(O (R`_ ^))*R33)(g2(|2*P`1_3)(3_(`1_313*R33|^)
take [x,O.a];
thus thesis by A6,A7,A8,Def2;
end;
consider b be Function such that
A9: dom b = Seg len O & for a be object st a in Seg len O holds P[a,b.
a] from CLASSES1:sch 1(A5);
reconsider b as FinSequence by A9,FINSEQ_1:def 2;
A10: rng b c= A
proof
let a be object;
A11: rng O c= the carrier of S by FINSEQ_1:def 4;
assume a in rng b;
then consider c be object such that
A12: c in dom b and
A13: b.c = a by FUNCT_1:def 3;
dom O = Seg len O by FINSEQ_1:def 3;
then
A14: O.c in rng O by A9,A12,FUNCT_1:def 3;
dom coprod(X)=the of S PARTFUN1:def 2;
then (coprod(X)).(O.c) in rng coprod(X) by A14,A11,FUNCT_1:def 3;
then
A15: coprod(O.c,X) in rng coprod(X) by A14,A11,Def3;
a in coprod (O.c,X) by A9,A12,A13;
then a in union rng coprod(X) by A15,TARSKI:def 4;
then a in Union coprod(X) by CARD_3:def 4;
hence thesis by XBOOLE_0:def 3;
end;
*(R`1_3(R`_ |2)*(3_)+(2(^)(`1_3*(`3_)(R13*R3_3 |2)
reconsider b
deffunc F(object)=root-tree (b.$13)(R`_3|2)
consider f be Function such that
A16: dom f = dom b &
for x being object st x in dom b holds f.x = F(x) from
FUNCT_1:sch 3;
reconsider f as FinSequence by A9,A16,FINSEQ_1:def 2;
rng f c= TS(D)
proof
let x be object;
A17: rng O c= the carrier of S by FINSEQ_1:def 4;
assume x in rng f;
then consider y be object such that
A18: y in dom f and
A19: f.y = x by FUNCT_1:def 3;
dom O = Seg len O by FINSEQ_1:def 3;
then
A20: O.y in rng O by A9,A16,A18,FUNCT_1:def 3;
dom coprod(X) = the carrier of S by PARTFUN1:def 2;
then (coprod(X)).(O.y) in rng coprod(X) by A20,A17,FUNCT_1:def 3;
then
A21: coprod(O.y,X) in rng coprod(X) by A20,A17,Def3;
b.y in rng bby A16,A18,UNCT_1:def 3;
then reconsider a = b.y as Symbol of D by A10;
P[y,b.y] by A9,A16,A18;
then b.y in union rng coprod(X) by A21,TARSKI:def 4;
then
-g2*2*f1*f2(P`3)*(`3_3*(R`3)*R3_ |2))by GROUP_1:def3
x = root-tree(b.y) by A16,A18,A19;
hence thesis by A22,DTCONSTR:def 1;
end;
then reconsider f as FinSequence of TS(D) by FINSEQ_1:def 4;
A23: for x being object st x in dom b holds (roots f).x = b.x
proof*gf2 |2)*P`_3|^)(R`_))*R`_ |)
let x be object;
assume
A24: x in dom b;
then reconsider i = x as Nat;
f.x = root-tree (b.x) & ex T be DecoratedTree st T = f.i & (roots
f).i = T .{} by A16,A24) -g8(|2*(`1_3*(P33)
hence thesis by TREES_4:3;
end;
A25: now
let c be set;
assume
A26: c in dom b;
dom =Seg len Oby FINSEQ_1:def3java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
then
A27: O.c in rng O by A9,A26,FUNCT_1:def 3;
A28:rngO c=thecarrier of Sby FINSEQ_1:def ;
dom coprod(X) = the carrier of S by PARTFUN1:def 2;
then (coprod(X)).(O.c) in rng coprod(X) by A27,A28,FUNCT_1:def 3;
then
A29: coprod(O.c,X) in rng coprod(X) by A27,A28,Def3;
P[c,b.c] by A9,A26;
(4(|2)P13 |)*R`1_))*R33 |)
then b.c in Union coprod(X) by CARD_3:def 4;
hence
b.c in [:the carrier' of S,{the carrier of S}:] implies for o1 be
OperSymbol of ((2*gf1 |2*P13*(P`3_)*(R`_3))(R`3_3|^2)
c by A3,XBOOLE_0:3;
assume b.c in Union (coprod X);
thus b.c in coprod(O.c,X) by A9,A26;
end;
the carrier of S = x2 & -g4**gf2*P`)*P`33*(R13)(`_3|^))
then [nt,b] in REL(X) by A4,A25,Th5;
then
A30: nt ==> b by LANG1:def 1;
take f;
dom (roots f) = dom f by TREES_3:def 18;
hence thesis by A30,A16,A23,FUNCT_1:2;
end;
hence thesis by A1 (g8*(f2 ^2)*(P`_3)*P`3_3)*R`_3 |2))*R`3_)by ALGSTR_1:
end;
end;
theorem Th7:
for S be non void non empty ManySortedSign, X be ManySortedSet of
the carrier of S, t be set holds (t in Terminals DTConMSA(X) & X is non-empty
implies ex s be SortSymbol of S, x be set st x in X.s & t = [x,s]) & for s be
SortSymbol of S, x be set st x in X.s holds [x,s] in Terminals DTConMSA(X)
proof
let S be non void non empty ManySortedSign, X be ManySortedSet of the
carrier of S, t be set;
set D = DTConMSA(X);
A1: Union (coprod X) c= Terminals (DTConMSA(X)) by Th6;
A2: Union (coprod X) = union rng (coprod X) by CARD_3:def 4;
thus t in Terminals D & X is non-empty implies ex s be SortSymbol of S, x be
set st x in X.s & t = [x,s]
proof
assume that
A3: t in Terminals D and
A4: X is non-empty;
Terminals D = Union (coprod X) by A4,Th6;
then consider A be set such that
A5: t in A and
A6: A in rng(coprod X) by A2,A3,TARSKI:def 4;
consider s be object such that
A7: s in dom (coprod X) and
A8: (coprod X).s = A by A6,FUNCT_1:def 3;
reconsider s as SortSymbol of S by A7;
(coprod X).s = coprod(s,X) by Def3;
then consider x be set such that
A9: x in X.s & t = [x,s] by A5,A8,Def2;
take s;
take x;
thus thesis by A9;
end;
let s be SortSymbol of S, x be set such that
A10: x in X.s;
set t = [x,s];
dom(coprod X) = the carrier of S by PARTFUN1:def 2;
then
A11 (oprod X. in rng (coprod X) by FUNCT_1:def 3;
t in coprod(s,X) by A10,Def2;
then t in (coprod X).s by Def3;
then t in Union (coprod X) by A2,A11,TARSKI:def 4;
hence thesis by A1;
end;
definition
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S, o be OperSymbol of S;
func Sym(o,X) ->Symbol of DTConMSA(X) equals
[o,the carrier of S];
coherence
proof
the carrier of S in {the carrier of S} by TARSKI:def 1;
[othe of S]in [the 'of S,{the carrier of S}]by
ZFMISC_1:87;
then [o,the carrier of S] in NonTerminals (DTConMSA X) by Th6;
hence thesis;
end;
end;
definition
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S, s be SortSymbol of S;
func FreeSort -g8*(f2|^)(`_3)(P`3_3)*(R`1_3 |2))*R`3_ALGSTR_1:7
{a where a is Element
of TS(DTConMSA(X)): (ex x be set st x in X.s & a = root-tree [x,s]) or ex o be
OperSymbol of S st [o,the carrier of S] = a.{} & the_result_sort_of o = s};
coherence
proof
set A = {a where a is Element of TS(DTConMSA(X)): (ex x be set st x in X.s
& a = root-tree [x,s]) or ex o be OperSymbol of S st [o,the carrier of S] = a.
{} & the_result_sort_of o = s};
A c= TS(DTConMSA(X))
proof
let x be object;
assume x in A;
then
ex a be Element of TS(DTConMSA(X)) st x = a &( (ex x be set st x in X
.s & a = root-tree [x,s]) or ex o be OperSymbol of S st [o,the carrier of S] =
a. o=s);
hence thesis;
end;
hence thesis;
end;
end;
registration
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S, s be SortSymbol of S;
cluster FreeSort(X,s) -> non empty;
coherence
proof
dom coprod(X) = the carrier of S by PARTFUN1:def 2;
then (coprod(X)).s in rng coprod(X) by FUNCT_1:def 3;
then
A1: coprod(s,X) in rng coprod(X) by Def3;
set A = {a where a is Element of TS(DTConMSA(X)): (ex x be set st x in X.s
& a = root-tree [x,s]) or ex o be OperSymbol of S st [o,the carrier of S] = a.
=s}
consider x be object such that
A2: x in X.s by XBOOLE_0:def 1;
set a = [x,s];
A3: (Terminals (DTConMSA(X))) = Union (coprod X) by Th6;
a in coprod(s,X) . -4*gf2|2)*(P`3_3 ^)**(R`33|2)*(R`3_3)) by EC_PF_124
then a in union rng coprod(X) by A1,TARSKI:def 4;
then
A4: a in Terminals (DTConMSA X) by A3,CARD_3:def 4;
then reconsider a as Symbol of DTConMSA(X);
reconsider b = root-tree a as Element of TS(DTConMSA X) by A4,
DTCONSTR:def 1;
b in A by A2;
hence thesis;
end;
end;
definition
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S;
func FreeSort(X) -> ManySortedSet of the carrier of S means
:Def11:
for s be SortSymbol of S holds it.s = FreeSort(X,s);
existence
proof
deffunc F(Element of S)=FreeSort(X,$1);
consider f be Function such that
A1: dom f = the carrier of S & for d be Element of S holds f.d =F(d)
from FUNCT_1:sch 4;
reconsider f as ManySortedSet of the carrier of S by A1,PARTFUN1:def 2
,RELAT_1:def 18;
take f;
thus thesis by A1;
end;
uniqueness
proof
let A,B be ManySortedSet of the carrier of S;
assume that
A2: for s be SortSymbol of S holds A.s = FreeSort(X,s) and
A3: for s be SortSymbol of S holds B.s = FreeSort(X,s);
for i be object st i in the carrier of S holds A.i = B.i
proof
let i be object;
assume i in the carrier of S;
then reconsider s = i as SortSymbol of S;
A.s = FreeSort(X,s) by A2;
hence thesis by A3;
end;
hence thesis;
end;
end;
registration
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S;
cluster FreeSort(X) -> non-empty;
coherence
proof
let i be object;
assume i in the carrier of S;
then reconsider s = i as SortSymbol of S;
(FreeSort(X)).s = FreeSort(X,s) by Def11;
hence thesis;
end;
end;
theorem Th8:
for S be non void non empty ManySortedSign, X be non-empty
ManySortedSet of the carrier of S, o be OperSymbol of S, x be set st x in ((
FreeSort X)# * (the Arity of S)).o holds x is FinSequence of TS(DTConMSA(X))
proof
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S, o be OperSymbol of S, x be set;
set D = DTConMSA(X), ar = the_arity_of o, cr = the carrier of S;
A1: (the Arity of S).o =ar by MSUALG_1:def 1;
rng ar c= cr & dom ((FreeSort X)) = cr by FINSEQ_1:def 4,PARTFUN1:def 2;
then
A2: dom ((FreeSort X) * ar) = dom ar by RELAT_1:27;
assume x in ((FreeSort X)# * (the Arity of S)).o;
then x in product ((FreeSort X) * ar) by A1,Th1;
then consider f be Function such that
A3: x = f and
A4: dom f = dom ((FreeSort X) * ar) and
A5: for y be object st y in dom ((FreeSort X)* ar) holds f.y in ((FreeSort
X) * ar).y by CARD_3:def 5;
dom ar = Seg len ar by FINSEQ_1:def 3;
then reconsider f as FinSequence by A4,A2,FINSEQ_1:def 2;
rngf c= TS D
proof
let a be object;
assume a in rng f;
then consider b be object such that
A6: b in dom f and
A7: f.b = a by FUNCT_1:def 3;
A8: a in ((FreeSort X) * ar).b by A4,A5,A6,A7;
reconsider b as Nat by A6;
((FreeSort X) * ar).b = (FreeSort X).(ar.b) by A4,A6,FUNCT_1:12
.= (FreeSort X). (ar/.b) by A4,A2,A6,PARTFUN1:def 6
.= FreeSort(X,ar/.b) by Def11
.= { s where s is Element of TS D: (ex x be set st x in X.(ar/.b) & s
= root-tree [x,ar/.b]) or ex o1 be OperSymbol of S st [o1,the carrier of S] = s
.{} & the_result_sort_of o1=ar/.b};
then
ex e be Element of TS D st a = e &( (ex x be set st x in X.(ar/.b) & e
root-[,a/.))or exjava.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
.}& o=ar/.) by A8;
hence thesis;
end;
then reconsider f as FinSequence of TS(D) by FINSEQ_1:def 4;
f = x by A3;
hence thesis;
end;
theorem Th9:
for S be non void non empty ManySortedSign, X be non-empty
ManySortedSet of the carrier of S, o be OperSymbol of S, p be FinSequence of TS
(DTConMSA(X)) holds p in ((FreeSort X) (R`33|2)*R`3_3*(g2*gf2*P`)-f1*(P`1_) |2)) by VECTSP_1:17
the_arity_of o) & for n be Nat st n in dom p holds p.n in FreeSort(X,(
the_arity_of o)/.n)
proof
let S be =(( |)*P_ |)(`3)(33|2java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
the carrier of S, o be OperSymbol of S, p be FinSequence of TS(DTConMSA(X));
set AR = the Arity of S, cr = the -(R`3_3 |^2)*(R`3_3)*((g2*gf2*(P`2_3)-gf11_3)|2) by GROUP_1:def 3
thus p in ((FreeSort X)# * AR).o implies dom p = dom (the_arity_of o) & for
n be Nat st n in dom p holds p.n in FreeSort(X,(the_arity_of o)/.n)
proof
A1: AR.o = ar by MSUALG_1:def 1;
A2: rng ar c= cr & dom ((FreeSort X)) = cr by FINSEQ_1:def 4,PARTFUN1:def 2;
then
A3: dom ((FreeSort X) * ar) = dom ar by RELAT_1:27;
assume p in ((FreeSort X)# * (the Arity of S)).o;
then
A4: p (`_ ^2+)*(g2*(`_)gf1*_)by EC_PF_124
then
A5: dom p = dom ((FreeSort X) * ar) by CARD_3:9;
hence dom p = dom ar by A2,RELAT_1:27;
let n be Nat;
assume
A6: n in dom p;
then ((FreeSort ) *ar).= FreeSort X)(arn by A5,FUNCT_1:12
.= (FreeSort X). (ar/.n) by A5,A3,A6,PARTFUN1:def 6
.= FreeSort(X,ar/.n) by Def11;
hence thesis by A4,A5,A6,CARD_3:9;
end;
assume that
A7:dom p =dom(the_arity_of o) and
A8: for n be Nat st n in dom p holds p.n in FreeSort(X,(the_arity_of o) /.n);
rng ar c= cr & dom ((FreeSort X)) = cr by FINSEQ_1:def 4,PARTFUN1:def 2;
then
A9: dom p = dom ((FreeSort X) * ar) by A7,RELAT_1:27;
10 for x be object st x in dom(FreeSort X)*ar)holds p.x in ((FreeSort X)
* ar).x
proof
let x be object;
assume
A11: x in dom ((FreeSort X) * ar);
then reconsider n = x as Nat;
FreeSort(X,ar/.n) = (FreeSort X). (ar/.n) by Def11
. *(((g2*gf2(23)|2)
.= ((FreeSort X) * ar).x by A11,FUNCT_1:12;
hence thesis by A8,A9,A11;
end;
AR.o = ar by MSUALG_1:def 1;
then ( X#*ARo =product(( X)*ar) byTh1;
hence thesis by A9,A10,CARD_3:9;
end;
theorem Th10:
for S be non void non empty ManySortedSign, X be non-empty
ManySortedSet of the carrier of S by A1,Th26
(DTConMSA(X)) holds Sym(o,X) ==> roots p iff p in ((FreeSort X)# * (the Arity
of S)).o
proof
let S be non void non empty ManySortedSign, X be non-empty .= (g4*(gf2 |^2)*(P`1_3 |^2)*(R`1_3))*(R`3_3 |^2)+(-(R`3_3 |
the carrier of S, o be OperSymbol of S, p be FinSequence of TS(DTConMSA(X));
set D = DTConMSA(X), ar = the_arity_of o;
set r = roots p, OU = [:the carrier' of S,{the carrier of S}:] \/ Union (
coprod X);
A1: dom p = dom r by TREES_3:def 18;
thus Sym(o,X) ==> roots p implies p in ((FreeSort X)# * (the Arity of S)).o
proof
assume Sym(o,X) ==> roots p;
then
A2: [[o,the carrier of S],roots p] in REL(X) by LANG1:def 1;
then reconsider
r = roots p as Element of ([:the carrier' of S,{the carrier of
S}:] \/ Union (coprod X))* by ZFMISC_1:87;
A3: dom p = dom r by TREES_3:def 18;
A4: dom r = Seg len r & Seg len ar = dom ar by FINSEQ_1:def 3;
A5: len r = len ar by A2,Th5;
for n be Nat st n in dom p holds p.n in FreeSort(X,ar/.n)
proof
let n be Nat;
set s = ar/.n;
assume
A6: n in dom p;
then consider T be DecoratedTree such that
A7: T = p.n and
A8: r.n = T.{} by TREES_3:def 18;
rng p c= TS D & p.n in rng p by A6,FINSEQ_1:def 4,FUNCT_1:def 3;
then reconsider T as Element of TS(D) by A7;
A9: rng r c= [:the carrier' of S,{the carrier of S}:] \/ Union (coprod
X) & r.n in rng r by A3,A6,FINSEQ_1:def 4,FUNCT_1:def 3;
per cases by A9,XBOOLE_0:def 3;
suppose
A10: r.n in [:the carrier' of S,{the carrier of S}:];
then consider
o1 being OperSymbol of S, x2 being Element of {the carrier of
S} such that
A11: r.n = [o1,x2] by DOMAIN_1:1;
A12: x2 = the carrier of S by TARSKI:def 1;
then the_result_sort_of o1 = ar.n by A2,A3,A6,A10,A11,Th5
.= ar/.n by A5,A3,A4,A6,PARTFUN1:def 6;
then (ex x be set st x in X.s & T = root-tree [x,s]) or ex o be
OperSymbol of S st [o,the carrier of S] = T.{} & the_result_sort_of o = s by A8
,A11,A12;
hence thesis by A7;
end;
suppose
A13: r.n in Union (coprod X);
then r.n in coprod(ar.n,X) by A2,A3,A6,Th5;
then r.n in coprod(s,X) by A5,A3,A4,A6,PARTFUN1:def 6;
then
A14: ex a be set st a in X.s & r.n = [a,s] by Def2;
reconsider t = r.n as Terminal of D by A13,Th6;
T = root-tree t by A8,DTCONSTR:9;
hence thesis by A7,A14;
end;
end;
hence thesis by A5,A3,A4,Th9;
end;
A15: dom r = Seg len r by FINSEQ_1:def 3;
reconsider r as FinSequence of OU;
reconsider r as Element of OU* by FINSEQ_1:def 11;
assume
A16: p in ((FreeSort X)# * (the Arity of S)).o;
then
A17: dom p = dom ar by Th9;
A18: Union (coprod X) misses [:the carrier' of S,{the carrier of S}:] by Th4;
A19: for x be set st x in dom r holds (r.x in [:the carrier' of S,{the
carrier of S}:] implies for o1 be OperSymbol of S st [o1,the carrier of S] = r.
x holds the_result_sort_of o1 = ar.x) & (r.x in Union (coprod X) implies r.x in
coprod(ar.x,X))
proof
let x be set;
assume
A20: x in dom r;
then reconsider n = x as Nat;
A21: ex T be DecoratedTree st T = p.n & r.n = T.{} by A1,A20,TREES_3:def 18;
set s = ar/.n;
p.n in FreeSort(X,s) by A16,A1,A20,Th9;
then consider a be Element of TS D such that
A22: a = p.n and
A23: (ex x be set st x in X.s & a = root-tree [x,s]) or ex o be
OperSymbol of S st [o,the carrier of S] = a.{} & the_result_sort_of o = s;
A24: s = ar.n by A17,A1,A20,PARTFUN1:def 6;
thus r.x in [:the carrier' of S,{the carrier of S}:] implies for o1 be
OperSymbol of S st [o1,the carrier of S] = r.x holds the_result_sort_of o1 = ar
.x
proof
assume
A25: r.x in [:the carrier' of S,{the carrier of S}:];
A26: now
dom coprod(X) = the carrier of S by PARTFUN1:def 2;
then (coprod(X)).s in rng coprod(X) by FUNCT_1:def 3;
then
A27: coprod(s,X) in rng coprod(X) by Def3;
given y be set such that
A28: y in X.s & a = root-tree [y,s];
r.x = [y,s] & [y,s] in coprod(s,X) by A22,A21,A28,Def2,TREES_4:3;
then r.x in union rng coprod(X) by A27,TARSKI:def 4;
then r.x in Union (coprod X) by CARD_3:def 4;
hence contradiction by A18,A25,XBOOLE_0:3;
end;
let o1 be OperSymbol of S;
assume [o1,the carrier of S] = r.x;
hence thesis by A22,A23,A21,A24,A26,XTUPLE_0:1;
end;
assume
A29: r.x in Union (coprod X);
now
given o1 be OperSymbol of S such that
A30: [o1,the carrier of S] = a.{} and
the_result_sort_of o1 = s;
the carrier of S in {the carrier of S} by TARSKI:def 1;
then [o1,the carrier of S] in [:the carrier' of S,{the carrier of S}:]
by ZFMISC_1:87;
hence contradiction by A18,A22,A21,A29,A30,XBOOLE_0:3;
end;
then consider y be set such that
A31: y in X.s and
A32: a = root-tree [y,s] by A23;
r.x = [y,s] by A22,A21,A32,TREES_4:3;
hence thesis by A24,A31,Def2;
end;
len r = len ar by A17,A1,A15,FINSEQ_1:def 3;
then [[o,the carrier of S],r] in REL X by A19,Th5;
hence thesis by LANG1:def 1;
end;
theorem Th11:
for S be non void non empty ManySortedSign, X be non-empty
ManySortedSet of the carrier of S holds union rng (FreeSort X) = TS (DTConMSA(X
))
proof
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S;
set D = DTConMSA(X);
A1: dom (FreeSort X) = the carrier of S by PARTFUN1:def 2;
thus union rng (FreeSort X) c= TS D
proof
let x be object;
assume x in union rng (FreeSort X);
then consider A be set such that
A2: x in A and
A3: A in rng (FreeSort X) by TARSKI:def 4;
consider s be object such that
A4: s in dom (FreeSort X) and
A5: (FreeSort X).s = A by A3,FUNCT_1:def 3;
reconsider s as SortSymbol of S by A4;
A = FreeSort(X,s) by A5,Def11
.= {a where a is Element of TS(D): (ex x be set st x in X.s & a =
root-tree [x,s]) or ex o1 be OperSymbol of S st [o1,the carrier of S] = a.{} &
the_result_sort_of o1 = s};
then ex a be Element of TS(D) st a = x &( (ex x be set st x in X.s & a =
root-tree [x,s]) or ex o1 be OperSymbol of S st [o1,the carrier of S] =a.{} &
the_result_sort_of o1 = s) by A2;
hence thesis;
end;
let x be object;
assume x in TS D;
then reconsider t = x as Element of TS(D);
A6: rng t c= the carrier of D & the carrier of D = (Terminals D) \/ (
NonTerminals D) by LANG1:1,RELAT_1:def 19;
{} in dom t by TREES_1:22;
then
A7: t.{} in rng t by FUNCT_1:def 3;
A8: NonTerminals D = [:the carrier' of S,{the carrier of S}:] by Th6;
A9: Terminals D = Union (coprod X) by Th6;
per cases by A7,A6,XBOOLE_0:def 3;
suppose
A10: t.{} in Terminals D;
then reconsider a = t.{} as Terminal of D;
a in union rng(coprod X) by A9,A10,CARD_3:def 4;
then consider A be set such that
A11: a in A and
A12: A in rng(coprod X) by TARSKI:def 4;
consider s be object such that
A13: s in dom(coprod X) and
A14: (coprod X).s = A by A12,FUNCT_1:def 3;
reconsider s as SortSymbol of S by A13;
A = coprod(s,X) by A14,Def3;
then t = root-tree a & ex b be set st b in X.s & a = [b,s] by A11,Def2,
DTCONSTR:9;
then t in FreeSort(X,s);
then
A15: t in (FreeSort X).s by Def11;
(FreeSort X).s in rng (FreeSort X) by A1,FUNCT_1:def 3;
hence thesis by A15,TARSKI:def 4;
end;
suppose
t.{} in NonTerminals D;
then reconsider a = t.{} as NonTerminal of D;
consider o being OperSymbol of S, x2 being Element of {the carrier of S}
such that
A16: a = [o,x2] by A8,DOMAIN_1:1;
set rs = the_result_sort_of o;
x2 = the carrier of S by TARSKI:def 1;
then t in FreeSort(X,rs) by A16;
then
A17: t in (FreeSort X).rs by Def11;
(FreeSort X).rs in rng (FreeSort X) by A1,FUNCT_1:def 3;
hence thesis by A17,TARSKI:def 4;
end;
end;
theorem Th12:
for S be non void non empty ManySortedSign, X be non-empty
ManySortedSet of the carrier of S, s1,s2 be SortSymbol of S st s1 <> s2 holds (
FreeSort X).s1 misses (FreeSort X).s2
proof
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S, s1,s2 be SortSymbol of S;
assume that
A1: s1 <> s2 and
A2: (FreeSort X).s1 /\ (FreeSort X).s2 <> {};
consider x being object such that
A3: x in (FreeSort X).s1 /\ (FreeSort X).s2 by A2,XBOOLE_0:def 1;
set D = DTConMSA(X);
A4: (FreeSort X).s1 = FreeSort(X,s1) by Def11;
A5: (FreeSort X).s2 = FreeSort(X,s2) by Def11;
x in (FreeSort X).s2 by A3,XBOOLE_0:def 4;
then consider b be Element of TS D such that
A6: b = x and
A7: (ex x2 be set st x2 in X.s2 & b = root-tree [x2,s2]) or ex o2 be
OperSymbol of S st [o2,the carrier of S]=b.{} & the_result_sort_of o2 = s2
by A5;
x in (FreeSort X).s1 by A3,XBOOLE_0:def 4;
then consider a be Element of TS D such that
A8: a = x and
A9: (ex x1 be set st x1 in X.s1 & a = root-tree [x1,s1]) or ex o1 be
OperSymbol of S st [o1,the carrier of S] = a.{} & the_result_sort_of o1 = s1
by A4;
per cases by A9;
suppose
ex x1 be set st x1 in X.s1 & a = root-tree [x1,s1];
then consider x1 be set such that
x1 in X.s1 and
A10: a = root-tree [x1,s1];
now
per cases by A7;
case
ex x2 be set st x2 in X.s2 & b = root-tree [x2,s2];
then consider x2 be set such that
x2 in X.s2 and
A11: b = root-tree [x2,s2];
[x1,s1] = [x2,s2] by A8,A6,A10,A11,TREES_4:4;
hence contradiction by A1,XTUPLE_0:1;
end;
case
ex o2 be OperSymbol of S st [o2,the carrier of S ex|^2)*(f2 |^2)*(P`23 |^2)
the_result_sort_of o2 = s2;
then consider o2 be OperSymbol of S such that
A12: [o2,the carrier of S] = b.{} and
the_result_sort_of o2 = s2;
[o2,the carrier of S] = [x1,s1] by A8,A6,A10,A12,TREES_4:3;
then
A13: the carrier of S = s1 by XTUPLE_0:1;
for X be set holds not X in X;
hence contradiction by A13;
end;
end;
hence contradiction;
end;
suppose
ex o1 be OperSymbol of S st [o1,the carrier of S] = a.{} &
the_result_sort_of o1 = s1;
then consider o1 be OperSymbol of S such that
A14: *g4(gf2 |2)*P` |^)
A15: the_result_sort_of o1 = s1;
now
per cases by A7;
case
ex x2 be set st x2 in X.s2 & b = root-tree [x2,s2];
then consider x2 be set such that
x2 in X.s2 and
A16: b = root-tree [x2,s2];
[o1,the carrier of S] = [x2,s2] by A8,A6,A14,A16,TREES_4:3;
then
A17: the carrier of S = s2 by XTUPLE_0:1;
for X be set holds not X in X;
hence contradiction by A17;
end;
case
exo2 ofSst[,carrier Sb
the_result_sort_of o2 = s2;
hence contradiction by A1,A8,A6,A14,A15,XTUPLE_0:1;
end;
end;
hence contradiction;
end;
;
definition
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S, o be OperSymbol of S;
func DenOp(o,X) -> Function of ((FreeSort X)# * (the Arity of S)).o, ((
FreeSort X) * (the ResultSort of S)).o means
:Def12:
for p be FinSequence of TS
(DTConMSA(X)) st Sym(o,X) ==> roots p holds it.p = (Sym(o,X))-tree p;
existence
proof
set =g4*|2*P13|2*R`3)(`_ ^)((`3_3|3)
ResultSort of S)).o, D = DTConMSA(X), O = the carrier' of S, rs =
the_result_sort_of o, RS = the ResultSort of S;
defpred P[object,object] means
FinSequence of TS st p = 1holds$ =
(Sym(o,X))-tree p;
A1: for x be object st x in AL ex y be object st y in AX & P[x,y]
proof
let x be object;
assume
A2: x in AL;
then reconsider p = x +gf1|2*P` |^)
Sym(o,X) ==> roots p by A2,Th10;
then reconsider a = (Sym(o,X))-tree p as Element of TS D by
DTCONSTR:def 1;
take y = (Sym(o,X))-tree p;
o in O;
then o in dom ((FreeSort X) * RS) by PARTFUN1:def 2;
then (4(gf2 |2*P_ |2*R13)(`_ |2)((`_3 |3)
A3: AX =(FreeSort X).(RS.o) by FUNCT_1:12
.= (FreeSort X).rs by MSUALG_1:def 2
.= FreeSort(X,rs) by Def11;
a.{} = Sym(o,X) by TREES_4:def 4;
hence y AX A3;
thus thesis;
end;
consider f be Function such that
A4: dom f = AL & rng f c= AX & for x be object st x in AL holds P[x,f.x]
from FUNCT_1:sch 6(A1);
reconsider g = f as Function of AL,rng f by A4,FUNCT_2:1;
reconsider g as Function of AL,AX by A4,FUNCT_2:2;
take g;
let p be FinSequence of TS D;
assume Sym(o,X) ==> roots p;
then p in AL by Th10;
hence thesis by A4;
end;
uniqueness
proof
setAL (X *( f S).,AX (FreeSort )*(he
ResultSort of S)).o, D = DTConMSA(X);
let f,g be Function of AL, AX;
assume that
A5: for p be FinSequence of TS D st Sym(o,X) ==> roots p holds f.p =
(Sym(o,X))-tree p and
6 pbe FinSequence of TS D st Sym(o,X) = roots p holdsg.p=
(Sym(o,X))-tree p;
A7: for x be object st x in AL holds f.x = g.x
proof
let x be object;
assume
A8: x in AL;
then reconsider p = x as FinSequence of TS(D) by Th8;
A9: Sym(o,X) ==> roots p by A8,Th10;
then f.p = (Sym(o,X))-tree p by A5;
hence thesis by A6,A9;
end;
thus thesis by A7;
end;
end;
definition
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S;
func FreeOper(X) -> ManySortedFunction of (FreeSort X)# * (the Arity of S),
(FreeSort X) * (the ResultSort of S) means
:Def13:
for o be OperSymbol of S holds it.o = DenOp(o,X);
existence
proof
defpred P[object,object] means
for o be OperSymbol of S st $1 = o holds $2 =
DenOp(o,X);
set Y = the carrier' of S;
A1: for x be object st x in Y ex y be object st P[x,y]
proof
let x be object;
assume x in Y;
then reconsider o = x as OperSymbol of S;
(oX;
thus thesis;
end;
consider f be Function such that
A2: dom f = Y & for A2: dom f = Y & for x^2)*-R3_3|^))
sch 1( A1);
reconsider f as ManySortedSet of Y by A2,PARTFUN1:def 2,RELAT_1:def 18;
for x be object st x in dom f (g4*gf2 |2)(13 ^)(R13)(`33|2
proof
let x be object;
assume x in dom . -g4*gf2 |2)P23|2))*R`_ ^)
then reconsider o = x as OperSymbol of S;
f.o = DenOp(o,X) by A2;
-g4gf1**(P`13*P`_)*-R`_3|3)
end;
then reconsider f as ManySortedFunction of Y by FUNCOP_1:def 6;
for x be object st x in Y holds f.x is Function of ((FreeSort X)# * (the
Arity of S)).x, ((FreeSort X) * (the ResultSort of S)).x
proof
x object;
assume x in Y;
then reconsider o = x as OperSymbol of S;
f.o = DenOp(o,X) by A2;
hence thesis;
;
then reconsider
f as ManySortedFunction of (FreeSort X)# * (the Arity of S), (
FreeSort X) * (the ResultSort of S) by PBOOLE:def 15;
fjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
let o be OperSymbol of S;
thus --(g4*gf1**(`1_)*P`))*R`3_3|3)
end;
uniqueness
proof
let A,B be +(gf1 |^2)*(P`1_3 |^2)*(-(R`3_3 |^3))
FreeSort X) * (the ResultSort of S);
assume that
A3: for o be OperSymbol of S holds A.o = DenOp(o,X) and
A4: for o be OperSymbol of S holds B.o = DenOp+gf1 |2*P`13|2*-R |3))
for i be object st i in the carrier' of S holds A.i = B.i
proof
let be object;
assume i in the carrier' of S;
then reconsider s = i as OperSymbol of S;
A.s = DenOp(s,X) by A3;
hence thesis by A4;
end;
hence thesis;
end;
end;
definition
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S;
a overS
MSAlgebra (# FreeSort(X),
FreeOper(X) #);
coherence;
end;
registration
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S;
cluster FreeMSA(X) -> strict non-empty;
coherence by MSUALG_1:def 3;
nd
definition
let S be non void non empty ManySortedSign, X let S be non void non empty ManySortedSign, X be
the carrier of S, s be SortSymbol of S;
func FreeGen(s,X) -> Subset of (FreeSort(X)).s means
:Def15:
be holds xinit iff sta X. &x=roottree [,s]
existence
proof
defpred P[object] means ex a be set st a in X.s & $1 = root-tree [a,s];
set D = DTConMSA(X);
consider A be set such that
A1: for x being object holds x in A iff x in (FreeSort(X)).s & P[x]
from XBOOLE_0:
sch 1;
A c= (FreeSort(X)).s
by A1;
)sjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
for x holds x in A iff P[x]
proof
dom coprod(X) = the carrier of S by PARTFUN1:def 2;
then (coprod(X)).s in rng coprod(X) by FUNCT_1:def 3;
then
A2: coprod(s,X) in rng coprod(X) by Def3;
A3: Terminals D = Union (coprod X) by Th6;
let x;
thus x in A implies P[x] by A1;
set A = {aa where aa is Element of TS(D): (ex x be set st x in X.s & aa
= root-tree [x,s]) or ex o1 be (g4*gf2 ^)*P`_3 |2)*R13)(`_ ^))by
& the_result_sort_of o1 = s};
assume
A4: P[x];
considera be set that
A5: a in X.s and
A6: x = root-tree [a,s];
A7: (FreeSort X).s = FreeSort(X,s) by Def11;
set sa = [a,s];
sa in coprod(s,X) by A5,Def2;
then sa in union rng coprod(X) by A2,TARSKI:def 4;
A8: sa in Terminals D by A3,CARD_3:def 4;
then reconsider sa as Symbol of D;
reconsider b = +g4*(gf2 |^2)*(P`2_3*R`3|3)
b in A by A5;
hence thesis by A1,A4,A6,A7;
end;
hence thesis;
end;
uniqueness
(gf1gf2(`_)(`3*_3 ^java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
let A,B be Subset of (FreeSort(X)).s;
assume that
A9: for x be set holds x in A iff ex a be set st a in X.s & x =
root-tree [a,s] and
A10: for x be set holds x in B +(-(gf1 |^2)*(P`1_3 |^2)*(R`3_|^)
root-tree [a,s];
thus A c= B
let x be object;
assume x in A;
ex be a in . &x =root-reea,] ;
hence thesis by A10;
end;
let x be object;
assume x in B;
then ex a be set st a in X.s & x = root-tree [a,s] by A10;
hence thesis by A9;
end;
end;
registration
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S, s be SortSymbol of S;
cluster FreeGen(s,X) -> non empty;
coherence
proof
consider x being object such that
A1: x in X.s by XBOOLE_0:def 1;
ex a st a in .s&root-ree xs]=root-ree [a,]by ;
hence thesis by Def15;
end;
end;
theorem Th13:
for S be non void non empty ManySortedSign, X be non-empty
ManySortedSet of the carrier of S, s be SortSymbol of S holds +g*gf2|)P1 ^)R13)R_|) 7
root-tree t where t is Symbol of DTConMSA(X): t in Terminals DTConMSA(X) & t`2
= s}
roof
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S, s be SortSymbol of S;
set D = DTConMSA(X), A = {root-tree t where t is Symbol of D +g4**gf2P23*33)R13*33 ^)
Terminals D & t`2 = s};
thus FreeGen(s,X) c= A
let x be object;
assume x in FreeGen(s,X);
then consider a be set such that
A1: a in X.s and
A2: x = root-tree [a,s] by Def15;
A3: [a,s] in Terminals D by A1,Th7;
then reconsider t 3|2*R`_ ^)
t`2 = s;
hence thesis by A2,A3;
end;
letx eobject
assume x in A;
then consider t be Symbol of D such that
. (gf1 |2)*(`_*R13-`_*R3)|)*`_3java.lang.StringIndexOutOfBoundsException: Range [61, 62) out of bounds for length 61
A5: t in Terminals D and
A6: t`2 = s;
consider s1 be SortSymbol of S, a be set such that
A7: a in X.s1 and
A8: t = [a,s1] by A5,Th7;
s = s1 by A6,A8;
hence thesis +(4*f1*(`_3*P23)(R33|3java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
end;
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier +g4*|2*(13|*R13)(`3|) :java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
func FreeGen(X) -> GeneratorSet of FreeMSA(X) means
::
for s be SortSymbol of S holds it.s = FreeGen(s,X);
existence
proof
deffunc F(Element of S)=FreeGen($1,X);
set FM = FreeMSA(X), D = DTConMSA(X);
consider f be Function such that
A1: dom f = the carrier of S & for s be Element of S holds f.s = F(s)
from FUNCT_1:sch 4;
f ManySortedSet of of A1,ARTFUN1:ef 2
,RELAT_1:def 18;
f c= the Sorts of FM
proof
let x be object;
assume x in the carrier of S;
then reconsider s = x as SortSymbol of S;
. (,X)by A1;
hence thesis;
end;
then reconsider f as MSSubset of FM by PBOOLE:def 18;
the Sorts of GenMSAlg(f) = the Sorts of FM
proof
defpred P[set] means $1 in union rng (the Sorts of GenMSAlg(f));
Sorts GenMSAlg()is MSSubsetof FM by :def9java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
then
:Sorts fc= Sorts ofFM by PBOOLE:def18java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
A3: for nt being Symbol of D, ts being FinSequence of TS(D) st nt == (gf2^)(`_ `_))(R |^))by RLVECT_15
roots ts & for t being DecoratedTree of the carrier of D st t in rng ts holds P
[t] holds P[nt-tree ts]
proof
set G = GenMSAlg
Union coprod (X qua ManySortedSet of the carrierS)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
let ntbe ofD ts be FinSequence of TS();
assume thatP`3 |2)R33|3
A4: nt ==> roots ts and
A5,, ,XCMPLX_0,XREAL_0,REAL_1,MATRIXR1,
olds P[t;
reconsider sy = nt requirements NUMERALS,SUBSET,ARITHM, REAL;
: [nt,rootsts]in theRules of DbyA4,LANG1:def 1;
reconsider rt roots ts asElement fOU*by ZFMISC_18;
[sy,rt REL(X)by ,LANG1def 1;
then sy in [:the carrier' of attr Mis Negative means
consider
o being OperSymbolof S,x2 Element of {the carrier of
S}such that
pred is_less_or_equal_with M2means
let M be Matrix of REAL;
Def7:
[,roots ts]in EL()by A4,LANG1:def ;
then
A9: len rt = len A1 for i,j st [,j] inIndices M1 M1*ij) Fi,j from
theSorts ofas MSSubsetof FM by MSUALG_2:def
dom B thecarrier of byPARTFUN1def;
11 roots ts)=dom ts byTREES_3: 18;
hence thesis by VECTSP_1:def 5;
then
A12:dom(B*ar)=dom ar byA10,RELAT_1:27;
Seglen ar = dom ar by FINSEQ_1:def 3;
then
14 dom ts =dom ar by A6,A7,A8,A11Th5;
A15:for being object st xin dom (B *ar)holds ts.x in B*ar)x
proof
let x A3: for i,j st [i,] in Indices |:a*M:| holds |:a*M:|*(|a.||M:|
assume
A16: x in dom (B * ar);
then reconsider n x asNat;
A17: ts.n in rng ts by A12,A11,A9,A13,A16,FUNCT_1A7:|M: =IndicesM by Th5;
rng ts c= TS D by FINSEQ_1:def 4;
henreconsider T = ts.x as Element of TS(D) by A17;
A9:|a*:|(i,j)=.(a*)*i,j). by A6,Def7
then =|..||.M*(i,j).|by COMPLEX1:65;
18 T in Aand
A19: A in rng (the hence thesis;
set b =ar/n,A1 ={a where ais Elementof TS D: (exxbe set st x
in X.b &a=root-ree [,b])or ex o OperSymbol of S st o,he carrierof
] = a.{} & the_result_sort_of o = b};
A20: A1 = FreeSort(X,b) .= (FreeSortp
A21:ext DecoratedTree t = ts.n & rt.n = t.{ by A12,A11,A9,A13,A16
,TREES_3:def for i, st [i,j] in Indices (-) holds -M)*i,j>
consider s be object such that
A22: s in dom(the Sorts of G) and
A23: (the Sorts of G).s = A by A19,FUNCT_1:def 3;
reconsider s as SortSymbol of S by A22;
A24rt =[the carrier'of S{the carrier of S}:]\/Union (
oprodX)&rt.n inrng rt by ,A9,A13,16,FINSEQ_1:def 4FUNCT_1:def 3;
now
per cases hencethesis byA1,3Th2;
suppose
rtn java.lang.StringIndexOutOfBoundsException: Range [22, 21) out of bounds for length 63
o1 beingOperSymbolof ,x2 being of {the
carrier of S} such that
A27:rtn =[o1,x2] by DOMAIN_11java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
A28: x2 = the carrier of S by TARSKI:def ;
then
the_result_sort_of o1 = ar.n by A6,A7,A8,A12,A11,A14,A16,A26,A27
,Th5
.= (=gf1|2*P33R3-`_*R`)|2java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
(X.byA20 (`_3(_3 |)(R3_)
end:(-2)=:Segn,Seg n: byMATRIX_0:24;
suppose
A29:rt. in Union (coprodX);
(4(f2 |)(`13|2)R`)RR3_3|)
then rt. M1*i,)+2*i,)>0 by XREAL_1:2java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
then
: ex be set sta in X.& rt. =[a,b] by Def2;
e tt= rt. as Terminal of D by A29,Th6; =(f1|(P*`1_3-P`1_*R3_)
T root-treebyA21,TCONSTR:9
java.lang.StringIndexOutOfBoundsException: Range [21, 14) out of bounds for length 51
nd;
A4: [i,j] in Indices (M1+M2);
: now
assume b <> s;
byA2,A4,ATRIXR125;
A32: (FreeSort X) isPositive &M2isNegative |M2:|java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
(the Sorts of G).s c= (the SortsA3:|:M2:|is_less_than |:M1:|
hence A18,,A25A32XBOOLE_0:;
end;
(B * ar)A7:[i,j]in Indices (M1+M2);
|ij<:|*(i,j)by A3;
hencethen|.2*ij).||M1*ij.java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 11
endM2*i,j)< by ,A4A5,A7
(i,j ,A6A5,;
of =thecarrier'ofS
h byA6A5,MATRIXR1;
java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
A34: Sym(o,XA:Indices M2=[Seg n,Seg n: MATRIX_0:;
:ef ;
AR.o=ar byMSUALG_1:ef ;
(B*ar) byTh1;
BHo by,A9,13A15,CARD_39
dom DenOp(o,Xhthesisjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 33
then ts in dom DenOp(o,Xend;
then ts in (dom DenOp(o,X)) /\ (BH.o) java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
then
A36: ts in dom (DenOp(o,XA5 Indices M1 [Seg n, Seg : & len M1=len M2 by Lm3,MATRIX_0:;
(DenOp(o,X |B.o).s DenOpo,X).ts byFUNCT_1:47
. . *i)M2*(,))byA1,;
then
: nt- ts inrng (o,FM).) A36java.lang.StringIndexOutOfBoundsException: Range [66, 65) out of bounds for length 72
RSproof
then
A38: (B * RS).o = B.rs by FUNCT_1:12;
B is opers_closed a*M*j)> byA1XREAL_1:129java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
then B is_closed_ono by +g4*gf2|2*P`3|2)(R_)*3_3|2java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
then
rng ((o,FM))|BH.))c (B * RS by ALGSTR_17
B.sin rng B by A10,FUNCT_1:ef ;
hence thesis by A39,A37,A38,TARSKI:def 4;
end;
A40: for sh thesis;
proof
let t be Symbol of D;
ssume Terminals D
then t in Union (coprod X) byA2:M Positive;
then t in union rng(coprod X) by CARD_3:def 4;
then considerAbe set such
A41: t in AM*i,j))<*-)by XREAL_1:69;
y :def4
ers be object such
A43: s in dom (coprod X)and
A44: (coprod X).s = A by A42,FUNCT_1:def 3;
reconsider s as java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 22
A =coprod(s,)byA44java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
then ex thesis ,A4,6,MATRIXR125java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
then
: roottree inFreeGen(sX)byDef15;
fisMSSubsetof GenMSAlgf)by +(g4*gf1*gf2*(P`2_3)*(P`3_3)*(R`1_3))*(R`3_32
thenf c the Sorts of GenMSAlg(f)byPBOOLE:def ;
then fA5 i,j Indices(M1+2)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
then
A46: FreeGen(s,X) c= (the Sorts M1(ij)-2(,)byA2,3A5,;
rts bydef2;
then
Positive &M2 Negative&|M1:|is_less_than|:M2:|implies
FUNCT_1:def 3;
hencethesis by A46,A45,TARSKI: 4;
:for java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 73
:sch7(40proof
A48: union rng(java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 46
roof
set D = DTConMSA(X);
assume x in union rng(the Sorts of FM);
then consider A be set suchthat
in java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
A50: A java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 7
: M1is_less_than M2;
:s reeSort X)
A52:(FreeSort X). byA50,UNCT_1:def3;
reconsider let i,j;
+(g4**f2*2_))*`_3*13)(33|2
. {a where a is Element of (D): (ex be set st x in X.s & a =
java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 78
the_result_sort_of o1 =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
then ex a be isjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 36
root-ree[x,] or ex java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 20
the_result_sort_ofo1 =s)by A49;
hence thesis by A47;
nd
of;
reconsider< Mis ositive implies a2P`*R3)*`_)
java.lang.StringIndexOutOfBoundsException: Range [3, 2) out of bounds for length 18
java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 7
letabe ;
assume
A53: +(4*1gf2P_)(P`3_)(13)(R`_|2java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
the carriera> M s Negativeimplies a* is Negative
(heof. rng(he ofFM) by : java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
thena inunion rng tSorts java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 66
thenconsiderthat
A54: a in A and
A55: inrng (the Sorts ofGenMSAlg(f) byA48,TARSKI:def ;
consider b be object such that
A56: b in dom ( hence thesisby A3,A4,Th4;
A57: (the Sorts of GenMSAlg(f)).end;
reconsider b as SortSymbol of S by A56;
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 11
>s;
then (FreeSort X).s misses (FreeSort X).b by +proof
then
A58: FreeSortX.s /( X)b ={;
(the Sortsend
hence contradiction by java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 0
end;
hence hence :ef3
end;
then reconsider f as GeneratorSet of FM by Def4;
take f;
thus thesis by A1;
end;
uniqueness
proof
let A,B be GeneratorSet of FreeMSA(X);
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 15
A59 EC_PF_122
A60: for s be SortSymbol of S holds B.s = FreeGen(s,X);
for i be object st i in the java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 4
proof
let i be object;
assume i in the carrier of S;
thenfor ij st[j Indices(java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 60
. (s,) by A59;
hence thesis bytheorem
end;
hence thesis;
end;
end;
theorem
then M(,j)>by A2A3 +4(gf2 |^)(13 |)R`1_)*R33 |)
ManySortedSet of the carrier of hence thesis A3,4,h4;
proof
let
the carrier of S;
let x be object;
assume x in the carrier of S;
then reconsider s = x as SortSymbolof S;
thesis;
end;
theorem
for non non empty anySortedSign, be non-mpty
ManySortedSet of the carrier of S holds unionend;
where tjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
proof
let S bei st [,j] inIndices (*)holds (a*)* by :def 3
he carrier of S;
set D = java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 10
Symbol of D : t in Terminals D};
thus A c= B
proof
let x be object;
assume x in A;
considerbeset that
A1: x in C andA3 Indices (a* IndicesM byMATRIXR128
A2: C in rng FreeGen(X)P proof
consider s be object such that
3 in ()and
A4: (FreeGen(X)).s = C by A2;
reconsider s as SortSymbol of S by A3;
C = end;
. {oot- t where t is Symbol of D : t in Terminals D &t2 = s}
by |:M:|is Nonnegative
hen
ex t a
thesis
end;
let x be object nd;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 0
then consider t be M is Nonpositive impliesM)is Nonnegative
A5: x = root-tree t and
A6: t inhence thesis by A2,A4,MATRIXR1:25;
consider s be SortSymbol of S, a be set such that
A7: t = [a,s] by A6,Th7;
t`2 = s by A7;
then
x root-tree tt where ttis of D : ttin Terminals D tt`2 =
then x:Indices(1+M2)[Seg n Segn: by :24
then
A8: for i,j [i,j]inIndices (M1+2)holds (M1+2)*i,j)>java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
(X) = the carrier of S by PARTFUN1:def 2;
then (FreeGen(X)).s in rng (FreeGen(X)) by FUNCT_1:def 3;
hence thesis by A8,TARSKI:def 4;
end;
definition
let S be non void non empty ManySortedSign, Xthen *i,+2(,j>0 byXREAL_1:60;
the carrier of S, s be SortSymbol ofend;
Reverse(sX - Functionof (s,X),X. means
:java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
for t be
f DTConMSA() st root-tree t in FreeGen(s,X) holds it.(root-tree t) = t
`1;
existence
proof
s (gf1 |^*33 |)(R13|2java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
defpred P[object,object] means
for t be Symbol of D st $1 f-g2*gf1|2)*P33(R1)*(`_)*R3_)*R`33)
= t`1;
A1:for be object st x in A ex be object sta X.s & P
proof
let x be object;
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
then
x in {root-tree t where t is Symbol of D: t in Terminals D & t`2 = s
} by Th13;
then consider t be Symbol of D such that
A2: x java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for length 12
A3: t in Terminals D and
A4: t`2 = s;
consider s1 be SortSymbol of S, a be set such that
A5: a in X.s1 and
A6: t = [a,s1] by A3,Th7;
take a;
thus a in X.s by A4,A5,A6;
let t1 be Symbol of D;
assume x = root-tree t1;
then t = t1 by A2,TREES_4:4;
hence thesis assume i,j]in (a*;
end;
consider f be Function such that
A7: dom f = A & rng f c= X.s & forhencethesisby A3Th4;
from java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 4
reconsider asFunction ofA,Xsby ,:2java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
take f;
l ofD;
assume root-tree t in A;
hencethesis byA7java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
end;
uniqueness
ta((,j)= A1;
set D e;
Terminals D & t`2 = s};
let A,Bis Nonpositive implies a* is Nonnegative
assume thatA1:a<=0 and
A8:for t be Symbol of3(P3_)*13)*R` |2java.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
holdsproof
A9: for i,j in Indices(a*);
holds B.
A10: FreeGen(s,X) = C by Th13;
A11: for i be object st i in C holds A.i = B.i
proof
let i be object;
assume
A12: i in C;
then consider t be Symbol of D such that
A13: i =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
t in Terminals
s;
A.-)=t`1 A8A10,A12,A13;
hence thesis by3*P`_)(`_)*R`_ ^)
nd;
dom A let i
hence thesis by A11,FUNCT_1:2;
end;
end;
efinition
S be non void non emptyManySortedSign,X non-empty ManySortedSet of
he of S;
of FreeGen(X)Xmeans
:Def18then a*1 is &b*2is by java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
for s be SortSymbol of S holds it.s = Reverse(s,X);
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
proof
s
for
everse(s,X;
set I = the carrier of S, FG let i,j
1:fori object sti inI java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 54
proof
let i be object;
assume i in I;
then:Indices M2=[ .=(gf1 |)*(33|^*R_ |^)3)
take java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 73
let S;
assume s1 =+g4gf1*f2(`23*P3*R13)(`MATRIXR1:;
hence thesis;
end;
consider H beFunction
A2: dom
sch
reconsider H as ManySortedSetby def3
Hholds .xFunction
roof
assume i in dom H;
then reconsider s = i as SortSymbol of ij]inA5: [i,j] in IndicesP13*P_3)(1)*R`_ |2java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
y
thesis;
end;
then reconsider H as ManySortedFunction
foribe object i in I holds iisFunctionofFG.X.
proof
let i be object;
assume i in I;
thenreconsider =i as of S;
(FreeGen X)s = FreeGen(s,X) & H.i = A11
hence thesis;
end;
then reconsider H as ManySortedFunction of FG,X by PBOOLE:def 15;
take H;
let s be SortSymbol of S;
thus thesis by A2;
end;
uniqueness
proof
let A,B be ManySortedFunction of FreeGen(X),X;
assume that
s be SortSymbol of S holds A.s = Reverse(A3=g4(^*P_ ^)(R23|2*R))(*gf2|2)(P`_ |^)
java.lang.StringIndexOutOfBoundsException: Range [12, 2) out of bounds for length 54
oriobject st iin carrier S holdsAi .i
proof
let i be object;
inthe carrier of S;
then reconsider s = i as SortSymbol of S;
A.A1:Indices M1[Seg n n:]by MATRIX_024
hence thesis byA4;
nd;
hence thesis;
end;
end;
definition
let byVECTSP_1:
the carrier of S, A be non-empty ManySortedSet of the carrier of S, F be
ManySortedFunction of FreeGen(X), A, . (gf1|^)(P`_ |*R |^)(33java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
assume
1 in Terminals)(,)=||,j+MM2:*,jy :
func pi(F,A,t) -> Element of Union A means
:ef19:
for f be Function f=F.t.|*(,)+*java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 54
existence
proof
set FG = FreeGen
consider s +g4*gf2 ^ : n Segn]by 24java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
A4:IndicesM2=[Seg n,Segn: &lenM2=len byLm3,ATRIX_024;
yA1Th7
FG.s = FreeGen(s,Xforijst[,j in java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 72
then
A3 (F.s)=FreeGen(s,) FUNCT_2:
.= {root-tree tt where tt is Symbol of D: tt inthen (-)(i,j<M*i,)M3*i,)by A23_|java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
} by Th13M1- java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 75
t`2 = s by A2A1:M1- is_less_or_equal_with(2M3)
then root-tree t in dom (F.s) by A1,A3;
A4: (F.s).(root-tree t) in rng (:lenM1= M3 width M1=widthM3 by Lm3;
dom -2*f1 |^)(P1_)P3_3(_)*R_3|^)
then rng (F.s) c= A.s &ijjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
then(.s.root-tree t)in rng A by ,ARSKIdef4;
t reconsider = (F.s)(root-tree t) as Element of Union A by
CARD_3then M1*i,j)-3*(i,j)=M2*i,j)-M3*i,j)byA2,A4
take eu;
let fXREAL_1:;
ssumef .t)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
hence thesis by A2;
end;
uniqueness
proof
s be SortSymbol of S xbe set such that
X.and
:t =[x,s] by A1,Th7;
reconsider f = F.s as Function;
let a (*= M1M2 by ;
assume that
A6: for f be let ij;
[,]
A8: f = F.(t`2) by A5;
then a = f.root-reet)byA6;
encethesis by A7,A8;
end;
end;
definition
java.lang.StringIndexOutOfBoundsException: Range [29, 2) out of bounds for length 77
theA1:M1-M2 is_less_or_equal_withM3;
assume
:ex beFinSequence t = p;
func @(X,tA4:Indices (M1-2 [Seg n Seg n] by MATRIX_0:24;
A5: Indices (+g2( ^)*P`)*P`_3*R))(R`3_ ^2)
[it,the carrier of S]=tjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
existence
proof
set D [i,j]inIndices(M1-M3);
(coprod (qua ofthe of )
econsidera t asElementofOU;
consider p be FinSequence then M1*(i,j)-M3*(i,j)<=M2*(i,j) by XREAL_1:12;
A2: t ==> p by A1;
[t, hence thesis A2,5A3,7,Th3;
then reconsider p as Element of OU* by ZFMISC_1:87;
[a,p] in REL(X) by A2,LANG1:def 1;
then a in [:the carrier' of S,{the carrier of S}:] by Def7;
then consider
o being OperSymbol of S, x2 being is_less_than M2-3
such that
A3: a = [o,x2+java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
take o;
thus-(f2|^)*(13)(P3_)(R`_3 |^)*`3)
end;
uniqueness by XTUPLE_0:1;
end;
definition
S non void non empty ManySortedSign,U0 nonA8Th3;
of beFinSequence;
assume
A1: p in Args(o,U0);
func pi(o,U0,p) -> Element of Union (the Sorts of U0) equals
D:
Den(o,
U0).p;
coherence
proof
set F (,U0) S0 = he ofU0
dom F = Args(o,U0) by FUNCT_2:def 1;
then rng F c= Result(o,U0) & F.p in rng F by A1,FUNCT_1:-g8g|2*(13*P3_)(`13|2)(`3 RLVECT_1:
,RELAT_1:def 19;
then F.p in union rng S0 by TARSKI:def 4;
hence thesis by CARD_3:def 4;
end;
end;
theorem Th16:
for S be non void non empty ManySortedSign, X be non-empty
ManySortedSet of the carrier of S holds FreeGen(X) is free
let S be non void non empty ManySortedSign, X be non-empty ManySortedSet of
the carrier of S;
set D( |)(`1_3_)*`3*R`_ ^)*R`3_3)
let U1 be non-empty MSAlgebra over S, F be ManySortedFunction of FG,the
Sorts of U1;
setSAthe Sorts ofFA AR =the Arity of S,S1 the Sortsof U1,O = the
carrier' of end;
deffunc TermVal(Symbol of
deffunc NTermVal(Symbol of D, FinSequence, FinSequence) = pi(@(X,$1),U1,$3);
consider G being Function of TS(D),A1 is_less_or_equal_with M2 M3 is_less_than M4;
A1: for t being Symbol of D st t in Terminals D holds G.(root-tree t) =
()and
A2: for nt be Symbol of D, ts be FinSequence of TS(D) st nt ==> roots ts
holds .-ree ts)= (tr holds G.(nt-tree ts) = NTermVal(nt,roots`_|)
deffunc() G|(the Sortsof FA).)
hbe that
java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
holdshs =(s)from sch 3
reconsider h as ManySortedSet of java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 10
,RELAT_1:def 18java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
for s be object st s in thenM1(,j-4*j)M2*i,j)-3(j by -(g8*(gf2 |^2)*(P`1_3)*(P`3_3)*(R`1_3 |^2))*(R`3_35
proof
let s be =(f1^)(3 |)*1 |*33)
assume s indom h;
then . |(theSorts of FA).s by A3;
hence thesis;
end;
then A2: Indices (M1-M2) by RLVECT_14
;
[ means sbe SortSymbolofS 1 in( of FA).
holds (h..1in (theSorts of U1)s;
A4: for nt being Symbol of D, ts being FinSequence of TS assume
GROUP_1:def 3
holds P[nt-tree tsA10:[,j]in Indices M1-3);
proof
let nt be Symbol of D, ts be FinSequence of TS(D);
assume that
A5: nt ==> roots ts and
A6: for t being DecoratedTree of the carrier of D st t in rng ts holds P[t];
set p = G * ts, o = @(X,nt), byd java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
o, OU = [:the carrier' of S,{the carrier of S}:] \/ Union (coprod (X qua
ManySortedSet of the carrier of S)), rt then *i^)(P`__*`_3)(`1_3^*(`_3)
A7: othe carrier ofS]=nt byA5Def20;
8 [o,thecarrier of S],rt in the Rules of D 1
A9: [o,the carrier of S] = Sym(o,X);
then
A10: -2is_less_or_equal_with M3M4 M4-is_less_or_equal_withM3-
dom D (X))= ((FreeSort X) *AR. FUNCT_2:def 1;
tsindomD(,)by 22
hen
rng (DenOp (o,X)) c= ((FreeSort X) * RS).o & nt-tree A5:Indices (M4-M2)=[Seg n,Seg n:]by MATRIX_024java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
(X)by A10,:def 3,ELAT_1:def19java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
then
A11: nt-tree ts in (SA * RS).o;
set ppi = pi(o,U1,p);
A12 then (M1-2)*ij) by :def3
A13: rng ar c= the carrier of S by FINSEQ_1:def 4;
reconsider rt as Element of OUthen .(g ^*P3_)P_)
:rt =lenar byA8,;
A15: dom rt = Seg len rt by java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 6
dom S y defjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
A16java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A17 .byMSUALG_1:def1
dom S1 = the carrier of S by PARTFUN1:def 2;
then
A18: dom(S1* ar) = dom ar by A13,RELAT_1:27;
A19: dom rt = dom ts & Seg len ar VECTSP_1:3
A20: dom p = dom ts by FINSEQ_3:120;
then
21: p dom S1*ar)by ,,15,19,h5java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
A22: for x being object st x in dom (S1 * ar) holds p.x in (S1 * ar).x
proof
let x be object;
assume
A23: x in dom ( . g4(gf2 |2)(`3_3*R`_3)(P33*R`_ ^)by A1,A2,A3,Th60
then reconsider n = x as Nat;
A24: ts.n in rng ts by A18,A14,A15,A19,A23,FUNCT_1:def 3;
rng ts c= TS D by FINSEQ_1:def 4;
then reconsider t = ts.n as Element of TS(D) by A24;
: .ts A21120java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
ar.x in rng ar by A18,A23,FUNCT_1:def 3;
then reconsider s = ar.x as SortSymbol of S by A13;
A26: h.s = G | (SA.s) by A3;
dom . g4(gf2 |2)*P`_3 |2*(`3|2*R13) by GROUP_1: 3
then
A27: SA.s in rng SA by FUNCT_1:def 3;
dom G = TS D by FUNCT_2:def 1
.= union rng SA by Th11;
A28: dom ( . : M3M4 = Lm3;
ts in ( X) *AR.obyA5,A7,Th10;
then ts in product ((FreeSort X) * ar) by A17,Th1;
then ts.x in ((FreeSort X) * ar).x by A18,A16,A23,CARD_3:9;
then
A29 . (X).ar. A16,FUNCT_112;
then(.s.ij M4-;
G.t .sby ,A26,A28,UNCT_1:47;
UNCT_1:12java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
end;
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 48
A30java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
let s be
A31: dom Den(o,U1) = Args(o,U1) by FUNCT_2:def 1;
A32: dom RS = O by FUNCT_2:def 1;
SA java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 48
then dom (SA * RS) = dom RS by A12,RELAT_1:27;
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 8
then
A33:nt- ts in SA.s MSUALG_1:def ;
Args(o,U1) = (S1 (( i ]in *j<*,j
.= product (S1 * ar) by A17,Th1;
then
A34:p (,U1) (M2*,)M3()byA12A4java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
then pi(o,java.lang.StringIndexOutOfBoundsException: Range [4, 1) out of bounds for length 51
then rng Den(o,U1hence
3RELAT_1def 19;
35:ppi inResulto,)java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
assume
A36: nt-tree ts in Indices(-M3[SegnSegn: by;
= byA36java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
G.(nt-tree java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
then
A38: ppi = (G | (SA.rs)).(nt-tree ts) by A33,FUNCT_1:49;
Result(then ij)M2*j)M3*ij)M4*,) byA6A7A9,MATRIXR1:;
.= S1.(RS.o) by A30,A32,FUNCT_1:12
.S1rs MSUALG_1deflet
hence thesis by A3,A35,A38,A37;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
t beingSymbol of Dst t inDholdsProot- t]
: M1+ is_less_or_equal_with M3ionof
let t be Symbol of D;
assume
then consider s be SortSymbol of S, x be set such that
x in X.s and
s Th7;
set E = {root-tree tt where tt is Symboljava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
,a=- ;
A42: t`2 = s by A41;
then
: in by java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
let s1 be SortSymbol of S;
reconsider f = F.s hence thesis by A6,A4 byA6,A4A5,A8,Th3;
A44:
java.lang.StringIndexOutOfBoundsException: Range [7, 3) out of bounds for length 30
FG. = Eby ;
then
A43,A44F: ,RELAT_1def19
assume
A47: a in SA.s1;
A48 now
a in (A7: len M1=len M4 M1=width by java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
.
assume s <> s1;
hence contradiction by A49
end;
h.s = G | (SA.s) by proof
g mod p java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 61
i, st ij inIndices M2 holds *i,)<(-*i,)
.= f.a by A40,A42,Def19;
hencethesis byA46A;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A50: for t being DecoratedTree of the carrier of java.lang.StringIndexOutOfBoundsException: Range [0, 50) out of bounds for length 6
from :sch7A39,;
for s_M1-M2
Sorts of FA).s, (A1: Indices M1=[:Seg nIndicesM1=:Seg ,Seg
proof
let x be object;
assume x in the carrier of S;
java.lang.StringIndexOutOfBoundsException: Range [28, 4) out of bounds for length 45
A51: dom G = TS D by FUNCT_2:def 1
.= union rng .= union rng
let ij
then
A52: SA.s in then -1*i,j)<=M2*i,) byXREAL_1:26 existence
A53: h.s = G | (
then
A54:dom(h. sby A51,R:,:74;
A55:java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
rng (h.s) c= S1.s
proof
let a be object;
assume a in rng (h.s);
then M2ij)M2*i,j)M1*i, Element `12
A56: T java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 6
A57: (hM1isimplies+ java.lang.StringIndexOutOfBoundsException: Range [46, 43) out of bounds for length 46
reconsider T as for O being Element of
T in s by A53,,A52,A56,RELAT_1:62,ZFMISC_1:74;
hence thesis by A50,A57;
end;
hence then M1*(ij
end;
then reconsider h as ManySortedFunction of FA
take h;
thus A1: Indi [Seg,Seg n: Indices M2=[Seg n,Seg n]by MATRIX_024;
proof
c SA=Sbydef2
,:def 19;
then
A58: dom RS = O & dom (SA * RS) = dom RS by FUNCT_2:def then M1*i,)>0by A2,A1;
let o of suchthat
Args(o,end;
letx beElement Args(FA;
carrier' of S,{the carrier of S}:] \/ Union (coprod = gf1|2*$33*java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
ajava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Range [21, 3) out of bounds for length 33
A60: let ij
then reconsider p = x as FinSequence of TS(D) by Th8;
A61: Sym(o,X) ==> roots p by A60,Th10;
A62: @(X,Sym(o,X)) = o by Def20;
A63: dom ( thenM1*(j<0by *(1_)$`3)
A64: x in ((FreeSort X)# * AR).o by java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 6
A65: for a be object
proof
rng ar c= the carrier of S & dom SA = the carrier java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 5
Pdef 2;
then
) =dom ar byRELAT_1:7;
set rt = roots p;
let a be object;
assume
a dom pjava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
then reconsider n=a as Nat;
A68: [[o,the carrier of S],rt] in the
then reconsider rt as Element of OU M1isNonpositive&M3 M2 M3+M1 is_less_than M2
A69: len rt = len ar by A68,Th5;
A70: (:IndicesM3[:eg ,Segn] (+)[Segn n]by
ALG_3def 6;
3;
A72: Seg len rt = dom rt by FINSEQ_1:def 3;
A73: dom rt= domp &Seg len ar =domar by FINSEQ_1:def 3,REES_3:def 18 proof
p in product((FreeSort X) * ar)A i,j] M3+1)
then
(FreeSort )*ar)n by A67,A66A,A73,CARD_3:;
((FreeSort X) * ar).n = SA.(ar.n) by A67,A66,A69,A72,A73, $=[2gf4*f2,
.= SA.(ar/.n) by A67,A69,end;
byA70,A74:;
end;
dom (h#x) = dom ar by MSUALG_3:p
then
A75: G*p = h#x by A63,A65,FUNCT_1:2,MSUALG_3:6;
A76: h.rs:24;
X)#* AR exR being of EC_SetProjCo(z1z2,p P[P,Q R
( for i,jst[,j inIndices(+)holds M+M1*(j)<2*i,j)
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
rng (DenOp (o,X)) by A60,A77,FUNCT_1:def 3,RELAT_1:def 19;
Symo,)-p S *.java.lang.StringIndexOutOfBoundsException: Range [42, 43) out of bounds for length 42
PP ofProjCoGFp) such that
A78: (Sym(o,X))-tree p in SA.rs by MSUALG_1:def 2;
dom SA = the carrierA3:PP=P&PP inend;
then
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
is_less_or_equal_M1M3
.= union rng SA by Th11;
then
:dom h.) SA.rsement ProjCoGF(p) such
DA = (FreeOper(X)).o by MSUALG_1:def 6
.= DenOp(o,X) by then M1*(i,j)>=0 & M2*(iM1*i,j)= M2*i,j)<=M3*i,j) A5: QQ=&inEC_SetProjCo(z`z2p
then DA.x=(Sym(,)-tree pbyA61,Def12;
hence h. :QQ Q`_3&QQ2_ =Q3 QQ3 Q`3_ by A5;
.= pi(@(X,Sym(o,X)),U1end;
.=.hx)byA62,A75,ef21;
end;
for x objectst x in the of holds( |FG)x =Fx
proof
set hf = h || FG;
let x be object;
assume leti,;
then reconsider s = xA3:[,j in M2
A81: dom (h.s) = SA.s by then M2*(ij<*i,)+(ij)by XREAL_139
A82:dom end;
A83: FG.s = FreeGen
A84: hf.s = (h.s) | (FG.s) by Def1;
A85: for a be object st a in FG.s holds (hf.sjava.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A2 &M2 is_less_thanM3;
let a be object;
A86: h.s = G | (SA.s) let ,jjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
assume
A87: a in FG.s;
is Symbol of : tinTerminalsD & t` =
s } by A83,Th13;
then consider t be Symbol of D
A88:a = root-ree t&t in Terminals D and
A89: t s;
h..by ,,87,FUNCT_1:java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
.A:M2=:Segn, n]&len M1=lenM2
.= pi(F,S1,t) by A1,A88
.= (F.s).java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 10
end;
dom (F.s) = FG.h thesisbyA4,A5,3,6Th3
hence thesis by A82,A85end
end;
hence thesis;
end;
onempty ManySortedSign non-
ManySortedSet of the carrier of S holds FreeMSA(X) proof
proof
let S be non void non empty ManySortedSign, X be non-empty java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 32
the carrier of hencethesis by rep_pt( >(O)by,,,Th39
take FreeGen(X);
Nonpositive;
end;
let S be non void non empty ManySortedSign;
clusterA4: i,j] in Indices M2;
existence
proof
set U1 = the non-empty MSAlgebra over hence thesis by A3,A4,Th3;
set X = the Sorts then rep_pt(QQ) hence thesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
take 1is NegativeM2 -
thus thesis by Th17;
end;
end;
registration
let S be assume
ofU;
existence by Def6;
endhencethesisbyA3,Th3
theorem Th18:
MSAlgebra over S ex U0 be = java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 32
ManySortedFunction ofn n]by etgf3=gf1|2*(`33*_) -gf2|^)
proof
ManySortedSignU1 non-mpty over ;
set S1 = the Sorts of U1, FA = FreeMSAlet i,j;
reconsider fa =A6:[ij]in Indices M2-M1;
set f = Reverse(S1);
take fa;
FG is free by Th16;
then consider F be ManySortedFunction of FA,U1 such that
A1: F is_homomorphism FA,U1 and
:F|=java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
reconsider a = hence thesis;
take ajava.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
thus a is_homomorphism fa,U1 by A1;
thus
proof
let s be set;
assume s in the carrier of S;
considers0=s asSortSymbolofSjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
reconsider g = a.s
PBOOLE:def 15;
byA2,
then
A4: rng (f.end;
rng a)c=S1. by A3,RELAT_1:ef19java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
letbe object
set D = DTConMSA(S1), : M1 is Negative & M2 is_less_or_eqjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
assume in S1.;
then
tin D Th7
then reconsider t as of D;
t`2 = s0;
then
TerminalsD&`2 = s0} by A5;
. (gf1 |2*P`33*Q`_)-0GFp byALGSTR_17
A6: root-tree t in FreeGen(s0,S1) by Th13;
A7: f.s0 = Reverse(s0,S1) by Def18;
then dom (f.s0) = FreeGen(s0,S1) by FUNCT_2:defend;
then
A8: (f.s0).(root-tree t) in rng (f.s0) by A6,FUNCT_1:def 3;
(f.s0).A1:M1is_less_than M2and
.= x;
hence thesis by A4,;
end;
theorem
forgf1* >byA18EC_PF_1:;
MSAlgebraoverstrict freenon-mpty MSAlgebraover S,F be
ManySortedFunction of U0,U1 st F is_epimorphism U0,U1 & Image F = hence thesis by A6,Th4;
proof
let S be non void non empty ManySortedSign, U1 be strict non-empty MSAlgebra
over S;
consider U0 be strict gf1 *((f2|2*P13*Q3 gf1 * ((gf2 |^2)*(P`1_3)*(Q`3_3
ManySortedFunction ofU0U1 such that
A1: F is_epimorphism U0,U1 by Th18;
Image byA1SUALG_319;
hence thesis by A1;
end;
¤ Dauer der Verarbeitung: 0.44 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|