let L be non empty Poset; :: thesis: for p being Element of L holds
( p is completely-irreducible iff ex q being Element of L st
( p < q & ( for s being Element of L st p < s holds
q <= s ) & uparrow p = {p} \/ (uparrow q) ) )

let p be Element of L; :: thesis: ( p is completely-irreducible iff ex q being Element of L st
( p < q & ( for s being Element of L st p < s holds
q <= s ) & uparrow p = {p} \/ (uparrow q) ) )

thus ( p is completely-irreducible implies ex q being Element of L st
( p < q & ( for s being Element of L st p < s holds
q <= s ) & uparrow p = {p} \/ (uparrow q) ) ) :: thesis: ( ex q being Element of L st
( p < q & ( for s being Element of L st p < s holds
q <= s ) & uparrow p = {p} \/ (uparrow q) ) implies p is completely-irreducible )
proof
assume A1: p is completely-irreducible ; :: thesis: ex q being Element of L st
( p < q & ( for s being Element of L st p < s holds
q <= s ) & uparrow p = {p} \/ (uparrow q) )

then ex_min_of (uparrow p) \ {p},L ;
then A2: ex_inf_of (uparrow p) \ {p},L by WAYBEL_1:def 4;
take q = "/\" (((uparrow p) \ {p}),L); :: thesis: ( p < q & ( for s being Element of L st p < s holds
q <= s ) & uparrow p = {p} \/ (uparrow q) )

now :: thesis: for s being Element of L st s in (uparrow p) \ {p} holds
p <= s
let s be Element of L; :: thesis: ( s in (uparrow p) \ {p} implies p <= s )
assume s in (uparrow p) \ {p} ; :: thesis: p <= s
then s in uparrow p by XBOOLE_0:def 5;
hence p <= s by WAYBEL_0:18; :: thesis: verum
end;
then p is_<=_than (uparrow p) \ {p} by LATTICE3:def 8;
then A3: p <= q by A2, YELLOW_0:def 10;
A4: {p} \/ (uparrow q) c= uparrow p
proof end;
"/\" (((uparrow p) \ {p}),L) <> p by A1, Th19;
hence p < q by A3, ORDERS_2:def 6; :: thesis: ( ( for s being Element of L st p < s holds
q <= s ) & uparrow p = {p} \/ (uparrow q) )

A9: q is_<=_than (uparrow p) \ {p} by A2, YELLOW_0:def 10;
thus for s being Element of L st p < s holds
q <= s :: thesis: uparrow p = {p} \/ (uparrow q)
proof end;
uparrow p c= {p} \/ (uparrow q)
proof
let x be object ; :: according to TARSKI:def 3 :: thesis: ( not x in uparrow p or x in {p} \/ (uparrow q) )
assume A12: x in uparrow p ; :: thesis: x in {p} \/ (uparrow q)
then reconsider x1 = x as Element of L ;
( p = x1 or ( x1 in uparrow p & not x1 in {p} ) ) by A12, TARSKI:def 1;
then ( p = x1 or x1 in (uparrow p) \ {p} ) by XBOOLE_0:def 5;
then ( p = x1 or "/\" (((uparrow p) \ {p}),L) <= x1 ) by A9, LATTICE3:def 8;
then ( x in {p} or x in uparrow q ) by TARSKI:def 1, WAYBEL_0:18;
hence x in {p} \/ (uparrow q) by XBOOLE_0:def 3; :: thesis: verum
end;
hence uparrow p = {p} \/ (uparrow q) by A4; :: thesis: verum
end;
thus ( ex q being Element of L st
( p < q & ( for s being Element of L st p < s holds
q <= s ) & uparrow p = {p} \/ (uparrow q) ) implies p is completely-irreducible ) :: thesis: verum
proof
given q being Element of L such that A13: p < q and
A14: for s being Element of L st p < s holds
q <= s and
A15: uparrow p = {p} \/ (uparrow q) ; :: thesis: p is completely-irreducible
A16: not q in {p} by A13, TARSKI:def 1;
ex q being Element of L st
( (uparrow p) \ {p} is_>=_than q & ( for b being Element of L st (uparrow p) \ {p} is_>=_than b holds
q >= b ) )
proof
take q ; :: thesis: ( (uparrow p) \ {p} is_>=_than q & ( for b being Element of L st (uparrow p) \ {p} is_>=_than b holds
q >= b ) )

now :: thesis: for a being Element of L st a in (uparrow p) \ {p} holds
q <= a
end;
hence (uparrow p) \ {p} is_>=_than q by LATTICE3:def 8; :: thesis: for b being Element of L st (uparrow p) \ {p} is_>=_than b holds
q >= b

let b be Element of L; :: thesis: ( (uparrow p) \ {p} is_>=_than b implies q >= b )
assume A19: (uparrow p) \ {p} is_>=_than b ; :: thesis: q >= b
q <= q ;
then q in uparrow q by WAYBEL_0:18;
then A20: q in {p} \/ (uparrow q) by XBOOLE_0:def 3;
not q in {p} by A13, TARSKI:def 1;
then q in (uparrow p) \ {p} by A15, A20, XBOOLE_0:def 5;
hence q >= b by A19, LATTICE3:def 8; :: thesis: verum
end;
then A21: ex_inf_of (uparrow p) \ {p},L by YELLOW_0:16;
A22: now :: thesis: for b being Element of L st b is_<=_than (uparrow p) \ {p} holds
q >= b
end;
p <= q by A13, ORDERS_2:def 6;
then A25: q in uparrow p by WAYBEL_0:18;
now :: thesis: for c being Element of L st c in (uparrow p) \ {p} holds
q <= c
let c be Element of L; :: thesis: ( c in (uparrow p) \ {p} implies q <= c )
assume c in (uparrow p) \ {p} ; :: thesis: q <= c
then ( c in uparrow p & not c in {p} ) by XBOOLE_0:def 5;
then c in uparrow q by A15, XBOOLE_0:def 3;
hence q <= c by WAYBEL_0:18; :: thesis: verum
end;
then q is_<=_than (uparrow p) \ {p} by LATTICE3:def 8;
then q = "/\" (((uparrow p) \ {p}),L) by A22, YELLOW_0:31;
then "/\" (((uparrow p) \ {p}),L) in (uparrow p) \ {p} by A25, A16, XBOOLE_0:def 5;
then ex_min_of (uparrow p) \ {p},L by A21, WAYBEL_1:def 4;
hence p is completely-irreducible ; :: thesis: verum
end;