:: TOPRNS_1 semantic presentation

definition
let c1 be Nat;
mode Real_Sequence of a1 is sequence of (TOP-REAL a1);
end;

theorem Th1: :: TOPRNS_1:1
canceled;

theorem Th2: :: TOPRNS_1:2
for b1 being Nat
for b2 being Function holds
( b2 is Real_Sequence of b1 iff ( dom b2 = NAT & ( for b3 being Nat holds b2 . b3 is Point of (TOP-REAL b1) ) ) )
proof end;

definition
let c1 be Nat;
let c2 be Real_Sequence of c1;
attr a2 is non-zero means :Def1: :: TOPRNS_1:def 1
rng a2 c= the carrier of (TOP-REAL a1) \ {(0.REAL a1)};
end;

:: deftheorem Def1 defines non-zero TOPRNS_1:def 1 :
for b1 being Nat
for b2 being Real_Sequence of b1 holds
( b2 is non-zero iff rng b2 c= the carrier of (TOP-REAL b1) \ {(0.REAL b1)} );

theorem Th3: :: TOPRNS_1:3
for b1 being Nat
for b2 being Real_Sequence of b1 holds
( b2 is non-zero iff for b3 being set st b3 in NAT holds
b2 . b3 <> 0.REAL b1 )
proof end;

theorem Th4: :: TOPRNS_1:4
for b1 being Nat
for b2 being Real_Sequence of b1 holds
( b2 is non-zero iff for b3 being Nat holds b2 . b3 <> 0.REAL b1 )
proof end;

theorem Th5: :: TOPRNS_1:5
for b1 being Nat
for b2, b3 being Real_Sequence of b1 st ( for b4 being set st b4 in NAT holds
b2 . b4 = b3 . b4 ) holds
b2 = b3
proof end;

theorem Th6: :: TOPRNS_1:6
for b1 being Nat
for b2, b3 being Real_Sequence of b1 st ( for b4 being Nat holds b2 . b4 = b3 . b4 ) holds
b2 = b3
proof end;

scheme :: TOPRNS_1:sch 1
s1{ F1() -> Nat, F2( Nat) -> Point of (TOP-REAL F1()) } :
ex b1 being Real_Sequence of F1() st
for b2 being Nat holds b1 . b2 = F2(b2)
proof end;

