Users' Mathboxes Mathbox for Glauco Siliprandi < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  fiiuncl Structured version   Visualization version   GIF version

Theorem fiiuncl 42613
Description: If a set is closed under the union of two sets, then it is closed under finite indexed union. (Contributed by Glauco Siliprandi, 17-Aug-2020.)
Hypotheses
Ref Expression
fiiuncl.xph 𝑥𝜑
fiiuncl.b ((𝜑𝑥𝐴) → 𝐵𝐷)
fiiuncl.un ((𝜑𝑦𝐷𝑧𝐷) → (𝑦𝑧) ∈ 𝐷)
fiiuncl.a (𝜑𝐴 ∈ Fin)
fiiuncl.n0 (𝜑𝐴 ≠ ∅)
Assertion
Ref Expression
fiiuncl (𝜑 𝑥𝐴 𝐵𝐷)
Distinct variable groups:   𝑥,𝐴   𝑦,𝐵,𝑧   𝑥,𝐷,𝑦,𝑧   𝜑,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑥)   𝐴(𝑦,𝑧)   𝐵(𝑥)

Proof of Theorem fiiuncl
Dummy variables 𝑢 𝑣 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fiiuncl.n0 . 2 (𝜑𝐴 ≠ ∅)
2 neeq1 3006 . . . 4 (𝑣 = ∅ → (𝑣 ≠ ∅ ↔ ∅ ≠ ∅))
3 iuneq1 4940 . . . . 5 (𝑣 = ∅ → 𝑥𝑣 𝐵 = 𝑥 ∈ ∅ 𝐵)
43eleq1d 2823 . . . 4 (𝑣 = ∅ → ( 𝑥𝑣 𝐵𝐷 𝑥 ∈ ∅ 𝐵𝐷))
52, 4imbi12d 345 . . 3 (𝑣 = ∅ → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ (∅ ≠ ∅ → 𝑥 ∈ ∅ 𝐵𝐷)))
6 neeq1 3006 . . . 4 (𝑣 = 𝑤 → (𝑣 ≠ ∅ ↔ 𝑤 ≠ ∅))
7 iuneq1 4940 . . . . 5 (𝑣 = 𝑤 𝑥𝑣 𝐵 = 𝑥𝑤 𝐵)
87eleq1d 2823 . . . 4 (𝑣 = 𝑤 → ( 𝑥𝑣 𝐵𝐷 𝑥𝑤 𝐵𝐷))
96, 8imbi12d 345 . . 3 (𝑣 = 𝑤 → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)))
10 neeq1 3006 . . . 4 (𝑣 = (𝑤 ∪ {𝑢}) → (𝑣 ≠ ∅ ↔ (𝑤 ∪ {𝑢}) ≠ ∅))
11 iuneq1 4940 . . . . 5 (𝑣 = (𝑤 ∪ {𝑢}) → 𝑥𝑣 𝐵 = 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵)
1211eleq1d 2823 . . . 4 (𝑣 = (𝑤 ∪ {𝑢}) → ( 𝑥𝑣 𝐵𝐷 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷))
1310, 12imbi12d 345 . . 3 (𝑣 = (𝑤 ∪ {𝑢}) → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)))
14 neeq1 3006 . . . 4 (𝑣 = 𝐴 → (𝑣 ≠ ∅ ↔ 𝐴 ≠ ∅))
15 iuneq1 4940 . . . . 5 (𝑣 = 𝐴 𝑥𝑣 𝐵 = 𝑥𝐴 𝐵)
1615eleq1d 2823 . . . 4 (𝑣 = 𝐴 → ( 𝑥𝑣 𝐵𝐷 𝑥𝐴 𝐵𝐷))
1714, 16imbi12d 345 . . 3 (𝑣 = 𝐴 → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ (𝐴 ≠ ∅ → 𝑥𝐴 𝐵𝐷)))
18 neirr 2952 . . . . 5 ¬ ∅ ≠ ∅
1918pm2.21i 119 . . . 4 (∅ ≠ ∅ → 𝑥 ∈ ∅ 𝐵𝐷)
2019a1i 11 . . 3 (𝜑 → (∅ ≠ ∅ → 𝑥 ∈ ∅ 𝐵𝐷))
21 iunxun 5023 . . . . . . . 8 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵 = ( 𝑥𝑤 𝐵 𝑥 ∈ {𝑢}𝐵)
22 nfcsb1v 3857 . . . . . . . . . 10 𝑥𝑢 / 𝑥𝐵
23 vex 3436 . . . . . . . . . 10 𝑢 ∈ V
24 csbeq1a 3846 . . . . . . . . . 10 (𝑥 = 𝑢𝐵 = 𝑢 / 𝑥𝐵)
2522, 23, 24iunxsnf 42612 . . . . . . . . 9 𝑥 ∈ {𝑢}𝐵 = 𝑢 / 𝑥𝐵
2625uneq2i 4094 . . . . . . . 8 ( 𝑥𝑤 𝐵 𝑥 ∈ {𝑢}𝐵) = ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵)
2721, 26eqtri 2766 . . . . . . 7 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵 = ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵)
28 iuneq1 4940 . . . . . . . . . . . . . 14 (𝑤 = ∅ → 𝑥𝑤 𝐵 = 𝑥 ∈ ∅ 𝐵)
29 0iun 4992 . . . . . . . . . . . . . . 15 𝑥 ∈ ∅ 𝐵 = ∅
3029a1i 11 . . . . . . . . . . . . . 14 (𝑤 = ∅ → 𝑥 ∈ ∅ 𝐵 = ∅)
3128, 30eqtrd 2778 . . . . . . . . . . . . 13 (𝑤 = ∅ → 𝑥𝑤 𝐵 = ∅)
3231uneq1d 4096 . . . . . . . . . . . 12 (𝑤 = ∅ → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) = (∅ ∪ 𝑢 / 𝑥𝐵))
33 0un 4326 . . . . . . . . . . . . . 14 (∅ ∪ 𝑢 / 𝑥𝐵) = 𝑢 / 𝑥𝐵
34 unidm 4086 . . . . . . . . . . . . . 14 (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) = 𝑢 / 𝑥𝐵
3533, 34eqtr4i 2769 . . . . . . . . . . . . 13 (∅ ∪ 𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵)
3635a1i 11 . . . . . . . . . . . 12 (𝑤 = ∅ → (∅ ∪ 𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵))
3732, 36eqtrd 2778 . . . . . . . . . . 11 (𝑤 = ∅ → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵))
3837adantl 482 . . . . . . . . . 10 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵))
39 simpl 483 . . . . . . . . . . . 12 ((𝜑𝑢 ∈ (𝐴𝑤)) → 𝜑)
40 eldifi 4061 . . . . . . . . . . . . 13 (𝑢 ∈ (𝐴𝑤) → 𝑢𝐴)
4140adantl 482 . . . . . . . . . . . 12 ((𝜑𝑢 ∈ (𝐴𝑤)) → 𝑢𝐴)
42 fiiuncl.xph . . . . . . . . . . . . . . . 16 𝑥𝜑
43 nfv 1917 . . . . . . . . . . . . . . . 16 𝑥 𝑢𝐴
4442, 43nfan 1902 . . . . . . . . . . . . . . 15 𝑥(𝜑𝑢𝐴)
45 nfcv 2907 . . . . . . . . . . . . . . . 16 𝑥𝐷
4622, 45nfel 2921 . . . . . . . . . . . . . . 15 𝑥𝑢 / 𝑥𝐵𝐷
4744, 46nfim 1899 . . . . . . . . . . . . . 14 𝑥((𝜑𝑢𝐴) → 𝑢 / 𝑥𝐵𝐷)
48 eleq1 2826 . . . . . . . . . . . . . . . 16 (𝑥 = 𝑢 → (𝑥𝐴𝑢𝐴))
4948anbi2d 629 . . . . . . . . . . . . . . 15 (𝑥 = 𝑢 → ((𝜑𝑥𝐴) ↔ (𝜑𝑢𝐴)))
5024eleq1d 2823 . . . . . . . . . . . . . . 15 (𝑥 = 𝑢 → (𝐵𝐷𝑢 / 𝑥𝐵𝐷))
5149, 50imbi12d 345 . . . . . . . . . . . . . 14 (𝑥 = 𝑢 → (((𝜑𝑥𝐴) → 𝐵𝐷) ↔ ((𝜑𝑢𝐴) → 𝑢 / 𝑥𝐵𝐷)))
52 fiiuncl.b . . . . . . . . . . . . . 14 ((𝜑𝑥𝐴) → 𝐵𝐷)
5347, 51, 52chvarfv 2233 . . . . . . . . . . . . 13 ((𝜑𝑢𝐴) → 𝑢 / 𝑥𝐵𝐷)
5434, 53eqeltrid 2843 . . . . . . . . . . . 12 ((𝜑𝑢𝐴) → (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5539, 41, 54syl2anc 584 . . . . . . . . . . 11 ((𝜑𝑢 ∈ (𝐴𝑤)) → (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5655adantr 481 . . . . . . . . . 10 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ 𝑤 = ∅) → (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5738, 56eqeltrd 2839 . . . . . . . . 9 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5857adantlr 712 . . . . . . . 8 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
59 simplll 772 . . . . . . . . 9 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → 𝜑)
6040ad3antlr 728 . . . . . . . . 9 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → 𝑢𝐴)
61 neqne 2951 . . . . . . . . . . . 12 𝑤 = ∅ → 𝑤 ≠ ∅)
6261adantl 482 . . . . . . . . . . 11 (((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) ∧ ¬ 𝑤 = ∅) → 𝑤 ≠ ∅)
63 simpl 483 . . . . . . . . . . 11 (((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) ∧ ¬ 𝑤 = ∅) → (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷))
6462, 63mpd 15 . . . . . . . . . 10 (((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) ∧ ¬ 𝑤 = ∅) → 𝑥𝑤 𝐵𝐷)
6564adantll 711 . . . . . . . . 9 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → 𝑥𝑤 𝐵𝐷)
66533adant3 1131 . . . . . . . . . 10 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → 𝑢 / 𝑥𝐵𝐷)
67 simp3 1137 . . . . . . . . . 10 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → 𝑥𝑤 𝐵𝐷)
68 simp1 1135 . . . . . . . . . . 11 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → 𝜑)
6968, 67, 663jca 1127 . . . . . . . . . 10 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → (𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷))
70 eleq1 2826 . . . . . . . . . . . . . 14 (𝑧 = 𝑢 / 𝑥𝐵 → (𝑧𝐷𝑢 / 𝑥𝐵𝐷))
71703anbi3d 1441 . . . . . . . . . . . . 13 (𝑧 = 𝑢 / 𝑥𝐵 → ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) ↔ (𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷)))
72 uneq2 4091 . . . . . . . . . . . . . 14 (𝑧 = 𝑢 / 𝑥𝐵 → ( 𝑥𝑤 𝐵𝑧) = ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵))
7372eleq1d 2823 . . . . . . . . . . . . 13 (𝑧 = 𝑢 / 𝑥𝐵 → (( 𝑥𝑤 𝐵𝑧) ∈ 𝐷 ↔ ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷))
7471, 73imbi12d 345 . . . . . . . . . . . 12 (𝑧 = 𝑢 / 𝑥𝐵 → (((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷) ↔ ((𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)))
7574imbi2d 341 . . . . . . . . . . 11 (𝑧 = 𝑢 / 𝑥𝐵 → (( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷)) ↔ ( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷))))
76 eleq1 2826 . . . . . . . . . . . . . 14 (𝑦 = 𝑥𝑤 𝐵 → (𝑦𝐷 𝑥𝑤 𝐵𝐷))
77763anbi2d 1440 . . . . . . . . . . . . 13 (𝑦 = 𝑥𝑤 𝐵 → ((𝜑𝑦𝐷𝑧𝐷) ↔ (𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷)))
78 uneq1 4090 . . . . . . . . . . . . . 14 (𝑦 = 𝑥𝑤 𝐵 → (𝑦𝑧) = ( 𝑥𝑤 𝐵𝑧))
7978eleq1d 2823 . . . . . . . . . . . . 13 (𝑦 = 𝑥𝑤 𝐵 → ((𝑦𝑧) ∈ 𝐷 ↔ ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷))
8077, 79imbi12d 345 . . . . . . . . . . . 12 (𝑦 = 𝑥𝑤 𝐵 → (((𝜑𝑦𝐷𝑧𝐷) → (𝑦𝑧) ∈ 𝐷) ↔ ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷)))
81 fiiuncl.un . . . . . . . . . . . 12 ((𝜑𝑦𝐷𝑧𝐷) → (𝑦𝑧) ∈ 𝐷)
8280, 81vtoclg 3505 . . . . . . . . . . 11 ( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷))
8375, 82vtoclg 3505 . . . . . . . . . 10 (𝑢 / 𝑥𝐵𝐷 → ( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)))
8466, 67, 69, 83syl3c 66 . . . . . . . . 9 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
8559, 60, 65, 84syl3anc 1370 . . . . . . . 8 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
8658, 85pm2.61dan 810 . . . . . . 7 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
8727, 86eqeltrid 2843 . . . . . 6 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)
8887a1d 25 . . . . 5 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) → ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷))
8988ex 413 . . . 4 ((𝜑𝑢 ∈ (𝐴𝑤)) → ((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) → ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)))
9089adantrl 713 . . 3 ((𝜑 ∧ (𝑤𝐴𝑢 ∈ (𝐴𝑤))) → ((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) → ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)))
91 fiiuncl.a . . 3 (𝜑𝐴 ∈ Fin)
925, 9, 13, 17, 20, 90, 91findcard2d 8949 . 2 (𝜑 → (𝐴 ≠ ∅ → 𝑥𝐴 𝐵𝐷))
931, 92mpd 15 1 (𝜑 𝑥𝐴 𝐵𝐷)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396  w3a 1086   = wceq 1539  wnf 1786  wcel 2106  wne 2943  csb 3832  cdif 3884  cun 3885  wss 3887  c0 4256  {csn 4561   ciun 4924  Fincfn 8733
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-om 7713  df-en 8734  df-fin 8737
This theorem is referenced by:  fiunicl  42615  caragenfiiuncl  44053
  Copyright terms: Public domain W3C validator