let L be LATTICE; :: thesis: ( L is algebraic iff ( L is continuous & ( for x, y being Element of L st x << y holds
ex k being Element of L st
( k in the carrier of (CompactSublatt L) & x <= k & k <= y ) ) ) )

thus ( L is algebraic implies ( L is continuous & ( for x, y being Element of L st x << y holds
ex k being Element of L st
( k in the carrier of (CompactSublatt L) & x <= k & k <= y ) ) ) ) :: thesis: ( L is continuous & ( for x, y being Element of L st x << y holds
ex k being Element of L st
( k in the carrier of (CompactSublatt L) & x <= k & k <= y ) ) implies L is algebraic )
proof
assume A1: L is algebraic ; :: thesis: ( L is continuous & ( for x, y being Element of L st x << y holds
ex k being Element of L st
( k in the carrier of (CompactSublatt L) & x <= k & k <= y ) ) )

then A2: ( ( for x being Element of L holds
( not compactbelow x is empty & compactbelow x is directed ) ) & L is up-complete & L is satisfying_axiom_K ) by Def4;
now end;
then A9: L is satisfying_axiom_of_approximation by WAYBEL_3:def 5;
for x being Element of L holds
( not waybelow x is empty & waybelow x is directed )
proof
let x be Element of L; :: thesis: ( not waybelow x is empty & waybelow x is directed )
not compactbelow x is empty by A1, Def4;
then consider s being set such that
A10: s in compactbelow x by XBOOLE_0:def 1;
compactbelow x c= waybelow x by Th6;
hence ( not waybelow x is empty & waybelow x is directed ) by A10; :: thesis: verum
end;
hence L is continuous by A2, A9, WAYBEL_3:def 6; :: thesis: for x, y being Element of L st x << y holds
ex k being Element of L st
( k in the carrier of (CompactSublatt L) & x <= k & k <= y )

let x, y be Element of L; :: thesis: ( x << y implies ex k being Element of L st
( k in the carrier of (CompactSublatt L) & x <= k & k <= y ) )

assume A11: x << y ; :: thesis: ex k being Element of L st
( k in the carrier of (CompactSublatt L) & x <= k & k <= y )

reconsider D = compactbelow y as non empty directed Subset of L by A1, Def4;
y = sup D by A2, Def3;
then consider d being Element of L such that
A12: ( d in D & x <= d ) by A11, WAYBEL_3:def 1;
take d ; :: thesis: ( d in the carrier of (CompactSublatt L) & x <= d & d <= y )
d is compact by A12, Th4;
hence d in the carrier of (CompactSublatt L) by Def1; :: thesis: ( x <= d & d <= y )
thus ( x <= d & d <= y ) by A12, Th4; :: thesis: verum
end;
assume that
A13: L is continuous and
A14: for x, y being Element of L st x << y holds
ex k being Element of L st
( k in the carrier of (CompactSublatt L) & x <= k & k <= y ) ; :: thesis: L is algebraic
A15: L is up-complete by A13;
A16: for x being Element of L holds
( not compactbelow x is empty & compactbelow x is directed )
proof
let x be Element of L; :: thesis: ( not compactbelow x is empty & compactbelow x is directed )
A17: ( not waybelow x is empty & waybelow x is directed ) by A13;
now
let Y be finite Subset of (compactbelow x); :: thesis: ex c being Element of L st
( c in compactbelow x & c is_>=_than Y )

compactbelow x c= waybelow x by Th6;
then Y is finite Subset of (waybelow x) by XBOOLE_1:1;
then consider b being Element of L such that
A18: ( b in waybelow x & b is_>=_than Y ) by A17, WAYBEL_0:1;
b << x by A18, WAYBEL_3:7;
then consider c being Element of L such that
A19: ( c in the carrier of (CompactSublatt L) & b <= c & c <= x ) by A14;
take c = c; :: thesis: ( c in compactbelow x & c is_>=_than Y )
c is compact by A19, Def1;
hence c in compactbelow x by A19; :: thesis: c is_>=_than Y
thus c is_>=_than Y by A18, A19, YELLOW_0:4; :: thesis: verum
end;
hence ( not compactbelow x is empty & compactbelow x is directed ) by WAYBEL_0:1; :: thesis: verum
end;
now
let x be Element of L; :: thesis: x = sup (compactbelow x)
L is satisfying_axiom_of_approximation by A13;
then A20: x = sup (waybelow x) by WAYBEL_3:def 5;
not compactbelow x is empty by A16;
then consider s being set such that
A21: s in compactbelow x by XBOOLE_0:def 1;
compactbelow x c= waybelow x by Th6;
then A22: ex_sup_of waybelow x,L by A15, A21, WAYBEL_0:75;
now end;
hence x = sup (compactbelow x) by A20, A22, YELLOW_0:47; :: thesis: verum
end;
then L is satisfying_axiom_K by Def3;
hence L is algebraic by A15, A16, Def4; :: thesis: verum