definition
let c1 be Nat;
let c2, c3 be Real_Sequence of c1;
func c2 + c3 -> Real_Sequence of a1 means :Def2: :: TOPRNS_1:def 2
for b1 being Nat holds a4 . b1 = (a2 . b1) + (a3 . b1);
existence
ex b1 being Real_Sequence of c1 st
for b2 being Nat holds b1 . b2 = (c2 . b2) + (c3 . b2)
proof end;
uniqueness
for b1, b2 being Real_Sequence of c1 st ( for b3 being Nat holds b1 . b3 = (c2 . b3) + (c3 . b3) ) & ( for b3 being Nat holds b2 . b3 = (c2 . b3) + (c3 . b3) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def2 defines + TOPRNS_1:def 2 :
for b1 being Nat
for b2, b3, b4 being Real_Sequence of b1 holds
( b4 = b2 + b3 iff for b5 being Nat holds b4 . b5 = (b2 . b5) + (b3 . b5) );

definition
let c1 be Real;
let c2 be Nat;
let c3 be Real_Sequence of c2;
func c1 * c3 -> Real_Sequence of a2 means :Def3: :: TOPRNS_1:def 3
for b1 being Nat holds a4 . b1 = a1 * (a3 . b1);
existence
ex b1 being Real_Sequence of c2 st
for b2 being Nat holds b1 . b2 = c1 * (c3 . b2)
proof end;
uniqueness
for b1, b2 being Real_Sequence of c2 st ( for b3 being Nat holds b1 . b3 = c1 * (c3 . b3) ) & ( for b3 being Nat holds b2 . b3 = c1 * (c3 . b3) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def3 defines * TOPRNS_1:def 3 :
for b1 being Real
for b2 being Nat
for b3, b4 being Real_Sequence of b2 holds
( b4 = b1 * b3 iff for b5 being Nat holds b4 . b5 = b1 * (b3 . b5) );

definition
let c1 be Nat;
let c2 be Real_Sequence of c1;
func - c2 -> Real_Sequence of a1 means :Def4: :: TOPRNS_1:def 4
for b1 being Nat holds a3 . b1 = - (a2 . b1);
existence
ex b1 being Real_Sequence of c1 st
for b2 being Nat holds b1 . b2 = - (c2 . b2)
proof end;
uniqueness
for b1, b2 being Real_Sequence of c1 st ( for b3 being Nat holds b1 . b3 = - (c2 . b3) ) & ( for b3 being Nat holds b2 . b3 = - (c2 . b3) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def4 defines - TOPRNS_1:def 4 :
for b1 being Nat
for b2, b3 being Real_Sequence of b1 holds
( b3 = - b2 iff for b4 being Nat holds b3 . b4 = - (b2 . b4) );

definition
let c1 be Nat;
let c2, c3 be Real_Sequence of c1;
func c2 - c3 -> Real_Sequence of a1 equals :: TOPRNS_1:def 5
a2 + (- a3);
correctness
coherence
c2 + (- c3) is Real_Sequence of c1
;
;
end;

:: deftheorem Def5 defines - TOPRNS_1:def 5 :
for b1 being Nat
for b2, b3 being Real_Sequence of b1 holds b2 - b3 = b2 + (- b3);

definition
let c1 be Nat;
let c2 be Point of (TOP-REAL c1);
func |.c2.| -> Real means :Def6: :: TOPRNS_1:def 6
ex b1 being FinSequence of REAL st
( a2 = b1 & a3 = |.b1.| );
existence
ex b1 being Realex b2 being FinSequence of REAL st
( c2 = b2 & b1 = |.b2.| )
proof end;
uniqueness
for b1, b2 being Real st ex b3 being FinSequence of REAL st
( c2 = b3 & b1 = |.b3.| ) & ex b3 being FinSequence of REAL st
( c2 = b3 & b2 = |.b3.| ) holds
b1 = b2
;
end;

:: deftheorem Def6 defines |. TOPRNS_1:def 6 :
for b1 being Nat
for b2 being Point of (TOP-REAL b1)
for b3 being Real holds
( b3 = |.b2.| iff ex b4 being FinSequence of REAL st
( b2 = b4 & b3 = |.b4.| ) );

definition
let c1 be Nat;
let c2 be Real_Sequence of c1;
func |.c2.| -> Real_Sequence means :Def7: :: TOPRNS_1:def 7
for b1 being Nat holds a3 . b1 = |.(a2 . b1).|;
existence
ex b1 being Real_Sequence st
for b2 being Nat holds b1 . b2 = |.(c2 . b2).|
proof end;
uniqueness
for b1, b2 being Real_Sequence st ( for b3 being Nat holds b1 . b3 = |.(c2 . b3).| ) & ( for b3 being Nat holds b2 . b3 = |.(c2 . b3).| ) holds
b1 = b2
proof end;
end;

:: deftheorem Def7 defines |. TOPRNS_1:def 7 :
for b1 being Nat
for b2 being Real_Sequence of b1
for b3 being Real_Sequence holds
( b3 = |.b2.| iff for b4 being Nat holds b3 . b4 = |.(b2 . b4).| );

theorem Th7: :: TOPRNS_1:7
canceled;

theorem Th8: :: TOPRNS_1:8
for b1 being Nat
for b2 being Real
for b3 being Point of (TOP-REAL b1) holds (abs b2) * |.b3.| = |.(b2 * b3).|
proof end;

theorem Th9: :: TOPRNS_1:9
for b1 being Nat
for b2 being Real
for b3 being Real_Sequence of b1 holds |.(b2 * b3).| = (abs b2) (#) |.b3.|
proof end;

theorem Th10: :: TOPRNS_1:10
for b1 being Nat
for b2, b3 being Real_Sequence of b1 holds b2 + b3 = b3 + b2
proof end;

theorem Th11: :: TOPRNS_1:11
for b1 being Nat
for b2, b3, b4 being Real_Sequence of b1 holds (b2 + b3) + b4 = b2 + (b3 + b4)
proof end;

theorem Th12: :: TOPRNS_1:12
for b1 being Nat
for b2 being Real_Sequence of b1 holds - b2 = (- 1) * b2
proof end;

theorem Th13: :: TOPRNS_1:13
for b1 being Nat
for b2 being Real
for b3, b4 being Real_Sequence of b1 holds b2 * (b3 + b4) = (b2 * b3) + (b2 * b4)
proof end;

theorem Th14: :: TOPRNS_1:14
for b1 being Nat
for b2, b3 being Real
for b4 being Real_Sequence of b1 holds (b2 * b3) * b4 = b2 * (b3 * b4)
proof end;

theorem Th15: :: TOPRNS_1:15
for b1 being Nat
for b2 being Real
for b3, b4 being Real_Sequence of b1 holds b2 * (b3 - b4) = (b2 * b3) - (b2 * b4)
proof end;

theorem Th16: :: TOPRNS_1:16
for b1 being Nat
for b2, b3, b4 being Real_Sequence of b1 holds b2 - (b3 + b4) = (b2 - b3) - b4
proof end;

theorem Th17: :: TOPRNS_1:17
for b1 being Nat
for b2 being Real_Sequence of b1 holds 1 * b2 = b2
proof end;

theorem Th18: :: TOPRNS_1:18
for b1 being Nat
for b2 being Real_Sequence of b1 holds - (- b2) = b2
proof end;

theorem Th19: :: TOPRNS_1:19
for b1 being Nat
for b2, b3 being Real_Sequence of b1 holds b2 - (- b3) = b2 + b3 by Th18;

theorem Th20: :: TOPRNS_1:20
for b1 being Nat
for b2, b3, b4 being Real_Sequence of b1 holds b2 - (b3 - b4) = (b2 - b3) + b4
proof end;

theorem Th21: :: TOPRNS_1:21
for b1 being Nat
for b2, b3, b4 being Real_Sequence of b1 holds b2 + (b3 - b4) = (b2 + b3) - b4 by Th11;

theorem Th22: :: TOPRNS_1:22
for b1 being Nat
for b2 being Real
for b3 being Real_Sequence of b1 st b2 <> 0 & b3 is non-zero holds
b2 * b3 is non-zero
proof end;

theorem Th23: :: TOPRNS_1:23
for b1 being Nat
for b2 being Real_Sequence of b1 st b2 is non-zero holds
- b2 is non-zero
proof end;

theorem Th24: :: TOPRNS_1:24
for b1 being Nat holds |.(0.REAL b1).| = 0
proof end;

theorem Th25: :: TOPRNS_1:25
for b1 being Nat
for b2 being Point of (TOP-REAL b1) st |.b2.| = 0 holds
b2 = 0.REAL b1
proof end;

theorem Th26: :: TOPRNS_1:26
for b1 being Nat
for b2 being Point of (TOP-REAL b1) holds |.b2.| >= 0
proof end;

theorem Th27: :: TOPRNS_1:27
for b1 being Nat
for b2 being Point of (TOP-REAL b1) holds |.(- b2).| = |.b2.|
proof end;

theorem Th28: :: TOPRNS_1:28
for b1 being Nat
for b2, b3 being Point of (TOP-REAL b1) holds |.(b2 - b3).| = |.(b3 - b2).|
proof end;

Lemma27: for b1 being Nat
for b2, b3 being Point of (TOP-REAL b1) st |.(b2 - b3).| = 0 holds
b2 = b3
proof end;

Lemma28: for b1 being Nat
for b2, b3 being Point of (TOP-REAL b1) st b2 = b3 holds
|.(b2 - b3).| = 0
proof end;

theorem Th29: :: TOPRNS_1:29
for b1 being Nat
for b2, b3 being Point of (TOP-REAL b1) holds
( |.(b2 - b3).| = 0 iff b2 = b3 ) by Lemma27, Lemma28;

theorem Th30: :: TOPRNS_1:30
for b1 being Nat
for b2, b3 being Point of (TOP-REAL b1) holds |.(b2 + b3).| <= |.b2.| + |.b3.|
proof end;

theorem Th31: :: TOPRNS_1:31
for b1 being Nat
for b2, b3 being Point of (TOP-REAL b1) holds |.(b2 - b3).| <= |.b2.| + |.b3.|
proof end;

theorem Th32: :: TOPRNS_1:32
for b1 being Nat
for b2, b3 being Point of (TOP-REAL b1) holds |.b2.| - |.b3.| <= |.(b2 + b3).|
proof end;

theorem Th33: :: TOPRNS_1:33
for b1 being Nat
for b2, b3 being Point of (TOP-REAL b1) holds |.b2.| - |.b3.| <= |.(b2 - b3).|
proof end;

theorem Th34: :: TOPRNS_1:34
for b1 being Nat
for b2, b3 being Point of (TOP-REAL b1) st b2 <> b3 holds
|.(b2 - b3).| > 0
proof end;

theorem Th35: :: TOPRNS_1:35
for b1 being Nat
for b2, b3, b4 being Point of (TOP-REAL b1) holds |.(b2 - b3).| <= |.(b2 - b4).| + |.(b4 - b3).|
proof end;

theorem Th36: :: TOPRNS_1:36
for b1 being Nat
for b2, b3 being Real
for b4, b5 being Point of (TOP-REAL b1) st 0 <= b2 & |.b4.| < |.b5.| & b2 < b3 holds
|.b4.| * b2 < |.b5.| * b3
proof end;

theorem Th37: :: TOPRNS_1:37
canceled;

theorem Th38: :: TOPRNS_1:38
for b1 being Nat
for b2 being Real
for b3 being Point of (TOP-REAL b1) holds
( ( - |.b3.| < b2 & b2 < |.b3.| ) iff abs b2 < |.b3.| )
proof end;

definition
let c1 be Nat;
let c2 be Real_Sequence of c1;
attr a2 is bounded means :Def8: :: TOPRNS_1:def 8
ex b1 being Real st
for b2 being Nat holds |.(a2 . b2).| < b1;
end;

:: deftheorem Def8 defines bounded TOPRNS_1:def 8 :
for b1 being Nat
for b2 being Real_Sequence of b1 holds
( b2 is bounded iff ex b3 being Real st
for b4 being Nat holds |.(b2 . b4).| < b3 );

theorem Th39: :: TOPRNS_1:39
for b1 being Nat
for b2 being Real_Sequence of b1
for b3 being Nat ex b4 being Real st
( 0 < b4 & ( for b5 being Nat st b5 <= b3 holds
|.(b2 . b5).| < b4 ) )
proof end;

definition
let c1 be Nat;
let c2 be Real_Sequence of c1;
attr a2 is convergent means :Def9: :: TOPRNS_1:def 9
ex b1 being Point of (TOP-REAL a1) st
for b2 being Real st 0 < b2 holds
ex b3 being Nat st
for b4 being Nat st b3 <= b4 holds
|.((a2 . b4) - b1).| < b2;
end;

:: deftheorem Def9 defines convergent TOPRNS_1:def 9 :
for b1 being Nat
for b2 being Real_Sequence of b1 holds
( b2 is convergent iff ex b3 being Point of (TOP-REAL b1) st
for b4 being Real st 0 < b4 holds
ex b5 being Nat st
for b6 being Nat st b5 <= b6 holds
|.((b2 . b6) - b3).| < b4 );

definition
let c1 be Nat;
let c2 be Real_Sequence of c1;
assume E34: c2 is convergent ;
func lim c2 -> Point of (TOP-REAL a1) means :Def10: :: TOPRNS_1:def 10
for b1 being Real st 0 < b1 holds
ex b2 being Nat st
for b3 being Nat st b2 <= b3 holds
|.((a2 . b3) - a3).| < b1;
existence
ex b1 being Point of (TOP-REAL c1) st
for b2 being Real st 0 < b2 holds
ex b3 being Nat st
for b4 being Nat st b3 <= b4 holds
|.((c2 . b4) - b1).| < b2
by E34, Def9;
uniqueness
for b1, b2 being Point of (TOP-REAL c1) st ( for b3 being Real st 0 < b3 holds
ex b4 being Nat st
for b5 being Nat st b4 <= b5 holds
|.((c2 . b5) - b1).| < b3 ) & ( for b3 being Real st 0 < b3 holds
ex b4 being Nat st
for b5 being Nat st b4 <= b5 holds
|.((c2 . b5) - b2).| < b3 ) holds
b1 = b2
proof end;
end;

:: deftheorem Def10 defines lim TOPRNS_1:def 10 :
for b1 being Nat
for b2 being Real_Sequence of b1 st b2 is convergent holds
for b3 being Point of (TOP-REAL b1) holds
( b3 = lim b2 iff for b4 being Real st 0 < b4 holds
ex b5 being Nat st
for b6 being Nat st b5 <= b6 holds
|.((b2 . b6) - b3).| < b4 );

theorem Th40: :: TOPRNS_1:40
canceled;

theorem Th41: :: TOPRNS_1:41
for b1 being Nat
for b2, b3 being Real_Sequence of b1 st b2 is convergent & b3 is convergent holds
b2 + b3 is convergent
proof end;

theorem Th42: :: TOPRNS_1:42
for b1 being Nat
for b2, b3 being Real_Sequence of b1 st b2 is convergent & b3 is convergent holds
lim (b2 + b3) = (lim b2) + (lim b3)
proof end;

theorem Th43: :: TOPRNS_1:43
for b1 being Nat
for b2 being Real
for b3 being Real_Sequence of b1 st b3 is convergent holds
b2 * b3 is convergent
proof end;

theorem Th44: :: TOPRNS_1:44
for b1 being Nat
for b2 being Real
for b3 being Real_Sequence of b1 st b3 is convergent holds
lim (b2 * b3) = b2 * (lim b3)
proof end;

theorem Th45: :: TOPRNS_1:45
for b1 being Nat
for b2 being Real_Sequence of b1 st b2 is convergent holds
- b2 is convergent
proof end;

theorem Th46: :: TOPRNS_1:46
for b1 being Nat
for b2 being Real_Sequence of b1 st b2 is convergent holds
lim (- b2) = - (lim b2)
proof end;

theorem Th47: :: TOPRNS_1:47
for b1 being Nat
for b2, b3 being Real_Sequence of b1 st b2 is convergent & b3 is convergent holds
b2 - b3 is convergent
proof end;

theorem Th48: :: TOPRNS_1:48
for b1 being Nat
for b2, b3 being Real_Sequence of b1 st b2 is convergent & b3 is convergent holds
lim (b2 - b3) = (lim b2) - (lim b3)
proof end;

theorem Th49: :: TOPRNS_1:49
canceled;

theorem Th50: :: TOPRNS_1:50
for b1 being Nat
for b2 being Real_Sequence of b1 st b2 is convergent holds
b2 is bounded
proof end;

theorem Th51: :: TOPRNS_1:51
for b1 being Nat
for b2 being Real_Sequence of b1 st b2 is convergent & lim b2 <> 0.REAL b1 holds
ex b3 being Nat st
for b4 being Nat st b3 <= b4 holds
|.(lim b2).| / 2 < |.(b2 . b4).|
proof end;