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 38752
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 2852 . . . 4 (𝑣 = ∅ → (𝑣 ≠ ∅ ↔ ∅ ≠ ∅))
3 iuneq1 4505 . . . . 5 (𝑣 = ∅ → 𝑥𝑣 𝐵 = 𝑥 ∈ ∅ 𝐵)
43eleq1d 2683 . . . 4 (𝑣 = ∅ → ( 𝑥𝑣 𝐵𝐷 𝑥 ∈ ∅ 𝐵𝐷))
52, 4imbi12d 334 . . 3 (𝑣 = ∅ → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ (∅ ≠ ∅ → 𝑥 ∈ ∅ 𝐵𝐷)))
6 neeq1 2852 . . . 4 (𝑣 = 𝑤 → (𝑣 ≠ ∅ ↔ 𝑤 ≠ ∅))
7 iuneq1 4505 . . . . 5 (𝑣 = 𝑤 𝑥𝑣 𝐵 = 𝑥𝑤 𝐵)
87eleq1d 2683 . . . 4 (𝑣 = 𝑤 → ( 𝑥𝑣 𝐵𝐷 𝑥𝑤 𝐵𝐷))
96, 8imbi12d 334 . . 3 (𝑣 = 𝑤 → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)))
10 neeq1 2852 . . . 4 (𝑣 = (𝑤 ∪ {𝑢}) → (𝑣 ≠ ∅ ↔ (𝑤 ∪ {𝑢}) ≠ ∅))
11 iuneq1 4505 . . . . 5 (𝑣 = (𝑤 ∪ {𝑢}) → 𝑥𝑣 𝐵 = 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵)
1211eleq1d 2683 . . . 4 (𝑣 = (𝑤 ∪ {𝑢}) → ( 𝑥𝑣 𝐵𝐷 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷))
1310, 12imbi12d 334 . . 3 (𝑣 = (𝑤 ∪ {𝑢}) → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)))
14 neeq1 2852 . . . 4 (𝑣 = 𝐴 → (𝑣 ≠ ∅ ↔ 𝐴 ≠ ∅))
15 iuneq1 4505 . . . . 5 (𝑣 = 𝐴 𝑥𝑣 𝐵 = 𝑥𝐴 𝐵)
1615eleq1d 2683 . . . 4 (𝑣 = 𝐴 → ( 𝑥𝑣 𝐵𝐷 𝑥𝐴 𝐵𝐷))
1714, 16imbi12d 334 . . 3 (𝑣 = 𝐴 → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ (𝐴 ≠ ∅ → 𝑥𝐴 𝐵𝐷)))
18 neirr 2799 . . . . 5 ¬ ∅ ≠ ∅
1918pm2.21i 116 . . . 4 (∅ ≠ ∅ → 𝑥 ∈ ∅ 𝐵𝐷)
2019a1i 11 . . 3 (𝜑 → (∅ ≠ ∅ → 𝑥 ∈ ∅ 𝐵𝐷))
21 iunxun 4576 . . . . . . . 8 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵 = ( 𝑥𝑤 𝐵 𝑥 ∈ {𝑢}𝐵)
22 nfcsb1v 3534 . . . . . . . . . 10 𝑥𝑢 / 𝑥𝐵
23 vex 3192 . . . . . . . . . 10 𝑢 ∈ V
24 csbeq1a 3527 . . . . . . . . . 10 (𝑥 = 𝑢𝐵 = 𝑢 / 𝑥𝐵)
2522, 23, 24iunxsnf 38751 . . . . . . . . 9 𝑥 ∈ {𝑢}𝐵 = 𝑢 / 𝑥𝐵
2625uneq2i 3747 . . . . . . . 8 ( 𝑥𝑤 𝐵 𝑥 ∈ {𝑢}𝐵) = ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵)
2721, 26eqtri 2643 . . . . . . 7 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵 = ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵)
28 iuneq1 4505 . . . . . . . . . . . . . 14 (𝑤 = ∅ → 𝑥𝑤 𝐵 = 𝑥 ∈ ∅ 𝐵)
29 0iun 4548 . . . . . . . . . . . . . . 15 𝑥 ∈ ∅ 𝐵 = ∅
3029a1i 11 . . . . . . . . . . . . . 14 (𝑤 = ∅ → 𝑥 ∈ ∅ 𝐵 = ∅)
3128, 30eqtrd 2655 . . . . . . . . . . . . 13 (𝑤 = ∅ → 𝑥𝑤 𝐵 = ∅)
3231uneq1d 3749 . . . . . . . . . . . 12 (𝑤 = ∅ → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) = (∅ ∪ 𝑢 / 𝑥𝐵))
33 0un 38733 . . . . . . . . . . . . . 14 (∅ ∪ 𝑢 / 𝑥𝐵) = 𝑢 / 𝑥𝐵
34 unidm 3739 . . . . . . . . . . . . . 14 (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) = 𝑢 / 𝑥𝐵
3533, 34eqtr4i 2646 . . . . . . . . . . . . 13 (∅ ∪ 𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵)
3635a1i 11 . . . . . . . . . . . 12 (𝑤 = ∅ → (∅ ∪ 𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵))
3732, 36eqtrd 2655 . . . . . . . . . . 11 (𝑤 = ∅ → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵))
3837adantl 482 . . . . . . . . . 10 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵))
39 simpl 473 . . . . . . . . . . . 12 ((𝜑𝑢 ∈ (𝐴𝑤)) → 𝜑)
40 eldifi 3715 . . . . . . . . . . . . 13 (𝑢 ∈ (𝐴𝑤) → 𝑢𝐴)
4140adantl 482 . . . . . . . . . . . 12 ((𝜑𝑢 ∈ (𝐴𝑤)) → 𝑢𝐴)
42 fiiuncl.xph . . . . . . . . . . . . . . . 16 𝑥𝜑
43 nfv 1840 . . . . . . . . . . . . . . . 16 𝑥 𝑢𝐴
4442, 43nfan 1825 . . . . . . . . . . . . . . 15 𝑥(𝜑𝑢𝐴)
45 nfcv 2761 . . . . . . . . . . . . . . . 16 𝑥𝐷
4622, 45nfel 2773 . . . . . . . . . . . . . . 15 𝑥𝑢 / 𝑥𝐵𝐷
4744, 46nfim 1822 . . . . . . . . . . . . . 14 𝑥((𝜑𝑢𝐴) → 𝑢 / 𝑥𝐵𝐷)
48 eleq1 2686 . . . . . . . . . . . . . . . 16 (𝑥 = 𝑢 → (𝑥𝐴𝑢𝐴))
4948anbi2d 739 . . . . . . . . . . . . . . 15 (𝑥 = 𝑢 → ((𝜑𝑥𝐴) ↔ (𝜑𝑢𝐴)))
5024eleq1d 2683 . . . . . . . . . . . . . . 15 (𝑥 = 𝑢 → (𝐵𝐷𝑢 / 𝑥𝐵𝐷))
5149, 50imbi12d 334 . . . . . . . . . . . . . 14 (𝑥 = 𝑢 → (((𝜑𝑥𝐴) → 𝐵𝐷) ↔ ((𝜑𝑢𝐴) → 𝑢 / 𝑥𝐵𝐷)))
52 fiiuncl.b . . . . . . . . . . . . . 14 ((𝜑𝑥𝐴) → 𝐵𝐷)
5347, 51, 52chvar 2261 . . . . . . . . . . . . 13 ((𝜑𝑢𝐴) → 𝑢 / 𝑥𝐵𝐷)
5434, 53syl5eqel 2702 . . . . . . . . . . . 12 ((𝜑𝑢𝐴) → (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5539, 41, 54syl2anc 692 . . . . . . . . . . 11 ((𝜑𝑢 ∈ (𝐴𝑤)) → (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5655adantr 481 . . . . . . . . . 10 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ 𝑤 = ∅) → (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5738, 56eqeltrd 2698 . . . . . . . . 9 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5857adantlr 750 . . . . . . . 8 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
59 simplll 797 . . . . . . . . 9 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → 𝜑)
6040ad3antlr 766 . . . . . . . . 9 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → 𝑢𝐴)
61 neqne 2798 . . . . . . . . . . . 12 𝑤 = ∅ → 𝑤 ≠ ∅)
6261adantl 482 . . . . . . . . . . 11 (((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) ∧ ¬ 𝑤 = ∅) → 𝑤 ≠ ∅)
63 simpl 473 . . . . . . . . . . 11 (((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) ∧ ¬ 𝑤 = ∅) → (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷))
6462, 63mpd 15 . . . . . . . . . 10 (((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) ∧ ¬ 𝑤 = ∅) → 𝑥𝑤 𝐵𝐷)
6564adantll 749 . . . . . . . . 9 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → 𝑥𝑤 𝐵𝐷)
66533adant3 1079 . . . . . . . . . 10 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → 𝑢 / 𝑥𝐵𝐷)
67 simp3 1061 . . . . . . . . . 10 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → 𝑥𝑤 𝐵𝐷)
68 simp1 1059 . . . . . . . . . . 11 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → 𝜑)
6968, 67, 663jca 1240 . . . . . . . . . 10 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → (𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷))
70 eleq1 2686 . . . . . . . . . . . . . 14 (𝑧 = 𝑢 / 𝑥𝐵 → (𝑧𝐷𝑢 / 𝑥𝐵𝐷))
71703anbi3d 1402 . . . . . . . . . . . . 13 (𝑧 = 𝑢 / 𝑥𝐵 → ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) ↔ (𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷)))
72 uneq2 3744 . . . . . . . . . . . . . 14 (𝑧 = 𝑢 / 𝑥𝐵 → ( 𝑥𝑤 𝐵𝑧) = ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵))
7372eleq1d 2683 . . . . . . . . . . . . 13 (𝑧 = 𝑢 / 𝑥𝐵 → (( 𝑥𝑤 𝐵𝑧) ∈ 𝐷 ↔ ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷))
7471, 73imbi12d 334 . . . . . . . . . . . 12 (𝑧 = 𝑢 / 𝑥𝐵 → (((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷) ↔ ((𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)))
7574imbi2d 330 . . . . . . . . . . 11 (𝑧 = 𝑢 / 𝑥𝐵 → (( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷)) ↔ ( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷))))
76 eleq1 2686 . . . . . . . . . . . . . 14 (𝑦 = 𝑥𝑤 𝐵 → (𝑦𝐷 𝑥𝑤 𝐵𝐷))
77763anbi2d 1401 . . . . . . . . . . . . 13 (𝑦 = 𝑥𝑤 𝐵 → ((𝜑𝑦𝐷𝑧𝐷) ↔ (𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷)))
78 uneq1 3743 . . . . . . . . . . . . . 14 (𝑦 = 𝑥𝑤 𝐵 → (𝑦𝑧) = ( 𝑥𝑤 𝐵𝑧))
7978eleq1d 2683 . . . . . . . . . . . . 13 (𝑦 = 𝑥𝑤 𝐵 → ((𝑦𝑧) ∈ 𝐷 ↔ ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷))
8077, 79imbi12d 334 . . . . . . . . . . . 12 (𝑦 = 𝑥𝑤 𝐵 → (((𝜑𝑦𝐷𝑧𝐷) → (𝑦𝑧) ∈ 𝐷) ↔ ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷)))
81 fiiuncl.un . . . . . . . . . . . 12 ((𝜑𝑦𝐷𝑧𝐷) → (𝑦𝑧) ∈ 𝐷)
8280, 81vtoclg 3255 . . . . . . . . . . 11 ( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷))
8375, 82vtoclg 3255 . . . . . . . . . 10 (𝑢 / 𝑥𝐵𝐷 → ( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)))
8466, 67, 69, 83syl3c 66 . . . . . . . . 9 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
8559, 60, 65, 84syl3anc 1323 . . . . . . . 8 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
8658, 85pm2.61dan 831 . . . . . . 7 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
8727, 86syl5eqel 2702 . . . . . 6 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)
8887a1d 25 . . . . 5 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) → ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷))
8988ex 450 . . . 4 ((𝜑𝑢 ∈ (𝐴𝑤)) → ((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) → ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)))
9089adantrl 751 . . 3 ((𝜑 ∧ (𝑤𝐴𝑢 ∈ (𝐴𝑤))) → ((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) → ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)))
91 fiiuncl.a . . 3 (𝜑𝐴 ∈ Fin)
925, 9, 13, 17, 20, 90, 91findcard2d 8154 . 2 (𝜑 → (𝐴 ≠ ∅ → 𝑥𝐴 𝐵𝐷))
931, 92mpd 15 1 (𝜑 𝑥𝐴 𝐵𝐷)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 384  w3a 1036   = wceq 1480  wnf 1705  wcel 1987  wne 2790  csb 3518  cdif 3556  cun 3557  wss 3559  c0 3896  {csn 4153   ciun 4490  Fincfn 7907
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872  ax-un 6909
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-ral 2912  df-rex 2913  df-rab 2916  df-v 3191  df-sbc 3422  df-csb 3519  df-dif 3562  df-un 3564  df-in 3566  df-ss 3573  df-pss 3575  df-nul 3897  df-if 4064  df-pw 4137  df-sn 4154  df-pr 4156  df-tp 4158  df-op 4160  df-uni 4408  df-iun 4492  df-br 4619  df-opab 4679  df-tr 4718  df-eprel 4990  df-id 4994  df-po 5000  df-so 5001  df-fr 5038  df-we 5040  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-ord 5690  df-on 5691  df-lim 5692  df-suc 5693  df-iota 5815  df-fun 5854  df-fn 5855  df-f 5856  df-f1 5857  df-fo 5858  df-f1o 5859  df-fv 5860  df-om 7020  df-1o 7512  df-er 7694  df-en 7908  df-fin 7911
This theorem is referenced by:  fiunicl  38754  caragenfiiuncl  40062
  Copyright terms: Public domain W3C validator