let C be Category; CatStr(# the carrier of C, the carrier' of C, the Target of C, the Source of C,(~ the Comp of C), the Id of C #) is Category
set M = the carrier' of C;
set d = the Target of C;
set c = the Source of C;
set p = ~ the Comp of C;
set i = the Id of C;
now thus A1:
for
f,
g being
Element of the
carrier' of
C holds
(
[g,f] in dom (~ the Comp of C) iff the
Target of
C . g = the
Source of
C . f )
( ( for f, g being Element of the carrier' of C st the Target of C . g = the Source of C . f holds
( the Target of C . ((~ the Comp of C) . (g,f)) = the Target of C . f & the Source of C . ((~ the Comp of C) . (g,f)) = the Source of C . g ) ) & ( for f, g, h being Element of the carrier' of C st the Target of C . h = the Source of C . g & the Target of C . g = the Source of C . f holds
(~ the Comp of C) . (h,((~ the Comp of C) . (g,f))) = (~ the Comp of C) . (((~ the Comp of C) . (h,g)),f) ) & ( for b being Element of the carrier of C holds
( the Target of C . ( the Id of C . b) = b & the Source of C . ( the Id of C . b) = b & ( for f being Element of the carrier' of C st the Source of C . f = b holds
(~ the Comp of C) . (( the Id of C . b),f) = f ) & ( for g being Element of the carrier' of C st the Target of C . g = b holds
(~ the Comp of C) . (g,( the Id of C . b)) = g ) ) ) )A2:
for
f,
g being
Element of the
carrier' of
C st the
Target of
C . g = the
Source of
C . f holds
(~ the Comp of C) . (
g,
f)
= the
Comp of
C . (
f,
g)
thus A3:
for
f,
g being
Element of the
carrier' of
C st the
Target of
C . g = the
Source of
C . f holds
( the
Target of
C . ((~ the Comp of C) . (g,f)) = the
Target of
C . f & the
Source of
C . ((~ the Comp of C) . (g,f)) = the
Source of
C . g )
( ( for f, g, h being Element of the carrier' of C st the Target of C . h = the Source of C . g & the Target of C . g = the Source of C . f holds
(~ the Comp of C) . (h,((~ the Comp of C) . (g,f))) = (~ the Comp of C) . (((~ the Comp of C) . (h,g)),f) ) & ( for b being Element of the carrier of C holds
( the Target of C . ( the Id of C . b) = b & the Source of C . ( the Id of C . b) = b & ( for f being Element of the carrier' of C st the Source of C . f = b holds
(~ the Comp of C) . (( the Id of C . b),f) = f ) & ( for g being Element of the carrier' of C st the Target of C . g = b holds
(~ the Comp of C) . (g,( the Id of C . b)) = g ) ) ) )thus
for
f,
g,
h being
Element of the
carrier' of
C st the
Target of
C . h = the
Source of
C . g & the
Target of
C . g = the
Source of
C . f holds
(~ the Comp of C) . (
h,
((~ the Comp of C) . (g,f)))
= (~ the Comp of C) . (
((~ the Comp of C) . (h,g)),
f)
for b being Element of the carrier of C holds
( the Target of C . ( the Id of C . b) = b & the Source of C . ( the Id of C . b) = b & ( for f being Element of the carrier' of C st the Source of C . f = b holds
(~ the Comp of C) . (( the Id of C . b),f) = f ) & ( for g being Element of the carrier' of C st the Target of C . g = b holds
(~ the Comp of C) . (g,( the Id of C . b)) = g ) )proof
let f,
g,
h be
Element of the
carrier' of
C;
( the Target of C . h = the Source of C . g & the Target of C . g = the Source of C . f implies (~ the Comp of C) . (h,((~ the Comp of C) . (g,f))) = (~ the Comp of C) . (((~ the Comp of C) . (h,g)),f) )
assume that A4:
the
Target of
C . h = the
Source of
C . g
and A5:
the
Target of
C . g = the
Source of
C . f
;
(~ the Comp of C) . (h,((~ the Comp of C) . (g,f))) = (~ the Comp of C) . (((~ the Comp of C) . (h,g)),f)
[h,g] in dom (~ the Comp of C)
by A1, A4;
then A6:
(~ the Comp of C) . (
h,
g) is
Element of the
carrier' of
C
by PARTFUN1:4;
[g,f] in dom (~ the Comp of C)
by A1, A5;
then A7:
(~ the Comp of C) . (
g,
f) is
Element of the
carrier' of
C
by PARTFUN1:4;
(
(~ the Comp of C) . (
h,
g)
= the
Comp of
C . (
g,
h) & the
Target of
C . ((~ the Comp of C) . (h,g)) = the
Target of
C . g )
by A2, A3, A4;
then A8:
(~ the Comp of C) . (
((~ the Comp of C) . (h,g)),
f)
= the
Comp of
C . (
f,
( the Comp of C . (g,h)))
by A2, A5, A6;
(
(~ the Comp of C) . (
g,
f)
= the
Comp of
C . (
f,
g) & the
Source of
C . ((~ the Comp of C) . (g,f)) = the
Source of
C . g )
by A2, A3, A5;
then
(~ the Comp of C) . (
h,
((~ the Comp of C) . (g,f)))
= the
Comp of
C . (
( the Comp of C . (f,g)),
h)
by A2, A4, A7;
hence
(~ the Comp of C) . (
h,
((~ the Comp of C) . (g,f)))
= (~ the Comp of C) . (
((~ the Comp of C) . (h,g)),
f)
by A4, A5, A8, CAT_1:def 5;
verum
end; let b be
Element of the
carrier of
C;
( the Target of C . ( the Id of C . b) = b & the Source of C . ( the Id of C . b) = b & ( for f being Element of the carrier' of C st the Source of C . f = b holds
(~ the Comp of C) . (( the Id of C . b),f) = f ) & ( for g being Element of the carrier' of C st the Target of C . g = b holds
(~ the Comp of C) . (g,( the Id of C . b)) = g ) )thus A9:
( the
Target of
C . ( the Id of C . b) = b & the
Source of
C . ( the Id of C . b) = b )
by CAT_1:def 5;
( ( for f being Element of the carrier' of C st the Source of C . f = b holds
(~ the Comp of C) . (( the Id of C . b),f) = f ) & ( for g being Element of the carrier' of C st the Target of C . g = b holds
(~ the Comp of C) . (g,( the Id of C . b)) = g ) )thus
for
f being
Element of the
carrier' of
C st the
Source of
C . f = b holds
(~ the Comp of C) . (
( the Id of C . b),
f)
= f
for g being Element of the carrier' of C st the Target of C . g = b holds
(~ the Comp of C) . (g,( the Id of C . b)) = glet g be
Element of the
carrier' of
C;
( the Target of C . g = b implies (~ the Comp of C) . (g,( the Id of C . b)) = g )
( the
Target of
C . g = b implies
(~ the Comp of C) . (
g,
( the Id of C . b))
= the
Comp of
C . (
( the Id of C . b),
g) )
by A2, A9;
hence
( the
Target of
C . g = b implies
(~ the Comp of C) . (
g,
( the Id of C . b))
= g )
by CAT_1:def 5;
verum end;
hence
CatStr(# the carrier of C, the carrier' of C, the Target of C, the Source of C,(~ the Comp of C), the Id of C #) is Category
by CAT_1:def 5; verum