:: JORDAN1E semantic presentation

theorem Th1: :: JORDAN1E:1
for b1 being non empty Subset of (TOP-REAL 2)
for b2 being compact Subset of (TOP-REAL 2) st b1 c= b2 holds
N-bound b1 <= N-bound b2
proof end;

theorem Th2: :: JORDAN1E:2
for b1 being non empty Subset of (TOP-REAL 2)
for b2 being compact Subset of (TOP-REAL 2) st b1 c= b2 holds
E-bound b1 <= E-bound b2
proof end;

theorem Th3: :: JORDAN1E:3
for b1 being non empty Subset of (TOP-REAL 2)
for b2 being compact Subset of (TOP-REAL 2) st b1 c= b2 holds
S-bound b1 >= S-bound b2
proof end;

theorem Th4: :: JORDAN1E:4
for b1 being non empty Subset of (TOP-REAL 2)
for b2 being compact Subset of (TOP-REAL 2) st b1 c= b2 holds
W-bound b1 >= W-bound b2
proof end;

theorem Th5: :: JORDAN1E:5
for b1, b2 being FinSequence of (TOP-REAL 2) st b1 is_in_the_area_of b2 holds
for b3 being Element of (TOP-REAL 2) st b3 in rng b1 holds
b1 -: b3 is_in_the_area_of b2
proof end;

theorem Th6: :: JORDAN1E:6
for b1, b2 being FinSequence of (TOP-REAL 2) st b1 is_in_the_area_of b2 holds
for b3 being Element of (TOP-REAL 2) st b3 in rng b1 holds
b1 :- b3 is_in_the_area_of b2
proof end;

theorem Th7: :: JORDAN1E:7
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b2 in L~ b1 holds
L_Cut b1,b2 <> {}
proof end;

theorem Th8: :: JORDAN1E:8
for b1 being FinSequence of (TOP-REAL 2)
for b2 being Point of (TOP-REAL 2) st b2 in L~ b1 & len (R_Cut b1,b2) >= 2 holds
b1 . 1 in L~ (R_Cut b1,b2)
proof end;

theorem Th9: :: JORDAN1E:9
for b1 being FinSequence of (TOP-REAL 2) st b1 is_S-Seq holds
for b2 being Point of (TOP-REAL 2) st b2 in L~ b1 holds
not b1 . 1 in L~ (mid b1,((Index b2,b1) + 1),(len b1))
proof end;

theorem Th10: :: JORDAN1E:10
for b1, b2, b3, b4 being Nat st b1 + b2 = b3 + b4 & b1 <= b3 & b2 <= b4 holds
b1 = b3
proof end;

theorem Th11: :: JORDAN1E:11
for b1 being FinSequence of (TOP-REAL 2) st b1 is_S-Seq holds
for b2 being Point of (TOP-REAL 2) st b2 in L~ b1 & b1 . 1 in L~ (L_Cut b1,b2) holds
b1 . 1 = b2
proof end;

definition
let c1 be compact non horizontal non vertical Subset of (TOP-REAL 2);
let c2 be Nat;
func Upper_Seq c1,c2 -> FinSequence of (TOP-REAL 2) equals :: JORDAN1E:def 1
(Rotate (Cage a1,a2),(W-min (L~ (Cage a1,a2)))) -: (E-max (L~ (Cage a1,a2)));
coherence
(Rotate (Cage c1,c2),(W-min (L~ (Cage c1,c2)))) -: (E-max (L~ (Cage c1,c2))) is FinSequence of (TOP-REAL 2)
;
end;

:: deftheorem Def1 defines Upper_Seq JORDAN1E:def 1 :
for b1 being compact non horizontal non vertical Subset of (TOP-REAL 2)
for b2 being Nat holds Upper_Seq b1,b2 = (Rotate (Cage b1,b2),(W-min (L~ (Cage b1,b2)))) -: (E-max (L~ (Cage b1,b2)));

theorem Th12: :: JORDAN1E:12
for b1 being compact non horizontal non vertical Subset of (TOP-REAL 2)
for b2 being Nat holds len (Upper_Seq b1,b2) = (E-max (L~ (Cage b1,b2))) .. (Rotate (Cage b1,b2),(W-min (L~ (Cage b1,b2))))
proof end;

definition
let c1 be compact non horizontal non vertical Subset of (TOP-REAL 2);
let c2 be Nat;
func Lower_Seq c1,c2 -> FinSequence of (TOP-REAL 2) equals :: JORDAN1E:def 2
(Rotate (Cage a1,a2),(W-min (L~ (Cage a1,a2)))) :- (E-max (L~ (Cage a1,a2)));
coherence
(Rotate (Cage c1,c2),(W-min (L~ (Cage c1,c2)))) :- (E-max (L~ (Cage c1,c2))) is FinSequence of (TOP-REAL 2)
;
end;

:: deftheorem Def2 defines Lower_Seq JORDAN1E:def 2 :
for b1 being compact non horizontal non vertical Subset of (TOP-REAL 2)
for b2 being Nat holds Lower_Seq b1,b2 = (Rotate (Cage b1,b2),(W-min (L~ (Cage b1,b2)))) :- (E-max (L~ (Cage b1,b2)));

theorem Th13: :: JORDAN1E:13
for b1 being compact non horizontal non vertical Subset of (TOP-REAL 2)
for b2 being Nat holds len (Lower_Seq b1,b2) = ((len (Rotate (Cage b1,b2),(W-min (L~ (Cage b1,b2))))) - ((E-max (L~ (Cage b1,b2))) .. (Rotate (Cage b1,b2),(W-min (L~ (Cage b1,b2)))))) + 1
proof end;

