begin
theorem
theorem Th2:
theorem
canceled;
Lm1:
for X being set
for Y being non empty set
for f being Function of X,Y st f is bijective holds
card X = card Y
by EULER_1:12;
theorem
theorem
theorem Th6:
Lm2:
for n, m being Nat st n < m holds
ex k being Nat st m = (n + 1) + k
:: deftheorem Def1 defines increasing EUCLID_7:def 1 :
for h being real-valued FinSequence holds
( h is increasing iff for i being Nat st 1 <= i & i < len h holds
h . i < h . (i + 1) );
theorem Th7:
theorem Th8:
theorem Th9:
theorem Th10:
:: deftheorem defines (*) EUCLID_7:def 2 :
for D being set
for F being FinSequence of D
for h being Permutation of (dom F) holds F (*) h = F * h;
theorem Th11:
theorem Th12:
theorem
theorem Th14:
theorem Th15:
begin
:: deftheorem Def3 defines R-orthogonal EUCLID_7:def 3 :
for B0 being set holds
( B0 is R-orthogonal iff for x, y being real-valued FinSequence st x in B0 & y in B0 & x <> y holds
|(x,y)| = 0 );
theorem
:: deftheorem Def4 defines R-normal EUCLID_7:def 4 :
for B0 being set holds
( B0 is R-normal iff for x being real-valued FinSequence st x in B0 holds
|.x.| = 1 );
theorem Th17:
theorem Th18:
:: deftheorem Def5 defines R-orthonormal EUCLID_7:def 5 :
for B0 being set holds
( B0 is R-orthonormal iff ( B0 is R-orthogonal & B0 is R-normal ) );
:: deftheorem Def6 defines complete EUCLID_7:def 6 :
for n being Nat
for B0 being Subset of (REAL n) holds
( B0 is complete iff for B being R-orthonormal Subset of (REAL n) st B0 c= B holds
B = B0 );
:: deftheorem Def7 defines orthogonal_basis EUCLID_7:def 7 :
for n being Nat
for B0 being Subset of (REAL n) holds
( B0 is orthogonal_basis iff ( B0 is R-orthonormal & B0 is complete ) );
theorem Th19:
theorem
begin
:: deftheorem Def8 defines linear_manifold EUCLID_7:def 8 :
for n being Nat
for X being Subset of (REAL n) holds
( X is linear_manifold iff for x, y being Element of REAL n
for a, b being Element of REAL st x in X & y in X holds
(a * x) + (b * y) in X );
theorem Th21:
:: deftheorem defines L_Span EUCLID_7:def 9 :
for n being Nat
for X being Subset of (REAL n) holds L_Span X = meet { Y where Y is Subset of (REAL n) : ( Y is linear_manifold & X c= Y ) } ;
:: deftheorem Def10 defines accum EUCLID_7:def 10 :
for n being Nat
for f, b3 being FinSequence of REAL n holds
( b3 = accum f iff ( len f = len b3 & f . 1 = b3 . 1 & ( for i being Nat st 1 <= i & i < len f holds
b3 . (i + 1) = (b3 /. i) + (f /. (i + 1)) ) ) );
:: deftheorem Def11 defines Sum EUCLID_7:def 11 :
for n being Nat
for f being FinSequence of REAL n holds
( ( len f > 0 implies Sum f = (accum f) . (len f) ) & ( not len f > 0 implies Sum f = 0* n ) );
theorem
canceled;
theorem Th23:
theorem Th24:
theorem Th25:
theorem Th26:
begin
theorem Th27:
theorem Th28:
theorem Th29:
theorem Th30:
theorem Th31:
theorem Th32:
definition
let n be
Nat;
let x0 be
Element of
REAL n;
func ProjFinSeq x0 -> FinSequence of
REAL n means :
Def12:
(
len it = n & ( for
i being
Nat st 1
<= i &
i <= n holds
it . i = |(x0,(Base_FinSeq (n,i)))| * (Base_FinSeq (n,i)) ) );
existence
ex b1 being FinSequence of REAL n st
( len b1 = n & ( for i being Nat st 1 <= i & i <= n holds
b1 . i = |(x0,(Base_FinSeq (n,i)))| * (Base_FinSeq (n,i)) ) )
uniqueness
for b1, b2 being FinSequence of REAL n st len b1 = n & ( for i being Nat st 1 <= i & i <= n holds
b1 . i = |(x0,(Base_FinSeq (n,i)))| * (Base_FinSeq (n,i)) ) & len b2 = n & ( for i being Nat st 1 <= i & i <= n holds
b2 . i = |(x0,(Base_FinSeq (n,i)))| * (Base_FinSeq (n,i)) ) holds
b1 = b2
end;
:: deftheorem Def12 defines ProjFinSeq EUCLID_7:def 12 :
for n being Nat
for x0 being Element of REAL n
for b3 being FinSequence of REAL n holds
( b3 = ProjFinSeq x0 iff ( len b3 = n & ( for i being Nat st 1 <= i & i <= n holds
b3 . i = |(x0,(Base_FinSeq (n,i)))| * (Base_FinSeq (n,i)) ) ) );
theorem Th33:
:: deftheorem defines RN_Base EUCLID_7:def 13 :
for n being Nat holds RN_Base n = { (Base_FinSeq (n,i)) where i is Element of NAT : ( 1 <= i & i <= n ) } ;
theorem Th34:
begin
theorem
canceled;
theorem Th36:
theorem Th37:
theorem Th38:
theorem Th39:
theorem
Lm3:
for n being Nat
for X being Subspace of RealVectSpace (Seg n)
for x, y being Element of REAL n
for a being Real st x in the carrier of X & y in the carrier of X holds
(a * x) + y in the carrier of X
theorem
theorem Th42:
theorem Th43:
Lm4:
now
let n be
Nat;
( RN_Base n is finite & card (RN_Base n) = n )thus
(
RN_Base n is
finite &
card (RN_Base n) = n )
verum
proof
per cases
( n is empty or not n is empty )
;
suppose
not
n is
empty
;
( RN_Base n is finite & card (RN_Base n) = n )
then reconsider n =
n as non
empty Nat ;
defpred S1[
set ,
set ]
means for
i being
Element of
NAT st
i = $1 holds
$2
= Base_FinSeq (
n,
i);
A1:
for
x being
set st
x in Seg n holds
ex
y being
set st
S1[
x,
y]
consider f being
Function such that A2:
(
dom f = Seg n & ( for
x2 being
set st
x2 in Seg n holds
S1[
x2,
f . x2] ) )
from CLASSES1:sch 1(A1);
A3:
rng f c= RN_Base n
then reconsider f2 =
f as
Function of
(Seg n),
(RN_Base n) by A2, FUNCT_2:4;
for
x1,
x2 being
set st
x1 in dom f &
x2 in dom f &
f . x1 = f . x2 holds
x1 = x2
proof
let x1,
x2 be
set ;
( x1 in dom f & x2 in dom f & f . x1 = f . x2 implies x1 = x2 )
assume that A8:
x1 in dom f
and A9:
x2 in dom f
and A10:
f . x1 = f . x2
;
x1 = x2
reconsider nx1 =
x1,
nx2 =
x2 as
Element of
NAT by A2, A8, A9;
A11:
nx1 <= n
by A2, A8, FINSEQ_1:3;
A12:
f . x2 = Base_FinSeq (
n,
nx2)
by A2, A9;
A13:
f . x1 = Base_FinSeq (
n,
nx1)
by A2, A8;
1
<= nx1
by A2, A8, FINSEQ_1:3;
hence
x1 = x2
by A10, A11, A13, A12, Th27;
verum
end;
then A14:
f2 is
one-to-one
by FUNCT_1:def 8;
RN_Base n c= rng f
then
rng f = RN_Base n
by A3, XBOOLE_0:def 10;
then
f2 is
onto
by FUNCT_2:def 3;
then
card (Seg n) = card (RN_Base n)
by A14, Lm1;
hence
(
RN_Base n is
finite &
card (RN_Base n) = n )
by FINSEQ_1:78;
verum
end;
end;
end;
end;
begin
theorem
theorem Th45:
theorem Th46:
theorem Th47:
theorem Th48:
theorem
theorem Th50:
theorem Th51:
theorem Th52:
theorem Th53:
theorem
theorem