begin
:: deftheorem defines Tern ALGSTR_3:def 1 :
for F being non empty TernaryFieldStr
for a, b, c being Scalar of F holds Tern (a,b,c) = the TernOp of F . (a,b,c);
definition
canceled;canceled;func ternaryreal -> TriOp of
REAL means :
Def4:
for
a,
b,
c being
Real holds
it . (
a,
b,
c)
= (a * b) + c;
existence
ex b1 being TriOp of REAL st
for a, b, c being Real holds b1 . (a,b,c) = (a * b) + c
uniqueness
for b1, b2 being TriOp of REAL st ( for a, b, c being Real holds b1 . (a,b,c) = (a * b) + c ) & ( for a, b, c being Real holds b2 . (a,b,c) = (a * b) + c ) holds
b1 = b2
end;
:: deftheorem ALGSTR_3:def 2 :
canceled;
:: deftheorem ALGSTR_3:def 3 :
canceled;
:: deftheorem Def4 defines ternaryreal ALGSTR_3:def 4 :
for b1 being TriOp of REAL holds
( b1 = ternaryreal iff for a, b, c being Real holds b1 . (a,b,c) = (a * b) + c );
:: deftheorem defines TernaryFieldEx ALGSTR_3:def 5 :
TernaryFieldEx = TernaryFieldStr(# REAL,0,1,ternaryreal #);
:: deftheorem defines tern ALGSTR_3:def 6 :
for a, b, c being Scalar of TernaryFieldEx holds tern (a,b,c) = the TernOp of TernaryFieldEx . (a,b,c);
theorem
canceled;
theorem
canceled;
theorem Th3:
for
u,
u9,
v,
v9 being
Real st
u <> u9 holds
ex
x being
Real st
(u * x) + v = (u9 * x) + v9
theorem
canceled;
theorem
theorem
canceled;
theorem
Lm1:
for a being Scalar of TernaryFieldEx holds Tern (a,(1. TernaryFieldEx),(0. TernaryFieldEx)) = a
Lm2:
for a being Scalar of TernaryFieldEx holds Tern ((1. TernaryFieldEx),a,(0. TernaryFieldEx)) = a
Lm3:
for a, b being Scalar of TernaryFieldEx holds Tern (a,(0. TernaryFieldEx),b) = b
Lm4:
for a, b being Scalar of TernaryFieldEx holds Tern ((0. TernaryFieldEx),a,b) = b
Lm5:
for u, a, b being Scalar of TernaryFieldEx ex v being Scalar of TernaryFieldEx st Tern (u,a,v) = b
Lm6:
for u, a, v, v9 being Scalar of TernaryFieldEx st Tern (u,a,v) = Tern (u,a,v9) holds
v = v9
Lm7:
for a, a9 being Scalar of TernaryFieldEx st a <> a9 holds
for b, b9 being Scalar of TernaryFieldEx ex u, v being Scalar of TernaryFieldEx st
( Tern (u,a,v) = b & Tern (u,a9,v) = b9 )
Lm8:
for u, u9 being Scalar of TernaryFieldEx st u <> u9 holds
for v, v9 being Scalar of TernaryFieldEx ex a being Scalar of TernaryFieldEx st Tern (u,a,v) = Tern (u9,a,v9)
Lm9:
for a, a9, u, u9, v, v9 being Scalar of TernaryFieldEx st Tern (u,a,v) = Tern (u9,a,v9) & Tern (u,a9,v) = Tern (u9,a9,v9) & not a = a9 holds
u = u9
definition
let IT be non
empty TernaryFieldStr ;
attr IT is
Ternary-Field-like means :
Def7:
(
0. IT <> 1. IT & ( for
a being
Scalar of
IT holds
Tern (
a,
(1. IT),
(0. IT))
= a ) & ( for
a being
Scalar of
IT holds
Tern (
(1. IT),
a,
(0. IT))
= a ) & ( for
a,
b being
Scalar of
IT holds
Tern (
a,
(0. IT),
b)
= b ) & ( for
a,
b being
Scalar of
IT holds
Tern (
(0. IT),
a,
b)
= b ) & ( for
u,
a,
b being
Scalar of
IT ex
v being
Scalar of
IT st
Tern (
u,
a,
v)
= b ) & ( for
u,
a,
v,
v9 being
Scalar of
IT st
Tern (
u,
a,
v)
= Tern (
u,
a,
v9) holds
v = v9 ) & ( for
a,
a9 being
Scalar of
IT st
a <> a9 holds
for
b,
b9 being
Scalar of
IT ex
u,
v being
Scalar of
IT st
(
Tern (
u,
a,
v)
= b &
Tern (
u,
a9,
v)
= b9 ) ) & ( for
u,
u9 being
Scalar of
IT st
u <> u9 holds
for
v,
v9 being
Scalar of
IT ex
a being
Scalar of
IT st
Tern (
u,
a,
v)
= Tern (
u9,
a,
v9) ) & ( for
a,
a9,
u,
u9,
v,
v9 being
Scalar of
IT st
Tern (
u,
a,
v)
= Tern (
u9,
a,
v9) &
Tern (
u,
a9,
v)
= Tern (
u9,
a9,
v9) & not
a = a9 holds
u = u9 ) );
end;
:: deftheorem Def7 defines Ternary-Field-like ALGSTR_3:def 7 :
for IT being non empty TernaryFieldStr holds
( IT is Ternary-Field-like iff ( 0. IT <> 1. IT & ( for a being Scalar of IT holds Tern (a,(1. IT),(0. IT)) = a ) & ( for a being Scalar of IT holds Tern ((1. IT),a,(0. IT)) = a ) & ( for a, b being Scalar of IT holds Tern (a,(0. IT),b) = b ) & ( for a, b being Scalar of IT holds Tern ((0. IT),a,b) = b ) & ( for u, a, b being Scalar of IT ex v being Scalar of IT st Tern (u,a,v) = b ) & ( for u, a, v, v9 being Scalar of IT st Tern (u,a,v) = Tern (u,a,v9) holds
v = v9 ) & ( for a, a9 being Scalar of IT st a <> a9 holds
for b, b9 being Scalar of IT ex u, v being Scalar of IT st
( Tern (u,a,v) = b & Tern (u,a9,v) = b9 ) ) & ( for u, u9 being Scalar of IT st u <> u9 holds
for v, v9 being Scalar of IT ex a being Scalar of IT st Tern (u,a,v) = Tern (u9,a,v9) ) & ( for a, a9, u, u9, v, v9 being Scalar of IT st Tern (u,a,v) = Tern (u9,a,v9) & Tern (u,a9,v) = Tern (u9,a9,v9) & not a = a9 holds
u = u9 ) ) );
theorem
for
F being
Ternary-Field for
a,
a9,
u,
v,
u9,
v9 being
Scalar of
F st
a <> a9 &
Tern (
u,
a,
v)
= Tern (
u9,
a,
v9) &
Tern (
u,
a9,
v)
= Tern (
u9,
a9,
v9) holds
(
u = u9 &
v = v9 )
theorem
canceled;
theorem
canceled;
theorem
theorem
theorem
theorem