:: WAYBEL_8 semantic presentation

definition
let c1 be non empty reflexive RelStr ;
func CompactSublatt c1 -> strict full SubRelStr of a1 means :Def1: :: WAYBEL_8:def 1
for b1 being Element of a1 holds
( b1 in the carrier of a2 iff b1 is compact );
existence
ex b1 being strict full SubRelStr of c1 st
for b2 being Element of c1 holds
( b2 in the carrier of b1 iff b2 is compact )
proof end;
uniqueness
for b1, b2 being strict full SubRelStr of c1 st ( for b3 being Element of c1 holds
( b3 in the carrier of b1 iff b3 is compact ) ) & ( for b3 being Element of c1 holds
( b3 in the carrier of b2 iff b3 is compact ) ) holds
b1 = b2
proof end;
end;

:: deftheorem Def1 defines CompactSublatt WAYBEL_8:def 1 :
for b1 being non empty reflexive RelStr
for b2 being strict full SubRelStr of b1 holds
( b2 = CompactSublatt b1 iff for b3 being Element of b1 holds
( b3 in the carrier of b2 iff b3 is compact ) );

registration
let c1 be non empty reflexive antisymmetric lower-bounded RelStr ;
cluster CompactSublatt a1 -> non empty strict full ;
coherence
not CompactSublatt c1 is empty
proof end;
end;

theorem Th1: :: WAYBEL_8:1
for b1 being complete LATTICE
for b2, b3, b4 being Element of b1 st b2 <= b4 & b4 <= b3 & b4 in the carrier of (CompactSublatt b1) holds
b2 << b3
proof end;

theorem Th2: :: WAYBEL_8:2
for b1 being complete LATTICE
for b2 being Element of b1 holds
( uparrow b2 is Open Filter of b1 iff b2 is compact )
proof end;

theorem Th3: :: WAYBEL_8:3
for b1 being non empty with_suprema lower-bounded Poset holds
( CompactSublatt b1 is join-inheriting & Bottom b1 in the carrier of (CompactSublatt b1) )
proof end;

definition
let c1 be non empty reflexive RelStr ;
let c2 be Element of c1;
func compactbelow c2 -> Subset of a1 equals :: WAYBEL_8:def 2
{ b1 where B is Element of a1 : ( a2 >= b1 & b1 is compact ) } ;
coherence
{ b1 where B is Element of c1 : ( c2 >= b1 & b1 is compact ) } is Subset of c1
proof end;
end;

:: deftheorem Def2 defines compactbelow WAYBEL_8:def 2 :
for b1 being non empty reflexive RelStr
for b2 being Element of b1 holds compactbelow b2 = { b3 where B is Element of b1 : ( b2 >= b3 & b3 is compact ) } ;

theorem Th4: :: WAYBEL_8:4
for b1 being non empty reflexive RelStr
for b2, b3 being Element of b1 holds
( b3 in compactbelow b2 iff ( b2 >= b3 & b3 is compact ) )
proof end;

theorem Th5: :: WAYBEL_8:5
for b1 being non empty reflexive RelStr
for b2 being Element of b1 holds compactbelow b2 = (downarrow b2) /\ the carrier of (CompactSublatt b1)
proof end;

theorem Th6: :: WAYBEL_8:6
for b1 being non empty reflexive transitive RelStr
for b2 being Element of b1 holds compactbelow b2 c= waybelow b2
proof end;

registration
let c1 be non empty reflexive antisymmetric lower-bounded RelStr ;
let c2 be Element of c1;
cluster compactbelow a2 -> non empty ;
coherence
not compactbelow c2 is empty
proof end;
end;

definition
let c1 be non empty reflexive RelStr ;
attr a1 is satisfying_axiom_K means :Def3: :: WAYBEL_8:def 3
for b1 being Element of a1 holds b1 = sup (compactbelow b1);
end;

:: deftheorem Def3 defines satisfying_axiom_K WAYBEL_8:def 3 :
for b1 being non empty reflexive RelStr holds
( b1 is satisfying_axiom_K iff for b2 being Element of b1 holds b2 = sup (compactbelow b2) );