registration
let c1 be compact non horizontal non vertical Subset of (TOP-REAL 2);
let c2 be Nat;
cluster Upper_Seq a1,a2 -> non empty ;
coherence
not Upper_Seq c1,c2 is empty
proof end;
cluster Lower_Seq a1,a2 -> non empty ;
coherence
not Lower_Seq c1,c2 is empty
proof end;
end;

registration
let c1 be compact non horizontal non vertical Subset of (TOP-REAL 2);
let c2 be Nat;
cluster Upper_Seq a1,a2 -> non empty one-to-one special unfolded s.n.c. ;
coherence
( Upper_Seq c1,c2 is one-to-one & Upper_Seq c1,c2 is special & Upper_Seq c1,c2 is unfolded & Upper_Seq c1,c2 is s.n.c. )
proof end;
cluster Lower_Seq a1,a2 -> non empty one-to-one special unfolded s.n.c. ;
coherence
( Lower_Seq c1,c2 is one-to-one & Lower_Seq c1,c2 is special & Lower_Seq c1,c2 is unfolded & Lower_Seq c1,c2 is s.n.c. )
proof end;
end;

theorem Th14: :: JORDAN1E:14
for b1 being compact non horizontal non vertical Subset of (TOP-REAL 2)
for b2 being Nat holds (len (Upper_Seq b1,b2)) + (len (Lower_Seq b1,b2)) = (len (Cage b1,b2)) + 1
proof end;

theorem Th15: :: JORDAN1E:15
for b1 being compact non horizontal non vertical Subset of (TOP-REAL 2)
for b2 being Nat holds Rotate (Cage b1,b2),(W-min (L~ (Cage b1,b2))) = (Upper_Seq b1,b2) ^' (Lower_Seq b1,b2)
proof end;

theorem Th16: :: JORDAN1E:16
for b1 being compact non horizontal non vertical Subset of (TOP-REAL 2)
for b2 being Nat holds L~ (Cage b1,b2) = L~ ((Upper_Seq b1,b2) ^' (Lower_Seq b1,b2))
proof end;

theorem Th17: :: JORDAN1E:17
for b1 being non empty compact non horizontal non vertical Subset of (TOP-REAL 2)
for b2 being Nat holds L~ (Cage b1,b2) = (L~ (Upper_Seq b1,b2)) \/ (L~ (Lower_Seq b1,b2))
proof end;

theorem Th18: :: JORDAN1E:18
for b1 being Simple_closed_curve holds W-min b1 <> E-min b1
proof end;

theorem Th19: :: JORDAN1E:19
for b1 being compact non horizontal non vertical Subset of (TOP-REAL 2)
for b2 being Nat holds
( len (Upper_Seq b1,b2) >= 3 & len (Lower_Seq b1,b2) >= 3 )
proof end;

registration
let c1 be compact non horizontal non vertical Subset of (TOP-REAL 2);
let c2 be Nat;
cluster Upper_Seq a1,a2 -> non empty one-to-one special unfolded s.n.c. being_S-Seq ;
coherence
Upper_Seq c1,c2 is being_S-Seq
proof end;
cluster Lower_Seq a1,a2 -> non empty one-to-one special unfolded s.n.c. being_S-Seq ;
coherence
Lower_Seq c1,c2 is being_S-Seq
proof end;
end;

theorem Th20: :: JORDAN1E:20
for b1 being compact non horizontal non vertical Subset of (TOP-REAL 2)
for b2 being Nat holds (L~ (Upper_Seq b1,b2)) /\ (L~ (Lower_Seq b1,b2)) = {(W-min (L~ (Cage b1,b2))),(E-max (L~ (Cage b1,b2)))}
proof end;

theorem Th21: :: JORDAN1E:21
for b1 being Nat
for b2 being compact non horizontal non vertical Subset of (TOP-REAL 2) holds Upper_Seq b2,b1 is_in_the_area_of Cage b2,b1
proof end;

theorem Th22: :: JORDAN1E:22
for b1 being Nat
for b2 being compact non horizontal non vertical Subset of (TOP-REAL 2) holds Lower_Seq b2,b1 is_in_the_area_of Cage b2,b1
proof end;

theorem Th23: :: JORDAN1E:23
for b1 being Nat
for b2 being connected compact non horizontal non vertical Subset of (TOP-REAL 2) holds ((Cage b2,b1) /. 2) `2 = N-bound (L~ (Cage b2,b1))
proof end;

theorem Th24: :: JORDAN1E:24
for b1 being Nat
for b2 being connected compact non horizontal non vertical Subset of (TOP-REAL 2)
for b3 being Nat st 1 <= b3 & b3 + 1 <= len (Cage b2,b1) & (Cage b2,b1) /. b3 = E-max (L~ (Cage b2,b1)) holds
((Cage b2,b1) /. (b3 + 1)) `1 = E-bound (L~ (Cage b2,b1))
proof end;

theorem Th25: :: JORDAN1E:25
for b1 being Nat
for b2 being connected compact non horizontal non vertical Subset of (TOP-REAL 2)
for b3 being Nat st 1 <= b3 & b3 + 1 <= len (Cage b2,b1) & (Cage b2,b1) /. b3 = S-max (L~ (Cage b2,b1)) holds
((Cage b2,b1) /. (b3 + 1)) `2 = S-bound (L~ (Cage b2,b1))
proof end;

theorem Th26: :: JORDAN1E:26
for b1 being Nat
for b2 being connected compact non horizontal non vertical Subset of (TOP-REAL 2)
for b3 being Nat st 1 <= b3 & b3 + 1 <= len (Cage b2,b1) & (Cage b2,b1) /. b3 = W-min (L~ (Cage b2,b1)) holds
((Cage b2,b1) /. (b3 + 1)) `1 = W-bound (L~ (Cage b2,b1))
proof end;