consider X being set such that
A4: for x being set holds
( x in X iff ( x in the carrier of F1() & P1[x] ) ) from XBOOLE_0:sch 1();
consider a0 being object of F1() such that
A5: P1[a0] by A1;
reconsider X = X as non empty set by A4, A5;
A6: X c= the carrier of F1()
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in X or x in the carrier of F1() )
thus ( not x in X or x in the carrier of F1() ) by A4; :: thesis: verum
end;
deffunc H1( set , set ) -> set = the Arrows of F1() . $1,$2;
deffunc H2( set , set , set , set , set ) -> set = (the Comp of F1() . $1,$2,$3) . $5,$4;
A7: now
let a, b, c be Element of X; :: thesis: for f, g being set st f in H1(a,b) & P2[a,b,f] & g in H1(b,c) & P2[b,c,g] holds
( H2(a,b,c,f,g) in H1(a,c) & P2[a,c,H2(a,b,c,f,g)] )

let f, g be set ; :: thesis: ( f in H1(a,b) & P2[a,b,f] & g in H1(b,c) & P2[b,c,g] implies ( H2(a,b,c,f,g) in H1(a,c) & P2[a,c,H2(a,b,c,f,g)] ) )
assume that
A8: ( f in H1(a,b) & P2[a,b,f] ) and
A9: ( g in H1(b,c) & P2[b,c,g] ) ; :: thesis: ( H2(a,b,c,f,g) in H1(a,c) & P2[a,c,H2(a,b,c,f,g)] )
reconsider a' = a, b' = b, c' = c as object of F1() by A4;
A10: H1(a,b) = <^a',b'^> ;
reconsider f' = f as Morphism of a',b' by A8;
A11: H1(b,c) = <^b',c'^> ;
reconsider g' = g as Morphism of b',c' by A9;
A12: ( H2(a,b,c,f,g) = g' * f' & H1(a,c) = <^a',c'^> & <^a',c'^> <> {} ) by A8, A9, A10, A11, ALTCAT_1:def 4, ALTCAT_1:def 10;
hence H2(a,b,c,f,g) in H1(a,c) ; :: thesis: P2[a,c,H2(a,b,c,f,g)]
( P1[a'] & P1[b'] & P1[c'] ) by A4;
hence P2[a,c,H2(a,b,c,f,g)] by A2, A8, A9, A12; :: thesis: verum
end;
A13: now
let a, b, c, d be Element of X; :: thesis: for f, g, h being set st f in H1(a,b) & P2[a,b,f] & g in H1(b,c) & P2[b,c,g] & h in H1(c,d) & P2[c,d,h] holds
H2(a,c,d,H2(a,b,c,f,g),h) = H2(a,b,d,f,H2(b,c,d,g,h))

let f, g, h be set ; :: thesis: ( f in H1(a,b) & P2[a,b,f] & g in H1(b,c) & P2[b,c,g] & h in H1(c,d) & P2[c,d,h] implies H2(a,c,d,H2(a,b,c,f,g),h) = H2(a,b,d,f,H2(b,c,d,g,h)) )
assume that
A14: ( f in H1(a,b) & P2[a,b,f] ) and
A15: ( g in H1(b,c) & P2[b,c,g] ) and
A16: ( h in H1(c,d) & P2[c,d,h] ) ; :: thesis: H2(a,c,d,H2(a,b,c,f,g),h) = H2(a,b,d,f,H2(b,c,d,g,h))
reconsider a' = a, b' = b, c' = c, d' = d as object of F1() by A4;
A17: H1(a,b) = <^a',b'^> ;
reconsider f' = f as Morphism of a',b' by A14;
A18: H1(b,c) = <^b',c'^> ;
reconsider g' = g as Morphism of b',c' by A15;
A19: H1(c,d) = <^c',d'^> ;
reconsider h' = h as Morphism of c',d' by A16;
A20: ( <^a',c'^> <> {} & <^b',d'^> <> {} ) by A14, A15, A16, A17, A18, A19, ALTCAT_1:def 4;
thus H2(a,c,d,H2(a,b,c,f,g),h) = H2(a',c',d',g' * f',h) by A14, A15, ALTCAT_1:def 10
.= h' * (g' * f') by A16, A20, ALTCAT_1:def 10
.= (h' * g') * f' by A14, A15, A16, ALTCAT_1:25
.= H2(a,b,d,f,h' * g') by A14, A20, ALTCAT_1:def 10
.= H2(a,b,d,f,H2(b,c,d,g,h)) by A15, A16, ALTCAT_1:def 10 ; :: thesis: verum
end;
A21: now
let a be Element of X; :: thesis: ex f being set st
( f in H1(a,a) & P2[a,a,f] & ( for c being Element of X
for g being set st g in H1(a,c) & P2[a,c,g] holds
H2(a,a,c,f,g) = g ) )

reconsider b = a as object of F1() by A4;
reconsider f = idm b as set ;
take f = f; :: thesis: ( f in H1(a,a) & P2[a,a,f] & ( for c being Element of X
for g being set st g in H1(a,c) & P2[a,c,g] holds
H2(a,a,c,f,g) = g ) )

( H1(a,a) = <^b,b^> & P1[b] ) by A4;
hence ( f in H1(a,a) & P2[a,a,f] ) by A3; :: thesis: for c being Element of X
for g being set st g in H1(a,c) & P2[a,c,g] holds
H2(a,a,c,f,g) = g

let c be Element of X; :: thesis: for g being set st g in H1(a,c) & P2[a,c,g] holds
H2(a,a,c,f,g) = g

let g be set ; :: thesis: ( g in H1(a,c) & P2[a,c,g] implies H2(a,a,c,f,g) = g )
assume A22: ( g in H1(a,c) & P2[a,c,g] ) ; :: thesis: H2(a,a,c,f,g) = g
reconsider d = c as object of F1() by A4;
reconsider g' = g as Morphism of b,d by A22;
thus H2(a,a,c,f,g) = g' * (idm b) by A22, ALTCAT_1:def 10
.= g by A22, ALTCAT_1:def 19 ; :: thesis: verum
end;
A23: now
let a be Element of X; :: thesis: ex f being set st
( f in H1(a,a) & P2[a,a,f] & ( for c being Element of X
for g being set st g in H1(c,a) & P2[c,a,g] holds
H2(c,a,a,g,f) = g ) )

reconsider b = a as object of F1() by A4;
reconsider f = idm b as set ;
take f = f; :: thesis: ( f in H1(a,a) & P2[a,a,f] & ( for c being Element of X
for g being set st g in H1(c,a) & P2[c,a,g] holds
H2(c,a,a,g,f) = g ) )

( H1(a,a) = <^b,b^> & P1[b] ) by A4;
hence ( f in H1(a,a) & P2[a,a,f] ) by A3; :: thesis: for c being Element of X
for g being set st g in H1(c,a) & P2[c,a,g] holds
H2(c,a,a,g,f) = g

let c be Element of X; :: thesis: for g being set st g in H1(c,a) & P2[c,a,g] holds
H2(c,a,a,g,f) = g

let g be set ; :: thesis: ( g in H1(c,a) & P2[c,a,g] implies H2(c,a,a,g,f) = g )
assume A24: ( g in H1(c,a) & P2[c,a,g] ) ; :: thesis: H2(c,a,a,g,f) = g
reconsider d = c as object of F1() by A4;
reconsider g' = g as Morphism of d,b by A24;
thus H2(c,a,a,g,f) = (idm b) * g' by A24, ALTCAT_1:def 10
.= g by A24, ALTCAT_1:24 ; :: thesis: verum
end;
consider C being strict category such that
A25: the carrier of C = X and
A26: for a, b being object of C
for f being set holds
( f in <^a,b^> iff ( f in H1(a,b) & P2[a,b,f] ) ) and
A27: for a, b, c being object of C st <^a,b^> <> {} & <^b,c^> <> {} holds
for f being Morphism of a,b
for g being Morphism of b,c holds g * f = H2(a,b,c,f,g) from YELLOW18:sch 6(A7, A13, A21, A23);
C is SubCatStr of F1()
proof
thus the carrier of C c= the carrier of F1() by A6, A25; :: according to ALTCAT_2:def 11 :: thesis: ( the Arrows of C cc= the Arrows of F1() & the Comp of C cc= the Comp of F1() )
thus [:the carrier of C,the carrier of C:] c= [:the carrier of F1(),the carrier of F1():] by A6, A25, ZFMISC_1:119; :: according to ALTCAT_2:def 2 :: thesis: ( ( for b1 being set holds
( not b1 in [:the carrier of C,the carrier of C:] or the Arrows of C . b1 c= the Arrows of F1() . b1 ) ) & the Comp of C cc= the Comp of F1() )

hereby :: thesis: the Comp of C cc= the Comp of F1()
let i be set ; :: thesis: ( i in [:the carrier of C,the carrier of C:] implies the Arrows of C . i c= the Arrows of F1() . i )
assume i in [:the carrier of C,the carrier of C:] ; :: thesis: the Arrows of C . i c= the Arrows of F1() . i
then consider a, b being set such that
A28: ( a in the carrier of C & b in the carrier of C & [a,b] = i ) by ZFMISC_1:def 2;
reconsider a = a, b = b as object of C by A28;
A29: the Arrows of C . i = <^a,b^> by A28;
A30: the Arrows of F1() . i = the Arrows of F1() . a,b by A28;
thus the Arrows of C . i c= the Arrows of F1() . i :: thesis: verum
proof
let f be set ; :: according to TARSKI:def 3 :: thesis: ( not f in the Arrows of C . i or f in the Arrows of F1() . i )
thus ( not f in the Arrows of C . i or f in the Arrows of F1() . i ) by A26, A29, A30; :: thesis: verum
end;
end;
thus [:the carrier of C,the carrier of C,the carrier of C:] c= [:the carrier of F1(),the carrier of F1(),the carrier of F1():] by A6, A25, MCART_1:77; :: according to ALTCAT_2:def 2 :: thesis: for b1 being set holds
( not b1 in [:the carrier of C,the carrier of C,the carrier of C:] or the Comp of C . b1 c= the Comp of F1() . b1 )

let i be set ; :: thesis: ( not i in [:the carrier of C,the carrier of C,the carrier of C:] or the Comp of C . i c= the Comp of F1() . i )
assume i in [:the carrier of C,the carrier of C,the carrier of C:] ; :: thesis: the Comp of C . i c= the Comp of F1() . i
then consider a, b, c being set such that
A31: ( a in the carrier of C & b in the carrier of C & c in the carrier of C & [a,b,c] = i ) by MCART_1:72;
reconsider a = a, b = b, c = c as object of C by A31;
reconsider a' = a, b' = b, c' = c as object of F1() by A4, A25;
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in the Comp of C . i or x in the Comp of F1() . i )
assume x in the Comp of C . i ; :: thesis: x in the Comp of F1() . i
then A32: x in the Comp of C . a,b,c by A31, MULTOP_1:def 1;
then consider gf, h being set such that
A33: x = [gf,h] and
A34: gf in [:(the Arrows of C . b,c),(the Arrows of C . a,b):] and
A35: h in the Arrows of C . a,c by RELSET_1:6;
consider g, f being set such that
A36: ( g in the Arrows of C . b,c & f in the Arrows of C . a,b & [g,f] = gf ) by A34, ZFMISC_1:def 2;
reconsider f = f as Morphism of a,b by A36;
reconsider g = g as Morphism of b,c by A36;
reconsider h = h as Morphism of a,c by A35;
A37: the Comp of F1() . a',b',c' = the Comp of F1() . i by A31, MULTOP_1:def 1;
A38: ( g in the Arrows of F1() . b',c' & f in the Arrows of F1() . a',b' ) by A26, A36;
A39: h = (the Comp of C . a,b,c) . g,f by A32, A33, A36, FUNCT_1:8
.= g * f by A36, ALTCAT_1:def 10
.= (the Comp of F1() . a',b',c') . g,f by A27, A36 ;
h in the Arrows of F1() . a',c' by A26, A35;
then dom (the Comp of F1() . a',b',c') = [:(the Arrows of F1() . b',c'),(the Arrows of F1() . a',b'):] by FUNCT_2:def 1;
then ( gf in dom (the Comp of F1() . a',b',c') & h = (the Comp of F1() . a',b',c') . gf ) by A36, A38, A39, ZFMISC_1:def 2;
hence x in the Comp of F1() . i by A33, A37, FUNCT_1:def 4; :: thesis: verum
end;
then reconsider C = C as non empty SubCatStr of F1() ;
for o being object of C
for o' being object of F1() st o = o' holds
idm o' in <^o,o^>
proof
let a be object of C; :: thesis: for o' being object of F1() st a = o' holds
idm o' in <^a,a^>

let b be object of F1(); :: thesis: ( a = b implies idm b in <^a,a^> )
assume A40: a = b ; :: thesis: idm b in <^a,a^>
then ( idm b in <^b,b^> & P1[b] ) by A4, A25;
then ( idm b in the Arrows of F1() . b,b & P2[b,b, idm b] ) by A3;
hence idm b in <^a,a^> by A26, A40; :: thesis: verum
end;
then reconsider C = C as non empty strict subcategory of F1() by ALTCAT_2:def 14;
take C ; :: thesis: ( ( for a being object of F1() holds
( a is object of C iff P1[a] ) ) & ( for a, b being object of F1()
for a', b' being object of C st a' = a & b' = b & <^a,b^> <> {} holds
for f being Morphism of a,b holds
( f in <^a',b'^> iff P2[a,b,f] ) ) )

thus for a being object of F1() holds
( a is object of C iff P1[a] ) by A4, A25; :: thesis: for a, b being object of F1()
for a', b' being object of C st a' = a & b' = b & <^a,b^> <> {} holds
for f being Morphism of a,b holds
( f in <^a',b'^> iff P2[a,b,f] )

let a, b be object of F1(); :: thesis: for a', b' being object of C st a' = a & b' = b & <^a,b^> <> {} holds
for f being Morphism of a,b holds
( f in <^a',b'^> iff P2[a,b,f] )

let a', b' be object of C; :: thesis: ( a' = a & b' = b & <^a,b^> <> {} implies for f being Morphism of a,b holds
( f in <^a',b'^> iff P2[a,b,f] ) )

assume A41: ( a' = a & b' = b & <^a,b^> <> {} ) ; :: thesis: for f being Morphism of a,b holds
( f in <^a',b'^> iff P2[a,b,f] )

let f be Morphism of a,b; :: thesis: ( f in <^a',b'^> iff P2[a,b,f] )
thus ( f in <^a',b'^> iff P2[a,b,f] ) by A26, A41; :: thesis: verum