definition
let c1 be non empty reflexive RelStr ;
attr a1 is algebraic means :Def4: :: WAYBEL_8:def 4
( ( for b1 being Element of a1 holds
( not compactbelow b1 is empty & compactbelow b1 is directed ) ) & a1 is up-complete & a1 is satisfying_axiom_K );
end;

:: deftheorem Def4 defines algebraic WAYBEL_8:def 4 :
for b1 being non empty reflexive RelStr holds
( b1 is algebraic iff ( ( for b2 being Element of b1 holds
( not compactbelow b2 is empty & compactbelow b2 is directed ) ) & b1 is up-complete & b1 is satisfying_axiom_K ) );

theorem Th7: :: WAYBEL_8:7
for b1 being LATTICE holds
( b1 is algebraic iff ( b1 is continuous & ( for b2, b3 being Element of b1 st b2 << b3 holds
ex b4 being Element of b1 st
( b4 in the carrier of (CompactSublatt b1) & b2 <= b4 & b4 <= b3 ) ) ) )
proof end;

registration
cluster algebraic -> continuous RelStr ;
coherence
for b1 being LATTICE st b1 is algebraic holds
b1 is continuous
by Th7;
end;

registration
cluster non empty reflexive algebraic -> non empty reflexive up-complete satisfying_axiom_K RelStr ;
coherence
for b1 being non empty reflexive RelStr st b1 is algebraic holds
( b1 is up-complete & b1 is satisfying_axiom_K )
by Def4;
end;

registration
let c1 be non empty with_suprema Poset;
cluster CompactSublatt a1 -> strict full join-inheriting ;
coherence
CompactSublatt c1 is join-inheriting
proof end;
end;

definition
let c1 be non empty reflexive RelStr ;
attr a1 is arithmetic means :Def5: :: WAYBEL_8:def 5
( a1 is algebraic & CompactSublatt a1 is meet-inheriting );
end;

:: deftheorem Def5 defines arithmetic WAYBEL_8:def 5 :
for b1 being non empty reflexive RelStr holds
( b1 is arithmetic iff ( b1 is algebraic & CompactSublatt b1 is meet-inheriting ) );

registration
cluster arithmetic -> continuous satisfying_axiom_K algebraic RelStr ;
coherence
for b1 being LATTICE st b1 is arithmetic holds
b1 is algebraic
by Def5;
end;

registration
cluster trivial -> continuous satisfying_axiom_K algebraic arithmetic RelStr ;
coherence
for b1 being LATTICE st b1 is trivial holds
b1 is arithmetic
proof end;
end;

registration
cluster strict continuous trivial satisfying_axiom_K algebraic arithmetic RelStr ;
existence
ex b1 being LATTICE st
( b1 is trivial & b1 is strict )
proof end;
end;

