let n be Nat; :: thesis: for Affn being affinely-independent Subset of (TOP-REAL n) st card Affn = n + 1 holds
Int Affn is open

let Affn be affinely-independent Subset of (TOP-REAL n); :: thesis: ( card Affn = n + 1 implies Int Affn is open )
set L = ].0,1.[;
set TRn = TOP-REAL n;
set A = Affn;
assume A1: card Affn = n + 1 ; :: thesis: Int Affn is open
per cases ( n <> 0 or n = 0 ) ;
suppose A2: n <> 0 ; :: thesis: Int Affn is open
reconsider L = ].0,1.[ as Subset of R^1 by TOPMETR:17;
set E = the Enumeration of Affn;
deffunc H1( object ) -> Element of bool the carrier of (TOP-REAL n) = (|-- (Affn,( the Enumeration of Affn . $1))) " L;
consider f being FinSequence such that
A3: len f = n + 1 and
A4: for k being Nat st k in dom f holds
f . k = H1(k) from FINSEQ_1:sch 2();
A5: dom f = Seg (len f) by FINSEQ_1:def 3;
then A6: not rng f is empty by A3, RELAT_1:42;
rng f c= bool the carrier of (TOP-REAL n)
proof
let y be object ; :: according to TARSKI:def 3 :: thesis: ( not y in rng f or y in bool the carrier of (TOP-REAL n) )
assume y in rng f ; :: thesis: y in bool the carrier of (TOP-REAL n)
then consider x being object such that
A7: x in dom f and
A8: f . x = y by FUNCT_1:def 3;
f . x = H1(x) by A4, A7;
hence y in bool the carrier of (TOP-REAL n) by A8; :: thesis: verum
end;
then reconsider f = f as FinSequence of bool the carrier of (TOP-REAL n) by FINSEQ_1:def 4;
A9: rng the Enumeration of Affn = Affn by Def1;
then A10: len the Enumeration of Affn = card Affn by FINSEQ_4:62;
A11: meet (rng f) c= Int Affn
proof
let x be object ; :: according to TARSKI:def 3 :: thesis: ( not x in meet (rng f) or x in Int Affn )
dim (TOP-REAL n) = n by Th4;
then A12: [#] (TOP-REAL n) = Affin Affn by A1, Th6;
assume A13: x in meet (rng f) ; :: thesis: x in Int Affn
A14: now :: thesis: for v being Element of (TOP-REAL n) st v in Affn holds
(x |-- Affn) . v > 0
let v be Element of (TOP-REAL n); :: thesis: ( v in Affn implies (x |-- Affn) . v > 0 )
assume v in Affn ; :: thesis: (x |-- Affn) . v > 0
then consider k being object such that
A15: k in dom the Enumeration of Affn and
A16: the Enumeration of Affn . k = v by A9, FUNCT_1:def 3;
A17: k in dom f by A1, A3, A10, A5, A15, FINSEQ_1:def 3;
then f . k in rng f by FUNCT_1:def 3;
then A18: meet (rng f) c= f . k by SETFAM_1:3;
A19: (x |-- Affn) . v = (|-- (Affn,v)) . x by A13, Def3;
f . k = (|-- (Affn,v)) " L by A4, A16, A17;
then (x |-- Affn) . v in L by A13, A19, A18, FUNCT_1:def 7;
hence (x |-- Affn) . v > 0 by XXREAL_1:4; :: thesis: verum
end;
A20: Affn c= Carrier (x |-- Affn)
proof
let y be object ; :: according to TARSKI:def 3 :: thesis: ( not y in Affn or y in Carrier (x |-- Affn) )
assume A21: y in Affn ; :: thesis: y in Carrier (x |-- Affn)
then (x |-- Affn) . y > 0 by A14;
hence y in Carrier (x |-- Affn) by A21, RLVECT_2:19; :: thesis: verum
end;
Carrier (x |-- Affn) c= Affn by RLVECT_2:def 6;
then A22: Carrier (x |-- Affn) = Affn by A20;
for v being Element of (TOP-REAL n) st v in Affn holds
(x |-- Affn) . v >= 0 by A14;
then A23: x in conv Affn by A13, A12, RLAFFIN1:73;
Sum (x |-- Affn) = x by A13, A12, RLAFFIN1:def 7;
hence x in Int Affn by A23, A22, RLAFFIN1:71, RLAFFIN2:12; :: thesis: verum
end;
A24: conv Affn c= Affin Affn by RLAFFIN1:65;
A25: Int Affn c= conv Affn by RLAFFIN2:5;
A26: dom the Enumeration of Affn = Seg (len the Enumeration of Affn) by FINSEQ_1:def 3;
A27: Int Affn c= meet (rng f)
proof
let x be object ; :: according to TARSKI:def 3 :: thesis: ( not x in Int Affn or x in meet (rng f) )
assume A28: x in Int Affn ; :: thesis: x in meet (rng f)
then consider K being Linear_Combination of Affn such that
A29: K is convex and
A30: x = Sum K by RLAFFIN2:10;
A31: x in conv Affn by A25, A28;
sum K = 1 by A29, RLAFFIN1:62;
then A32: K = x |-- Affn by A24, A30, A31, RLAFFIN1:def 7;
A33: Carrier K = Affn by A28, A29, A30, RLAFFIN2:11;
now :: thesis: for Y being set st Y in rng f holds
x in Y
let Y be set ; :: thesis: ( Y in rng f implies x in Y )
assume Y in rng f ; :: thesis: x in Y
then consider k being object such that
A34: k in dom f and
A35: f . k = Y by FUNCT_1:def 3;
A36: the Enumeration of Affn . k in Affn by A1, A3, A9, A10, A5, A26, A34, FUNCT_1:def 3;
then reconsider Ek = the Enumeration of Affn . k as Element of (TOP-REAL n) ;
(x |-- Affn) . Ek <> 0 by A32, A33, A36, RLVECT_2:19;
then A37: 0 < (x |-- Affn) . Ek by A29, A32, RLAFFIN1:62;
A38: (x |-- Affn) . Ek < 1
proof
assume A39: (x |-- Affn) . Ek >= 1 ; :: thesis: contradiction
(x |-- Affn) . Ek <= 1 by A29, A32, RLAFFIN1:63;
then Affn = {Ek} by A29, A32, A33, A39, RLAFFIN1:64, XXREAL_0:1;
then card Affn = 1 by CARD_2:42;
hence contradiction by A1, A2; :: thesis: verum
end;
(x |-- Affn) . Ek = (|-- (Affn,Ek)) . x by A30, Def3;
then A40: (|-- (Affn,Ek)) . x in L by A38, A37, XXREAL_1:4;
A41: dom (|-- (Affn,Ek)) = [#] (TOP-REAL n) by FUNCT_2:def 1;
Y = (|-- (Affn,( the Enumeration of Affn . k))) " L by A4, A34, A35;
hence x in Y by A28, A40, A41, FUNCT_1:def 7; :: thesis: verum
end;
hence x in meet (rng f) by A6, SETFAM_1:def 1; :: thesis: verum
end;
now :: thesis: for B being Subset of (TOP-REAL n) st B in rng f holds
B is open
let B be Subset of (TOP-REAL n); :: thesis: ( B in rng f implies B is open )
A42: not [#] R^1 is empty ;
assume B in rng f ; :: thesis: B is open
then consider k being object such that
A43: ( k in dom f & f . k = B ) by FUNCT_1:def 3;
( |-- (Affn,( the Enumeration of Affn . k)) is continuous & L is open ) by A1, Th32, JORDAN6:35;
then (|-- (Affn,( the Enumeration of Affn . k))) " L is open by A42, TOPS_2:43;
hence B is open by A4, A43; :: thesis: verum
end;
then rng f is open by TOPS_2:def 1;
then meet (rng f) is open by TOPS_2:20;
hence Int Affn is open by A27, A11, XBOOLE_0:def 10; :: thesis: verum
end;
suppose A44: n = 0 ; :: thesis: Int Affn is open
end;
end;