let X be non empty set ; :: thesis: for S being non empty FinSequence of NAT ex A being Universal_Algebra st
( the carrier of A = X & signature A = S )
let S be non empty FinSequence of NAT ; :: thesis: ex A being Universal_Algebra st
( the carrier of A = X & signature A = S )
A1:
( dom S = Seg (len S) & rng S c= NAT )
by FINSEQ_1:def 3;
consider x being Element of X;
defpred S1[ set , set ] means ex i, j being Nat st
( $1 = i & j = S . i & $2 = (j -tuples_on X) --> x );
A2:
for y being set st y in dom S holds
ex z being set st S1[y,z]
consider ch being Function such that
A3:
( dom ch = dom S & ( for y being set st y in dom S holds
S1[y,ch . y] ) )
from CLASSES1:sch 1(A2);
reconsider ch = ch as FinSequence by A3, A1, FINSEQ_1:def 2;
rng ch c= PFuncs (X * ),X
then reconsider ch = ch as PFuncFinSequence of X by FINSEQ_1:def 4;
set A = UAStr(# X,ch #);
A6:
UAStr(# X,ch #) is quasi_total
proof
let n be
Nat;
:: according to UNIALG_1:def 5,
UNIALG_1:def 8 :: thesis: for b1 being Element of bool [:(the carrier of UAStr(# X,ch #) * ),the carrier of UAStr(# X,ch #):] holds
( n nin dom the charact of UAStr(# X,ch #) or not b1 = the charact of UAStr(# X,ch #) . n or b1 is quasi_total )let h be
PartFunc of
(the carrier of UAStr(# X,ch #) * ),the
carrier of
UAStr(#
X,
ch #);
:: thesis: ( n nin dom the charact of UAStr(# X,ch #) or not h = the charact of UAStr(# X,ch #) . n or h is quasi_total )
assume
(
n in dom the
charact of
UAStr(#
X,
ch #) &
h = the
charact of
UAStr(#
X,
ch #)
. n )
;
:: thesis: h is quasi_total
then
ex
i,
j being
Nat st
(
n = i &
j = S . i &
h = (j -tuples_on X) --> x )
by A3;
hence
h is
quasi_total
;
:: thesis: verum
end;
A7:
UAStr(# X,ch #) is non-empty
UAStr(# X,ch #) is partial
proof
let n be
Nat;
:: according to UNIALG_1:def 4,
UNIALG_1:def 7 :: thesis: for b1 being Element of bool [:(the carrier of UAStr(# X,ch #) * ),the carrier of UAStr(# X,ch #):] holds
( n nin dom the charact of UAStr(# X,ch #) or not b1 = the charact of UAStr(# X,ch #) . n or b1 is homogeneous )let h be
PartFunc of
(the carrier of UAStr(# X,ch #) * ),the
carrier of
UAStr(#
X,
ch #);
:: thesis: ( n nin dom the charact of UAStr(# X,ch #) or not h = the charact of UAStr(# X,ch #) . n or h is homogeneous )
assume
(
n in dom the
charact of
UAStr(#
X,
ch #) &
h = the
charact of
UAStr(#
X,
ch #)
. n )
;
:: thesis: h is homogeneous
then
ex
i,
j being
Nat st
(
n = i &
j = S . i &
h = (j -tuples_on X) --> x )
by A3;
hence
h is
homogeneous
;
:: thesis: verum
end;
then reconsider A = UAStr(# X,ch #) as Universal_Algebra by A6, A7;
take
A
; :: thesis: ( the carrier of A = X & signature A = S )
thus
the carrier of A = X
; :: thesis: signature A = S
A9:
len ch = len S
by A3, FINSEQ_3:31;
hence
signature A = S
by A9, UNIALG_1:def 11; :: thesis: verum