theorem Th8: :: WAYBEL_8:8
for b1, b2 being non empty reflexive antisymmetric RelStr st RelStr(# the carrier of b1,the InternalRel of b1 #) = RelStr(# the carrier of b2,the InternalRel of b2 #) & b1 is up-complete holds
for b3, b4 being Element of b1
for b5, b6 being Element of b2 st b3 = b5 & b4 = b6 & b3 << b4 holds
b5 << b6
proof end;

theorem Th9: :: WAYBEL_8:9
for b1, b2 being non empty reflexive antisymmetric RelStr st RelStr(# the carrier of b1,the InternalRel of b1 #) = RelStr(# the carrier of b2,the InternalRel of b2 #) & b1 is up-complete holds
for b3 being Element of b1
for b4 being Element of b2 st b3 = b4 & b3 is compact holds
b4 is compact
proof end;

theorem Th10: :: WAYBEL_8:10
for b1, b2 being non empty reflexive antisymmetric up-complete RelStr st RelStr(# the carrier of b1,the InternalRel of b1 #) = RelStr(# the carrier of b2,the InternalRel of b2 #) holds
for b3 being Element of b1
for b4 being Element of b2 st b3 = b4 holds
compactbelow b3 = compactbelow b4
proof end;

theorem Th11: :: WAYBEL_8:11
for b1, b2 being RelStr st RelStr(# the carrier of b1,the InternalRel of b1 #) = RelStr(# the carrier of b2,the InternalRel of b2 #) & not b1 is empty holds
not b2 is empty
proof end;

theorem Th12: :: WAYBEL_8:12
for b1, b2 being non empty RelStr st RelStr(# the carrier of b1,the InternalRel of b1 #) = RelStr(# the carrier of b2,the InternalRel of b2 #) & b1 is reflexive holds
b2 is reflexive
proof end;

theorem Th13: :: WAYBEL_8:13
for b1, b2 being RelStr st RelStr(# the carrier of b1,the InternalRel of b1 #) = RelStr(# the carrier of b2,the InternalRel of b2 #) & b1 is transitive holds
b2 is transitive
proof end;

theorem Th14: :: WAYBEL_8:14
for b1, b2 being RelStr st RelStr(# the carrier of b1,the InternalRel of b1 #) = RelStr(# the carrier of b2,the InternalRel of b2 #) & b1 is antisymmetric holds
b2 is antisymmetric
proof end;

theorem Th15: :: WAYBEL_8:15
for b1, b2 being non empty reflexive RelStr st RelStr(# the carrier of b1,the InternalRel of b1 #) = RelStr(# the carrier of b2,the InternalRel of b2 #) & b1 is up-complete holds
b2 is up-complete
proof end;

theorem Th16: :: WAYBEL_8:16
for b1, b2 being non empty reflexive antisymmetric up-complete RelStr st RelStr(# the carrier of b1,the InternalRel of b1 #) = RelStr(# the carrier of b2,the InternalRel of b2 #) & b1 is satisfying_axiom_K & ( for b3 being Element of b1 holds
( not compactbelow b3 is empty & compactbelow b3 is directed ) ) holds
b2 is satisfying_axiom_K
proof end;

theorem Th17: :: WAYBEL_8:17
for b1, b2 being non empty reflexive antisymmetric RelStr st RelStr(# the carrier of b1,the InternalRel of b1 #) = RelStr(# the carrier of b2,the InternalRel of b2 #) & b1 is algebraic holds
b2 is algebraic
proof end;

theorem Th18: :: WAYBEL_8:18
for b1, b2 being LATTICE st RelStr(# the carrier of b1,the InternalRel of b1 #) = RelStr(# the carrier of b2,the InternalRel of b2 #) & b1 is arithmetic holds
b2 is arithmetic
proof end;

registration
let c1 be non empty RelStr ;
cluster RelStr(# the carrier of a1,the InternalRel of a1 #) -> non empty ;
coherence
not RelStr(# the carrier of c1,the InternalRel of c1 #) is empty
by Th11;
end;

registration
let c1 be non empty reflexive RelStr ;
cluster RelStr(# the carrier of a1,the InternalRel of a1 #) -> non empty reflexive ;
coherence
RelStr(# the carrier of c1,the InternalRel of c1 #) is reflexive
by Th12;
end;

registration
let c1 be transitive RelStr ;
cluster RelStr(# the carrier of a1,the InternalRel of a1 #) -> transitive ;
coherence
RelStr(# the carrier of c1,the InternalRel of c1 #) is transitive
by Th13;
end;

registration
let c1 be antisymmetric RelStr ;
cluster RelStr(# the carrier of a1,the InternalRel of a1 #) -> antisymmetric ;
coherence
RelStr(# the carrier of c1,the InternalRel of c1 #) is antisymmetric
by Th14;
end;

registration
let c1 be with_infima RelStr ;
cluster RelStr(# the carrier of a1,the InternalRel of a1 #) -> non empty with_infima ;
coherence
RelStr(# the carrier of c1,the InternalRel of c1 #) is with_infima
by YELLOW_7:14;
end;

registration
let c1 be with_suprema RelStr ;
cluster RelStr(# the carrier of a1,the InternalRel of a1 #) -> non empty with_suprema ;
coherence
RelStr(# the carrier of c1,the InternalRel of c1 #) is with_suprema
by YELLOW_7:15;
end;

registration
let c1 be non empty reflexive up-complete RelStr ;
cluster RelStr(# the carrier of a1,the InternalRel of a1 #) -> non empty reflexive up-complete ;
coherence
RelStr(# the carrier of c1,the InternalRel of c1 #) is up-complete
by Th15;
end;

registration
let c1 be non empty reflexive antisymmetric algebraic RelStr ;
cluster RelStr(# the carrier of a1,the InternalRel of a1 #) -> non empty reflexive antisymmetric up-complete satisfying_axiom_K algebraic ;
coherence
RelStr(# the carrier of c1,the InternalRel of c1 #) is algebraic
by Th17;
end;

registration
let c1 be arithmetic LATTICE;
cluster RelStr(# the carrier of a1,the InternalRel of a1 #) -> non empty reflexive transitive antisymmetric with_suprema with_infima up-complete continuous satisfying_axiom_K algebraic arithmetic ;
coherence
RelStr(# the carrier of c1,the InternalRel of c1 #) is arithmetic
by Th18;
end;

theorem Th19: :: WAYBEL_8:19
canceled;

theorem Th20: :: WAYBEL_8:20
canceled;

theorem Th21: :: WAYBEL_8:21
for b1 being algebraic LATTICE holds
( b1 is arithmetic iff CompactSublatt b1 is LATTICE )
proof end;

theorem Th22: :: WAYBEL_8:22
for b1 being lower-bounded algebraic LATTICE holds
( b1 is arithmetic iff b1 -waybelow is multiplicative )
proof end;

theorem Th23: :: WAYBEL_8:23
for b1 being lower-bounded arithmetic LATTICE
for b2 being Element of b1 st b2 is pseudoprime holds
b2 is prime
proof end;

theorem Th24: :: WAYBEL_8:24
for b1 being lower-bounded distributive algebraic LATTICE st ( for b2 being Element of b1 st b2 is pseudoprime holds
b2 is prime ) holds
b1 is arithmetic
proof end;

registration
let c1 be algebraic LATTICE;
let c2 be closure Function of c1,c1;
cluster non empty directed Element of bool the carrier of (Image a2);
existence
ex b1 being Subset of (Image c2) st
( not b1 is empty & b1 is directed )
proof end;
end;

theorem Th25: :: WAYBEL_8:25
for b1 being algebraic LATTICE
for b2 being closure Function of b1,b1 st b2 is directed-sups-preserving holds
b2 .: ([#] (CompactSublatt b1)) c= [#] (CompactSublatt (Image b2))
proof end;

theorem Th26: :: WAYBEL_8:26
for b1 being lower-bounded algebraic LATTICE
for b2 being closure Function of b1,b1 st b2 is directed-sups-preserving holds
Image b2 is algebraic LATTICE
proof end;

theorem Th27: :: WAYBEL_8:27
for b1 being lower-bounded algebraic LATTICE
for b2 being closure Function of b1,b1 st b2 is directed-sups-preserving holds
b2 .: ([#] (CompactSublatt b1)) = [#] (CompactSublatt (Image b2))
proof end;

theorem Th28: :: WAYBEL_8:28
for b1, b2 being set holds
( b2 is Element of (BoolePoset b1) iff b2 c= b1 )
proof end;

theorem Th29: :: WAYBEL_8:29
for b1 being set
for b2, b3 being Element of (BoolePoset b1) holds
( b2 << b3 iff for b4 being Subset-Family of b1 st b3 c= union b4 holds
ex b5 being finite Subset of b4 st b2 c= union b5 )
proof end;

theorem Th30: :: WAYBEL_8:30
for b1 being set
for b2 being Element of (BoolePoset b1) holds
( b2 is finite iff b2 is compact )
proof end;

theorem Th31: :: WAYBEL_8:31
for b1 being set
for b2 being Element of (BoolePoset b1) holds compactbelow b2 = { b3 where B is finite Subset of b2 : verum }
proof end;

theorem Th32: :: WAYBEL_8:32
for b1 being set
for b2 being Subset of b1 holds
( b2 in the carrier of (CompactSublatt (BoolePoset b1)) iff b2 is finite )
proof end;

registration
let c1 be set ;
let c2 be Element of (BoolePoset c1);
cluster compactbelow a2 -> non empty directed lower ;
coherence
( compactbelow c2 is lower & compactbelow c2 is directed )
proof end;
end;

theorem Th33: :: WAYBEL_8:33
for b1 being set holds BoolePoset b1 is algebraic
proof end;

registration
let c1 be set ;
cluster BoolePoset a1 -> continuous satisfying_axiom_K algebraic ;
coherence
BoolePoset c1 is algebraic
by Th33;
end;