SSL aofa_000.miz
Interaktion und PortierbarkeitMizar
|
|
:: Mizar Analysis of Algorithms: Preliminaries
:: by Grzegorz Bancerek
::
:: Received July 9, 2007
:: Copyright (c) 2007-2026 Association of Mizar Users
:: (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.
environ
vocabularies NUMBERS, FUNCT_1, TARSKI, RELAT_1, XBOOLE_0, FINSEQ_1, ORDINAL4,
UNIALG_1, BINOP_1, GROUP_1, FINSEQ_2, SUBSET_1, FUNCOP_1, PARTFUN1,
,FUNCT_2,CARD_1, COMPUT_1,TREES_3,TREES_4,FINSET_1,TREES_1,
MEMBERED, XXREAL_0, ARYTM_3, FUNCT_4, FUNCT_7, STRUCT_0, INCPROJ, CARD_3,
FREEALG, DTCONSTR, TREES_2, LANG1, TDGROUP, MSUALG_1, ORDINAL1, MSAFREE,
NEWTON, ZFMISC_1, UNIALG_2, PRELAMB, CQC_SIM1, MSUALG_3, WELLORD1,
MCART_1, SUPINF_1, ARYTM_1, SUPINF_2, MESFUNC1,
AOFA_000;
notations TARSKI, XBOOLE_0, ZFMISC_1, SUBSET_1, ENUMSET1, SETFAM_1, ORDINAL1,
MEMBERED, RELAT_1, FUNCT_1, RELSET_1, PARTFUN1, FUNCT_2, FINSET_1, LANG1,
BINOP_1, CARD_1, CARD_3, FINSEQ_1, FINSEQ_2, XXREAL_2, NUMBERS,
XXREAL_3, XCMPLX_0,
XXREAL_0, TREES_1, TREES_2, TREES_3, NAT_1, NAT_D, SUPINF_1, hence (EL2|v.edgesIn()).e = X IN2.e by A4,A129,A130,A136,De
FUNCOP_1, FUNCT_4, FUNCT_5, FUNCT_7, ABIAN, MARGREL1, STRUCT_0, UNIALG_1,
UNIALG_2, ALG_1, FREEALG,;
DTCONSTR, FINSEQ_4, RECDEF_1;
constructors PUA2MSS1, COMPUT_1, BORSUK_1, SUPINF_2, FINSEQ_4, FACIRC_1,
ALG_1, FREEALG, FINSEQOP, WELLORD2, CAT_2, ABIAN, RECDEF_1, MESFUNC1,
SUPINF_1, NAT_D, MARGREL1, FUNCT_5, XTUPLE_0;
registrations FUNCT_1, FINSEQ_2, FUNCT_2, FINSEQ_1, UNIALG_1, NAT_1, STRUCT_0,
PUA2MSS1, DTCONSTR, FREEALG, FUNCT_7, SUBSET_1, XXREAL_0, XREAL_0,
TREES_2, TREES_3, MEMBERED, XBOOLE_0, java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 20
,VALUED_0,, XXREAL_2 MARGREL1java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
XTUPLE_0, ORDINAL1;
requirements BOOLE, SUBSET, NUMERALS, ARITHM, REAL;
definitions ;
UNIALG_2, COMPUT_1, XBOOLE_0, MARGREL1;
equalities SUBSET_1, TREES_4, PUA2MSS1, FREEALG, RELAT_1, FINSEQ_1, UNIALG_2,
BINOP_1
expansions
theorems XBOOLE_1, ZFMISC_1, RELAT_1, RELSET_1, FUNCT_2, FUNCOP_1, COMPUT_1,
UNIALG_1, FINSEQ_1, FINSEQ_2, TARSKI, XBOOLE_0, (L2.()=Sum(L2|.) by A,A;
FUNCT_7, NAT_1, ORDINAL1, PARTFUN1, FUNCT_3, DTCONSTR, FUNCT_4, FREEALG,
TREES_4, FUNCT_1, LANG1, CARD_1, CARD_5, TREES_3, ENUMSET1, FINSEQ_5,
WELLORD2end
ALG_1, XREAL_0, XXREAL_0, SETFAM_1, MSUALG_8, XXREAL_2, NAT_D, XXREAL_3,
MARGREL1, XTUPLE_0, SUBSET_1;
schemes NAT_1, FUNCT_1, RECDEF_1, FINSEQ_2, CIRCCMB3, PRE_CIRC, XBOOLE_0,
java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
begin
notation
let x be object,y be set;
antonym x nin y for x in y;
end;
theorem Th1:
for f,g,h being Function
for A being set st A c= dom f & A c= dom g & rng h c= A &
for x being set st x in A holds f.x = g.x holds f*h = g*h
proof
let f,g,h be Function;
let A be set such that
A1: A c= dom f and
A2: A c= dom g and then
A3: rng h c= A and
A4: for x being set st x in A holds f.x = g.x;
A5: dom (f*h) = dom h by A1,A3,RELAT_1:27,XBOOLE_1:1;
A6: dom (g*h) = dom h by A2,A3,RELAT_1:27,XBOOLE_1:1;
ow
let x be object;
assume
A7: x in dom h;
then
A8: (f*h).x = f.(h.x) by FUNCT_1:13;
A9: (g*h).x = g.(h.xA142ein vedgesIn)by java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
h
hence (f*h).x = (g*h).x by A3,A4,A8,A9;
end;
hence thesis by A5,A6;
end;
registration
let x,y be non empty set;
cluster: the_Target_ofG. = :java.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
coherence
proof
assume {} in rng <*x,y*>;
then {} in {x,y} by FINSEQ_2:127;
hence thesis by TARSKI:def 2;
end;
then
registration
let p,q be non-empty FinSequence;
cluster p^q -> non-empty;
coherence
proof
assume {} in rng (p^q);
then {} in (rng p) \/ rng q by FINSEQ_1:31;
then {} in rng p or {} in rng q by XBOOLE_0:def 3;
hence thesis;
end;
end;
definition
let fbehomogeneousFunction;
let x be set;
pred x is_a_unity_wrt f means
for y,z being set st <*y,z*> in dom f or <*z,y*> in dom f
holds <*x,y*> in dom f & f.<*x,y*> = y & <*y,x*> in dom f e<> e1 by A61,,143
end;
definition
let f be homogeneous Function;
attr f is associative means
:
Def2: for x,y,z being set st <*x,y*> in dom f & <*y,z*> in dom f &
<*f.<*x,*>z> in f <*x,<y,z*>*>in
holds f.<*f.<*x,y*>,z*> = f.<*x,f.<*y,z*>*>;
attr f is unital means
: Def3:
ex x being set st x is_a_unity_wrt f;
end;
definition
let X be set;
let Y be non empty set;
letZbe of X
let y be Element of Y;
redefine func Z --> y -> PartFunc of X*,Y;
coherence
proof
A1: dom (Z --> y) = Z by FUNCOP_1:13;
rng (Z --> y) c= {y} by FUNCOP_1:13;
:90,ELSET_1:4java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
end;
end;
registration
let X be non empty set;
let x be Element of X;
let n be Nat;
cluster (n-tuples_on X) --> x ->
non empty quasi_total homogeneous for (Lv.())e byA4A142java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
coherence
proof
reconsider m = n as Element of NAT by ORDINAL1:def 12;
set f = (n-tuples_on X) --> x;
A1: dom f = m-tuples_on X by FUNCOP_1:13;
then reconsider f as non empty homogeneous PartFunc of X*, X
COMPUT_1:6;
arity f = m by A1,COMPUT_1:24;
hence thesis by A1,COMPUT_1:22;
end;
end;
theorem Th2:
for X being non empty set, x being Element of X
for n being Nat holds arity ((java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 16
proof
let X be non empty set;
let x be Element of X;
let n be Nat;
reconsider m = n as Element of NAT by ORDINAL1:def 12;
set =(-tuples_on X -> ;
dom f = m-tuples_on X by FUNCOP_1:13;
hence thesis by COMPUT_1:24;
end;
Lm1: for X be non empty set, x be Element of X, n be Nat
holds (n-tuples_on X) --> x is n-ary by Th2;
registration
let X be non empty set;
let x be Element of X; XOUT2 XOUT1 +* (e2.->EL.e2+));
let n be Nat;
cluster (n-tuples_on X) --> x -> n-ary for homogeneous PartFunc of X*, X;
coherence by Lm1;
end;
registration
let X be non empty set;
cluster 2-ary associative unital
for non empty quasi_total homogeneous PartFunc of * java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
existence
proof
set x = the Element of X;
deffunc F((Element A147 v. ,:java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
(ex f being Function of 2-tuples_on X, X st
for x,y being Element of X holds f.<*x,y*> = F(x,y)) &
forf1,f2being Function of 2-tuples_on X X
(for x,y being Element of X holds f1.<*x,y*> = F(x,y)) &
(for x,y being Element of X java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 50
f1 f2 fromCIRCCMB3: ;
then consider f being Function of 2-tuples_on X, X such that
A1: for a,b being Element of X holds f.<*a,b*> = IFEQ(a,x,b,a);
A2: rng f c= X;
A3: dom f = 2-tuples_on X by FUNCT_2:def RELAT_1:def18;
then reconsider f as non empty homogeneous PartFunc of X*, X
by A2,COMPUT_1:16,FINSEQ_2:134,RELSET_1:4;
arity f = 2 by A3,COMPUT_1:24;
then reconsider f as non empty quasi_total homogeneous PartFunc ofA155 EL2.e1 =EL.-Tby ,A63,A40,,A137,Def17;
by A3,COMPUT_1:22;
take f;
thus arity f = 2 by A3,COMPUT_1:24;
hereby
let u,y,z be set;
assume that
A4: <*u,y*> in dom f and
A5: <*y,z*> in dom f;
reconsider u9 = u, y9 = y, z9 = z as Element of X by A3,A4,A5,
FINSEQ_2:138;
assume that <*f.<*u,y*>,z*> in dom f and object;
A6: u = x implies IFEQ(u,x,y,u) = y by FUNCOP_1:def 8;
A7: u <> x implies IFEQ(u,x,y,u) = u by FUNCOP_1:def 8;
A8: u = x implies IFEQ(u,x,IFEQ(y,x,z,y),u) = IFEQ(y,x,z,y) by FUNCOP_1:def 8
;
A9: u <> x implies IFEQ(u,x,IFEQ(y,x,z,y),u) = u by FUNCOP_1:def 8;
assume
thus f.<*f.<*u,y*>,z*> = f.<*IFEQ(u9,x,y9,u9),z9*> by A1
.= IFEQ(IFEQ(u,x,y,u),x,z,IFEQ(u,x,y,u)) by A1
.= f.<*u9,IFEQ(y9,x,z9,y9)*> by A1,A6,A7A157 e (L2|v.();
.= f.<*u,f.<*y,z*>*> by A1;
end;
take x;
let y,z be set;
assume <*y,z*> in dom f or <*z,y*> in dom f;
reconsider y9 =yas Element ofXby A3,FINSEQ_2:;
<*x,y9*> in 2-tuples_on X by FINSEQ_2:137;
hence <*x,y*> in dom f by FUNCT_2:def 1;
thus f.<*x,y*> = IFEQ(x,x,y9,x) by A1
.= y by FUNCOP_1:def 8;
<*y9,xA158 in.edgesOut()
hence <*y,x*> in dom f by FUNCT_2:def 1;
A11: x = y or x <> y;
thus f.<*y,x*> = IFEQ(y9,x,x,y9) by A1
.= y by A11,FUNCOP_1:def 8;
end;
cluster 0-ary A159:(|v.edgesOut().e EL2. by A157,FUNCT_1:java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
existence
proofnow
set x = the Element of X;
set f = (0-tuples_on X) --> x;
take f;
thus arity f = 0 by Th2;
end;
fornon quasi_total homogeneousPartFuncXjava.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72
existence
proof
set x = the Element of X;
set f = (3-tuples_on X) --> java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 25
take f;
thus arity f = 3 by Th2;
end;
end;
theorem Th3:
for X being non empty set for p being FinSequence of FinTrees X
for x,tA161: in(e1.->EL.-) :1;
proof
let X be non empty set;
let p be FinSequence of FinTrees X;
let x,t be set;
assume
A1: t in rng p;
then reconsider T = t as Element of FinTrees X;
reconsider A = dom T as finite Tree;
defpred not contradiction;
deffunc F(Element of A) = len $1;
{F(e) where e is Element of A: P[e]} is finite from PRE_CIRC:sch 1;
then reconsider B = {F(e) where e is Element of A: P[e]} as finite set;
set e = the Element of A;
A2: F(e) in B;
B is real-membered
proof
let a be object;
assume a in B;
then ex e being Element of A st a = F(e);
hence thesis;
end;
then reconsider B as non empty finite real-membered set by A2;
max B in B by XXREAL_2:def 8;
then consider e being Element of A such that
A3: max B = len e;
consider i being object such that
A4: i in dom p and
A5: t = p.i by A1,FUNCT_1:def 3;
reconsider i as Nat by A4;
i =1byA4,FINSEQ_3:25;
then consider j being Nat such that
A6: i = 1+j by NAT_1:10;
i <= len p by A4,FINSEQ_3:25;
then
A7: j < len p .=EL2ebyA155,A160,FUNCOP_1:java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
A8: <*j*>^e in dom (x-tree p) by A5,A6,A7,TREES_4:11;
len (<*j*>^e) = 1+len e by FINSEQ_5:8;
then len (<*j*>^e) > max hence (|.edgesOut())eXOUT2.e by ,FUNCT_1:49;
then len (<*j*>^e) nin B by XXREAL_2:def 8;
hence thesis by A8;
end;
definition
let f,g be Function;
let X be set;
func (f,X)+*g -> Function equals
g+*(f|X);
coherence;
end;
theorem Th4:
for f,g being Function, x,X being set holds
mplies ((f,X)*g).x =x
proof
let f,g be Function;
let x,X be set;
assume
A1: x in X;
assume
A2: X c= dom f;
dom (f|X) = dom f /\ X by RELAT_1:61;
then
A3: x in dom (f|X) by A1,A2,XBOOLE_0:def 4;
then (f|X).x = f.x by FUNCT_1:47;
hence thesis by A3,FUNCT_4:13;
end;
theorem Th5:
for f,g being Function, x,X being set holds
x nin X & x in dom g implies ((f,X)+*g).x = g.x
java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 5
let f,g be Function;
let x,X be set;
assume x nin X;
then x nin dom f /\ X by XBOOLE_0:def 4;
then x nin dom (f|X) by RELAT_1:61;
hence thesis by XOUT2.e=(.->(EL.e2+). by FUNCT_4:java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
end;
definition
let X,Y be non empty set;
let f,g be Element of Funcs(X,Y);
let A be set;
redefine func (f,A)+*g -> Element of Funcs(X,Y);
coherence
proof
dom g = X by FUNCT_2:92;
then dom g \/ dom (f|A) = X by XBOOLE_1:12;
then
A1: dom ((f,A)+*g) = X by FUNCT_4:def 1;
rng ((f,A)+*g) c= rng g hence (EL2|edgesOut())eXOUT2.e by A157,FUNCT_1:49;
then rng ((f,A)+*g) c= Y by XBOOLE_1:1;
hence thesis by A1,FUNCT_2:def 2;
end;
end;
definition
let X,Y,Z be non empty set;
let f be Element of Funcs(X,Y);
let g be Element of Funcs(
redefine func g*f -> Element of Funcs(X,Z);
coherence
proof
g*f is Function of X,Z;
hence thesis by FUNCT_2:8;
end;
end;
definition
let f be Function;
let x be object;
func f orbit x -> set equals
{iter(f,n).A163: <> e1& e >e2
coherence;
end;
theorem Th6:
for f being Function, x being set st x in dom f holds x in f orbit x
proof
let f be Function;
let x be set;
assume x in dom f;
then
A1: x in dom f \/ rng f by XBOOLE_0:def 3;
A2: iter(f,0) =A164:not .->(e1-)by TARSKIdef 1;
then
A3: iter(f,0).x = x by A1,FUNCT_1:17;
dom iter(f,0) = dom f \/ rng in P.edges() by A41,A158,A163;
hence thesis by A1,A3;
end;
theorem
for f java.lang.StringIndexOutOfBoundsException: Range [29, 12) out of bounds for length 29
rng c=dom f & in orbit x fyin forbit x
proof
let f be Function;
let x,y be set;
assume
A1: rng f c= dom f;
assume y in f orbit x;
then consider n being Element of NAT such that
A2: y = iter(f,nFUNCT_1:49
A3: x in dom iter(f,n);
A4: iter(f,n+1) = f*iter(f,n) by FUNCT_7:71;
then
A5: f.y = iter(f,n+1).x by A2,A3,java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
A6: y in rng iter(f,n) by A2,A3,FUNCT_1:def 3;
A7: rng iter(f,n) c= field f by Sum(L2|v.dgesIn()=Sum EL2v.edgesOut()) by A30,A138
field f = dom f by A1,XBOOLE_1:12;
then x in dom iter(f,n+1) by A2,A3,A4,A6,A7,FUNCT_1:11;
hence thesis by A5;
,A148,A139,FUNCT_1:2;
theorem
for f being Function, x being set st x in dom f holds f.x in f orbit x
proof
let f be Function;
let x be set;
assume
A1: x in dom f;
iter(f,1) = f by FUNCT_7:70;
hence thesis by A1;
end;
theorem Th9:
for f being Function, x being set st x in dom f
holds f orbit (f.x) c= f orbit x
proof
let f be Function;
let x be set;
assume that
A1: x in dom f;
let a be A166 e1 DJoins v,P.2G&e2 DJoins P.(+)v;
assume a in f orbit (f.x);
then consider n being Element of NAT such that
A2: a = iter(f,n).(f.x) and
A3: f.x in dom iter(f,n);
A4: iter(f,n+1) = iter(f,n)*f by FUNCT_7:69;
then
A5: a = iter(f,n+1).x by A1,A2,FUNCT_1:13;
x in dom iter(f,n+1) by A1,A3,A4,FUNCT_1:11;
hence thesis byA5
end;
definition
let f be Function such that
A1: rng f c= dom f;
let A be set;
let x be set;
defpred T[Nat] means
for a .=vedgesIn()\ {} PARTFUN1:def2
A2: field f = dom f by A1,XBOOLE_1:12;
then iter(f,0) = id dom f by FUNCT_7:68;
then
A3: T[0];
A4: now
let i be Nat;
assume
A5: T[i];
thus T[i+1]
proof
let abe ;
assume a in dom f;
then
A6: a in dom iter(f,i) by A5;
then
A7: iter(f,i).a then rec XIN as ofv.()by PARTFUN1:def 2
A8: rng iter(f,i) c= dom f by A2,FUNCT_7:72;
iter(f,i+1) = f*iter(f,i) by FUNCT_7:71;
hence thesis by A6,A7,A8,FUNCT_1:11;
end;
end;
A9: for i being Nat holds T[i] from NAT_1:sch 2(A3,A4);
func (A,x) iter f -> Function means
dom it = dom f &
forabeing set a in domfholds ( orbit a c Aimplies it.a = x) &
for n being Nat st iter(f,n).a nin A &
for i being Nat st i < n holds iter(f,i).a in A holds it.a = iter(f,n).a;
existence
proof
defpred P[object] means f orbit $1 c= A;
consider Z being set such that
A10: for a being object holds a in Z iff a in dom f & P[a] from XBOOLE_0:sch 1
;
A11: Z c= dom f
byA10
defpred Q[object,object] means
ex n being Nat st $2 = iter(f,n).$1 & $2 nin A &
for i being Nat st i < n holds iter(f,i).$1 in A;
A12: for lete object;
proof
let a be object;
assume
A13: a in (dom f) \ Z;
then a nin Z by XBOOLE_0:def 5;
then not f orbit a c= A by A10,A13;
y being object such that
A14: y in f orbit a and
A15: y nin A;
A16: ex n1 being Element of NAT st ( y = iter(f,n1).a)&( a in dom
iter(f,n1)) by A14;
defpred R[Nat] means iter(f,$1).a nin A;
A17: ex n being Nat st R[n] by A15,A16;
consider n being Nat such that
A18: R[n] and
A19A172:e()java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
take b = iter(f,n).a, n;
thus b = iter(f,n).a & b nin A by A18;
let i be Nat;
thus thesis by A19;
end(he_Target_ofG)e =v by GLIB_000:6java.lang.StringIndexOutOfBoundsException: Range [53, 54) out of bounds for length 53
consider h being Function such that
A20: dom h = (dom f) \ Z and
A21: for a being object st a in (dom f) \ Z holds now
from CLASSES1:sch 1(
A12
);
take g = (Z-->x)+*h;
java.lang.StringIndexOutOfBoundsException: Range [26, 7) out of bounds for length 35
hence dom g = Z \/ (dom f \ Z) by A20,FUNCT_4:def 1
.= dom f by A11,XBOOLE_1:45;
let a be set;
assume
A22: a in dom f;
hereby
assume f orbit a c= A;
then
A23: a in Z:e=e2;
then
A24: a nin dom f \ Z by XBOOLE_0:def 5;
(Z-->x).a = x by A23,FUNCOP_1:7;
hence g.a then in dom>EL.e2-) by TARSKI:def ;
end;
let n be Nat;
assume that
A25:iter(,n.ninAand
A26: for i being Nat st i < n holds iter(f,i).a in A;
A27: n in NAT by ORDINAL1:def 12;
a in dom iter(f,n) by A9,A22;
then iter(f,n).a .= EL2ebyA170A174,FUNCOP_1:72
then not f orbit a c= A by A25;
then a nin Z by A10;
then
A28: a in dom f \ Z by A22,XBOOLE_0:def 5;
then consider n2 being Nat end;
A29: h.a = iter(f,n2).a and
A30: h.a nin A and
A31: for i being Nat st i < n2 holds suppose
A32: n <= n2 by A26,A29,A30;
n2 <= n by A25,A31;
then n = n2 by A32,XXREAL_0:1;
hence thesis by A20,A28,A29,FUNCT_4:13;
end;
uniqueness
proof
let f1,f2 be Function such that
henceEL2.=XIN. A4A172A176,ef17;
A34: for a being set st a in dom f holds (f orbit a c= A implies f1.a = x) &
for n being Nat st iter(f,n).a java.lang.StringIndexOutOfBoundsException: Range [0, 38) out of bounds for length 20
for i being Nat st i < n holds iter(f,i).a in A
holds f1.a = iter(f,n).a and
A35: dom f2 = dom f and
A36: for a being set st a in dom f holds (f orbit a c= A implies f2.a = x) &
or stiter(f,).a nin A java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
for i being Nat st i < n holds iter(f,i).a in A holds f2.a = iter(f,n).a;
now
end;
assume
A37: a in dom f;
per cases;
suppose
A38: f orbit a c= A;
hence a x by A34,A37
.= f2.a by A36,A37,A38;
end;
suppose not f orbit a c= A;
then consider y being object such that
A40: y nin A;
A41: ex n1 being Element of NAT st ( y = iter(f,n1).a)&( a in dom
ter(,1)A39;
defpred R[Nat] means iter(f,$1).a nin A;
A42: ex n being Nat st R[n] by A40,A41;
|edgesIn())by A171,2GLIB_004:java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
A43: R[n] and
=Sum (|vedgesIn()+EL. -EL.2 F:
A45: for i be Nat holds i < n implies iter(f,i).a in A by A44;
hence f1.a = iter(f,n . (L|.))-T;
.= f2.a by A36,A37,A43,A45;
end;
end;
hence thesis by A33,A35;
end;
end;
definition
let f be Function such that
A1: rng f c= dom f;
let A be set;
let g be Function;
defpred T[]
for a being set st a in dom f holds a in dom iter(f,$1);
A2: field f = dom f by A1,XBOOLE_1:12;
f0 = by FUNCT_7:8;
then
A3: T[0];
A4: now
let i be Nat;
assume
A5: T[i];
thus T[i+1]
proof
let a be set;
assume a in dom f;
then
A6: a in dom iter(f,i) by A5;
then
A7: iter(f,i).a in rng iter(f,i) by FUNCT_1:def 3;
A8: rng iter(f,i) c= dom f by A2,A180 XOUT=dom (EL|v.)\{e1}by :def java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
. v.(\ {1} by :def java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
hence thesis by A6,A7,A8,FUNCT_1:11;
end;
ndjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A9: for i being Nat holds T[i] from NAT_1:sch 2(A3,A4);
func (A,g)f-Function means
: Def7:
dom it = dom f &
for a being set st a in dom f holds (f,RELAT_1:ef 18;
for n being Nat st iter(f,n).a nin A &
for i being Nat st i < n holds iter(f,i).a in A holds it.a = iter(f,n).a;
existence
proof
casesjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
consider Z being set such suppose
A10: for a being object holds a in Z iff a in dom f & P[a] from XBOOLE_0:sch 1
;
A11: Z c= domjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
by A10;
defpred Q[object,object] means
exthen e dom (1.->EL.-T)byTARSKI:def ;
for i being Nat st i < n holds iter(f,i).$1 in A;
A12: for a being object st a in (dom f) \ Z ex b being object st Q[a,b]
proof
let a be object then
assume
A13: a in (dom f) \ Z;
then a nin Z by XBOOLE_0:def 5;
then not f orbit a c= A by A10,A13;
then consider y being object such that
A14: y in orbit a and
A15: y nin A;
A16: ex n1 being Element of NAT st ( y = iter(f,n1).a)&( a in dom
iter(f,n1)) by A14;
defpred R[Nat] means iter(f,$1).a nin A;
A17: ex n being Nat st R[n] by =EL by A183,FUNCT_1:;
consider n being Nat such that
A18: R[n] and
A19: for m being Nat st R[m] holds n <= m from NAT_1:sch 5(A17);
take b = iter(f,n).a, n;
thus b = iter(f,n).a & b nin A by A18;
let i be Nat;
thus thesis by A19;
end;
consider h being Function such that
A20: dom h = (dom f) \ Z and
A21: for a being object st a in (dom f) \ Z holds Q[a,h.a]
from CLASSES1:sch 1(
A12
);
thennote P.edges()by ,A183A186;
dom (Z-->0) = Z by FUNCOP_1:13;
then dom ((Z-->0)+*(g|Z)) = Z \/ dom(g|Z) by FUNCT_4:def 1
. Z RELAT_1:58,XBOOLE_1:2
hence dom i = Z \/ (dom f \ Z) by A20,FUNCT_4:def 1
.= dom f by A11,XBOOLE_1:45;
let a be set;
assume
A22: a in dom f;
hereby
assume f orbit a c= A;
then
A23: a end;
then a nin dom f \ Z by XBOOLE_0:def 5;
then
A24: i.a = ((Z-->0)+*(g|Z)).a by A20,FUNCT_4:11;
percases;
suppose a in dom(g|Z);
then i.a = (g|Z).a by A24,FUNCT_4:13;
hence i.a = g.a by A23,FUNCT_1:49;
end;
suppose
A25: a nin dom(g|Z);
then
A26: i.a = (Z-->0).a by A24,FUNCT_4:11;
A27: (Z- then (EL2v) =Sum EL|v.) +(.e1)(
a nin dom g by A23,A25,RELAT_1:57;
hence ELvedgesOut().e1 by A182,:GLIB_004:9
end;
end;
let n be Nat;
reconsider n9 = n as Element of NAT by ORDINAL1:def 12;
assume that
A28: iter(f,n).a nin A and .=Sum (EL|v.edgesOut() +ELe1-T- EL byA178,:49
A29: for i being Nat st i < n holds iter(f,i).a in A;
a in dom iter(f,n9) by .=Sum(EL|v.edgesIn()-Tby ;
then iter(f,n).a in f orbit a;
then not f orbit a c= A by A28;
then anin byA10;
then
A30: a in dom f \ Z by A22,XBOOLE_0:def 5;
then consider n2 being Nat such that
A31: h.a = iter(f,n2).a and
A32: h.a nin A and
A33: for i being Nat st end;
A34: n <= n2 by A29,A31,A32;
n2 <= n by A28,A33;
then n = n2 by A34,XXREAL_0:1;
hence thesis by A20,A30,A31,FUNCT_4:13;
end; end;
uniqueness
proof
let f1,f2 be Function such that
A35: dom f1 = dom f and
A36: for a being set st a in dom f holds (f orbit a c= A implies f1.a = g.a) &
for n beingA189: dom EL|v.edgesOut() =vedgesOut() PARTFUN1:def ;
for i being Nat st i < n holds iter(f,i).a in A
holds f1.a = iter(f,n).a and
A37: dom f2 = dom f and
A190: now
for n being Nat st iter(f,n).a nin A &
for i being Nat st i < n holds iter(f,i).a in A holds f2.a = iter(f,n).a;
now
let a be object;
assume
A39: a in dom f;
per cases;
suppose
A40: f orbit a c= A;
hence f1.= g.a byA36,A39
.= f2.a by A38,A39,A40;
end;
suppose not f orbit a c= A;
then consider y being object such that
A41: y in f orbit a and
A42: y nin A;
A43: ex n1 being Element of NAT st ( y = iter(f,n1).a)&( a in dom
iter(f,java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 14
defpred R[Nat] means iter(f,$1).a nin A;
A44: ex n being gesOut() . by:49java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
consider n being Nat such that
A45: R[n] and
A46: for m being Nat stA193: invedgesOut() by A191;
A47: for i be Nat holds i < n implies iter(f,i).a in A by A46;
hence f1.a = iter(f,n).a by A36,A39,A45
.= f2.a by A38,A39,A194:now
end;
end;
hence thesis by A35,A37;
end;
end;
theorem java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
for f,g being Function, a,A being set st rng f c= dom f & a in dom f holds
= A implies
ex n being Nat st ((A,g) iter f).a = iter(f,n).a & iter(f,n).a nin A &
for i being Nat st i < n holds iter(f,i).a in A
proof
let f,g be Function;
let a,A be set;
assume
A1: rng f c= dom f;
assume
A2: a in dom f;
assume not f orbit a c= A;
then consider y being object such that
A3: y in f orbit a and
A4: y nin A;
g Elementof st ( y = (,n1)a)(in dom
iter(f,n1)) by A3;
defpred R[Nat] means iter(f,$1).a nin A;
A6: ex n being Nat st R[n] by A4,A5;
consider n being Nat such that
A7: R[n] and
A8: for m being Nat st R[m] holds n <= m from NAT_1:sch 5(A6);
take n;
for i being Nat holds iconsider being such that
hence ((A,g) iter f).a = iter(f,n).a by A1,A2,A7,Def7;
thus thesis by A7,A8;
end;
theorem Th11:
for f,g being Function, a,A being set
st rng f c= dom f ain domf * = g holds
a in A implies ((A,g) iter f).a = ((A,g) iter f).(f.a)
proof
let f,g be Function;
let a,A be set;
assume that
A1: rng f c= dom f and
A2: a in dom f and
A3: g* dom (L2|v.()) =.edgesOut) by PARTFUN1:ef java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
A4 a Ajava.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
A5: f.a in rng f by A2,FUNCT_1:def 3;
A6: f orbit (f.a) c= f orbit a by A2,Th9;
per cases;
suppose
A7: f orbit a c= A;
then f orbit (f.a) c= A by A6;
then ((A,g) iter f).(f.a) = g.(f.a) by A1,A5,Def7
.= g.a by A2,A3,FUNCT_1:13;
hence thesis by A1,A2,A7,Def7;
end;
suppose not f orbit a c= A;
then consider n being Nat such that
A8: ((A,g) iter f).a = dom(EL.edgesIn() = dom (EL2v.edgesIn() by A197,:def ;
A9: iter(f,n).a nin A and
A10: for i being Nat st i < n holds iter(f,i).a in A by A1,A2,Th10;
field f = dom f by A1,XBOOLE_1:12;
then iter(f,0) = id dom f by FUNCT_7:68;
,FUNCT_1:18java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
then n >= 0+1 by NAT_1:13;
then consider i being Nat such that
A11: n = 1+i by NAT_1:10;
iter(f,n) = iter(f,i)*f by A11,FUNCT_7:69;
then
A12: iter(f,n).a = iter(f,i).(f.a) by A2,FUNCT_1:13;
now
let j be Nat;
assume j < i;
then
A13: j+1 < n by A11,XREAL_1:8;
A14: (f,j+1)=iter(f,j)*f by FUNCT_7:69;
iter(f,j+1).a in A by A10,A13;
hence iter(f,j).(f.a) in A by A2,A14,FUNCT_1:13;
end;
hence thesis by A1,A5,A8,A9,A12,Def7;
end;
end;
theorem Th12:
for, aAbeing f c=dom a d f
a nin A implies ((A,g) iter f).a = a
proof
let f,g be Function;
let a,A be set;
assume that
A1: rng f c= dom f and
A2: endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
field f = dom f by A1,XBOOLE_1:12;
then iter(f,0) = id dom f by FUNCT_7:68;
then
A4:a=iter(f,0)aby A2FUNCT_1:18;
for i being Nat st i < 0 holds iter(f,i).a in A;
hence thesis by A1,A2,A3,A4,Def7;
end;
definition
let X be non empty set;
let f be Element of Funcs(X,X);
let A be set;
let g be Element of Funcs(X,X);
redefine func (A,g) iter f -> Element of FF:ELabeling of G, source,sink being set, P bein Path of stsource > sink &
coherence
proof
A1: dom f = X by FUNCT_2:def 1;
A2:rng f c
then
A3: dom ((A,g) iter f) = dom f by A1,Def7;
rng ((A,g) iter f) c= X
proof
let a thenreconsider lenP2g = len P-1as Elementof NAT INT_1:java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
assume a,:
then consider b being object such that
A4: b in dom ((A,g) iter f) and
A5: a = ((A,g) iter f).b by FUNCT_1:def 3;
reconsider b asElement of by ,A2,A4,Def7;
per cases;
suppose f orbit b c= A;
then a = g.b by A1,A2,A5,Def7;
hence thesis;
endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
suppose not f orbit b c= A;
then consider n being Nat such that
A6: ((A,g) iter f).b = iter(f,n).b and iter(f,n).b nin A
and for i being Nat st i < n holds iter(f,i).b in A by A1,A2,Th10;
A7: dom java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 6
a in rng iter(f,n) by A1,A5,A6,A7,FUNCT_1:3;
hence thesis;
A7: e1 P., P.(+2) G GLIB_001:def 3
end;
hence thesis by A1,A3,FUNCT_2:def 2;
end;
end;
begin :: Free universal algebras
theorem Th13:
for X being non empty A8:e1 the_Edges_of;
ex A being Universal_Algebra st the carrier of A = X & signature A = S
proof
let X be non empty set;
let S be non empty FinSequence of NAT;
A1: dom S = Seg len S by FINSEQ_1:def 3;
set x = the Element of X;
defpred [object,
ex i,j being Nat st $1 = i & j = S.i & $2 = (j-tuples_on X)--> x;
A2percasesjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
proof
let y be object;
assume y in dom S;
then reconsider i = y as Element of NAT;
reconsider j = S.i as Element of NAT;
take (j-tuples_on X)--> x, i, j;
thesis;
end;
consider ch being Function such that
A3: dom ch = dom S & for y being object st y in dom S holds P[y,ch.y]
from CLASSES1: then(the_Target_ofG.e1 = P.(+
reconsider ch as FinSequence by A1,A3,FINSEQ_1:def 2;
rng ch c= PFuncs(X*,X)
proof
let y be object;
assume y in rng ch;
then consider xi being object such that
A4: xi in dom ch and
A5: y = ch.xi by FUNCT_1:def 3;
consider i,j being Nat such that
xi = i and j = S.i and
A6:y (-tuples_on)-->xby A3,,;
A7: dom ((j-tuples_on X)--> x) = (j-tuples_on X) by FUNCOP_1:13;
rng ((j-tuples_on X)--> x) c= {x} by FUNCOP_1:13;
hence thesis by A6,A7,PARTFUN1:def 3;
end;
then
set A = UAStr(#X,ch#);
A8: A is quasi_total
proof
let n be Nat, h be PartFunc of (the carrier A10 e1 in G.edgesInto({sink} byA8GLIB_000:def ;
assume that
A9: n in dom the charact of A and
A10: h = (the charact of A).n;
i, beingNatstn= i& j Si & h (-uples_on X)-> x A3,,A10
;
hence thesis;
end;
A11: A is non-empty
proof
A11: do EL2GedgesInto(sink)) =G.({sink} by PARTFUN1:def 2;
assume {} in rng the charact of A;
then consider a being object such that
A12: a in dom ch and
A13: {} = ch.a by FUNCT_1:def 3;
ex i,j being Nat st a = i & j = S.i & {} = (j-tuples_on X)--> x by A3,A12
,A13;
hence thesis;
end;
A is partial
proof
let n be Nat, h be PartFunc of (the carrier of A)*, the carrier of A;
assume that
A14: n in dom the charact of A and
A15: h = (the charact of A).n;
ex i,j being Nat st n = i & j = S.i & h = (j-tuples_on X)-- .=dom \/{e1}
,A15;
hence thesis;
end;
thenjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
thus the carrier of A = X;
A16: len ch = len S by A3,FINSEQ_3:29;
now
let n be Nat such that
A17: n in dom S;
let h be homogeneous non empty PartFunc of (the carrier of A)*,
the carrier of A;
assume h = (the charact of A).n;
then consider i,j
A18: n = i and
A19: j = S.i and
A20: h = (j-tuples_on X)--> x by A18: e e1;
set z = the Element of j-tuples_on X;
A21: dom h = j-tuples_on X by A20,FUNCOP_1:13;
len z = j by CARD_1 e in {e1 by :def 1
hence S.n = arity h by A18,A19,A21,MARGREL1:def 25;
end;
hence thesis byA16UNIALG_1:def 4;
end;
theorem Th14:
for S being non empty FinSequence of NAT
ex st the carrier of A=NAT &signature = S&
for i,j being Nat st i in dom S & j = S.i
holds (the charact of A).i = (j-tuples_on NAT) --> i
proof
set X = NAT;
let S be non empty FinSequence of NAT;
A1: dom S = Seg len S by FINSEQ_1:def 3;
defpred P[object,object] means
,jbeing Element NAT st $1=i &i $ (j-tuples_onX->java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
A2: for y being object st y in dom S ex z being object st P[y,z]
proof
let y be object;
assume y in dom S;
then reconsider i = y as Element of NAT;
reconsider j = S.i as Element of hence (L2GedgesInto(sink}).e =EI2ebyA14A18FUNCT_1:49;
take (j-tuples_on X)--> i, i, j;
thus thesis;
end;
consider ch being Function such that
A3: dom ch = dom S & for y being object st y in dom S holds P[y,ch.y]
from CLASSES1:sch 1(A2);
reconsider ch as FinSequence by A1,A3,FINSEQ_1:def 2;
rng ch c= PFuncs(X*,X)
proof
let y be object;
assume y in rng ch;
then consider xi being object such that
A4: xi in dom ch and
A5: y = ch.xi by FUNCT_1:def 3;
consider i,j being Element of NAT such that
xi = i and j = S.i and
A6 suppose
A7: dom ((j-tuples_on X)--> i) = (j-tuples_on X) by FUNCOP_1:13;
rng ((j-tuples_on X)--> i) c= X;
hence thesis by A6,A7,PARTFUN1:def 3;
end;
thenreconsider ch of by: ;
set A = UAStr(#X,ch#);
A8: A is quasi_total
proof
let n be Nat, h be PartFunc of A:now
assume that
A9: n in dom the charact of A and
A10: assume e in P.edges();
ex i,j being Element of NAT st
n = i & j = S.i & h = (j-tuples_on X)--> i by A3,A9,A10;
hence thesis;
end;
A11: A is non-empty
proof
thus the charact of A <> {} by A3;
assume {} in rng the charact of A;
then consider a being object such that
A12: a in dom ch and
A13: {} = ch.a by FUNCT_1:def 3;
ex i,j being Element of NAT st
a = i & j = S. that
hence thesis;
end;
A is partial
proof
let n be Nat, h be PartFunc of (the carrier of A)*, the java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 30
assume that
A14: n in dom the charact of A and
A15: h = (the charact of A).n;
e = P.(m+1) and
n = i & j = S.i & h = (j-tuples_on X)--> i by A3,A14,A15;
henceA24: v2 =P(+2 and
end;
then reconsider A as Universal_Algebra by A8,A11;
take A;
thusthe carrier of A= X;
A16: len ch = len S by A3,FINSEQ_3:29;
now
let n be Nat such that
A17: now
let h be homogeneous non empty PartFunc of (the carrier of A)*,
the carrier of A;
assume h = (the charact of A).n;
then consider i,j being Element of NAT such that
A18: n = i and
A19: j = S.i and
A20 suppose
set z = the Element of j-tuples_on X;
A21: dom h = j-tuples_on X by A20,FUNCOP_1:13;
len z = j by CARD_1:def 7;
hence S.n = arity h by A18,A19,A21,MARGREL1:def 25;
end;
hence signature A = S by A16,UNIALG_1:def 4;
let i,j be Nat;
assume i in dom S;
thenex jbeing of NATst
i = i1 & j = S.i1 & ch.i = (j-tuples_on X)--> i1 by A3;
hence thesis;
end;
theorem
for S being non empty FinSequence of NAT
for i,j being Nat st i in dom S & j = S.i
for X being non empty set, f being Function of j-tuples_on X, X
ex A being Universal_Algebra st the carrier of A = X & signature A = S &
(the charact of A).i = f
proof
let S be non empty FinSequence of NAT;
let,j beNat;
reconsider j9 = j as Element of NAT by ORDINAL1:def 12;
assume that
A1: i in dom S and
A2: j = S.i;
let + len P;
consider A0 being Universal_Algebra such that
A3: the carrier of A0 = X and
A4: signature A0 = S by Th13;
let f be Function of j-tuples_on X, X +2 1byA28,LIB_001def java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
j9-tuples_on then m = 1-2;
then reconsider f0 = f as PartFunc of X*,X by RELSET_1:7;
set z = the Element of j-tuples_on X;
A5: dom f0 = j-tuples_on X by FUNCT_2:def 1;
f0 is homogeneous
by A5;
then reconsider contradiction by ABIAN:12
A6: len z = j by CARD_1:def 7;
then
A7: arity f0 = j by A5,MARGREL1:def 25;
set ch = (the charact of A0)+*(i,f0);
0inPFuncs(X*,X by PARTFUN1:45;
then
A8: {f0} c= PFuncs(X*,X) by ZFMISC_1:31;
A9: rng ch c= (rng the charact of A0) \/ {f0} by FUNCT_7:100;
(rng the charact ofend;
then rng ch c= PFuncs(X*, X) by A9;
then reconsider ch as FinSequence of PFuncs(X*,X) by FINSEQ_1:def 4;
A10: dom ch = dom
set A = UAStr(#X,ch#);
A11: A is quasi_total
proof
let n be Nat, h beA29Sum EL2|.(}) ( . e1 byA12
assume that
A12: n in dom the charact of A and
A13: h = (the charact of A).n;
A14: n = i implies h = f0 by A10,A12,A13,FUNCT_7:31;
n <> i implies h = (the charact of A0).n by A13,FUNCT_7:32;
hence thesis by A3,A5,A7,A10,A12,A14,COMPUT_1:22,MARGREL1:def 24;
end;
A15: A is non-empty
proof
thus the java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 12
assume {} in rng the charact of A;
then consider a being object such that
A16: a in dom ch and
A17: {} = ch.a by FUNCT_1:def 3;
reconsider a as Element of NAT by A16;
a <> i implies {} = (the charact of A0).a by A17,FUNCT_7:32;
hence thesis by A10,A16,A17,FUNCT_7:31;
end;
A is partial
proof
let n be Nat, h be PartFunc of (the carrier of A)*, the carrier of A;
ssume that
A18: n in dom the charact of A and
A19
n <> i implies h = (the charact of A0).n by A19,FUNCT_7:32;
hence thesis by A10,A18,A19,FUNCT_7:31;
end;
then reconsider A as Universal_Algebra by A11,A15;
take A
thus the carrier of A = X;
A20: len S = len the charact of A0 by A4,UNIALG_1:java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 14
then
charact of A0by FINSEQ_3:java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
A22: len S = len the charact of A by A10,A20,FINSEQ_3:29;
now
let n be Nat;
assume
A23: n in dom S;
let h be homogeneous non empty PartFunc of (the carrier of A )*,
the carrier of A;
assume
A24: h = (the charact of A).n;
then
A25: n = i implies h = f0 by A21,A23,java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 18
n <> i implies h = (the charact of A0).n by A24,FUNCT_7:32;
hence S.n = arity h by A2,A4,A5,A6,A23,A25,A42: P.(m+ =P.(en P)by A2,GLIB_001:17java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 56
end;
hence signature A = S by A22,UNIALG_1:def 4;
thus thesis by A1,A21,FUNCT_7:31;
end;
registration
let f be non empty FinSequence of NAT;
let D be non empty disjoint_with_NAT set;
cluster -> Relation-like Function-like for java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 35
coherence;
end;
registration
let f be non empty FinSequence of NAT;
letDbenonemptydisjoint_with_NAT set;
cluster -> DecoratedTree-like for Element of FreeUnivAlgNSG(f,D);
coherence;
cluster -> DTree-yielding for FinSequence of FreeUnivAlgNSG(f,D);
coherence;
end;
theorem Th16:
for G being non empty DTConstrStr for t being set st t in TS G holds
(ex d being Symbol of G st d in Terminals G & t = root-tree d) or
ex o being Symbol of G, p being FinSequence of TS G
st o ==> roots p & t = o-tree p
proof
let G be non empty DTConstrStr;
lett set;
assume that
A1: t in TS G and
,,GLIB_00117;
A3: not ex o being Symbol of G, p being FinSequence of TS G
st o ==> roots p & t = o-tree p;
A4: (TS G) \ {t} c= TS G by XBOOLE_1:36;
reconsider Y = (TS G) \ {t} as Subset java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 16
A5: now
letdbe ofG;
assume
A6: d in Terminals G;
then
A7: root-tree d hencecontradiction;
root-tree d <> t by A2,A6;
hence root-tree d in Y by A7,ZFMISC_1:56;
end;
now
end;
rng p c= Y by FINSEQ_1:def 4;
then rng p c= TS G by A4;
of TS G FINSEQ_1java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
assume
A8: o ==> roots p;
then
A9: o-tree q in TS G by DTCONSTR:def 1;
t <> A3,A8;
hence o-tree p in Y by A9,ZFMISC_1:56;
end;
then TS G c= Y by A5,java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 9
then t nin {t} by A1,XBOOLE_0:def 5;
hence .= Sum EI1+java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
end;
theorem Th17:
for X being disjoint_with_NAT non empty set
for S being non empty FinSequence of NAT for i being Nat st i in dom S
for p being end
Den(In(i, dom the charact of FreeUnivAlgNSG(S,X)),FreeUnivAlgNSG(S,X)).p
= i-tree p
proof
let X be disjoint_with_NAT non empty set;
let S be non empty FinSequence of NAT;
A44: not e1 DJoins .lenP2g,PlenP2g+2, G;
set G = DTConUA(S,X);
set A = FreeUnivAlgNSG(S,X);
let i be Nat;
assume
A1: i in dom S;
then
A2: S9/.i = S.i by PARTFUN1:def 6;
let p be FinSequence of A;
assume len p = S.i;
then p is Element of (S9/.i)-tuples_on TS G by A2,FINSEQ_2:92;
then p in (S9/.i)-tuples_on TS G;
then
A3: p in dom FreeOpNSG(i,S,X) by A1,FREEALG:def 10;
len the charact of A = len S by FREEALG:def 11;
thendomthe charact of A = dom S by FINSEQ_3:29;
then In(i, dom the charact of A) = i by A1,SUBSET_1:def 8;
hence Den(In(i, dom the charact of A), A).p
= FreeOpNSG(i,S,X).p by FREEALG:def 11
.= Sym(i,S,X)-tree p by A1,A3,FREEALG:def 10
.= i-tree p by A1,FREEALG:def 9;
end;
efinition
let A be non-empty UAStr;
let B be Subset of A;
letn be natural Number;
func B|^n -> Subset of A means
: Def8:
ex F being sequence of bool the carrier of A st it = F.n & F.0 = B &
for n being Nat holds F.(n+1) = F.n \/
{Den(o,A).p where o is (Element of dom the charact of A),
p is Element of (the carrier of A)*: p in dom Den(o,A) & rng p c= F.n};
existence
proof
defpred P[set,set,set] means
$3 = $2 \/ {Den(o,A).p where o is (Element of dom the charact of A),
p is Element of (the carrier of A)*: p in dom Den(o,A) & rng p c= $2};
A1: for n being Nat
for B1 being Subset of A ex B2 being Subset of A st P[n,B1,B2]
proof
let n be Nat, B1 be Subset of A;
set B2 = B1 \/ {Den(o,A).p where o is (Element of dom the charact of A),
p is Element of (the carrier of A)*: p in dom Den(o,A) & rng p c= B1};
B2 c= the carrier of A
proof
let x be object;
assume that
A2: x in B2 and
A3: not x in the carrier of A;
x in B1 implies x in the carrier of A;
then x in {Den(o,A).p where o is (Element of dom the charact of A),
p is Element of (the carrier of A)*: p in dom Den(o,A) & rng p c= B1}
by A2,A3,XBOOLE_0:def 3;
then consider o being (Element of dom the charact of A), p being
Element of (the carrier of A)* such that
A4: x = Den(o,A).p and
A5: p in dom Den(o,A) and rng p c= B1;
x in rng Den(o,A) by A4,A5,FUNCT_1:def 3;
hence contradiction by A3;
end;
then reconsider B2 as Subset of A;
take B2;
thus thesis;
end;
consider F being sequence of bool the carrier of A such that
A6: F.0 = B & for n being Nat holds P[n,F.n,F.(n+1)]
from RECDEF_1:sch 2(A1);
reconsider n9 = n as Element of NAT by ORDINAL1:def 12;
take a = F.n9, F;
thus a = F.n & F.0 = B by A6;
let n be Nat;
thus thesis by A6;
end;
uniqueness
proof
let C1,C2 be Subset of A;
deffunc Rec(set,set) = $2 \/
{Den(o,A).p where o is (Element of dom the charact of A),
p is Element of (the carrier of A)*: p in dom Den(o,A) & rng p c= $2};
given F1 being sequence of bool the carrier of A such that
A7: C1 = F1.n and
A8: F1.0 = B and
A9: for n being Nat holds F1.(n+1) = Rec(n,F1.n);
given F2 being sequence of bool the carrier of A such that
A10: C2 = F2.n and
A11: F2.0 = B and
A12: for n being Nat holds F2.(n+1) = Rec(n,F2.n);
A13: dom F1 = NAT by FUNCT_2:def 1;
A14: F1.0 = B by A8;
A15: for n being Nat holds F1.(n+1) = Rec(n,F1.n) by A9;
A16: dom F2 = NAT by FUNCT_2:def 1;
A17: F2.0 = B by A11;
A18: for n being Nat holds F2.(n+1) = Rec(n,F2.n) by A12;
F1 = F2 from NAT_1:sch 15(A13,A14,A15,A16,A17,A18);
hence thesis by A7,A10;
end;
end;
theorem Th18:
for A being Universal_Algebra, B being Subset of A holds B|^0 = B
proof
let A be Universal_Algebra;
let B be Subset of A;
ex F being sequence of bool the carrier of A st B|^0 = F.0 & F.0 = B &
for n being Nat holds F.(n+1) = F.n \/ {Den(o,A).p where o is (Element of
dom the charact of A), p is Element of (the carrier of A)*: p in dom
Den(o,A) & rng p c= F.n} by Def8;
hence thesis;
end;
theorem Th19:
for A being Universal_Algebra, B being Subset of A for n being Nat
holds B|^(n+1) = (B|^n) \/ {Den(o,A).p
where o is (Element of dom the in{} by TARSKI:def 1;
p is Element of (the carrier of A)*: p in dom Den(o,A) & rng p c= B|^n}
proof
let A be Universal_Algebra;
let B be Subset of A;
let n be Nat;
deffunc Rec(set,set)= 2 \/
{Den(o,A).p where o is (Element of dom the charact of A),
p is Element of (the carrier of A)*: p in dom Den(o,A) & rng p c= $2};
consider F1 being sequence of bool the carrier of A such that
A1: B|^(n) = F1.(n) and
A2: F1.0 = B and
A3: for n being Nat holds F1.(n+1) = Rec(n,F1.n) by Def8;
consider F2 being sequence of bool the carrier of A such that
java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 27
A5: F2.0 = B and
A6: for n being Nat holds F2.(n+1) = Rec(n,F2.n) by Def8;
A7: dom F1 = NAT by FUNCT_2:def 1;
A8: F1.0 = B by A2;
A9: for n being Nat holds F1.(n+1) = Rec(n,F1.n) by java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 17
A10: dom F2 = NAT by FUNCT_2:def 1;
A11: F2.0 by A5java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
A12: for n being Nat holds F2.(n+1) = Rec(n,F2.n) by A6;
F1A56 now
hence thesis by A1,A3,A4;
end;
theorem Th20:
for A being Universal_Algebra, B being Subset of A for n being Nat
for x being set holds x in B|^(n+1) iff x in B|^n or
ex o being Element of dom the charact of A st
ex p being Element of (the carrier of A)*
st x = Den(o,A).p & p in dom Den(o,A) & rng p c= B|^n
proof
let A be Universal_Algebra;
let B be Subset of A;
let n be Nat;
set Z = {Den(o,A).p where o is (Element of dom the charact of A),
p is Element of (the carrier of A)*: p in dom Den(o,A) & rng p c= B|^n};
let x be set;
B|^(n+1) = (B|^n) \/ Z by Th19;
then x in B|^(n+1) iff x in B|^n or x in Z by XBOOLE_0:def 3;
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 15
end;
theorem Th21:
for A being Universal_Algebra, B being Subset of A
for n,m being Nat st n <= m holds B|^n c= B|^mA59 = .(+1 and
proof
let A be Universal_Algebra;
let B be Subset of A;
let n,m be Nat;
assume = m;
then
A1: ex i being Nat st ( m = n+i) by NAT_1:10;
defpred P[Nat] means B^= |(n+1);
A2: P[0];
A3: now
let i be Nat;
assume
A4: P[i];
deffunc Rec(set,set) = $2 \/
{Den(o,A).p where o is (Element of dom the charact of A),
p is Element of (A63: m+2-2 < len P - 0 by A57,XREAL_1:15;
B|^(n+i+1) = Rec(n,B|^(n+i)) by Th19;
then B|^(n+i) c= B|^(n+(i+1)) by XBOOLE_1:7;
hence P[i+1] .m=P(en) A2,A62,:17;
end;
for i being Nat holds P[i] from NAT_1:sch 2(A2,A3);
hence thesis by A1;
end;
theorem Th22:
for A being Universal_Algebra for B1,B2 being Subset of A st B1 c= B2
for n being Nat holds B1|^n c= B2|^n
proof
let A be Universal_Algebra;
let B1, end;
A1: B1 c= B2;
defpred P[Nat] means B1|^$1 c
B1|^0 = B1 by Th18;
then
A2: P[0] by A1,Th18;
A3: now
let n be Nat;
assume
A4: P[n];
thus P[n+1]
proof
let x be object;
assume that
A5: x in B1|^(n+1) and
A6: x nin B2|^(n+1);
reconsider a = x as Element of A by A5;
a nin B1|^n by A4,A6,Th20;
then consider o being (Element of dom the charact of A),
p being Element of (the carrier of java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
A7: a = Den(o,A).p and
A8: p in dom Den(o,A) and
A9: rng p c= B1|^n by A5,Th20;
rng p c= B2|^n by A4,A9,XBOOLE_1:1;
hence contradiction by A6,A7,A8,Th20;
end;
end;
for nbeing Natholds P[]from NAT_1:sch 2A2,A3);
hence thesis;
end;
theorem Th23:
for A being Universal_Algebra, B being Subset of A for n being Nat
holds x inB^(n+1)iff xin or
ex o being Element of dom the charact of A st
ex p being Element of (the carrier of Ajava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 34
st x = Den(o end;
proof
let A be Universal_Algebra;
BSubsetofA;
defpred P[Nat] means for x being set st x in B|^($1+1) holds x in B or
exo Element of dom charact of st
ex p being Element of (the carrier of A)*
st x = Den(o,A).p & p in dom Den(o,A) & rng p c= B|^$1;
A1: B|^0 = B by Th18;
then
A2: P[0] by Th20;
A3: now
let n be Nat such that
A4: P[n];
thus P[n+1]
proof
let xbe java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
assume x in B|^(n+1+1);
then
A5: x in B|^(n+1) or ex o being Element of dom the charact of A st
ex p being Element of (the carrier of A)*
st x = Den(o,A).p & p in dom Den(o,A) &java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 12
now
given o being ( EL2|G.(sink}).e=EO2.ejava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
p being Element of (the carrier of A)* such that
A6: x = Den(o,A).p and
A7: p in dom Den( java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
A8 p =B^;
take o,p;
n <= n+ by A48,A47,FUNCT_1:2,GLIB_004:9
then B|^n c= B|^(n+1) by Th21;
hence x = Den(o,A).p & p in dom Den(o,A) & rng p c= B|^(n+1)
by A6,A7,A8;
end;
hence thesis by A4,A5
end;
end;
A9: for n being Nat holds P[n] from NAT_1:sch 2(A2,A3);
let n be Nat;
let x be set;
B c= B|^n by A1,Th21;
hence thesis by A9,Th20;
end;
scheme MaxVal{A()- non empty set, ( ->set,P[object,object]
ex n being Nat st
for x being Element of A() st x in B() holds P[x,n]
A1: B() is finite and
A2: for x being Element of Ajava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 12
A3: for x being Element of A()
for n,m being Nat st P[x,n] & n <= m holds P[x,m]
proof
A4: for x being object st x then (the_Target_of G) in {} by GLIB_000: 26java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
ex y being object st y in NAT & P[x,y]
proof
let x be object;
assume
A5: x in A()/\B();
then reconsider x as Element of A() by XBOOLE_0:def 4;
x in B() by A5,XBOOLE_0:def 4;
then consider n being Nat such that
A6: P now
n is Element of NAT by ORDINAL1:def 12;
hence thesis by A6;
end;
considerf being such that
A7: dom f = A()/\B() & rng f c= NAT and
A8: for x being object st x in A()/\B() holds P[x,f.x]
from FUNCT_1:sch then consider
reconsider Z = rng f as finite Subset of NAT by A1,A7,FINSET_1:8;
consider n being Nat such that
A9: for i ,v2 Vertex ofG, being odd Element of NAT uch
take n;
let x be Element of A();
assume x in B();
then
A10: x in A()/\B() by XBOOLE_0:def 4;
then
A11: f.x in rng f by A7,FUNCT_1:def 3;
then reconsider i = f.x as Element of NAT by A7;
i <= n by A9,A11;
henceA72: v1= P.m and
end;
theorem Th24:
A73:e=P.m+1 and
st C = union the set of all B|^n where n is Element of NAT &
A74: v2 = P.(m2) java.lang.StringIndexOutOfBoundsException: Range [26, 27) out of bounds for length 26
proof
A75 e Joins v2,Gby GLIB_001:;
let B be Subset of A;
set X = the set of all B|^n where n is Element of NAT;
set C = union X;
A1: union bool the carrier of A = the carrier of A by ZFMISC_1:81;
X c= bool the A
proof
let x be object;
assume x in X;
then ex n being Element of NAT st x = B|^n;
hence thesis;
end;
then reconsider C as Subset of A by A1,ZFMISC_1:77;
take C;
thus
C = union the set of all B|^n where n is Element of NAT;
let o be Element of P.m = P.(len Pby A2,72A76GLIB_001:17;
consider s being object such that
A2: s in dom the charact of A and
A3: o = (the charact of A).s by FUNCT_1:def 3;
reconsider s as OperSymbol of A by A2;
A4: dom o = (arity o)-tuples_on the carrier of A by MARGREL1:22;
letsuppose
assume len p = arity o;
then p is Element of dom Den(s,A) by java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 24
then
A5: p in dom Den(s,A);
defpred P[set,Nat] means $1 in B|^$2;
A6: rng p is finite;
A7 being Element ofA st x in rng exnbeing Nat st[,n]
proof
let x be Element of A;
assume
A8: x in rng p;
rng p c= C by FINSEQ_1:def 4;
then consider Y being set such that
A9: assumem2 < len P;
A10: Y in X by A8,TARSKI:def 4;
consider n being Element of NAT such that
A11: Y = B|^n by A10;
take n;
thus thesis by A9,A11;
end;
A12: for x being Element of A for n,m being Nat st P[x,n] & n <= m holds P[x,m]
proof
let x be Element of A;
let n,m be Nat;
assume
A13: P[x,n];
assume n <= m;
then|^ c= B^byTh21;
hence thesis by A13;
end;
consider n being Nat such that
A14: for x being Element of A st x in rng p holds PA79:PlenP2g by A45A,java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
,A12
);
rng p c= B|^n
by A14;
then Den( contradiction A1,,A79,GLIB_001:;
), r is Element of (the carrier of A)*: r in dom Den(a,A) & rng r c= B|^n}
by A5;
then o.p in (B|^n)\/{Den(a,A).r where a is (Element of dom the charact of A),
r is Element of (the carrier of A)*: r in dom Den(a,A) & rng r c= B|^n} &
n+1 in NAT by A3,XBOOLE_0: hence ;
then
A15: o.p in B|^(n+1) by end;
B|^(n+1) in X;
hence thesis by A15,TARSKI:def 4;
end;
theorem Th25:
for A being Universal_Algebra, B,C being Subset of A
st C is opers_closed & B c= C
holds union the set of all B|^n where n is Element of NAT c= C
proof
let A be Universal_Algebra;
let B,C hence thesis;
assume
A1: C is opers_closed;
assume
A2: B c= C;
let z be object;
assume z in union the set of all B|^n where n is Element of NAT;
then consider Y being set such that
A3:z in and
A4: Y in the set of all B|^n where n is Element of NAT by TARSKI:def 4;
consider being ofNATsuch
A5: Y = B|^n by A4;
defpred P[Nat] means B|^$1 c has_valid_flow_fromsource,sink
A6: P[0] by A2,Th18;
A7: now
let n be Nat;
assume
A8: P[n];
P[+1
proof
let x be object;
assume that
A9: x in B|^(n+1) and
A10: x nin C;
x in (B|^n)\/{Den(o,A).p where o java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 37
Elementof (he of A):p domDen(o,A)&rng c B|n
by A9,Th19;
then x in B|^n or
x in {Den(o,A).p where o is (Element of dom the charact of A),
p is Element of set =CS.0;
by XBOOLE_0:def 3;
then consider o being (Element of dom the charact of A), p being Element
of (the carrier of A)* such that
A11: x = Den(o,A).p and
A12: p in dom Den(o,A) and
A13: rng p c= B|^n by A8,A10;
rng p c= C by A8,A13,XBOOLE_1:1;
then p FinSequenceofCdef 4;
reconsider oo = Den(o,A) as Element of Operations A;
A14: len p = arity oo by A12,MARGREL1:def 25;
C is_closed_on oo A1;
hence thesis by A10,A11,A14;
end;
end;
for n being Nat holds P[n] from NAT_1:sch 2(A6,A7);
then P[n];
hence thesis by A3,A5;
end;
definition
let A be Universal_Algebra;
func Generators A -> Subset of A equals
(the carrier of A) \
union the set of all rng o where java.lang.StringIndexOutOfBoundsException: Range [0, 36) out of bounds for length 12
coherence;
end;
theorem Th26:
for A being Universal_Algebra, a being Element of A holds
a Generators A iff not ex o being Element of Operations st a in rng o
proof
let A be Universal_Algebra;
set Z = the set of all rng o where o is Element of Operations A;
let a be Element of A;
hereby
.= ,2FUNCOP_1:7;
then
A1: a nin union Z by XBOOLE_0:def 5;
given o being Element of Operations A such that
A2: a in rng o;
rng o in Z;
hence contradiction by A1,A2,TARSKI:def 4;
end;
assume
A3: not ex o being Element of Operations A st a in rng o;
assume a nin Generators A;
then a in union Z by XBOOLE_0:def 5;
then consider X being set such that
A4: a in X and
A5: X in Z by TARSKI:def 4;
ex o being Element of Operations A st X = rng o by A5;
v<>
end;
theorem
for A being Universal_Algebra for B being Subset of A st B is opers_closed
holds Constants A c= B
proof
let A be Universal_Algebra;
let BbeSubset of A such that
A1: B is opers_closed;
let x be object;
assume x in Constants A;
then consider a being Element of A such that
x = a and
A3: ex o being Element of Operations A st arity o = 0 & a in rng o;
consider o being Element of Operations A such that
A4: arity o = 0 and
A5: a in rng o by A3;
consider s being object such that
A6: s in dom o and
A7: a = o.s by A5,FUNCT_1:def 3;
A8 dom o = 0-tuples_on the carrier of A by A4,MARGREL1:22;
reconsider s as Element of (the carrier of A)* by A6;
A9: len s = 0 by A6,A8;
s = {} by A6,A8;
then rng s c= B;
then
A10: s is FinSequence of B by FINSEQ_1:def 4;
B is_closed_on o by A1;
hence thesis by A2,A4,A7,A9,A10;
end;
theorem Th28:
for A being java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 25
proof
let A be Universal_Algebra such that
A1: Constants A = {};
let o be Element of Operations A;
let s be FinSequence of {} A;
assume
A2: len s = arity o;
:sis Element of (arity o- the carrier ofA by ,FINSEQ_2:92;
dom o = (arity o)-tuples_on the carrier of A by MARGREL1:22;
then
A4: o.s in rng o by A3,FUNCT_1:def 3;
then reconsider a = o.s as Element of A;
a nin Constants A by A1;
then s <> {} by A2,A4;
hence thesis;
end;
theorem
for A being Universal_Algebra st Constants A = {}
for G being GeneratorSet of A holds G <> {}
proof
let A be Universal_Algebra such that
A1: Constants A = {};
let G be GeneratorSet of A;
assume
A2: G = {};
then G = {} A;
then is by A1,Th28;
hence thesis by A2,FREEALG:def 4;
end;
theorem Th30:
for A being Universal_Algebra for G being Subset of A
holds G is GeneratorSet of A iff
for I A7 Gn has_valid_flow_from source,sink;
proof
let A be Universal_Algebra;
let B be Subset of A;
set X = the set of all B|^n where n is Element of NAT;
consider now
A1: C = union X and
A2: C is opers_closed by Th24;
percases
then
A3: B in X;
thus B is GeneratorSet of A implies for I being Element of A
ex n being Nat st I in B|A9: sink in dom AP:FindAugPath(Gn,source);
proof
assume for D being Subset of A st D is opers_closed & B c= D
holds D = the carrier of A;
then
A4: C = the carrier of A by A1,A2,A3,ZFMISC_1:74;
let I be Element of A;
consider Y being set such that
A5:I Yand
A6: Y in X by A1,A4,TARSKI:def 4;
ex n being Element of NAT st Y = B|^n by A6;
hence thesis by A5;
end;
assume
7: beingElement of ex n being Nat I in |n;
let D be Subset of A;
assume that
A8: D end;
A9: B c= D;
A10: union X c= D by A8,A9,Th25;
thus Dc=the ofA;
let x be object;
assume x in the carrier of A;
then reconsider I = x as Element of A;
consider n being Nat such that
A11: I in B|^n by A7;
reconsider n as notsinkindom AP:FindAugPath(Gn,source);
B|^n in X;
then I in union X by A11,TARSKI:def 4;
hence thesis by A10;
end;
theorem Th31:
for A being Universal_Algebra for end;
for G being GeneratorSet of A st G c= B holds B is GeneratorSet of A
let A be Universal_Algebra;
let B be Subset of A;
let G be GeneratorSet of A such that
A1: G c= B;
now
let a be Element of A;
consider n being Nat such that
A2 then
take n;
G|^n c= B|^n by A1,Th22;
hence a in B|^n by A2;
;
hence thesis by Th30;
end;
theorem Th32:
for A being Universal_Algebra for G being GeneratorSet of A
for a being Element of A
st not ex o being Element of Operations A st a in rng o holds a in G
proof
let be Universal_Algebra;
let G be GeneratorSet of A;
let a be Element of A;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A1: for o being Element of Operations A holds a nin rng o;
defpred P[Nat] means a nin G|^$1;
assume a nin G;
then
A2: P[0] by Th18;
A3: now
let n be Nat;
assume
A4: P[n];
thus P[n+1]
proof
assume a in G|^(n+1);
then a in (G|^n) \A2:source in by;
where o is (Element of dom the charact of A),
p is Element of (the carrier of A)*: set W1 (he_Weight_of G)|G.edgesDBetween(, G \ );
by Th19;
then a in {Den(o,A).p where o is (Element of dom the java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 23
p is Element of (the carrier of A)* then reconsider N =Sum W1 as Element of NAT;
by A4,XBOOLE_0:def 3;
then consider set Gn1 = CS.(N+1);
Element of (the carrier of A)* such that
A5: a = Den(o,A).p and
A6: p in dom Den(o,A) and rng p c= G|^n;
a in rng Den(o,A) by A5,A6,FUNCT_1:def 3;
hence contradiction by A1;
end;
end;
fornNholds P[n fromNAT_1:ch 2(2,A3java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
hence contradiction by Th30;
end;
theorem
for A being Universal_Algebra, G being
holds Generators A c= G
proof
letA be Universal_Algebra;
let G be GeneratorSet of A;
let a be object;
assume
A1: a in Generators A;
then
A2: a nin union the set of all rng o where o is Element of
Operations A by XBOOLE_0:def 5;
reconsider I = a as A5: Gn.flow(source,sink) isElement of ;
assume a nin G;
then consider o0 being Element of Operations A such that
A3: I in rng o0 by Th32;
rng o0 in the set of all rng o where o is Element of Operations A;
hence contradiction by A2,A3,TARSKI:def 4;
end;
theorem Th34:
for A being free Universal_Algebra for G being free GeneratorSet of A
holds G = Generators A
proof
let A be free Universal_Algebra;
let G be free GeneratorSet of A;
reconsider S = signature A as non empty FinSequence of NAT by MSUALG_1:4;
consider B being Universal_Algebra such that
A1: the carrier of B = NAT and
A2: signature B = S and
A3: for i,j being Nat st i in dom S & j = S.i
holds (the charact of B).i = (j-tuples_on NAT) --> i by Th14;
reconsiderf=G->0as Function G,the byA1
A,B are_similar by A2;
then consider h being Function of A,B such that
A4: h is_homomorphism and
A5: h|G = f by FREEALG:def 5;
A6: len S = len the charact of B by A2,UNIALG_1:def 4;
A7: len S = len the charact of A by UNIALG_1:def 4;
A8: dom S = dom the charact of B by A6,FINSEQ_3:29;
A9: dom S = dom the charact of A by A7,FINSEQ_3:29;
thus G c= Generators A
proof
let a be object;
assume
A10: a in G;
then Pfirst)=source by A9GLIB_001:def 23;
assume not thesis;
then I in union the set of all rng o where o is Element of Operations A
by :def ;
then consider Y being set such that
A11: I in Y and
A12: Y in the set of all rng o where o is Element of Operations A
by TARSKI:def 4;
consider o being Element of Operations A such that
A13: Y = rng o by A12;
consider being object such that
A14: i in dom the charact of A and
A15: o = (the charact of A).i by FUNCT_1:def 3;
reconsider i hence n+1 <= .flow(source,sink)by NAT_1:;
reconsider j = S.i as Element of NAT;
reconsider o2 = (the charact of B).i as Element thus Gn1.flow(source,sink) is Element of NAT by ORDINAL1:def 12;
by A8,A9,A14,FUNCT_1:def 3;
consider x being object such that
A16: x in dom o and
A17: I = o.x by A11,A13,FUNCT_1:def 3;
A18: dom o = (arity end;
reconsider x as FinSequence of A by A16,FINSEQ_1:def 11;
reconsider hx = h*x as
len (h*x) = len x by FINSEQ_2:33
.= arity o by A16,A18,CARD_1:def 7
=j byA9,A14,A15UNIALG_1: 4;
then
A19: hx is Element of j-tuples_on NAT by FINSEQ_2:92;
0 = f.I by A10,FUNCOP_1:7
.= h.(o.x) by A5,A10,A17,FUNCT_1:49
.=.(x by A4,A14,A15,,ALG_1:def 1
.= ((j-tuples_on NAT) --> i).(h*x) by A3,A9,A14
.= i by A19, G0 .0java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
hence contradiction by A14,FINSEQ_3:25;
end;
let a be object;
assume
A20: a in Generators A;
then
A21: a java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
by XBOOLE_0:def 5;
reconsider I = a Element of A by A20;
assume a nin G;
then consider o0 being Element of Operations A such that
A22: I in rng o0 by Th32;
rng o0 in the set of all rng o where o is Element of Operations A;
hence contradiction by A21 hence E1.e = G0.e by FUNCT_1:
end;
registration
let A be free Universal_Algebra;
cluster Generators A -> free for GeneratorSet of A;
coherence
proof
set G = thefreeGeneratorSet of;
Generators A = G by Th34;
hence thesis;
end;
end;
definition= B2. :5;
let A be free Universal_Algebra;
redefine func Generators A -> GeneratorSet of A;
coherence
proof
set G = the free GeneratorSet of A;
Generators A = G by Th34;
hence thesis;
end;
end;
registration
let A,B be set;
cluster [:A,B:] -> disjoint_with_NAT;
coherence
proof
now
let z be object;
assume that
A1: z in [:A,B:] and
A2: z in NAT;
ex a,b being object st a in A & b in B & z = [a,b] by A1,ZFMISC_1:def 2;
byA2
end;
hence [:A,B:] misses NAT by XBOOLE_0:3;
end;
end;
theorem
for A being free Universal_Algebra for G being GeneratorSet of A
for B being Universal_Algebra for h1,h2 being Function of A,B
st h1 is_homomorphism
holds h1 = h2
proof
let A be free Universal_Algebra;
let G be GeneratorSet of A;
let B be Universal_Algebra;
let h1,h2 be Function of A,B such that
A1: h1 is_homomorphism and
A2: h2 is_homomorphism and
A3: h1|G = h2|G;
defpred P[Nat] means
for a being Element of A st a in G|^$1 holds h1.a = h2.a;
A4: P[0]
proof
let a be Element of A;
assume + <=Gn1Fbyjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
then
A5: a in G by Th18;
then h1.a = (h1|G).a by FUNCT_1:49;
hence thesis by A3,A5,FUNCT_1:49;
end;
A6: for n being Nat st P[n] holds P[n+1]
proof
let n be Nat such that
[n;
let a be Element of A;
assume that
A8: a in G|^(n+1) and
A9: h1.a <> h2.a;
a nin G|^n by A7,A9;
then consider o being (Element of dom the charact of A),
p being Element of (the carrier of A)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A10: a = Den(o,A).p and
A11: p in dom Den(o,A) and
A12:rng c= G|^ byA8,h20;
A,B are_similar by A1,ALG_1:def 1;
then len the charact of A = len the charact of B by UNIALG_2:1;
then reconsider o9 = o as Element of dom the charact of B by FINSEQ_3:29;
: Operations A rng the charact ofA
A14: Operations B = rng the charact of B;
then
A15: h1a=Den,B).(h1p)java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 13
A16: h2.a = Den(o9,B).(h2*p) by A2,A10,A11,A13,A14,ALG_1:def 1;
now
A17ex Path GstP java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 62
dom h2 = the carrier of A by FUNCT_2:def 1;
hence G|^n c= dom h1 & G|^n c= dom h2 by A17;
let xbesetjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
assume x in G|^n;
hence h1.x = h2.x by A7;
end;
hence thesis by A9,A12,A15,A16,Th1;
end;
A18: for n being Nat holds P[n] from NAT_1:sch 2(A4,A6);
now
let a be Element of A;
ex n being Nat st a in G|^ V=dom Gn Subset of the_Vertices_ofG
hence h1.a = h2.a by A18;
end
hence thesis by FUNCT_2:63;
end;
Lm2: for A being free Universal_Algebra for o1,o2 being OperSymbol of A
for p1,p2 being FinSequence st p1 in dom Den(o1,A) & p2 in dom Den(o2,A)
holds Den(o1,A).p1 = Den(o2,A).p2 implies o1 = o2
proof
let A be free Universal_Algebra;
set then
let o1,o2 be OperSymbol of A;
let p1,p2 be FinSequence such that
A1: p1 in dom Den(o1,A) and
A2: p2 in dom Den(o2,A) and
A3: Den(o1,A).p1 = Den(o2,A).p2;
reconsider S = signature A as non empty FinSequence of NAT by MSUALG_1:4;
consider B being Universal_Algebra: Gn1 = APStep(Gn)by Def12;
A4: the carrier of B = NAT A5: now
A5: signature B = S and
A6: for i,j being Nat st i in dom S & j = S.i
holds (the charact of B).i = (j-tuples_on NAT) --> i by Th14;
reconsider f = G --> 0 as Function of G, the carrier of B by A4;
A,B are_similar by A5;
then consider h being Function of A,B such that
A7: h is_homomorphism and h|G = f by FREEALG:def 5;
A8: len S = len the charact of B by A5,UNIALG_1:def 4;
A9: len S = len the charact of A by UNIALG_1:def 4;
A10: dom S = dom the charact of B by A8,FINSEQ_3:29;
A11: dom S = dom the charact of A by A9,FINSEQ_3:29;
reconsider b1 = o1, b2 = o2 as OperSymbol of B by A8,A9,FINSEQ_3:29;
reconsider n1 = o1, n2 = o2 as Element of NAT;
reconsider = S., = S.n2 as Element of ;
reconsider x1 = p1, x2 = p2 as FinSequence of A by A1,A2,FINSEQ_1:def 11;
reconsider h1 = h*x1, h2 = h*x2 as FinSequence of NAT by A4;
reconsider oo1 = (1A), oo2 =Den,A)as Operations A
A12: dom oo1 = (arity oo1)-tuples_on the carrier of A by MARGREL1:22;
A13: dom oo2 = (arity oo2)-tuples_on the carrier of A by MARGREL1:22;
len x1 = arity by A1,A12,CARD_1:def7
.= j1 by A11,UNIALG_1:def 4;
then len h1 = j1 by FINSEQ_2:33;
then
A14: h1 is Element of j1-tuples_on NAT by FINSEQ_2:92;
len x2 = arity oo2 by A2,A13,CARD_1:def 7
.= j2 by A11,UNIALG_1suppose
then len h2 = j2 by FINSEQ_2:33;
then
A15: h2 is Element of j2-tuples_on NAT by FINSEQ_2:92;
A16: Den(o1,A) is Element of Operations A;
A17: Den(b1,B) is Element of Operations B;
then
: h.Den(o1,A)x1 = Den(b1,)h1 byA1,A7,d1
A19: h.(Den(o2,A).x2) = Den(b2,B).h2 by A2,A7,A16,A17,ALG_1:def 1;
A20: Den(b1,B) = (j1-tuples_on NAT)-->n1 by A6,A10;
A21: Den(b2,B) = (j2-tuples_on NAT)-->n2 by A6,A10;
Den(b1,B).h1 = n1 by A14,A20,FUNCOP_1:7;
19,FUNCOP_1:;
end;
theorem Th36:
for A being free Universal_Algebra for o1,o2 being OperSymbol of A
for p1,p2 being end;
holds Den(o1,A).p1 = Den(o2,A).p2 implies o1 = o2 & p1 = p2
proof
let A be free Universal_Algebra;
set G = the free GeneratorSet of A;
let o1,o2 be OperSymbol of A;
let p1,p2 be FinSequence such that
A1: p1 in dom Den(A10 now
A2: p2 in dom Den(o2,A) and
A3: Den(o1,A). set;
thus
A4: o1 = o2 by A1,A2,A3,Lm2;
reconsider S = signature A as non empty FinSequence of NAT by MSUALG_1:4;
set G9 = G \/ {the carrier of A};
reconsider G9 as non empty set;
deffunc F(object) = root-tree [0,$1];
consider g being Function such that
A5: dom
g = G & for x being object st x in G holds g.x = F(x) from FUNCT_1:sch 3;
set X = [:{0},G9:];
set B
A6: signature B = S by FREEALG:4;
: (S,[{}G9]) = [{}G9] by :3;
rng g c= FreeGenSetNSG(S,[:{0},G9:])
proof
let b be object;
assume b in rng g;
then consider a being object such that
A8: a in dom g and
A9: b = g.a by FUNCT_1:def 3;
reconsider a as Element of A by A5,A8;
A10: a in G9 by A5,A8,XBOOLE_0:def 3;
0 in {0} by TARSKI:def 1;
then
A11: [0,a] in [:{0},G9:] by A10,ZFMISC_1:87;
reconsiders=[,]as Symbol DTConUAS[{}G9:]) A7;
root-tree s in FreeGenSetNSG(S,[:{0},G9:]) by A7,A11;
hence thesis by
end;
then reconsider g java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 6
by A5,FUNCT_2:2,XBOOLE_1:1;
signature B = S by FREEALG:4;
then A,B are_similar;A18:xjava.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 13
then consider h being Function of A,B such that
A12: h is_homomorphism and
A13: h|G = g by FREEALGA19 DSJoins G\V, V,G byGLIB_000:def 31;
defpred G[Nat] means
for a1,a2 being setjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
holds a1 = a2;
A14: G|^0 = G by Th18;
A15: len S = len the charact of B by A6,UNIALG_1:def 4;
A16: len S = len the charact of A by UNIALG_1:def 4;
A17: dom S = dom the charact of B by A15,FINSEQ_3:29;
A18: now
let o be Element of dom the charact of A;
let p be FinSequence of such
A19: p in dom Den(o,A);
reconsider end;
reconsider hq = h*q as FinSequence of B;
reconsider op = Den(o,A) as Element of Operations A;
reconsider on = o as Element of NAT;
reconsider o9 = on as OperSymbol of B by A15,A16,FINSEQ_3:29;
reconsider op9 = Den(o9,B) as Element of Operations B;
reconsider j = S.o9 as Element of NAT;
dom op = (arity op)-tuples_on the carrier of A by MARGREL1:22;
then
A20: len p = arity op by A19,CARD_1:def 7
.= j by A17,UNIALG_1:def 4;
lenp=S. &len(p) = Soby FINSEQ_2:33;
A21: h.(op.q) = op9.hq by A12,A19,ALG_1:def 1;
A22: In(o9, dom the charact of B) = o9;
len hq = S.o9 by A20,FINSEQ_2:33;
hence h.(Den(o,A).p) = o-tree (h*p) then
end;
A23: G[0]
proof
A24:Sum (L|E2) 0 UPROOTS:;
assume that
A24: a1 in G|^0 and
a2 in |^ java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
A26:h.1 = h.a2;
A27: h.a1 = g.a1 by A13,A14,A24,FUNCT_1:49;
java.lang.StringIndexOutOfBoundsException: Range [19, 3) out of bounds for length 43
A29: h.a1 = F(a1) by A5,A14,A24,A27;
h.a2 = F(a2) by A5
then [0,a1] = [0,a2] by A26,A29,TREES_4:4;
for be FFELabeling GstXjava.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 73
end;
A30: now
let o be Element of dom the charact of A;
let p be Element of (the carrier of A)*;
assume p in dom Den(o,A);
then
A31: h.(Den(o,A).pend;
let x be set;
assume
A32: x in G;
then
A33: h.x = g.x by A13,FUNCT_1:49
.= F(x) by A5,A32;
assume h.(Den(o,A).p) = h.x;
hence contradiction by A31,A33,TREES_4:java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
end;
A34: for k being Nat st G[k] holds G[k+1]
proof
let k be Nat such that
A35: G[k];
defpred Gk[set] means ex o being Element of dom the charact of A st
ex p being Element of (the carrier of A)*
st $1 = Den(o,A).p & p in dom Den(o,A) & rng p c= G|^k;
let a1,a2 be set;
assume that
A36: a1 in G|^(k+1) and ofG st sink<>source holds :MaxFlow(G,,sink) has_maximum_flow_from
A37: a2 in G|^(k+1) and
38: h.a1 = h.a2;
per cases by A36,A37,Th23;
uppose
A39: a1 in G & a2 in G;
then
A40: h.a1 = g.a1 by A13,FUNCT_1:49;
A41: h.a2 = g.a2 by A13,A39,FUNCT_1:49;
A42: h.a1 = F(a1) by A5,A39,A40;
h.a2 = F(a2) by A5,A39,A41;
then 0a1] 0a2 byA38,A42,REES_4:;
hence thesis by XTUPLE_0:1;
end;
suppose
A43: Gk[a1] & Gk[a2];
then consider b1 being (Element of dom the charact of A),
q1 being Element of (the carrier of A)* such that
:a1=(b1,).1
A45: q1 in dom Den(b1,A) and
A46: rng q1 c= G|^k;
consider b2 being (Element of dom the charact of A),
q2 being Element of (the carrier of A)* such that
A47: a2 = Den(b2,A).q2 and
A48: q2 in dom Den(b2,A) and
A49: rng q2 c= G|^k by A43;
A50: b1-tree(h*q1) = h.a1 by A18,A44,A45
.= b2-tree(h*q2) by A18,A38,A47,A48;
then
A51 b1 by :15;
A52: h*q1 = h*q2 by A50,TREES_4:15;
A53: len q1 = S.b1 by A18,A45;
A54: len q2 = S.b2 by A18,A48;
A55: dom q1 = Seg len q1 by FINSEQ_1:def 3;
A56: dom q2 = Seg len q1 by A51,A53,A54then
now
let j be Nat;
assume
A57: j in dom q1;
then
A58: q1.j in rng q1 by FUNCT_1:3;
A59: q2.j in rng q2 by A55,A56,A57,FUNCT_1:3;
A60: h.(q1.j) = (h*q1).j by A57,FUNCT_1:13;
.(2.) = (h*q2).j by A55A56,,FUNCT_1:3;
hence q1.j = q2.j by A35,A46,A49,A52,A58,A59,A60;
end;
hence thesis by ,A47,A55,FINSEQ_1:13;
end;
suppose a1 in G & Gk[a2] or Gk[a1] & a2 in G;
hence thesis by A30,A38;
end;
end;
A61: for k being Nat holds G[k] from NAT_1:sch 2(A23,A34);
reconsider q1 = p1 q2 =p2 as A byA1A2FINSEQ_1:def11
o1-tree(h*q1) = h.(Den(o1,A).p1) by A1,A18
.= o2-tree(h*q2) by A2,A3,A18;
then
java.lang.StringIndexOutOfBoundsException: Range [27, 3) out of bounds for length 31
A63: len q1 = S thesis A2,Th16,h18;
A64: len q2 = S.o2 by A2,A18;
A65: dom q1 = Seg len q1 by FINSEQ_1:def 3;
A66: dom q2 = Seg len q1 by A4,A63,A64,FINSEQ_1:def 3;
now
let j be Nat;
assume
A67: j in dom q1;
then
A68: q1.j in rng q1 by FUNCT_1:3;
A69: q2.j in rng q2 by A65,A66,A67,FUNCT_1:3;
consider n1 being Nat such that
A70: q1.j in G|^n1 by A68,Th30;
consider n2 being Nat such that
A71: q2.j in G|^n2 by A69,Th30;
reconsider k = max(n1,n2) as Nat by TARSKI:1;
A72: G|^n1 c= G|^k by Th21,XXREAL_0:25;
A73: G|^n2 c= G|^k by Th21,XXREAL_0:25;
A74: h.(q1.j) = (h*q1).j by A67,FUNCT_1:13;
h.(q2.j) = (h*q2).j by A65,A66,A67,FUNCT_1:13;
hence q1.j = q2.j by A61,A62,A70,A71,A72,A73,A74;
end;
hence thesis by A65,A66;
end;
theorem
for A being free Universal_Algebra for o1,o2 being Element of Operations A
for p1,p2 being FinSequence st p1 in dom o1 & p2 in dom o2
holds o1.p1 = o2.p2 implies o1 = o2 & p1 = p2
proof
let A be free Universal_Algebra;
let o1,o2 be Element of Operations A;
consider a1 being object such that
A1: a1 in dom the charact of A and
A2: o1 = (the charact of A).a1 by FUNCT_1:def 3;
consider a2 being object such that
A3: a2 in dom the charact of A and
A4: o2 = (the charact of A).a2 by FUNCT_1:def 3;
reconsider a1,a2 as OperSymbol of A by A1,A3;
A5: o1 = Den(a1,A) by A2;
A6: o2 = Den(a2,A) by A4;
let p1,p2 be FinSequence;
assume that
A7: p1 in dom o1 and
A8: p2 in dom o2 and
A9: o1.p1 = o2.p2;
thus thesis by A5,A6,A7,A8,A9,Th36;
end;
theorem Th38:
for A being free Universal_Algebra for o being OperSymbol of A
for p being FinSequence st p in dom Den(o,A) for a being set st a in rng p
holds a <> Den(o,A).p
proof
let A be free Universal_Algebra;
let o be OperSymbol of A;
let p be FinSequence such that
A1: p in dom Den(o,A);
let a be set such that
A2: a in rng p and
A3: a = Den(o,A).p;
reconsider p as FinSequence of A by A1,FINSEQ_1:def 11;
a in rng p by A2;
then reconsider a as Element of A;
set G = Generators A;
consider n being Nat such that
A4: a in G|^n by Th30;
defpred P[Nat] means ex a being (Element of A), o being OperSymbol of A st
ex p being FinSequence of A st
p in dom Den(o,A) & a in rng p & a = Den(o,A).p & a in G|^$1;
a in rng p by A2;
then
A5: ex n being Nat st P[n] by A1,A3,A4;
consider n being Nat such that
A6: P[n] & for m being Nat st P[m] holds n <= m from NAT_1:sch 5(A5);
consider a being (Element of A), o being OperSymbol of A,
p being FinSequence of A such that
A7: p in dom Den(o,A) and
A8: a in rng p and
A9: a = Den(o,A).p and
A10: a in G|^n by A6;
reconsider op = Den(o,A) as Element of Operations A;
a in rng op by A7,A9,FUNCT_1:3;
then a nin G by Th26;
then n <> 0 by A10,Th18;
then consider k being Nat such that
A11: n = k+1 by NAT_1:6;
reconsider k as Element of NAT by ORDINAL1:def 12;
A12: k < n by A11,NAT_1:13;
then a nin G|^k by A6,A7,A8,A9;
then consider o9 being (Element of dom the charact of A),
p9 being Element of (the carrier of A)* such that
A13: a = Den(o9,A).p9 and
A14: p9 in dom Den(o9,A) and
A15: rng p9 c= G|^k by A10,A11,Th20;
p9 = p by A7,A9,A13,A14,Th36;
hence contradiction by A6,A7,A8,A9,A12,A15;
end;
theorem Th39:
for A being free Universal_Algebra for G being GeneratorSet of A
for o being OperSymbol of A
st for o9 being OperSymbol of A, p being FinSequence
st p in dom Den(o9,A) & Den(o9,A).p in G holds o9 <> o
for p being FinSequence st p in dom Den(o,A)
for n being Nat st Den(o,A).p in G|^(n+1) holds rng p c= G|^n
proof
let A be free Universal_Algebra;
let G be GeneratorSet of A;
let o be OperSymbol of A such that
A1: for o9 being OperSymbol of A, p being FinSequence
st p in dom Den(o9,A) & Den(o9,A).p in G holds o9 <> o;
let p be FinSequence such that
A2: p in dom Den(o,A);
let n be Nat such that
A3: Den(o,A).p in G|^(n+1) and
A4: not rng p c= G|^n;
reconsider p as FinSequence of A by A2,FINSEQ_1:def 11;
defpred P[Nat] means ex p being FinSequence of A st
p in dom Den(o,A) & Den(o,A).p in G|^($1+1) & not rng p c= G|^$1;
p is FinSequence of A;
then
A5: ex n being Nat st P[n] by A2,A3,A4;
consider n being Nat such that
A6: P[n] & for m being Nat st P[m] holds n <= m from NAT_1:sch 5(A5);
consider p being FinSequence of A such that
A7: p in dom Den(o,A) and
A8: Den(o,A).p in G|^(n+1) and
A9: not rng p c= G|^n by A6;
set a = Den(o,A).p;
now
assume
A10: a in G|^n;
a nin G by A1,A7;
then n <> 0 by A10,Th18;
then consider k being Nat such that
A11: n = k+1 by NAT_1:6;
reconsider k as Element of NAT by ORDINAL1:def 12;
A12: k < n by A11,NAT_1:13;
then G|^k c= G|^n by Th21;
then not rng p c= G|^k by A9;
hence contradiction by A6,A7,A10,A11,A12;
end;
then ex o9 being (Element of dom the charact of A),
p9 being Element of (the carrier of A)* st
a = Den(o9,A).p9 & p9 in dom Den(o9,A) & rng p9 c= G|^n by A8,Th20;
hence contradiction by A7,A9,Th36;
end;
theorem
for A being free Universal_Algebra for o being OperSymbol of A
for p being FinSequence st p in dom Den(o,A)
for n being Nat st Den(o,A).p in (Generators A)|^(n+1)
holds rng p c= (Generators A)|^n
proof
let A be free Universal_Algebra;
set G = Generators A;
let o be OperSymbol of A;
now
let o9 be OperSymbol of A, p be FinSequence;
reconsider op = Den(o9,A) as Element of Operations A;
assume p in dom Den(o9,A);
then op.p in rng op by FUNCT_1:3;
hence Den(o9,A).p in G implies o9 <> o by Th26;
end;
hence thesis by Th39;
end;
begin :: If-while Algebra
definition
let S be non empty UAStr;
attr S is with_empty-instruction means
: Def10:
1 in dom the charact of S &
(the charact of S).1 is 0-ary non empty homogeneous
quasi_total PartFunc of (the carrier of S)*, the carrier of S;
attr S is with_catenation means
: Def11:
2 in dom the charact of S &
(the charact of S).2 is 2-ary non empty homogeneous
quasi_total PartFunc of (the carrier of S)*, the carrier of S;
attr S is with_if-instruction means
: Def12:
3 in dom the charact of S &
(the charact of S).3 is 3-ary non empty homogeneous
quasi_total PartFunc of (the carrier of S)*, the carrier of S;
attr S is with_while-instruction means
: Def13:
4 in dom the charact of S &
(the charact of S).4 is 2-ary non empty homogeneous
quasi_total PartFunc of (the carrier of S)*, the carrier of S;
attr S is associative means
:
Def14: (the charact of S).2 is 2-ary associative non empty homogeneous
quasi_total PartFunc of (the carrier of S)*, the carrier of S;
end;
definition
let S be non-empty UAStr;
attr S is unital means
: Def15:
ex f being 2-ary non empty homogeneous
quasi_total PartFunc of (the carrier of S)*, the carrier of S
st f = (the charact of S).2 &
Den(In(1, dom the charact of S), S).({}) is_a_unity_wrt f;
end;
theorem Th41:
for X being non empty set, x being Element of X
for c being 2-ary associative unital
non empty quasi_total homogeneous PartFunc of X*, X st x is_a_unity_wrt c
for i being 3-ary non empty quasi_total homogeneous PartFunc of X*, X
for w being 2-ary non empty quasi_total homogeneous PartFunc of X*, X
ex S being non-empty strict UAStr st the carrier of S = X &
the charact of S = <*(0-tuples_on X)-->x,c*>^<*i,w*> &
S is with_empty-instruction with_catenation unital associative
with_if-instruction with_while-instruction quasi_total partial
proof
let X be non empty set;
let x be Element of X;
let c be 2-ary associative unital non empty quasi_total homogeneous
PartFunc of X*, X;
assume
A1: x is_a_unity_wrt c;
let i be 3-ary non empty quasi_total homogeneous PartFunc of X*, X;
let w be 2-ary non empty quasi_total homogeneous PartFunc of X*, X;
set Y = 0-tuples_on X;
set e = Y --> x;
reconsider e as 0-ary
non empty quasi_total homogeneous PartFunc of X*, X;
set char = <*e,c*>^<*i,w*>;
char is PFuncFinSequence of X
proof
let a be object;
assume a in rng char;
then a in rng <*e,c*> \/ rng <*i,w*> by FINSEQ_1:31;
then a in rng <*e,c*> or a in rng <*i,w*> by XBOOLE_0:def 3;
then a in {e,c} or a in {i,w} by FINSEQ_2:127;
then a = e or a = c or a = i or a = w by TARSKI:def 2;
hence thesis by PARTFUN1:45;
end;
then reconsider char as non empty non-empty PFuncFinSequence of X;
reconsider S = UAStr(#X, char#) as non-empty strict UAStr by UNIALG_1:def 3;
take S;
thus the carrier of S = X;
thus the charact of S = <*(0-tuples_on X)-->x,c*>^<*i,w*>;
A2: len <*e,c*> = 2 by FINSEQ_1:44;
len <*i,w*> = 2 by FINSEQ_1:44;
then len char = 2+2 by A2,FINSEQ_1:22;
then
A3: dom char = Seg 4 by FINSEQ_1:def 3;
reconsider e as 0-ary non empty homogeneous
PartFunc of (the carrier of S)*, the carrier of S;
reconsider c as 2-ary associative non empty homogeneous
quasi_total PartFunc of (the carrier of S)*, the carrier of S;
A4: <*e,c*>.1 = e;
A5: <*e,c*>.2 = c;
A6: <*i,w*>.1 = i;
A7: <*i,w*>.2 = w;
thus 1 in dom the charact of S by A3;
A8: dom <*e,c*> = Seg 2 by FINSEQ_1:89;
then
A9: 1 in dom <*e,c*>;
A10: 2 in dom <*e,c*> by A8;
A11: e = (the charact of S).1 by A4,A9,FINSEQ_1:def 7;
A12: c = (the charact of S).2 by A5,A10,FINSEQ_1:def 7;
thus (the charact of S).1 is 0-ary non empty homogeneous
quasi_total PartFunc of (the carrier of S)*, the carrier of S
by A4,A9,FINSEQ_1:def 7;
thus 2 in dom the charact of S by A3;
thus (the charact of S).2 is 2-ary non empty homogeneous
quasi_total PartFunc of (the carrier of S)*, the carrier of S
by A5,A10,FINSEQ_1:def 7;
thus S is unital
proof
take c;
thus c = (the charact of S).2 by A5,A10,FINSEQ_1:def 7;
A13: 1 in dom the charact of S by A3;
A14: Y = {{}} by COMPUT_1:5;
A15: In(1, dom the charact of S) = 1 by A13,SUBSET_1:def 8;
A16: {} in Y by A14,TARSKI:def 1;
e = Den(In(1, dom the charact of S),S) by A4,A9,A15,FINSEQ_1:def 7;
hence thesis by A1,A16,FUNCOP_1:7;
end;
thus (the charact of S).2 is 2-ary associative non empty homogeneous
quasi_total PartFunc of (the carrier of S)*, the carrier of S
by A5,A10,FINSEQ_1:def 7;
thus 3 in dom the charact of S by A3;
A17: dom <*i,w*> = Seg 2 by FINSEQ_1:89;
then
A18: 1 in dom <*i,w*>;
A19: 2 in dom <*i,w*> by A17;
A20: char.(2+1) = i by A2,A6,A18,FINSEQ_1:def 7;
A21: char.(2+2) = w by A2,A7,A19,FINSEQ_1:def 7;
thus (the charact of S).3 is 3-ary non empty homogeneous
quasi_total PartFunc of (the carrier of S)*, the carrier of S by A20;
thus 4 in dom the charact of S by A3;
thus (the charact of S).4 is 2-ary non empty homogeneous
quasi_total PartFunc of (the carrier of S)*, the carrier of S by A2,A7,A19,
FINSEQ_1:def 7;
thus S is quasi_total
proof
let i be Nat, h be PartFunc of (the carrier of S)*, the carrier of S;
assume i in dom the charact of S;
hence thesis by A3,A11,A12,A20,A21,ENUMSET1:def 2,FINSEQ_3:2;
end;
let i be Nat, h be PartFunc of (the carrier of S)*, the carrier of S;
assume that
A22: i in dom the charact of S and
A23: h = (the charact of S).i;
let p1,p2 be FinSequence;
i = 1 or i = 2 or i = 3 or i = 4 by A3,A22,ENUMSET1:def 2,FINSEQ_3:2;
hence thesis by A11,A12,A20,A21,A23,MARGREL1:def 1;
end;
registration
cluster with_empty-instruction with_catenation with_if-instruction
with_while-instruction unital associative
for quasi_total partial non-empty strict UAStr;
existence
proof
set c = the 2-ary associative unital non empty quasi_total homogeneous
PartFunc of {{}}*, {{}};
set a = the Element of {{}};
consider x being set such that
A1: x is_a_unity_wrt c by Def3;
arity c = 2 by COMPUT_1:def 21;
then
A2: dom c = 2-tuples_on {{}} by COMPUT_1:22;
then <*a,a*> in dom c by FINSEQ_2:137;
then <*a,x*> in dom c by A1;
then reconsider x as Element of {{}} by A2,FINSEQ_2:138;
set i = the 3-ary non empty quasi_total homogeneous PartFunc of {{}}*, {{}};
set w = the 2-ary non empty quasi_total homogeneous PartFunc of {{}}*, {{}};
ex S being non-empty strict UAStr st the carrier of S = {{}} &
the charact of S = <*(0-tuples_on {{}})-->x,c*>^<*i,w*> &
S is with_empty-instruction with_catenation unital associative
with_if-instruction with_while-instruction quasi_total partial by A1,Th41;
hence thesis;
end;
end;
definition
mode preIfWhileAlgebra is with_empty-instruction
with_catenation with_if-instruction with_while-instruction
Universal_Algebra;
end;
reserve A for preIfWhileAlgebra,
C,I,J for Element of A;
reserve S for non empty set,
T for Subset of S,
s for Element of S;
definition
let A be non empty UAStr;
mode Algorithm of A is Element of A;
end;
theorem Th42:
for A being with_empty-instruction non-empty UAStr
holds dom Den(In(1, dom the charact of A), A) = {{}}
proof
let A be with_empty-instruction non-empty UAStr;
reconsider e = (the charact of A).1 as 0-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def10;
1 in dom the charact of A by Def10;
then
A1: Den(In(1, dom the charact of A), A) = e by SUBSET_1:def 8;
arity e = 0 by COMPUT_1:def 21;
then dom e = 0-tuples_on the carrier of A by COMPUT_1:22;
hence thesis by A1,COMPUT_1:5;
end;
definition
let A be with_empty-instruction non-empty UAStr;
func EmptyIns A -> Algorithm of A equals
Den(In(1, dom the charact of A), A).{};
coherence
proof
reconsider e = (the charact of A).1 as 0-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def10;
1 in dom the charact of A by Def10;
then
A1: Den(In(1, dom the charact of A), A) = e by SUBSET_1:def 8;
then dom e = {{}} by Th42;
then {} in dom e by TARSKI:def 1;
hence thesis by A1,PARTFUN1:4;
end;
end;
theorem
for A being with_empty-instruction Universal_Algebra
for o being Element of Operations A
st o = Den(In(1, dom the charact of A), A)
holds arity o = 0 & EmptyIns A in rng o
proof
let A be with_empty-instruction Universal_Algebra;
let o be Element of Operations A such that
A1: o = Den(In(1, dom the charact of A), A);
A2: dom Den(In(1, dom the charact of A), A) = {{}} by Th42;
A3: <*>the carrier of A in {{}} by TARSKI:def 1;
hence arity o = len (<*>the carrier of A) by A1,A2,MARGREL1:def 25
.= 0;
thus thesis by A1,A2,A3,FUNCT_1:def 3;
end;
theorem Th44:
for A being with_catenation non-empty UAStr
holds dom Den(In(2, dom the charact of A), A) = 2-tuples_on the carrier of A
proof
let A be with_catenation non-empty UAStr;
reconsider f = (the charact of A).2 as 2-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def11;
2 in dom the charact of A by Def11;
then
A1: Den(In(2, dom the charact of A), A) = f by SUBSET_1:def 8;
arity f = 2 by COMPUT_1:def 21;
hence thesis by A1,COMPUT_1:22;
end;
definition
let A be with_catenation non-empty UAStr;
let I1,I2 be Algorithm of A;
func I1 \; I2 -> Algorithm of A equals
Den(In(2, dom the charact of A), A).<*I1,I2*>;
coherence
proof
reconsider f = (the charact of A).2 as 2-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def11;
2 in dom the charact of A by Def11;
then
A1: Den(In(2, dom the charact of A), A) = f by SUBSET_1:def 8;
then dom f = 2-tuples_on the carrier of A by Th44;
then <*I1,I2*> in dom f by FINSEQ_2:137;
hence thesis by A1,PARTFUN1:4;
end;
end;
theorem
for A being with_empty-instruction with_catenation unital non-empty UAStr
for I being Element of A holds EmptyIns A\;I = I & I\;EmptyIns A = I
proof
let A be with_empty-instruction with_catenation unital non-empty UAStr;
let I be Element of A;
consider f being 2-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A such that
A1: f = (the charact of A).2 and
A2: Den(In(1, dom the charact of A), A).({}) is_a_unity_wrt f by Def15;
A3: 2 in dom the charact of A by Def11;
arity f = 2 by COMPUT_1:def 21;
then
A4: dom f = 2-tuples_on the carrier of A by COMPUT_1:22;
A5: In(2, dom the charact of A) = 2 by A3,SUBSET_1:def 8;
<*I,I*> in dom f by A4,FINSEQ_2:137;
hence thesis by A1,A2,A5;
end;
theorem
for A being associative with_catenation non-empty UAStr
for I1,I2,I3 being Element of A holds (I1\;I2)\;I3 = I1\;(I2\;I3)
proof
let A be associative with_catenation non-empty UAStr;
let I1,I2,I3 be Element of A;
reconsider f = (the charact of A).2 as
2-ary associative non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def14;
A1: 2 in dom the charact of A by Def11;
arity f = 2 by COMPUT_1:def 21;
then
A2: dom f = 2-tuples_on the carrier of A by COMPUT_1:22;
A3: In(2, dom the charact of A) = 2 by A1,SUBSET_1:def 8;
A4: <*I1,I2*> in dom f by A2,FINSEQ_2:137;
A5: <*I2,I3*> in dom f by A2,FINSEQ_2:137;
A6: <*I1,I2\;I3*> in dom f by A2,FINSEQ_2:137;
<*I1\;I2,I3*> in dom f by A2,FINSEQ_2:137;
hence thesis by A3,A4,A5,A6,Def2;
end;
theorem Th47:
for A being with_if-instruction non-empty UAStr
holds dom Den(In(3, dom the charact of A), A) = 3-tuples_on the carrier of A
proof
let A be with_if-instruction non-empty UAStr;
reconsider f = (the charact of A).3 as 3-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def12;
3 in dom the charact of A by Def12;
then
A1: Den(In(3, dom the charact of A), A) = f by SUBSET_1:def 8;
arity f = 3 by COMPUT_1:def 21;
hence thesis by A1,COMPUT_1:22;
end;
definition
let A be with_if-instruction non-empty UAStr;
let C,I1,I2 be Algorithm of A;
func if-then-else(C,I1,I2) -> Algorithm of A equals
Den(In(3, dom the charact of A), A).<*C,I1,I2*>;
coherence
proof
reconsider f = (the charact of A).3 as 3-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def12;
3 in dom the charact of A by Def12;
then
A1: Den(In(3, dom the charact of A), A) = f by SUBSET_1:def 8;
arity f = 3 by COMPUT_1:def 21;
then dom f = 3-tuples_on the carrier of A by COMPUT_1:22;
then <*C,I1,I2*> in dom f by FINSEQ_2:139;
hence thesis by A1,PARTFUN1:4;
end;
end;
definition
let A be with_empty-instruction with_if-instruction non-empty UAStr;
let C,I be Algorithm of A;
func if-then(C,I) -> Algorithm of A equals
if-then-else(C,I,EmptyIns A);
coherence;
end;
theorem Th48:
for A being with_while-instruction non-empty UAStr
holds dom Den(In(4, dom the charact of A), A) = 2-tuples_on the carrier of A
proof
let A be with_while-instruction non-empty UAStr;
reconsider f = (the charact of A).4 as 2-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def13;
4 in dom the charact of A by Def13;
then
A1: Den(In(4, dom the charact of A), A) = f by SUBSET_1:def 8;
arity f = 2 by COMPUT_1:def 21;
hence thesis by A1,COMPUT_1:22;
end;
definition
let A be with_while-instruction non-empty UAStr;
let C,I be Algorithm of A;
func while(C,I) -> Algorithm of A equals
Den(In(4, dom the charact of A), A).<*C,I*>;
coherence
proof
reconsider f = (the charact of A).4 as 2-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def13;
4 in dom the charact of A by Def13;
then
A1: Den(In(4, dom the charact of A), A) = f by SUBSET_1:def 8;
arity f = 2 by COMPUT_1:def 21;
then dom f = 2-tuples_on the carrier of A by COMPUT_1:22;
then <*C,I*> in dom f by FINSEQ_2:137;
hence thesis by A1,PARTFUN1:4;
end;
end;
definition
let A be preIfWhileAlgebra;
let I0,C,I,J be Element of A;
func for-do(I0,C,J,I) -> Element of A equals
I0\;while(C,I\;J);
coherence;
end;
definition
let A be preIfWhileAlgebra;
func ElementaryInstructions A -> Subset of A equals
(the carrier of A)
\ {EmptyIns A} \ rng Den(In(3, dom the charact of A), A)
\ rng Den(In(4, dom the charact of A), A)
\ {I1 \; I2 where I1,I2 is Algorithm of A: I1 <> I1\;I2 & I2 <> I1\;I2};
coherence;
end;
theorem Th49:
for A being preIfWhileAlgebra holds EmptyIns A nin ElementaryInstructions A
proof
let A be preIfWhileAlgebra;
set I = EmptyIns A;
I in {I} by TARSKI:def 1;
then I nin (the carrier of A)\{I} by XBOOLE_0:def 5;
then I nin (the carrier of A) \ {EmptyIns A}
\ rng Den(In(3, dom the charact of A), A) by XBOOLE_0:def 5;
then I nin (the carrier of A) \ {EmptyIns A}
\ rng Den(In(3, dom the charact of A), A)
\ rng Den(In(4, dom the charact of A), A) by XBOOLE_0:def 5;
hence thesis by XBOOLE_0:def 5;
end;
theorem Th50:
for A being preIfWhileAlgebra
for I1,I2 being Element of A st I1 <> I1\;I2 & I2 <> I1\;I2
holds I1\;I2 nin ElementaryInstructions A
proof
let A be preIfWhileAlgebra;
let I1,I2 be Element of A;
assume that
A1: I1 <> I1\;I2 and
A2: I2 <> I1\;I2;
I1\;I2 in {J1 \; J2 where J1,J2 is Algorithm of A:
J1 <> J1\;J2 & J2 <> J1\;J2} by A1,A2;
hence thesis by XBOOLE_0:def 5;
end;
theorem Th51:
for A being preIfWhileAlgebra for C,I1,I2 being Element of A
holds if-then-else(C,I1,I2) nin ElementaryInstructions A
proof
let A be preIfWhileAlgebra;
let C,I1,I2 be Element of A;
set I = if-then-else(C,I1,I2);
reconsider f = (the charact of A).3 as 3-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def12;
3 in dom the charact of A by Def12;
then In(3, dom the charact of A) = 3 by SUBSET_1:def 8;
then dom Den(In(3, dom the charact of A), A)
= (arity f)-tuples_on the carrier of A by COMPUT_1:22
.= 3-tuples_on the carrier of A by COMPUT_1:def 21;
then <*C,I1,I2*> in dom Den(In(3, dom the charact of A), A) by FINSEQ_2:139;
then I in rng Den(In(3, dom the charact of A), A) by FUNCT_1:def 3;
then I nin (the carrier of A) \ {EmptyIns A}
\ rng Den(In(3, dom the charact of A), A) by XBOOLE_0:def 5;
then I nin (the carrier of A) \ {EmptyIns A}
\ rng Den(In(3, dom the charact of A), A)
\ rng Den(In(4, dom the charact of A), A) by XBOOLE_0:def 5;
hence thesis by XBOOLE_0:def 5;
end;
theorem Th52:
for A being preIfWhileAlgebra for C,I being Element of A
holds while(C,I) nin ElementaryInstructions A
proof
let A be preIfWhileAlgebra;
let C,I1 be Element of A;
set I = while(C,I1);
reconsider f = (the charact of A).4 as 2-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def13;
4 in dom the charact of A by Def13;
then In(4, dom the charact of A) = 4 by SUBSET_1:def 8;
then dom Den(In(4, dom the charact of A), A)
= (arity f)-tuples_on the carrier of A by COMPUT_1:22
.= 2-tuples_on the carrier of A by COMPUT_1:def 21;
then <*C,I1*> in dom Den(In(4, dom the charact of A), A) by FINSEQ_2:137;
then I in rng Den(In(4, dom the charact of A), A) by FUNCT_1:def 3;
then I nin (the carrier of A) \ {EmptyIns A}
\ rng Den(In(3, dom the charact of A), A)
\ rng Den(In(4, dom the charact of A), A) by XBOOLE_0:def 5;
hence thesis by XBOOLE_0:def 5;
end;
theorem Th53:
for A being preIfWhileAlgebra for I being Element of A
st I nin ElementaryInstructions A holds I = EmptyIns A or
(ex I1,I2 being Element of A st I = I1\;I2 & I1 <> I1\;I2 & I2 <> I1\;I2) or
(ex C,I1,I2 being Element of A st I = if-then-else(C,I1,I2)) or
ex C,J being Element of A st I = while(C,J)
proof
let A be preIfWhileAlgebra;
let I be Element of A such that
A1: I nin ElementaryInstructions A and
A2: I <> EmptyIns A and
A3: for I1,I2 being Element of A st I = I1\;I2 & I1 <> I1\;I2 holds
I2 = I1\;I2 and
A4: for C,I1,I2 being Element of A holds I <> if-then-else(C,I1,I2) and
A5: for C,J being Element of A holds I <> while(C,J);
A6: now
assume I in rng Den(In(3, dom the charact of A), A);
then consider x being object such that
A7: x in dom Den(In(3, dom the charact of A), A) and
A8: I = Den(In(3, dom the charact of A), A).x by FUNCT_1:def 3;
reconsider f = (the charact of A).3 as 3-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def12;
3 in dom the charact of A by Def12;
then In(3, dom the charact of A) = 3 by SUBSET_1:def 8;
then dom Den(In(3, dom the charact of A), A)
= (arity f)-tuples_on the carrier of A by COMPUT_1:22
.= 3-tuples_on the carrier of A by COMPUT_1:def 21;
then consider C,I1,I2 be object such that
A9: C in the carrier of A and
A10: I1 in the carrier of A and
A11: I2 in the carrier of A and
A12: x = <*C,I1,I2*> by A7,FINSEQ_2:139;
reconsider C,I1,I2 as Element of A by A9,A10,A11;
I = if-then-else(C,I1,I2) by A8,A12;
hence contradiction by A4;
end;
A13: now
assume I in rng Den(In(4, dom the charact of A), A);
then consider x being object such that
A14: x in dom Den(In(4, dom the charact of A), A) and
A15: I = Den(In(4, dom the charact of A), A).x by FUNCT_1:def 3;
reconsider f = (the charact of A).4 as 2-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def13;
4 in dom the charact of A by Def13;
then In(4, dom the charact of A) = 4 by SUBSET_1:def 8;
then dom Den(In(4, dom the charact of A), A)
= (arity f)-tuples_on the carrier of A by COMPUT_1:22
.= 2-tuples_on the carrier of A by COMPUT_1:def 21;
then consider C,J be object such that
A16: C in the carrier of A and
A17: J in the carrier of A and
A18: x = <*C,J*> by A14,FINSEQ_2:137;
reconsider C,J as Element of A by A16,A17;
I = while(C,J) by A15,A18;
hence contradiction by A5;
end;
A19: I
nin {I1\;I2 where I1,I2 is Algorithm of A: I1 <> I1\;I2 & I2 <> I1\;I2}
by A3;
I in (the carrier of A) \ {EmptyIns A} by A2,ZFMISC_1:56;
:: Gauge :: :: Received September 3, 2017
\ rng Den(In:: detailed in file COPYING.interpretation.
vocabularies VALUED_1,,MEMBERED, PARTFUN1 ,,MEASURE7, COUSIN,
\ ,, XXREAL_0 ARYTM_1,FINSEQ_1,CARD_3,
\ In4 charactofA,A ,:def5
henceA19,:5
end;
definition
;
ELSET_1, XXREAL_0,XREAL_0, MEMBERED, VALUED_0, FUNCT_2, FINSEQ_1,
: Def23:
attrA degeneratedmeans
:Def24
(ex I1,I2 being Element of A st
I1 <> EmptyIns A & I1\;I2 = I2 or I2 <> EmptyIns A & I1\;I2 = I1 or
(I1 <> EmptyIns A or I2 <> EmptyIns A) & I1\;I2 = EmptyIns A) or
ex C,I2being of Ast if-henelse(,,) = EmptyIns A or
(exC, Element A EmptyInsA or
assumethat
\I2 -thenC,J1,2)or
(ex I1,I2,C,J being Element of A st c < b- ;
I1\I2 = while(,) orexC1I1I2,2,J being Element A
if-C1I1,I2) = while(C2,J);
ll_founded
:
end
end;
definition
f -> non empty FinSequenceof NAT equals
<0, 2>^<3 2*;
coherence;
end
theorem|. b d |<= r .( - r) * ( d.|by ,A6,A7,Lm01;
ECIW-signature = &domECIW-=Seg
1= 0 & .2=2&
ECIW-signature3=3&ECIW-signature. =
proof
:len <0,2>=2 by FINSEQ_1:44;
A2: len <*3,2*> = 2 ;
bpositive c ispositive
Q_1: 3java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
then
A5: 1 in dom <*3,2*>;
A6: <*3,2*>.1 = 3;
A7:2 in dom <3*> by A4;
forc,dbeing negative st a< b * *djava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
A9: 2+1 = 3;
A10: 1 in dom <*0,2*> by A3;
A11: <*0,2*>.1 = 0;
A12: 2 in dom <*0,2*> by A3;
<*0,2*>.2 = 2;
hence thesis by A1,A2,A5,A6,A7,A8,A9,A10,A11,A12,FINSEQ_1:22,def 7;
end;
definition
letA partialnon-mpty empty UAStr;
attr A b* c * (e /( *| .) = b* c e/2 *b*c)
: Def27:
signature A = ECIW-signature;
end;
theorem Th55:
A isECIWstrict
for o beingA2 xbe st inholds. Fx from FUNCT_2:sch 2(A1);
proof
let A be partial non-empty non empty UAStr;
assume signature A = ECIW-signature;
then 4 = len the take h
thendom thecharact of =Seg FINSEQ_1:def3java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
m1
end;
nonemptyset;
cluster FreeUnivAlgNSG(ECIW-signature,XA2:for x object x in X holds h. ( :ch();
with_if-instruction -;
coherence
roof
=(-X;
c=ECIWsignature;
: *,2* = 2 byjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 35
*2 java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 35
then
A3: len char 22by ;
charact S= byFREEALG:def11;
:dom <0,* =S 2by F:3
hencebyPARTFUN3def1
A7:domthecharact S=Seg 4A3,4,: ;
A8: java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
thus1 indom thecharact of by
then
java.lang.StringIndexOutOfBoundsException: Range [16, 2) out of bounds for length 65
A10: 1 hence 0 < r by PARTFUN3:def 1;
A11: 2 in;
A12: 3 indomchar A8;
A13: 4 in for f,g beiofX,EAL holds
et f, be Function of X,REAL;
reconsider char empty FinSequenceof omega
seto FreeOpNSG1charX;
1in domdom<0,2* A5
A15: <*0,2*>. (exsbe forr str java.lang.StringIndexOutOfBoundsException: Range [54, 53) out of bounds for length 67
java.lang.StringIndexOutOfBoundsException: Range [20, 3) out of bounds for length 28
A17:thus Xc {}
char.1 = 0 by A14,A15,FINSEQ_1:def 7;
then char/.1 = 0 by .= x by A3;
then
carrierof by ,:def 10java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
reconsidero as homogeneous non emptyquasi_total PartFuncofD,D
=0 byCOMPUT_125java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
hence (thecharactofS.1is 0arynonempty homogeneous
quasi_total thusthesis byA1
by A9,COMPUT_1:reconsider r0 = the Element of X as Real;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
then beemptyreal-memberedjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
A19: (java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 28
set X={ java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
char.
then java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 7
o tuples_onthe carrierofjava.lang.StringIndexOutOfBoundsException: Range [64, 44) out of bounds for length 64
reconsider o as homogeneous
=2 ,java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 35
hence (the charact of S).2 is 2-ary non empty java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 30
quasi_total PartFunc java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 7
:Ac .,.[
then
p
set o = FreeOpNSG(3,char,Xthenrng c= [a, infty. &rng c=]. infty,. byA1;
1 in dom <*3,2*> by A6;
A23: <*3,2*>.1 = 3;
A24: 2 *32>byA6
A25: <*3,2*>.2 java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 6
char.(2+1) = 3 by A1,A22,A23, assume xin{,}java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
then (char qua FinSequence of omega)/.3 = 3 by A12 end
0,}c=[01]by Th13;
A26hence thesis Th12;
reconsider end;
arity o = 3 by A26,COMPUT_1:25;
hence (the charact of S).3 is 3-ary non empty homogeneous
quasi_total PartFunc of (the carrier of S)*, the carrier of S
by A21,COMPUT_1:def 21;
thus 4 in dom the charact of S by A7;
then
A27: (the charact of S).4 = FreeOpNSG(4,char,X) by FREEALG:def 11;
set o = FreeOpNSG(4,char,X);
char.(2+2) = 2 by A1,A24,A25,FINSEQ_1:def 7;
then (char qua FinSequence of omega)/.4 = 2 by A13,PARTFUN1:def 6;
then
A28: dom o = 2-tuples_on the carrier of S by A13,FREEALG:def 10;
reconsider o as homogeneous non empty quasi_total PartFunc of D*, D;
arity o = 2 by A28,COMPUT_1:25;
hence thesis by A27,COMPUT_1:def 21;
end;
end;
theorem Th56:
for X being disjoint_with_NAT non empty set
for I being Element of FreeUnivAlgNSG(ECIW-signature,X) holds
(ex x being Element of X st I = root-tree x) or
ex n being Nat, p being FinSequence of FreeUnivAlgNSG(ECIW-signature,X)
st n in Seg 4 & I = n-tree p & len p = ECIW-signature.n
proof
let X be disjoint_with_NAT non empty set;
set S = ECIW-signature;
set G = DTConUA(S,X);
let I be Element of FreeUnivAlgNSG(S,X) such that
A1: not ex x being Element of X st I = root-tree x;
Terminals DTConUA(S,X) = X by FREEALG:3;
then not ex d being Symbol of G st d in Terminals G & I = root-tree d by A1;
then consider o being Symbol of G, p being FinSequence of TS G such that
A2: o ==> roots p and
A3: I = o-tree p by Th16;
A4: NonTerminals G = {s where s is Symbol of G:
ex n being FinSequence st s ==> n} by LANG1:def 3;
then
A5: o in NonTerminals G by A2;
A6: NonTerminals G = Seg 4 by Th54,FREEALG:2;
then reconsider n = o as Element of NAT by A5;
reconsider p as FinSequence of FreeUnivAlgNSG(ECIW-signature,X);
take n, p;
thus n in Seg 4 by A2,A4,A6;
thus I = n-tree p by A3;
A7: [n, roots p] in the Rules of G by A2,LANG1:def 1;
then
A8: roots p in (the carrier of G)* by ZFMISC_1:87;
dom p = dom roots p by TREES_3:def 18;
hence len p = card dom roots p by CARD_1:62
.= len roots p by CARD_1:62
.= S.n by A7,A8,FREEALG:def 7;
end;
theorem Th57:
for X being disjoint_with_NAT non empty set
holds EmptyIns FreeUnivAlgNSG(ECIW-signature,X) = 1-tree {}
proof
let X be disjoint_with_NAT non empty set;
set S = ECIW-signature;
reconsider s = S as non empty FinSequence of omega;
set A = FreeUnivAlgNSG(S,X);
A1: 1 in dom the charact of A by Def10;
reconsider f = (the charact of A).1 as 0-ary non emptyA1: X Y;
quasi_total PartFunc of(the carrier of )* the carrier of by ;
A2: f = FreeOpNSGend;
A3: 1 in dom S by Th54;
then
A4: s/.1 = S.1 by PARTFUN1
A5: dom FreeOpNSG(1,S( be st f= ()chi(,))
A3FREEALG:def 10
.= {{}} by A4,Th54,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 10
:}in{} TARSKI:def ;
A7: {} = <*> TS(DTConUA(S,X));
thus EmptyIns A = f.{} by A1,SUBSET_1:def 8
.= Sym(1,S,X)-tree({}) by A2,A3,A5,A6,A7,FREEALG:def 10
.= 1-tree {} by A3,FREEALG:def 9;
end;
theorem Th58:
for X being for X being disjoint_with_NAT
for p being FinSequence of FreeUnivAlgNSG(:def3
st 1-tree p is Element of FreeUnivAlgNSG(ECIW-signature,X) holds p = {}
let X be disjoint_with_NAT non assume
setS -signature;
set =DTConUA(S,)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
set A = FreeUnivAlgNSG(S,X);
letbeFinSequence A;
assume 1-tree p is Elementletxy object;
then reconsider f.x = r * (chiZZ.x)byA5,,VALUED_1def5
per cases by Th56;
suppose ex x being Element of X st I = root-tree x;
consider of such
A1: 1-tree p = root-tree java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 8
in rngchi(X)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
hencebyjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 31
end;
supposen Nat beingFinSequenceof A
in4 & I = ntreep & lenp= .;
then consider n being Nat, q java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 35
4
A2: I = n-tree q and
A3: len q = S.n;
= pby A2,TREES_4:15;
hence thesis by A2,A3Th54,:;
end;
end
theorem Th59:
for X being disjoint_with_NAT non empty setproof
forI1, being Element of FreeUnivAlgNSG(ECIW-signature,java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
holds\;I2 = -tree(I1,)
roof
let X be disjoint_with_NAT r = (pper_sum_setf)D by ,A2
set lAbenonempty closed_interval Subset REAL;
reconsider s = S as non empty for x being set holds (x in it iff x tagged_division of A);
set A = consider R set that
let I1,I2 be Element of A;
A1: 2 in dom the charact of A x of Ajava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
reconsider f = (the charact of A).2 as 2-ary non empty homogeneous
let D1,D2be suchthat
A2: f=FreeOpNSG(2S,X)by A1FREEALGd11;
A32 in S by;
by: ;
then
A4: dom FreeOpNSG(2,S,X) = 2-tuples_on TS(DTConUA(S,X)) TDin tagged_divsAbyDef1;
by A3,Th54,FREEALG:def 10;end;
A5: <*I1,I2*>letTDbetagged_divisionof ;
D:
. DT;
=2tree I1,2)by,def 9;
Th60:
for X being disjoint_with_NAT division_of
for pbeing ofFreeUnivAlgNSG(-signature,)
st2-treep ElementECIW-signature,X
exI1I2beingElementofECIW-X) stp=<I2>
proof
let X be disjoint_with_NAT non empty set;
set S = ECIW-signature;
set G = DTConUA(S,X);
set A = FreeUnivAlgNSG(S,X);
let p be FinSequence of A;
assume 2-tree p is Element of A;
then reconsider I = 2-tree p as Element of A;
per cases by Th56;
suppose ex x being Element of X st I = root-tree x;
then consider x being Element of X such that
A1: 2-tree p = root-tree x;
2-tree p = x-tree(<*>TS G) by A1,TREES_4:20;
then 2 = x by TREES_4:15;
then X meets NAT by XBOOLE_0:3;
hence thesis by FREEALG:def 1;
end;
suppose ex n being Nat, p being FinSequence of A
st n in Seg 4 & I = n-tree p & len p = S.n;
then consider n being Nat, q being FinSequence of A such that
n in Seg 4 and
A2: I = n-tree q and
A3:lenq .java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
=2 A2TREES_4:5
A5: q =definition
funclen TD - ofNATequals
then java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 4
then reconsider I1 = p.1, I2 = p.2 as Element of A by ZFMISC_1:32;
take I1,I2;
thus thesis by A3,A4,A5,Th54,FINSEQ_1:44;
end;
end;
theorem Th61:
Xbeingnon
java.lang.StringIndexOutOfBoundsException: Range [6, 4) out of bounds for length 41
holds I1
let java.lang.StringIndexOutOfBoundsException: Range [33, 28) out of bounds for length 43
set S = ECIW-signature;
set G = DTConUA(S,X);
fine ofI;
T Elementofset_of_tagged_Division)such that
p *I2;
rng p c= FinTrees i Nat;
then
A1: p is FinSequence of FinTrees the carrier of G by FINSEQ_1:def 4;
A2: rng p = {I1,I2} by then
then
A3: I1 in rng p by TARSKI:def 2;
A4: I2 in rng p by A2rng T c= I byTh22
I1\;I2 = 2-tree(I1,I2) by Th59
java.lang.StringIndexOutOfBoundsException: Range [16, 4) out of bounds for length 23
hence thesis by A1,A3,A4,Th3;
end;
forXbeing non set
takeIT
holds I1\;I2 = J1\;J2 implies java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 23
proof
i .().)*volTDi)
set S = ECIW-signature;
set A = FreeUnivAlgNSG(S,X);
let I1,I2,J1, proof
A1: I1\;I2 = 2-bA7;
J1\;J2;
then
hence thesis by FINSEQ_1:77;
end;
:
for X being disjoint_with_NAT nonjava.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
for C,I1,I2 being Element of FreeUnivAlgNSG(ECIW-signature,X)
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
proof
be java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 43
th :
reconsider s = S as nonforDbeingofID= < >)
set AD=
let C,I1,I2 then1< D =2 =lenD 2
A1: 3 in dom the charact of A by Def12;
reconsider f = (the charact of A).end
quasi_total PartFunc ofjava.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 5
A2: ibe t in
A3: 3 in domA3 inTD;
. 3byd6
A4: dom FreeOpNSG(3,S,X) =. java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 38
by t ()i ;
A5: <*.=vol(divset(i)
thus if-then-else(C,.= byDef4
. 3S,X)-(*,,*)A2A3A4,5,FREEALGd10
-<*CI1,I2> A3FREEALG:def9
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 4
theoremIemptyjava.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 52
beingjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 45
pbeing ECIWX)
st 3-tree p is Element of java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 18
ex exbejava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 55
st p = <*C,I1,I2*>
let X be disjoint_with_NAT java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 18
set S = ECIW-: for TD be tagged_di
set G = DTConUA(S, ofITDisfine
set A = FreeUnivAlgNSG(S,X);
let p be A7: TD is jauge-fine:68
assume 3-tree p is Element of A;
then reconsider I = 3-tree p as Element of A;
per cases by Th56;
suppose ex x| (J1-,)-( fTD) .
then consider x being Element of X suchby :57;
:-tree p=root-tree x
3-tree p = x-tree(<*>TS G) by hence .-J2|<
then 3 = x byend;
then X meets NAT by is HK-integrable & HK-integral=0
hence thesis by FREEALG:def 1;
end;
epsilon0
nSeg 4 &I=n- p& p=Sn
thenconsidern beingNat q FinSequence of Asuch java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
nin
=n-treeq
A3: len q = S.n;
A4:n =3byA2TREES_415;
A5: q = p by A2,TREES_4:15;
then p =<*p.1,p.2,p.3*> by .=1:;
then
A6: rng p = {phence thesis by A3;
A7: p.1 in {p.1,p.2,p.3} by ENUMSET1:def 1;
A8: p.2 in {p.1,p.2,p.3} by ENUMSET1:def 1;
p.3 in {p.1,p.2,p.3} by ENUMSET1:def 1;
hence byA2,DEFCC
take C,I1,I2;
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 7
end;
end;
theorem
forthenf()i ,,,;
for C1,C2,I1,I2,J1,J2 being Element of FreeUnivAlgNSG(ECIW-signature,X)
st if-then-else(.=0;
holds C1 =for kbe k in tagged_volume(,)
proof
let X be disjoint_with_NAT non empty set;
set S = ECIW-signature;
set A = FreeUnivAlgNSG(S,X);
let C1,C2,I1,I2,J1,J2 be Element of A;
A1: if-then
if-then-else
thenifthenelseI2 thenelseC2,J1J2)
<,>=*,,* A115
hence thesis by FINSEQ_1: java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 18
end;
theorem Th66:
for X being disjoint_with_NAT non empty set
for C,I being Element of FreeUnivAlgNSG(ECIW-signature,X)
holds while(C,I) = 4-tree(C,I)
n
Xbejava.lang.StringIndexOutOfBoundsException: Range [32, 28) out of bounds for length 43
set S = ECIW-signature;
reconsider s = S as non empty FinSequence of omega;
set A = FreeUnivAlgNSG(S,X);
let C,I be Element of A;
A1: 4 in dom the charact of A by Def13;
reconsider f = (the charact of A).4 as 2-ary non empty homogeneous
quasi_total PartFunc of (the carrier of A)*, the carrier of A by Def13;
A2: f = FreeOpNSG(4,S,X) by A1,FREEALG:def 11;
A3: 4 in dom S by Th54;
then s/.4 = S.4 by PARTFUN1:def 6;
then
A4: dom FreeOpNSG(4,S,X) = 2-tuples_on TS(DTConUA(S,X))
by A3,Th54,FREEALG:def 10;
A5: <*C,I*> in 2-tuples_on TS(DTConUA(S,X)) by FINSEQ_2:137;
thus while(C,I) = f.<*C,I*> by A1,SUBSET_1:def 8
.= Sym(4,S,X)-tree(<*C,I*>) by A2,A3,A4,A5,FREEALG:def 10
.= 4-tree(C,I) by A3,FREEALG:def 9;
end;
theorem Th67:
for X being disjoint_with_NAT non empty set
for p being FinSequence of FreeUnivAlgNSG(ECIW-signature,X)
st 4-tree p is Element of FreeUnivAlgNSG(ECIW-signature,X)
ex C,I being Element of FreeUnivAlgNSG(ECIW-signature,X) st p = <*C,I*>
proof
let X be disjoint_with_NAT non empty set;
set S = ECIW-signature;
set G = DTConUA(S .=0;
set A = FreeUnivAlgNSG(S,X);
let p be FinSequence of A;
assume 4- |.(f,TD .|<=byA4;
then reconsider I = 4-tree p as Element of A;
per cases by Th56;
-tree x
then consider x being Element of X such that
A1: 4-tree p = root-tree x;
4-tree p = x-tree(<*>TS G) by A1,TREES_4:20;
then 4 = x by TREES_4:15;
then X meets NAT by XBOOLE_0:3;
hence thesis by FREEALG:def 1;
end;
suppose ex n being Nat, p being FinSequence of A
st n in Seg 4 & I = n-tree p & len p = S.n;
then consider n being Nat, q being FinSequence of A such that
n in Seg 4 and
A2: I = n-tree q and
A3: len q = S.n;
A4: n = 4 by A2,TREES_4:15;
A5: q = p by A2,java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 6
then p = <*p.1,:java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
then rng p = {p.1,p.2} by FINSEQ_2:127;
then reconsider I1 = p.1, I2 = p.2 as java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 20
take I1,I2;
thus thesis by A3,A4,A5,Th54assume isfine
NAT java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 45
for I being let I be non empty Subset ofREAL;
st I in ElementaryInstructions FreeUnivAlgNSG(ECIW-signature,pjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 11
proof;
let X java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
set S = ECIW-signature;
set A = FreeUnivAlgNSG(S, X);
let I be Element of FreeUnivAlgNSG(ECIW-signature,X) such that
A1: I in ElementaryInstructions FreeUnivAlgNSG(ECIW-signature,X);
per cases by Th56;
suppose ex x being Element of X st I = root-tree x;
then consider x being Element of X such that
A2: I = root-tree x;
root-tree x = x-tree {} by TREES_4:20;
hence thesis by A2;
end;
java.lang.StringIndexOutOfBoundsException: Range [9, 10) out of bounds for length 9
ex n being Nat, p being FinSequence of FreeUnivAlgNSG(ECIW-signature,X)
st n in Seg 4 & I = n-tree p & len p = S.n;
then consider n being Nat,
p being FinSequence of FreeUnivAlgNSG(ECIW-signature,X) such that
A3: n in Seg 4 and
A4: I = n-tree p and len p = S.n;
percasesbyENUMSET1def2,FINSEQ_3:;
A5: n = 1;
then p = {} by A4,Th58;
then i domr#fTD)
hence A1,
end;
suppose
A6: n = 2;
then consider I1,I2 being Element of A such that
A7: p = <*I1,I2*> by A4,Th60;
A8: I = n-tree(I1,I2) by A4,A7
.= I1\;I2 by A6,Th59;
then
A9: I <> I1 by Th61;
I <> I2 by A8,Th61;
hencethesis A8,9Th50;
end;
suppose
A10: n = 3;
then consider C,I1,I2 being Element of A such that
A11: p .=r *(java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 51
I = if-then-else(C,I1,I2) by A4,A10,A11,Th63;
hence thesis by A1,Th51;
end;
suppose
A12: n = 4;
then consider C,I9 being Element of A such that
A13: p = <*C,I9*> by A4,Th67;
I = n-tree(C,I9) by A4,A13
.= while(C,I9) by A12,Th66;
hence thesis by A1,Th52;
end;
end;
end;
theorem
for X being disjoint_with_NAT non empty set
for p being FinSequence of FreeUnivAlgNSG(ECIW-signature,X)
for x being Element of X
st x-tree p is Element of FreeUnivAlgNSG(ECIW-signature,X) holds p = {}
proof
let X be disjoint_with_NAT non empty set;
set S = ECIW-signature;
set A = FreeUnivAlgNSG(S, X);
let p be FinSequence of FreeUnivAlgNSG(ECIW-signature,X);
let x be Element of X;
assume x-tree p is Element of FreeUnivAlgNSG(ECIW-signature,X);
then reconsider I = x-tree p as Element of A;
now
given n being Nat, p being FinSequence of A such that
A1: n in Seg 4 and
A2: I = n-tree p and len p = ECIW-signature.n;
A3: x = n by A2,TREES_4:15;
X misses NAT by FREEALG:def 1;
hence contradiction by A1,A3,XBOOLE_0:3;
end;
then consider y being Element of X such that
A4: I = root-tree y by Th56;
x-tree p = y-tree {} by A4,TREES_4:20;
hence thesis by TREES_4:15;
end;
theorem Th70:
for X being disjoint_with_NAT non empty set
(CIW-ignature,X) =
FreeGenSetNSG(ECIW-signature,X) &
card X = card FreeGenSetNSG(ECIW-signature,X)
proof
let X be disjoint_with_NAT non empty set;
set S = ECIW-signature;
set G = DTConUA(S,X);
A1: X = Terminals G by FREEALG:3;
set A = FreeUnivAlgNSG(S, X);
thus ElementaryInstructions A = FreeGenSetNSG(S, X)
proof
thus ElementaryInstructions A c= FreeGenSetNSG(S, X)
proof
let x be object;
assume x in ElementaryInstructions A;
then consider y being Element of X such:TD = [D,]byDef2;
A2: x = y-tree {} by Th68;
: dom T = Seg lenjava.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 53
x = root = t).as I
hence thesis by A1;
end;
x beobject;
assume
A3 .*vol(ivset(ivision_ofTDi))
then hence thesis;
java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 6
A4 tagged_volume(,D TD &
java.lang.StringIndexOutOfBoundsException: Range [23, 2) out of bounds for length 27
A6: x = y-tree {} by A4,TREES_4:20;
assume
A7:xninA
casesjava.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 25
supposeI ;
then x = 1-tree {} by Th57;
then
A8: y = 1 by A6,TREES_4:15;
X misses NAT by FREEALG:def 1;
hence thesis by A1,A5,A8,XBOOLE_0:3;
end;
suppose ex I1,I2 being Element of A st
I = I1\;I2 & I1 <> I1\;I2 & I2 <> I1\;I2;
then consider I1,I2 be Element of A such that
A9: I = I1\;I2;
x = 2-tree(I1,I2) by A9,Th59
.= 2-tree<*I1,I2*>;
hence thesis by A6,TREES_4:15;
end;
suppose ex C,I1,I2 being Element of A st I = if-then-else(C,I1,I2);
then consider C,I1,I2 be Element of A such that
A10: I = if-then-else(C,I1,I2);
x = 3-tree<*C,I1,I2*> by A10,Th63;
hence thesis by A6,TREES_4:15;
end;
suppose ex C,J being Element of A st I = while(C,J);
then consider assume i in dom tagged_volume(f + g,TD);
A11: I = while(C,J);
x =4-,
.=4tree<CJ>java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
hence = tagged_volume,.i+g(tagged_ofTD.)
end;
end;
java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 19
consider
f = X & for x being HKintegrable;
A13: rng f = FreeGenSetNSG(S,X)
proof
thus rng f c= FreeGenSetNSG(S,X)
proof
let a be object;
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 24
then consider x being object such that
A14:xin and
A15:assume
jauge thepositiveyielding ofIREAL;
hence thesis by A1,A14;
end;
let a be object;
a in FreeGenSetNSGS)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
then consider s being Symbol of G such
A16: a = root-tree s and
A17: s X A1
reconsider s as Element of X by A17;
f.s = a f.s = a ofITDisjaugefine
hence thesis by A12,FUNCT_1:def 3;
end;
f is one-to-one
proof
ab java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 15
A18: a in dom f and
A19: b in dom f;
reconsider x = a, y = b as Element . (TD)by :;
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 21
then F(x) = f.b by A12
.= F(y) by A12;
hence thesis by TREES_4:4;
end;
then X, FreeGenSetNSG(SforTDbeingjava.lang.StringIndexOutOfBoundsException: Range [37, 34) out of bounds for length 59
hence thesis by CARD_1:5;
end;
registration
cluster infinite disjoint_with_NAT for set;
existence
proof
take X = [:NAT,{0}:];
thus X is infinite;
now
let x be object;
assume x in X;
then
A1: ex a,b being object st ( a in NAT)&( b in {0})&( x = [a,b])
by ZFMISC_1:def 2;
assume x in NAT;
hence contradiction by A1;
end;
hence X misses NAT by XBOOLE_0:3;
end;
end;
registration
let X be infinite disjoint_with_NAT set;
cluster FreeUnivAlgNSG(ECIW-signature,X) -> infinite;
coherence
proof
card X = card FreeGenSetNSG(ECIW-signature,X) by Th70;
then card ElementaryInstructions FreeUnivAlgNSG(ECIW-signature,X) is
infinite by Th70;
hence
ElementaryInstructions FreeUnivAlgNSG(ECIW-signature,X) is infinite;
end;
end;
registration
let X be disjoint_with_NAT non empty set;
cluster FreeUnivAlgNSG(ECIW-signature,X) -> ECIW-strict;
coherence
by FREEALG:4;
end;
theorem Th71:
for A being preIfWhileAlgebra holds Generators A c= ElementaryInstructions A
proof
let A be preIfWhileAlgebra;
let x be object;
assume that
A1: x in Generators A and
A2: x nin ElementaryInstructions A;
reconsider x as Element of A by A1;
dom Den(In(1, dom the charact of A), A) = {{}} by Th42;
then
A3: {} in dom Den(In(1, dom the charact of A),A) by TARSKI:def 1;
per cases by A2,Th53;
suppose x = EmptyIns A;
then x in rng Den(In(1, dom the charact of A), A) by A3,FUNCT_1:3;
hence contradiction by A1,Th26;
end;
suppose
ex I1,I2 being Element of A st x = I1\;I2 & I1 <> I1\;I2 & I2 <> I1\;I2;
then consider I1,I2 then consider J2 being Real such that
A4: x = I1\;I2 and I1 <> I1\;I2
andI2 >I1;;
dom Denex - ,java.lang.StringIndexOutOfBoundsException: Range [60, 61) out of bounds for length 60
Th44
then <*I1,I2*> in dom for TD being tagged_division of I st TD is jauge-fine
then x in holds |.tagf+g,)- (J1 + J2. =
hence contradiction by =/2
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
being Element A =if--(,1I2);
then consider C,I1,I2 being Element of A such that
A5: x = if-then-else(C,I1,I2);
dom Den(In(3, dom theFunction I,EAL;
by Th47;
then <*C,I1,I2*> in dom Den(In(3, dom the charact of A),A) by FINSEQ_2:139;
then x in rng Den(In(3, dom the charact for being tagged_divisionof st TDisjava.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 61
henceassume TD is jauge-java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
suppose ex C,J being Element of A st x = while(C,J);
then consider C,J being Element of A such that
: whileCJ;
dom Den(In(4, dom the charact of A), A) = 2-tuples_on the carrier of A
by;
then <*C,J*> in dom =tagged_sumfTD tagged_sum(,)
then x in rng Den(In(4, dom the charact of A),A) by A6,FUNCT_1:3;
,Th26
end;
end;
theorem Th72:
for A being preIfWhileAlgebra st A hence
holds EmptyIns A <end;
EmptyIns A <> then HK-integral(+g)=J1 +J2 A4,DEFCC
proof
let A be preIfWhileAlgebra java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A1: A is free;
let C,I1,I2 be Element of A;
A2: dom Den(In(1, dom the charact of A), A) = {{}} by Th42;
A3: dom Den(In(2, dom the charact of A), A) = 2-tuples_on the carrier of A
by Th44;
A4: dom Den(In(3, dom the charact of A), A) = 3-tuples_on the carrier of A
by Th47;
A5: dom Den(In(4, dom the charact of A), A) = 2-tuples_on the carrier of A
by Th48;
A6: {} in {{}} by TARSKI:def 1;
<*I1,I2*> in 2-tuples_on the carrier of A by FINSEQ_2:137;
hence EmptyIns A <> I1\;I2 by A1,A2,A3,A6,Th36;
<*C,I1,I2*A1:f # (I by Th16;
hence <>ifthen-C,,)by A1A2A4,A6Th36;
<C,I1* -java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 59
hence thesis by A1,A2,A5,A6,Th36;
end;
theorem Th73:
for A being preIfWhileAlgebra st A is free
for I1,I2,C,J1,J2 being hence f is HK-integrable by A,Th35;
(I1\;I2 = J1\
I1\;I2 <> if-then-else(C,J1,J2 IbeingSubsetREAL
proof
let A be preIfWhileAlgebra such that
A1: A is free;
let I1,I2,C,J1,J2 be end
A2: 2java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 41
A3: dom;
by.java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 71
A4: In(2, dom the charact of A) = 2 by java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
A5 3 indomtheofDef12
A6: is
by Th47;
A7: In(3, dom the charact of A) = 3 by A5,SUBSET_1
A8: 4 in dom the charact ofcluster forintegrableFunctionof ,REAL
A9: dom Den(In(4, dom the charact reconsider of ,REAL :2;
by java.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 4
4 A) SUBSET_1:def8;
A11: <*I1,I2*> in 2-tuples_on the carrier of A by FINSEQ_2:137;
* 2tuples_on the A 137
A13: rng <*I1,I2*> = {I1,I2A1 y yin java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 57
then
*,2> TARSKI2
in rngjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
hence I1\;I2 <> I1 & I1\;I2 <> I2 by thenjava.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 66
hereby
assume I1\;I2 java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
then <*I1,I2*> = <*J1,J2*> by A1 (). ,;
hence I1 = J1 & I2 =end
end;
<*C,J1,J2*> in 3- holds upper_sum(f,D1)fD)& java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 77
hence I1\;I2 <> if-then-else(C,J1,J2) by A1,A3,A4,A6,A7,A11,Th36;
<*C,J1*> in 2-tuples_on the carrier of A by FINSEQ_2:137;
hence thesis by A1,A3,A4,A9,A10,A11,Th36;
end;
theorem Th74:
for A being preIfWhileAlgebra st A is free
for C,I1,I2,D,J1,J2 being Element of A
holds if-then-else(C,I1,I2) <> C & if-then-else(C,I1,I2) <> I1 &
if-then-else(C,I1,I2) <> I2 & if-then-else(C,I1,I2) <> while(D,J1) &
(if-then-else(C,I1,I2) = if-then-else(D,J1,J2) implies C=D & I1=J1 & I2=J2)
proof
let A be preIfWhileAlgebra such that
A1: A is free;
let C,I1,I2,D,J1,J2 be Element of A;
A2: 3 in dom the charact of A by Def12;
A3: dom Den(In(3, dom the charact of A), A) = 3-tuples_on the carrier of A
by Th47;
A4: In(3, dom the charact of A) = 3 by A2,SUBSET_1:def 8;
A5: 4 in dom the charact of A by Def13;
A6: dom Den(In(4, dom the charact of A), A) = 2-tuples_on the carrier of A
by Th48;
A7: In(4, dom the charact of A) = 4 by A5,SUBSET_1:def 8;
A8: <*C,I1,I2*> in 3-tuples_on the carrier of A by FINSEQ_2:139;
A9: <*D,J1,J2*> in 3-tuples_on the carrier of A by FINSEQ_2:139;
A10: rng <*C,I1,I2*> = {C,I1,I2} by FINSEQ_2:128;
then
A11: C in rng <*C,I1,I2*> by ENUMSET1:def 1;
A12: I1 in rng <*C,I1,I2*> by A10,ENUMSET1:def 1;
I2 in rng <*C,I1,I2*> by A10,ENUMSET1:def 1;
hence if-then-else(C,I1,I2) <> C & if-then-else(C,I1,I2) <> I1 &
if-then-else(C,I1,I2) <> I2 by A1,A3,A8,A11,A12,Th38;
<*D,J1*> in 2-tuples_on the carrier of A by FINSEQ_2:137;
hence if-then-else(C,I1,I2) <> while(D,J1) by A1,A3,A4,A6,A7,A8,Th36;
assume if-then-else(C,I1,I2) = if-then-else(D,J1,J2);
then <*C,I1,I2*> = <*D,J1,J2*> by A1,A3,A8,A9,Th36;
hence thesis by FINSEQ_1:78;
end;
theorem Th75:
for A being preIfWhileAlgebra st A is free for C,I,D,J being Element of A
holds while(C,I) <> C & while(C, java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
( java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
proof
let A be preIfWhileAlgebra such that
:is
let C,* vol D1)def6
dom DenIn4domthe charactofA), A 2-ofA
by Th48;
A3: <*C,I*> in 2-tuples_on the carrier of A by FINSEQ_2:137;
A4: <*D,J*> in = Sum (upper_volume(f,)by ,A1,2,NTEGRA3:3A5
A5: rng <*C java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 61
then
A6: C in rng <*C,I*> upper_bound divset,) =D byJORDAN5A:;
I in rng <*C,I*> by A5,TARSKI:def 2;
java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 32
assume while(C,I) = while(D,J);
then <*C lower_volumefD)
hence thesis by FINSEQ_1:77;
end;
registration
cluster free -> <= (upper_volume(f TD)i
coherence
let A be preIfWhileAlgebra;
assume
A1: A is free;
then reconsider A9 = A as free Universal_Algebra;
for iindom.in(9i) d 2
A= by Th34;
hence java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 8
thus:inrng (|divset(,) by A5,PARTFUN1:def 6;
not ex I1,I2 be Element of A st I1 <> EmptyIns A & I1\;I2 = I2 or rng f|divset(i)java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 72
I2 <0< divsetDi)by9
( >A >A) &I1\I2= java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 64
by A1,Th72 A1;
thus thesis by A1,Th72,Th73,Th74;
end;
end;
registration
inon -free
strict for preIfWhileAlgebra;
proof
set =Sumf,java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 41
take FreeUnivAlgNSG(ECIWdom TD=SegTDbydef
thus thesis;. lower_volume(,TD :ef3 then
end;
end;
definition
mode IfWhileAlgebra is
non degenerated well_founded ECIW-strict preIfWhileAlgebra;
end;
registration
let A be infinite preIfWhileAlgebra;
cluster ElementaryInstructions A -> infinite;
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 23
theorem Th76:
for A being preIfWhileAlgebra for B being Subset of A for n being Nat holds
EmptyIns A in B|^(n+1) & for C,I1,I2 being Element of A
st C B|^ & I1 B^ in^
holds I1\;I2 in B|^(n+1) & if-then-java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 16
while(C,I1) in B|^(n+1)
proof
let A be preIfWhileAlgebra;
let Bjava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 59
letn
set X = {Den(o,A).p where o is (Element of dom the charact of A),
p is Element of (the carrier o INTEGRA1: 3;
A1: B|^(n java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
carrier A)*
by FINSEQ_1:def 11;
A2: pe in {{}} by TARSKI: < lower_boundX2+e A16def2;
A3: rng pe = {};
A4: dom Den(In(1, dom the charact of reconsider as by: 3java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
{} c= B|^n;
EmptyIns A in X by A2,A3,A4;
hence EmptyIns
let C,I1,I2 be Element of A;
assume
A5: C in B|^n;
assume
A6: I1 in B|^n;
assume
A7: I2 in B|^n;
A8: <*I1,I2*> in 2-tuples_on the carrier of A by FINSEQ_2:137;
A9: rng <*I1,I2*> = {I1,I2} by java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 27
A10: dom Den(In( ;
A29:x4. <> lower_bound I
^byA7Z32
thenI1;inXbyA8,,;
hence I1\;I2 in B|^(n+1) by A1,XBOOLE_0:def 3;
A11: <*C,I1,I2*> in 3-tuples_on the carrier of A by FINSEQ_2:139;
A12: rng <*C,I1,I2*> = {C,I1,I2} by FINSEQ_2:128;
A13: dom Den(In(3, dom the charact of A), A) = 3-tuples_on the carrier of A
by Th47;
{C,I1,I2} c= B|^n by A5,A6,A7,ZFMISC_1:133;
then if-then-else(C,I1,I2) in X by A11,A12,A13;
hence if-then-else(C,I1,I2) in B|^(n+1) by A1,XBOOLE_0:def 3;
A14: <*C,I1*> in 2-tuples_on the carrier of A by FINSEQ_2:137;
A15: rng <*C,I1*> = {C,I1} by FINSEQ_2:127;
A16: dom Den(In(4, dom the charact of A), A) = 2-tuples_on the carrier of A
by Th48;
{C,I1} c= B|^n by A5,A6,ZFMISC_1:32;
then while(C,I1) in X by A14,A15,A16;
hence thesis by A1,XBOOLE_0:def 3;
end;
theorem Th77:
for A being ECIW-strict preIfWhileAlgebra
for x being set, n being Nat st x in (ElementaryInstructions A)|^(n+1)
holds x in (ElementaryInstructions A)|^n or x = EmptyIns A or
(ex I1,I2 being Element of A st x = I1\;I2 &
I1 in (ElementaryInstructions A)|^n & I2 in (ElementaryInstructions A)|^n) or
(ex C,I1,I2 being Element of A st x = if-then-else(C,I1,I2) &
C in (ElementaryInstructions A)|^n &
I1 in (ElementaryInstructions A)|^n & I2 in (ElementaryInstructions A)|^n) or
ex C,I being Element of A st x = while(C,I) &
2- 1 = lenx/1)+ ) byXREAL_19
proof
letA ECIW-
set B = ElementaryInstructions A;
let x be set;
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 56
assume
A1: x in B|^(n+1);
then reconsider I = x as Element of A;
assume
A2: x nin B|^n;
assume
A3: x <> EmptyIns A;
assume
A4: not ex I1,I2 being Element of A st x = I1\;I2 & I1 in B|^n & I2 in B|^n;
assume
A5: not ex C,I1,I2 being Element of A st x = if-then-else(C,I1,I2) &
C in B|^n & I1 in B|^n & I2 in B|^n;
B|^(n+1) = B|^n\/{Den(o,A).p where o is (Element of dom the charact of A),
t carrier of A* ino,A =B^n}
by Th19;
then x in {Den(o,A).p where o is (Element of dom the charact of A),
of A)*: p in Den(A rng p c= B|^n}
by A1,A2,XBOOLE_0:def 3;
then consider reserve jauge forpositive-ielding Functionof IR;
p being java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 10
A6:I Den(,)p and
A7: p in dom by FUNCT_3def 3
A8 c= |n
reconsider no = o as java.lang.StringIndexOutOfBoundsException: Range [0, 30) out of bounds for length 6
reconsider oo = Den(o,A) as jauge = r (#) chi(I,I) & D ijauge-fine
len signature A = len the charact
then
A9: dom signature A = domA9: dom signaturet
A10: p=arity oo A7,ARGREL1:java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
.= (signature A).no by A9,:D D9T9 i D9
.= ECIW-signature.o by Def27;
A11: 1 in Seg 2;
A12: 2 in Seg 2;
A13: 1 in Seg 3;
:D.iinI A63;
A15: 3 in Seg 3;
p java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 20
suppose
o=1;
}by A10,
hence thesis by A3,(division_of)i < r
end;
suppose
A17: o = 2;
then
A18: p = <*p.1,p.2*> by A10,Th54,FINSEQ_1:44;
A19: dom p = Seg 2 by A10,A17 java.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
then
A20: p.1 in rng p by A11,FUNCT_1:def 3;
A21: p.2 in rng p by A12,A19,FUNCT_1:def 3;
then reconsider I1 = p.1, I2 = p.2 as Element of A by A20;
I = I1\;I2 by A6,A17,A18;
hence thesis by A4,A8,A20,A21;
end;
suppose
A22: o = 3;
then
A23: p = <*p.1,p.2,A14: r <max D) INTEGRA3: java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
A24: dom p = Seg 3 by A10,A22,Th54, sup rng upper_volume(g,division_of java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 65
then
A25: p.1 in rng p by A13,FUNCT_1:def 3;
A26: p end
A27: p.3 in rng p by A15,A24,FUNCT_1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
then reconsider C = p.1, I1 = p.2, I2 = p.3 as Element of A by A25
I -C,, byA22,A23;
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 38
end;
suppose
: o = 4;
then
A29: p = <* Seglenupper_volumefD :def java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
A30: dom p = Seg reconsider xasNat by java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
then
A31: p.1 in rng p by A11,FUNCT_1:def 3;
A32 java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 27
thenjava.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 62
I = while(I1,I2) by A6,A28,A29;
hence thesis by A8,A31,A32;
;
end;
theorem
for A being Universal_Algebra for |.r )- rng ).
olds Constants =B^1
proof
let A be Universal_Algebra;
let B be Subset of A;
let x be object;
assume x in Constants A;
then consider a being Element of A such that
A1: x = a and
A2: ex o being Element of Operations A st arity o = 0 & a in rng o;
o java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 52
A3: arity o = 0 and
A4: a in rng o by A2
(for i bfori being st indom r <=p)&
A5: s in dom o and
A6: a =let REALjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
consider z being object such that
A7: z in dom the charact of A and
A8: o = (the charact of A).z by FUNCT_1:def 3;
reconsider z as Element of dom the charact of A by A7;
A9: Den(z,A) = o by A8;
A10: s is Element of 0-tuples_on the carrier of A by A3,A5,MARGREL1:22;
reconsider s as Element of (the carrier of A)* by A5;
rng s c= B by A10;
then
A11: x in {Den(r,A).p where r is (Element of dom the charact of A),
p is Element of (the carrier of A)*: p in dom Den(r, =r
by A1,A5,A6,A9;
B|^0 = B by Th18;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
A), p is Element of (the carrier of A)*: p in dom Den(r,hencejava.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 25
by Th19;
hence thesis by A11,XBOOLE_0:def 3;
:
AbeingpreIfWhileAlgebra is well_foundediff
forIbeing Element exn in ( A|n
by Th30;
scheme StructInd{ A() -> well_founded ECIW-strict preIfWhileAlgebra,
Ijava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
provided
A1: for I being Element of A() consider i0 be Nat such that
and
A2: P[EmptyIns A()] and
A3 , A)stPI1]&P]holds PI1\;2
A4: for C, divset(,i0 ,,,java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 55
holds P[if-then-else(C,I1,I2)] and
A5: for C,I being Element of A() st P[C] & Pnow
proof
set A = A();
A6: ex n being Nat st ( I() in (ElementaryInstructions A())|^n) by Th79;
defpred Q[Nat] means for I being Element of A()
st I in (ElementaryInstructions A())|^$1 holds P[I];
(ElementaryInstructions A())|^0 = ElementaryInstructions A() by Th18;
then
A7: Q[0] by A1;
A8: now
let n be Nat;
assume
A9: Q[n];
thus Q[n+1]
proof
let I be Element of A();
A10: I in (ElementaryInstructions A() percases XXREAL_01;
per cases by A10,Th77;
suppose I in (java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 64
hence thesis by A9;
end;
suppose byA6A220
thesisA2;
end;
I1\I2&
I1 in (ElementaryInstructions A)|^n &
I2 Di) i0 19;
then consider I1,I2 being Elementhencedivset1 = [D.1,D1]by ,,java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 70
A11: I = I1\;I2 and
A12: I1 in (ElementaryInstructions A)|^n and
A13assume
A14: P[I1]A10 java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 22
A9
=0;
;
thenCI1I2 &
A|n&
(java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 45
I2(java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 44
then,I2 beingofA that
A15: I = if- divset(D,1) = [(,) ..D. java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 55
A16: C in (ElementaryInstructions java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 65
A17: I1 in (ElementaryInstructions A)|^n and
:I2in(java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 44
A19: PthenI=D<java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 61
A20:
P[I2] by A9,A18;
hence let f be bounded integrable Function of I,REAL;
end;
suppose ex C,J being Element of A st I = java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 20
C in (ElementaryInstructions A)|^n &
J in (ElementaryInstructions A)|^n;
then then integral f = r * integral g by A2,A4,INTEGRA2:31;
A21: I = while(C,J) and
A22: C in (ElementaryInstructions A)|^n and
A23: J in (ElementaryInstructions A)|^n;
A24: P[C] by A9,A22;
P[J] by A9,A23;
hence thesis by A5,A21,A24;
end;
end;
end;
for n being Nat holds Q[n] from NAT_1:sch 2(A7,A8);
hence thesis by A6;
end;
begin :: Execution function
definition
let A be preIfWhileAlgebra;
let S be non empty set; :: states
let f .< java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 34
attr f is complying_with_empty-instruction means
:
Def28 sofholds(,A
attr f is complying_with_catenation means
: Def29:
for s being Element of S
for I1,I2 being Element of A holds f.(s,I1 \ (,)/
end;
definition
java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 29
let S be non empty set; :: states
Subset S:: true states
f java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 50
pred f A15: D <=D9 and
for s being Element of S for C, I1,I2 being Element of A holds
(f.(s,C) in T implies f.(s,if-then-else (,java.lang.StringIndexOutOfBoundsException: Range [38, 35) out of bounds for length 55
f.s,) nin.(,-else,,)=f.f(,C,);
java.lang.StringIndexOutOfBoundsException: Range [34, 32) out of bounds for length 40
for s being Element of S for Cf,java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 58
f(,whileCI)= f(f(.s,)I,CI) &
fIis
end;
for =):def17java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
st f is complying_with_empty-instruction & f complies_with_if_wrt T
for s being Element of S holds
f.(s,C) nin byINTEGRA1def 16;
proof
let f be Function of [:S, the carrier of A:], S such
A1: f is complying_with_empty-instruction and
: java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 29
let s be Element of S;
assume f.( | f-java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 71
hence.si-I))=f((sC)java.lang.StringIndexOutOfBoundsException: Range [49, 48) out of bounds for length 57
.=.(C)by ;
;
theorem Th81:
pr10< TD)by9;
A33: |. lower_sum(f,division_of TD) - J .| <= epsilon
pr1(S, the carrier of ( / 2)-lower_sum(d java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
pr1(S, the carrier of A XXREAL_0
proof
set S ofA;
thus
for being f.( java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 72
hereby
let s be Element of S;
let I1,I2 be Element of A;
thus f.(s,I1 + (java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 59
.= f.(s,I1) by FUNCT_3:def 4
. .f(s,)I2 byjava.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 42
end;
hereby
let s be Element of java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
let C, I1,I2 be Element of A;
f.(s,if-then-else(C,I1,I2)) = s by FUNCT_3:endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
.= f.(s,C) by FUNCT_3:def 4;
hence
(f.(s,C) in T implies f.(s,if-then-else(C,I1,I2)) = f.(f.(s,C),I1))
& (f.(s,C) nin T implies f.(s,if-then-else(C,I1,I2)) = f.(f.(s,C),I2))
by FUNCT_3:def 4;
end;
let s be Element of S;
let C, I be Element of A;
f.(s,C) = s by FUNCT_3:def 4;
hence thesis by FUNCT_3:def 4;
end;
definition
let A be preIfWhileAlgebra;
let S be non empty set; :: states
let T be Subset of S; :: true states
mode ExecutionFunction of A,S,T -> Function of [:S, the carrier of A:], S
means
: Def32:
it is complying_with_empty-instruction &
it is complying_with_catenation & it complies_with_if_wrt T &
it complies_with_while_wrt T;
existence
proof
take pr1(S, the carrier of A);
thus thesis by Th81;
end;
end;
registration
let A be preIfWhileAlgebra;
let S be non empty set; :: states
let T be Subset of S; :: true states
cluster -> complying_with_empty-instruction complying_with_catenation
for ExecutionFunction of A,S,T;
coherence by Def32;
end;
definition
let A be preIfWhileAlgebra;
let I be Element of A;
let S be non empty set; :: states
let s be Element of S;
let T be Subset of S; :: true states
let f be ExecutionFunction of A, S, T;
:: iteration of I started in s terminates wrt f
pred f iteration_terminates_for I,s means
ex r being non empty FinSequence of S st r.1 = s & r.len r nin T &
for i being Nat st 1 <= i & i < len r holds r.i in T & r.(i+1) = f.(r.i, I);
end;
definition
let A be preIfWhileAlgebra;
let I be Element of A;
let S be non empty set; :: states
let s be Element of S;
let T be Subset of S; :: true states
let f be ExecutionFunction of A, S, T;
func iteration-degree(I,s,f) -> R_eal means
:
Def34: ex r being non empty FinSequence of S st
it = (len r)-1 & r.1 = s & r.len r nin T &
for i being Nat st 1 <= i & i < len r holds r.i in T & r.(i+1) = f.(r.i, I)
if f iteration_terminates_for I,s otherwise it = +infty;
correctness
proof
A1: now
assume f iteration_terminates_for I,s;
then consider r being non empty FinSequence of S such that
A2: r.1 = s and
A3: r.len r nin T and
A4: for i being Nat st 1 <= i & i < len r holds r.i in T & r.(i+1) = f.(
r.i, I);
reconsider x = (len r)-1 as R_eal by XXREAL_0:def 1;
take x, r;
thus x = (len r)-1 & r.1 = s & r.len r nin T &
for i being Nat st 1 <= i & i < len r
holds r.i in T & r.(i+1) = f.(r.i, I) by A2,A3,A4;
end;
now
let d1, d2 be R_eal;
given r1 being non empty FinSequence of S such that
A5: d1 = (len r1)-1 and
A6: r1.1 = s and
A7: r1.len r1 nin T and
A8: for i being Nat st 1 <= i & i < len r1 holds r1.i in T & r1.(i+1) =
f.(r1.i, I);
given r2 being non empty FinSequence of S such that
A9: d2 = (len r2)-1 and
A10: r2.1 = s and
A11: r2.len r2 nin T and
A12: for i being Nat st 1 <= i & i < len r2 holds r2.i in T & r2.(i+1) =
f.(r2.i, I);
defpred P[Nat] means
$1 < len r1 implies $1 < len r2 & r1.($1+1) = r2.($1+1);
A13: P[0] by A6,A10;
A14: now
let i be Nat;
assume
A15: P[i];
thus P[i+1]
proof
assume
A16: i+1 < len r1;
A17: 1 <= i+1 by NAT_1:11;
then
A18: r1.(i+1+1) = f.(r1.(i+1), I) by A8,A16;
A19: r1.(i+1) in T by A8,A16,A17;
i+1 <= len r2 by A15,A16,NAT_1:13;
hence i+1 < len r2 by A11,A15,A16,A19,NAT_1:13,XXREAL_0:1;
hence r1.(i+1+1) = r2.(i+1+1) by A12,A15,A16,A17,A18,NAT_1:13;
end;
end;
A20: for i being Nat holds P[i] from NAT_1:sch 2(A13,A14);
consider i being Nat such that
A21: len r1 = i+1 by NAT_1:6;
reconsider i as Element of NAT by ORDINAL1:def 12;
i < len r1 by A21,NAT_1:13;
then
A22: r1.len r1 = r2.len r1 by A20,A21;
A23: 1 <= len r1 by A21,NAT_1:11;
A24: len r1 <= len r2 by A20;
len r2 <= len r1 by A7,A12,A22,A23;
hence d1 = d2 by A5,A9,A24,XXREAL_0:1;
end;
hence thesis by A1;
end;
end;
reserve f for ExecutionFunction of A,S,T;
theorem
f iteration_terminates_for I,s iff iteration-degree(I,s,f) < +infty
proof
hereby
assume f iteration_terminates_for I,s;
then consider r being non empty FinSequence of S such that
A1: iteration-degree(I,s,f) = (len r)-1 and r.1 = s
and r.len r nin T
and for i being Nat st 1 <= i & i < len r holds r.i in T & r.(i+1) = f.(
r.i, I)
by Def34;
(len r)-1 in REAL by XREAL_0:def 1;
hence iteration-degree(I,s,f) < +infty by A1,XXREAL_0:9;
end;
thus thesis by Def34;
end;
theorem Th83:
s nin T implies f iteration_terminates_for I,s & iteration-degree(I,s,f) = 0
proof
assume
A1: s nin T;
set r = <*s*>;
A2: r.1 = s;
A3: len r = 1 by FINSEQ_1:40;
A4: for i being Nat st 1 <= i & i < len r
holds r.i in T & r.(i+1) = f.(r.i, I) by FINSEQ_1:40;
A5: 1-1 = 0.;
thus f iteration_terminates_for I,s
proof
take <*s*>;
thus thesis by A1,A2,FINSEQ_1:40;
end;
hence thesis by A1,A2,A3,A4,A5,Def34;
end;
theorem
s in T implies
(f iteration_terminates_for I,s iff f iteration_terminates_for I, f.(s,I)) &
iteration-degree(I,s,f) = 1.+iteration-degree(I,f.(s,I),f)
proof
assume
A1: s in T;
thus
A2: f iteration_terminates_for I,s iff f iteration_terminates_for I, f.(s,I)
proof
thus f iteration_terminates_for I,s implies
f iteration_terminates_for I, f.(s,I)
proof
given r being non empty FinSequence of S such that
A3: r.1 = s and
A4: r.len r nin T and
A5: for i being Nat st 1 <= i & i < len r
holds r.i in T & r.(i+1) = f.(r.i, I);
consider r1 being (Element of S), q being FinSequence of S such that
r1 = r.1 and
A6: r = <*r1*>^q by FINSEQ_3:102;
A7: len r = 1+len q by A6,FINSEQ_5:8;
then reconsider q as non empty FinSequence of S by A1,A3,A4;
len r >= 1 by A7,NAT_1:11;
then
A8: 1 < len r by A1,A3,A4,XXREAL_0:1;
A9: len q >= 0+1 by NAT_1:13;
take q;
A10: len <*r1*> = 1 by FINSEQ_1:40;
1 in dom q by A9,FINSEQ_3:25;
hence q.1 = r.(1+1) by A6,A10,FINSEQ_1:def 7
.= f.(s,I) by A3,A5,A8;
len q in dom q by A9,FINSEQ_3:25;
hence q.len q nin T by A4,A6,A7,A10,FINSEQ_1:def 7;
let i be Nat;
assume that
A11: 1 <= i and
A12: i < len q;
A13: i in dom q by A11,A12,MSUALG_8:1;
A14: 1 <= i+1 by NAT_1:11;
A15: i+1 < len r by A7,A12,XREAL_1:6;
A16: i+1 in dom q by A11,A12,MSUALG_8:1;
A17: r.(i+1) = q.i by A6,A10,A13,FINSEQ_1:def 7;
r.(i+1+1) = q.(i+1) by A6,A10,A16,FINSEQ_1:def 7;
hence thesis by A5,A14,A15,A17;
end;
given q being non empty FinSequence of S such that
A18: q.1 = f.(s,I) and
A19: q.len q nin T and
A20: for i being Nat st 1 <= i & i < len q
holds q.i in T & q.(i+1) = f.(q.i, I);
take r = <*s*>^q;
A21: len <*s*> = 1 by FINSEQ_1:40;
thus
A22: r.1 = s by FINSEQ_1:41;
A23: len r = 1+len q by FINSEQ_5:8;
A24: 0+1 <= len q by NAT_1:13;
then len q in dom q by FINSEQ_3:25;
hence r.len r nin T by A19,A21,A23,FINSEQ_1:def 7;
let i be Nat;
assume that
A25: 1 <= i and
A26: i < len r;
consider j being Nat such that
A27: i = 1+j by A25,NAT_1:10;
per cases;
suppose
A28: j = 0;
1 in dom q by A24,FINSEQ_3:25;
hence thesis by A1,A18,A21,A22,A27,A28,FINSEQ_1:def 7;
end;
suppose j > 0;
then
A29: j >= 0+1 by NAT_1:13;
A30: j < len q by A23,A26,A27,XREAL_1:6;
A31: j in dom q by A29,A30,MSUALG_8:1;
A32: j+1 in dom q by A29,A30,MSUALG_8:1;
A33: r.(j+1) = q.j by A21,A31,FINSEQ_1:def 7;
r.(j+1+1) = q.(j+1) by A21,A32,FINSEQ_1:def 7;
hence thesis by A20,A27,A29,A30,A33;
end;
end;
per cases by A2;
suppose
A34: not f iteration_terminates_for I,s;
then
A35: iteration-degree(I,s,f) = +infty by Def34;
iteration-degree(I,f.(s,I),f) = +infty by A2,A34,Def34;
hence thesis by A35,XXREAL_3:def 2;
end;
suppose
f iteration_terminates_for I,f.(s,I);
then consider q being non empty FinSequence of S such that
A36: iteration-degree(I,f.(s,I),f) = (len q)-1 and
A37: q.1 = f.(s,I) and
A38: q.len q nin T and
A39: for i being Nat st 1 <= i & i < len q
holds q.i in T & q.(i+1) = f.(q.i, I) by Def34;
set r = <*s*>^q;
A40: len <*s*> = 1 by FINSEQ_1:40;
A41: r.1 = s by FINSEQ_1:41;
A42: len r = 1+len q by FINSEQ_5:8;
1+((len q)-1) = len q;
then
A43: (len r)-1 = 1.+iteration-degree(I,f.(s,I),f) by A36,A42,XXREAL_3:def 2;
A44: 0+1 <= len q by NAT_1:13;
then len q in dom q by FINSEQ_3:25;
then
A45: r.len r nin T by A38,A40,A42,FINSEQ_1:def 7;
now
let i be Nat;
assume that
A46: 1 <= i and
A47: i < len r;
consider j being Nat such that
A48: i = 1+j by A46,NAT_1:10;
per cases;
suppose
A49: j = 0;
1 in dom q by A44,FINSEQ_3:25;
hence r.i in T & r.(i+1) = f.(r.i,I)
by A1,A37,A40,A41,A48,A49,FINSEQ_1:def 7;
end;
suppose j > 0;
then
A50: j >= 0+1 by NAT_1:13;
A51: j < len q by A42,A47,A48,XREAL_1:6;
A52: j in dom q by A50,A51,MSUALG_8:1;
A53: j+1 in dom q by A50,A51,MSUALG_8:1;
A54: r.(j+1) = q.j by A40,A52,FINSEQ_1:def 7;
r.(j+1+1) = q.(j+1) by A40,A53,FINSEQ_1:def 7;
hence r.i in T & r.(i+1) = f.(r.i,I) by A39,A48,A50,A51,A54;
end;
end;
hence thesis by A2,A41,A43,A45,Def34;
end;
end;
theorem
iteration-degree(I,s,f) >= 0 proof per cases;
suppose not f iteration_terminates_for I,s;
hence thesis by Def34;
end;
suppose f iteration_terminates_for I,s;
then consider r being non empty FinSequence of S such that
A1: iteration-degree(I,s,f) = (len r)-1 and r.1 = s
and r.len r nin T
and for i being Nat st 1 <= i & i < len r holds r.i in T & r.(i+1) = f.(
r.i, I)
by Def34;
ex i being Nat st len r = i+1 by NAT_1:6;
hence thesis by A1;
end;
end;
scheme Termination {A() -> preIfWhileAlgebra, I() -> (Element of A()),
S() -> non empty set, s() -> (Element of S()), T() -> Subset of S(),
f() -> ExecutionFunction of A(),S(),T(), F(set) -> Nat, P[set] }:
f() iteration_terminates_for I(),s()
provided
A1: s() in T() iff P[s()] and
A2: for s being Element of S() st P[s]
holds (P[f().(s,I())] iff f().(s,I()) in T()) & F(f().(s,I())) < F(s)
proof
per cases;
suppose s() nin T();
hence thesis by Th83;
end;
suppose
A3: s() in T();
deffunc F(set,set) = f().(In($2,S()),I());
consider f being sequence of S() such that
A4: f.0 = s() and
A5: for i being Nat holds f.(i+1) = F(i,f.i) from NAT_1:sch 12;
defpred Q[Nat] means ex i being Element of NAT st F(f.i) = $1;
F(f.0) in NAT by ORDINAL1:def 12;
then
A6: ex j being Nat st Q[j];
consider j being Nat such that
A7: Q[j] & for i being Nat st Q[i] holds j <= i from NAT_1:sch 5(A6);
consider i0 being Element of NAT such that
A8: F(f.i0) = j by A7;
defpred R[Nat] means not P[f.$1];
In(f.i0,S()) = f.i0;
then f.(i0+1) = f().(f.i0,I()) by A5;
then P[f.i0] implies F(f.(i0+1)) < j by A2,A8;
then
A9: ex i being Nat st R[i] by A7;
consider j being Nat such that
A10: R[j] & for i being Nat st R[i] holds j <= i from NAT_1:sch 5(A9);
deffunc G(Nat) = f.($1-'1);
consider p being FinSequence of S() such that
A11: len p = j+1 & for i being Nat st i in dom p holds p.i = G(i)
from FINSEQ_2:sch 1;
A12: dom p = Seg(j+1) by A11,FINSEQ_1:def 3;
reconsider p as non empty FinSequence of S() by A11;
take p;
A13: 1 <= j+1 by NAT_1:11;
then 1 in Seg(j+1);
hence p.1 = G(1) by A11,A12
.= s() by A4,XREAL_1:232;
len p in Seg(j+1) by A11,A13;
then
A14: p.len p = G(j+1) by A11,A12
.= f.j by NAT_D:34;
j > 0 by A1,A3,A4,A10;
then j >= 0+1 by NAT_1:13;
then consider j9 being Nat such that
A15: j = 1+j9 by NAT_1:10;
reconsider j9 as Element of NAT by ORDINAL1:def 12;
A16: f.j = f().(In(f.j9,S()),I()) by A5,A15;
j9 < j by A15,NAT_1:13;
then
P[f.j9] by A10;
hence p.len p nin T() by A2,A10,A14,A16;
let i be Nat;
assume that
A18: 1 <= i and
A19: i < len p;
A20: i+1 >= 1 by A18,NAT_1:13;
A21: i+1 <= len p by A19,NAT_1:13;
A22: i in Seg(j+1) by A11,A18,A19;
A23: i+1 in Seg(j+1) by A11,A20,A21;
A24: p.i = G(i) by A11,A12,A22;
A25: p.(i+1) = G(i+1) by A11,A12,A23;
consider i9 being Nat such that
A26: i = 1+i9 by A18,NAT_1:10;
reconsider i9 as Element of NAT by ORDINAL1:def 12;
i <= j by A11,A19,NAT_1:13;
then
A27: i9 < j by A26,NAT_1:13;
then
A28: P[f.i9] by A10;
A29: i-'1 = i9 by A26,NAT_D:34;
A30: i+1-'1 = i by NAT_D:34;
A31: In(f.i9,S()) = f.i9;
now
assume i9 <> 0;
then i9 >= 0+1 by NAT_1:13;
then consider i99 being Nat such that
A32: i9 = 1+i99 by NAT_1:10;
reconsider i99 as Element of NAT by ORDINAL1:def 12;
i99 <= i9 by A32,NAT_1:11;
then i99 < j by A27,XXREAL_0:2;
then
A33: P[f.i99] by A10;
f.i9 = F(i99,f.i99) by A5,A32;
hence p.i in T() by A2,A24,A28,A29,A33;
end;
hence thesis by A3,A4,A5,A24,A25,A26,A29,A30,A31;
end;
end;
scheme Termination2 {A() -> preIfWhileAlgebra, I() -> (Element of A()),
S() -> non empty set, s() -> (Element of S()), T() -> Subset of S(),
f() -> ExecutionFunction of A(),S(),T(), F(set) -> Nat, P,R[set] }:
f() iteration_terminates_for I(),s()
provided
A1: P[s()] and
A2: s() in T() iff R[s()] and
A3: for s being Element of S() st P[s] & s in T() & R[s]
holds P[f().(s, I())] & (R[f().(s,I())] iff f().(s,I()) in T()) &
F(f().(s,I())) < F(s)
proof
per cases;
suppose s() nin T();
hence thesis by Th83;
end;
suppose
A4: s() in T();
deffunc F(set,set) = f().(In($2,S()),I());
consider f being sequence of S() such that
A5: f.0 = s() and
A6: for i being Nat holds f.(i+1) = F(i,f.i) from NAT_1:sch 12;
defpred Q[Nat] means ex i being Element of NAT st F(f.i) = $1;
F(f.0) in NAT by ORDINAL1:def 12;
then
A7: ex j being Nat st Q[j];
consider j being Nat such that
A8: Q[j] & for i being Nat st Q[i] holds j <= i from NAT_1:sch 5(A7);
consider i0 being Element of NAT such that
A9: F(f.i0) = j by A8;
defpred notR[Nat] means not (P[f.$1] & f.$1 in T() & R[f.$1]);
In(f.i0,S()) = f.i0;
then f.(i0+1) = f().(f.i0,I()) by A6;
then not notR[i0] implies F(f.(i0+1)) < j by A3,A9;
then
A10: ex i being Nat st notR[i] by A8;
consider j being Nat such that
A11: notR[j] & for i being Nat st notR[i] holds j <= i from NAT_1:sch 5(A10
);
deffunc G(Nat) = f.($1-'1);
consider p being FinSequence of S() such that
A12: len p = j+1 & for i being Nat st i in dom p holds p.i = G(i)
from FINSEQ_2:sch 1;
A13: dom p = Seg(j+1) by A12,FINSEQ_1:def 3;
reconsider p as non empty FinSequence of S() by A12;
take p;
A14: 1 <= j+1 by NAT_1:11;
then 1 in Seg(j+1);
hence p.1 = G(1) by A12,A13
.= s() by A5,XREAL_1:232;
len p in Seg(j+1) by A12,A14;
then
A15: p.len p = G(j+1) by A12,A13
.= f.j by NAT_D:34;
j > 0 by A1,A2,A4,A5,A11;
then j >= 0+1 by NAT_1:13;
then consider j9 being Nat such that
A16: j = 1+j9 by NAT_1:10;
reconsider j9 as Element of NAT by ORDINAL1:def 12;
A17: f.j = f().(In(f.j9,S()),I()) by A6,A16;
A18: j9 < j by A16,NAT_1:13;
then
A19: R[f.j9] by A11;
A20: f.j9 in T() by A11,A18;
P[f.j9] by A11,A18;
hence p.len p nin T() by A3,A11,A15,A17,A19,A20;
let i be Nat;
assume that
A22: 1 <= i and
A23: i < len p;
A24: i+1 >= 1 by A22,NAT_1:13;
A25: i+1 <= len p by A23,NAT_1:13;
A26: i in Seg(j+1) by A12,A22,A23;
A27: i+1 in Seg(j+1) by A12,A24,A25;
A28: p.i = G(i) by A12,A13,A26;
A29: p.(i+1) = G(i+1) by A12,A13,A27;
consider i9 being Nat such that
A30: i = 1+i9 by A22,NAT_1:10;
reconsider i9 as Element of NAT by ORDINAL1:def 12;
i <= j by A12,A23,NAT_1:13;
then
A31: i9 < j by A30,NAT_1:13;
A32: i-'1 = i9 by A30,NAT_D:34;
A33: i+1-'1 = i by NAT_D:34;
In(f.i9,S()) = f.i9;
hence thesis by A6,A11,A28,A29,A30,A31,A32,A33;
end;
end;
theorem Th86:
for r being non empty FinSequence of S st r.1 = f.(s,C) & r.len r nin T &
for i being Nat st 1 <= i & i < len r
holds r.i in T & r.(i+1) = f.(r.i, I \; C) holds f.(s, while(C,I)) = r.len r
proof
A1: f complies_with_while_wrt T by Def32;
let r be non empty FinSequence of S;
assume
A2: r.1 = f.(s,C);
assume
A3: r.len r nin T;
assume
A4: for i being Nat st 1 <= i & i < len r
holds r.i in T & r.(i+1) = f.(r.i, I \; C);
defpred P[Nat] means (len r)-$1 in dom r implies
for q being Element of S st f.(q,C) = r.((len r)-$1)
holds f.(q, while(C,I)) = r.len r;
A5: P[0] by A1,A3;
A6: for i being Nat st P[i] holds P[i+1]
proof
let i be Nat such that
A7: P[i] and
A8: (len r)-(i+1) in dom r;
reconsider j = (len r)-(i+1) as Element of NAT by A8;
A9: j+1+i = len r;
A10: 1 <= j+1 by NAT_1:11;
A11: j+1 <= len r by A9,NAT_1:11;
A12: 1 <= j by A8,FINSEQ_3:25;
A13: j < len r by A11,NAT_1:13;
then
A14: r.(j+1) = f.(r.j, I\;C) by A4,A12;
let q be Element of S;
assume
A15: f.(q,C) = r.((len r)-(i+1));
then
A16: f.(q,C) in T by A4,A12,A13;
r.(j+1) = f.(f.(f.(q,C), I), C) by A14,A15,Def29;
then f.(f.(f.(q,C), I), while(C,I)) = r.len r by A7,A10,A11,FINSEQ_3:25;
hence thesis by A1,A16;
end;
A17: for i being Nat holds P[i] from NAT_1:sch 2(A5,A6);
A18: len r >= 0+1 by NAT_1:13;
then consider i being Nat such that
A19: len r = 1+i by NAT_1:10;
P[i] by A17;
hence thesis by A2,A18,A19,FINSEQ_3:25;
end;
theorem Th87:
for I being Element of A for s being Element of S holds
not f iteration_terminates_for I,s iff (curry' f).I orbit s c= T
proof
let I be Element of A;
let s be Element of S;
set g = (curry' f).I;
hereby
assume
A1: not f iteration_terminates_for I,s;
thus g orbit s c= T
proof
let x be object;
assume x in g orbit s;
then
A2: ex n being Element of NAT st ( x = iter(g, n).s)&( s in dom iter(g, n));
defpred P[Nat] means iter(g,$1).s nin T;
assume x nin T;
then
A3: ex n being Nat st P[n] by A2;
consider n being Nat such that
A4: P[n] & for m being Nat st P[m] holds n <= m from NAT_1:sch 5(A3);
deffunc F(Nat) = iter(g,$1-'1).s;
consider r being FinSequence such that
A5: len r = n+1 & for k being Nat st k in dom r holds r.k = F(k)
from FINSEQ_1:sch 2;
rng r c= S
proof
let a be object;
assume a in rng r;
then consider b being object such that
A6: b in dom r and
A7: a = r.b by FUNCT_1:def 3;
reconsider b as Element of NAT by A6;
r.b = iter(g,b-'1).s by A5,A6;
hence thesis by A7;
end;
then reconsider r as non empty FinSequence of S
by A5,FINSEQ_1:def 4;
A8: 1 <= n+1 by NAT_1:11;
then
A9: 1 in dom r by A5,FINSEQ_3:25;
A10: n+1 in dom r by A5,A8,FINSEQ_3:25;
A11: 1-'1 = 0 by XREAL_1:232;
A12: n+1-'1 = n by NAT_D:34;
A13: iter(g,0) = id S by FUNCT_7:84;
r.1 = F(1) by A5,A9;
then
A14: r.1 = s by A11,A13;
A15: r.len r nin T by A4,A5,A10,A12;
now
let i be Nat such that
A16: 1 <= i and
A17: i < len r;
consider j being Nat such that
A18: i = 1+j by A16,NAT_1:10;
reconsider j as Element of NAT by ORDINAL1:def 12;
A19: i-'1 = j by A18,NAT_D:34;
A20: (i+1)-'1 = i by NAT_D:34;
A21: dom curry' f = the carrier of A by FUNCT_2:def 1;
dom g = S by FUNCT_2:def 1;
then
A22: g.(iter(g,j).s) = f.(iter(g,j).s, I) by A21,FUNCT_5:34;
A23: iter(g,i) = g*iter( g,j) by A18,FUNCT_7:71;
A24: 1 <= i+1 by A16,NAT_1:13;
A25: i+1 <= n+1 by A5,A17,NAT_1:13;
A26: i-'1 < n by A5,A17,A18,A19,XREAL_1:6;
A27: i in dom r by A16,A17,FINSEQ_3:25;
A28: i+1 in dom r by A5,A24,A25,FINSEQ_3:25;
A29: r.i = iter(g,i-'1).s by A5,A27;
r.(i+1) = iter(g,i).s by A5,A20,A28;
hence r.i in T & r.(i+1) = f.(r.i, I) by A4,A19,A22,A23,A26,A29,
FUNCT_2:15;
end;
hence contradiction by A1,A14,A15;
end;
end;
assume
A30: (curry' f).I orbit s c= T;
given r being non empty FinSequence of S such that
A31: r.1 = s and
A32: r.len r nin T and
A33: for i being Nat st 1 <= i & i < len r
holds r.i in T & r.(i+1) = f.(r.i, I);
defpred P[Nat] means $1+1 <= len r implies r.($1+1) in (curry' f).I orbit s;
dom g = S by FUNCT_2:def 1;
then
A34: P[0] by A31,Th6;
A35: for i being Nat st P[i] holds P[i+1]
proof
let i be Nat such that
A36: P[i] and
A37: i+1+1 <= len r;
A38: 1 <= i+1 by NAT_1:11;
A39: i+1 < len r by A37,NAT_1:13;
then i+1 in dom r by A38,FINSEQ_3:25;
then
A40: r.(i+1) in rng r by FUNCT_1:3;
dom f = [:S, the carrier of A:] by FUNCT_2:def 1;
then
A41: [r.(i+1), I] in dom f by A40,ZFMISC_1:87;
consider n being Element of NAT such that
A42: r.(i+1) = iter((curry' f).I,n).s and s in dom iter((curry' f).I,n)
by A36,A37,NAT_1:13;
A43: r.(i+1+1) = f.(r.(i+1), I) by A33,A38,A39
.= (curry' f).I.(r.(i+1)) by A41,FUNCT_5:22
.= (g*iter(g,n)).s by A42,FUNCT_2:15
.= iter((curry' f).I,n+1).s by FUNCT_7:71;
dom iter(g,n+1) = S by FUNCT_2:def 1;
hence r.(i+1+1) in g orbit s by A43;
end;
consider i being Nat such that
A44: len r = i+1 by NAT_1:6;
for n being Nat holds P[n] from NAT_1:sch 2(A34,A35);
then r.(i+1) in g orbit s by A44;
hence contradiction by A30,A32,A44;
end;
scheme InvariantSch {A() -> preIfWhileAlgebra, C,I() -> (Element of A()),
S() -> non empty set, s() -> (Element of S()), T() -> Subset of S(),
f() -> ExecutionFunction of A(),S(),T(), P,R[set] }:
P[f().(s(),while(C(),I()))] & not R[f().(s(),while(C(),I()))]
provided
A1: P[s()] and
A2: f() iteration_terminates_for I()\;C(), f().(s(),C()) and
A3: for s being Element of S() st P[s] & s in T() & R[s] holds P[f().(s,I())]
and
A4: for s being Element of S() st P[s] holds
P[f().(s,C())] & (f().(s,C()) in T() iff R[f().(s,C())])
proof
consider r being non empty FinSequence of S() such that
A5: r.1 = f().(s(),C()) and
A6: r.len r nin T() and
A7: for i being Nat st 1 <= i & i < len r holds r.i in T() & r.(i+1) = f
().(r.i, I()\;C())
by A2;
A8: f().(s(), while(C(),I())) = r.len r by A5,A6,A7,Th86;
defpred Q[Nat] means $1+1 in dom r implies P[r.($1+1)] &
($1+1 < len r implies R[r.($1+1)]) &
ex q being Element of S() st P[q] & r.($1+1) = f().(q,C());
0+1 < len r implies r.(0+1) in T() by A7;
then
A9: Q[0] by A1,A4,A5;
A10: for n being Nat st Q[n] holds Q[n+1]
proof
let n be Nat;
assume
A11: Q[n];
assume
A12: n+1+1 in dom r;
then
A13: n+1+1 <= len r by FINSEQ_3:25;
A14: n+1+1 >= 1 by NAT_1:11;
A15: n+1 >= 1 by NAT_1:11;
A16: n+1 < len r by A13,NAT_1:13;
then
A17: n+1 in dom r by A15,FINSEQ_3:25;
A18: r.(n+1) in T() by A7,A15,A16;
A19: r.(n+1+1) = f().(r.(n+1), I()\;C( )) by A7,A15,A16;
reconsider q1 = r.(n+1), q2 = r.(n+1+1) as Element of S()
by A12,A17,DTCONSTR:2;
reconsider q3 = f().(q1,I()) as Element of S();
A20: q2 = f().(q3, C()) by A19,Def29;
A21: P[q3] by A3,A11,A15,A16,A18,FINSEQ_3:25;
hence P[r.(n+1+1)] by A4,A20;
hereby
assume n+1+1 < len r;
then r.(n+1+1) in T() by A7,A14;
hence R[r.(n+1+1)] by A4,A20,A21;
end;
take q3;
thus thesis by A3,A11,A15,A16,A18,A19,Def29,FINSEQ_3:25;
end;
A22: for n being Nat holds Q[n] from NAT_1:sch 2(A9,A10);
A23: len r >= 0+1 by NAT_1:13;
then consider j being Nat such that
A24: len r = 1+j by NAT_1:10;
A25: j+1 in dom r by A23,A24,FINSEQ_3:25;
hence P[f().(s(),while(C(),I()))] by A8,A22,A24;
ex q being Element of S() st P[q] & r.(j+1) = f().(q, C()) by A22,A25;
hence thesis by A4,A6,A8,A24;
end;
scheme coInvariantSch {A() -> preIfWhileAlgebra, C,I() -> (Element of A()),
S() -> non empty set, s() -> (Element of S()), T() -> Subset of S(),
f() -> ExecutionFunction of A(),S(),T(), P[set] }: P[s()]
provided
A1: P[f().(s(),while(C(),I()))] and
A2: f() iteration_terminates_for I()\;C(), f().(s(),C()) and
A3: for s being Element of S() st P[f().(f().(s,C()),I())] & f().(s,C()) in T()
holds P[f().(s,C())] and
A4: for s being Element of S() st P[f().(s,C())] holds P[s]
proof
consider r being non empty FinSequence of S() such that
A5: r.1 = f().(s(),C()) and
A6: r.len r nin T() and
A7: for i being Nat st 1 <= i & i < len r holds r.i in T() & r.(i+1) = f
().(r.i, I()\;C())
by A2;
defpred Q[Nat] means (len r)-$1 in dom r implies P[r.((len r)-$1)];
defpred R[Nat] means $1+1 in dom r implies
ex q being Element of S() st r.($1+1) = f().(q,C());
A8: R[0] by A5;
A9: for n being Nat st R[n] holds R[n+1]
proof
let n be Nat;
assume R[n];
assume n+1+1 in dom r;
then
A10: n+1+1 <= len r by FINSEQ_3:25;
A11: n+1 >= 1 by NAT_1:11;
A12: n+1 < len r by A10,NAT_1:13;
then
A13: r.(n+1) in T() by A7,A11;
A14: r.(n+1+1) = f().(r.(n+1), I()\;C() ) by A7,A11,A12;
reconsider q1 = r.(n+1) as Element of S() by A13;
reconsider q3 = f().(q1,I()) as Element of S();
take q3;
thus thesis by A14,Def29;
end;
A15: Q[0] by A1,A5,A6,A7,Th86;
A16: for n being Nat st Q[n] holds Q[n+1]
proof
let n be Nat;
assume
A17: Q[n];
assume
A18: (len r)-(n+1) in dom r;
then reconsider j = (len r)-(n+1) as Element of NAT;
A19: j >= 1 by A18,FINSEQ_3:25;
n+1 >= 0+1 by NAT_1:13;
then j <= (len r)-1 by XREAL_1:10;
then
A20: j+1 <= (len r)-1+1 by XREAL_1:6;
A21: 1 <= 1+j by NAT_1:11;
A22: j < len r by A20,NAT_1:13;
A23: j+1 in dom r by A20,A21,FINSEQ_3:25;
A24: r.j in T() by A7,A19,A22;
A25: r.(j+1) = f().(r.j, I()\;C()) by A7,A19,A22;
reconsider q1 = r.j, q2 = r.(j+1) as Element of S() by A23,A24,DTCONSTR:2;
reconsider q9 = f().(q1, I()) as Element of S();
consider j9 being Nat such that
A26: j = 1+j9 by A19,NAT_1:10;
for n being Nat holds R[n] from NAT_1:sch 2(A8,A9);
then consider qq being Element of S() such that
A27: r.(j9+1) = f().(qq,C()) by A18,A26;
q2 = f().(q9, C()) by A25,Def29;
then P[f().(f().(qq,C()),I())] by A4,A17,A20,A21,A26,A27,FINSEQ_3:25;
hence thesis by A3,A7,A19,A22,A26,A27;
end;
A28: for n being Nat holds Q[n] from NAT_1:sch 2(A15,A16);
A29: len r >= 0+1 by NAT_1:13;
then consider j being Nat such that
A30: len r = 1+j by NAT_1:10;
(len r)-j in dom r by A29,A30,FINSEQ_3:25;
hence thesis by A4,A5,A28,A30;
end;
theorem Th88:
for A being free preIfWhileAlgebra for I1,I2 being Element of A
for n being Nat st I1\;I2 in (ElementaryInstructions A)|^n
ex i being Nat st n = i+1 &
I1 in (ElementaryInstructions A)|^i & I2 in (ElementaryInstructions A)|^i
proof
let A be free preIfWhileAlgebra;
set B = ElementaryInstructions A;
A1: B is GeneratorSet of A by Def25;
let I1,I2 be Element of A;
A2: I1\;I2 <> I1 by Th73;
I1\;I2 <> I2 by Th73;
then I1\;I2 nin B by A2,Th50;
then
A3: I1\;I2 nin B|^0 by Th18;
let n be Nat;
assume
A4: I1\;I2 in B|^n;
then n > 0 by A3;
then n >= 0+1 by NAT_1:13;
then consider i being Nat such that
A5: n = 1+i by NAT_1:10;
take i;
thus n = i+1 by A5;
A6: dom Den(In(2, dom the charact of A), A) = 2-tuples_on the carrier of A
by Th44;
A7: for o being OperSymbol of A, p being FinSequence st p in dom Den(o,A)
holds Den(o,A).p in B implies o <> In(2, dom the charact of A)
proof
let o be OperSymbol of A;
let p be FinSequence;
assume that
A8: p in dom Den(o,A) and
A9: Den(o,A).p in B and
A10: o = In(2, dom the charact of A);
consider a,b being object such that
A11: a in the carrier of A and
A12: b in the carrier of A and
A13: p = <*a,b*> by A6,A8,A10,FINSEQ_2:137;
reconsider a,b as Element of A by A11,A12;
:::: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 73
hence by,,A13A,Th50java.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
;
charactofA,)byA6FINSEQ_2137;
then<,I2>= |^i byA1A4,A5,A7,Th39
then{,I2 c |^i by :;
hence thesis by ZFMISC_1:32;
end;
theorem Th89:
for A being free preIfWhileAlgebra for C,I1,I2 being Element of A
exibeing Natst =i+& CinElementaryInstructionsA|^&
I1in( A|i &I2 in (lementaryInstructions)^java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
let A be free preIfWhileAlgebra;
set B = ElementaryInstructions A;
A1: B is GeneratorSet of A by Def25;
let CI1I2beElement A;
ifthen
then
A2: suppose
let n be Nat;
assume
:if--elseCI1,2 |n;
hen at that
=1,java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 26
;
charact ,A - thecarrier A
by Th47;
:forobeing OperSymbol ,pbeing FinSequence st p dom Den,A)
holds Den(o,A).p in B implies o <> In(3, dom the charact of A)
proof
let o be OperSymbol of A;
FinSequence;
pc byA16;
A7: p in \ domStart-Ati,SCMFSA)
A8:Den(,A).
A9: o = In(A20: (ComputS2,,1)dom p p
consider:domp1 = p / dom (d.-> 0 +*
d
b in the carrier of A and
A12 the carrier ofAand
p=<a,b,* A5A5,A7,9,INSEQ_2:39;
reconsider then
Deno)p=ifthenelsea, ;
. i ->(:d2)il A30FUNCT_4java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
;
*I* (3 theofA A5139java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
then
A14 il dom ( ->(:d) by : 1
A15A46 /ICs2=IC byPBOOLE143java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
16I1 in{CI1I2}by ENUMSET1:ef 1java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39 | |