Metamath Proof Explorer


Theorem hashiun

Description: The cardinality of a disjoint indexed union. (Contributed by Mario Carneiro, 24-Jan-2015) (Revised by Mario Carneiro, 10-Dec-2016)

Ref Expression
Hypotheses fsumiun.1 φAFin
fsumiun.2 φxABFin
fsumiun.3 φDisjxAB
Assertion hashiun φxAB=xAB

Proof

Step Hyp Ref Expression
1 fsumiun.1 φAFin
2 fsumiun.2 φxABFin
3 fsumiun.3 φDisjxAB
4 1cnd φxAkB1
5 1 2 3 4 fsumiun φkxAB1=xAkB1
6 2 ralrimiva φxABFin
7 iunfi AFinxABFinxABFin
8 1 6 7 syl2anc φxABFin
9 ax-1cn 1
10 fsumconst xABFin1kxAB1=xAB1
11 8 9 10 sylancl φkxAB1=xAB1
12 hashcl xABFinxAB0
13 nn0cn xAB0xAB
14 mulid1 xABxAB1=xAB
15 8 12 13 14 4syl φxAB1=xAB
16 11 15 eqtrd φkxAB1=xAB
17 fsumconst BFin1kB1=B1
18 2 9 17 sylancl φxAkB1=B1
19 hashcl BFinB0
20 nn0cn B0B
21 mulid1 BB1=B
22 2 19 20 21 4syl φxAB1=B
23 18 22 eqtrd φxAkB1=B
24 23 sumeq2dv φxAkB1=xAB
25 5 16 24 3eqtr3d φxAB=xAB