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 42502
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 3005 . . . 4 (𝑣 = ∅ → (𝑣 ≠ ∅ ↔ ∅ ≠ ∅))
3 iuneq1 4937 . . . . 5 (𝑣 = ∅ → 𝑥𝑣 𝐵 = 𝑥 ∈ ∅ 𝐵)
43eleq1d 2823 . . . 4 (𝑣 = ∅ → ( 𝑥𝑣 𝐵𝐷 𝑥 ∈ ∅ 𝐵𝐷))
52, 4imbi12d 344 . . 3 (𝑣 = ∅ → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ (∅ ≠ ∅ → 𝑥 ∈ ∅ 𝐵𝐷)))
6 neeq1 3005 . . . 4 (𝑣 = 𝑤 → (𝑣 ≠ ∅ ↔ 𝑤 ≠ ∅))
7 iuneq1 4937 . . . . 5 (𝑣 = 𝑤 𝑥𝑣 𝐵 = 𝑥𝑤 𝐵)
87eleq1d 2823 . . . 4 (𝑣 = 𝑤 → ( 𝑥𝑣 𝐵𝐷 𝑥𝑤 𝐵𝐷))
96, 8imbi12d 344 . . 3 (𝑣 = 𝑤 → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)))
10 neeq1 3005 . . . 4 (𝑣 = (𝑤 ∪ {𝑢}) → (𝑣 ≠ ∅ ↔ (𝑤 ∪ {𝑢}) ≠ ∅))
11 iuneq1 4937 . . . . 5 (𝑣 = (𝑤 ∪ {𝑢}) → 𝑥𝑣 𝐵 = 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵)
1211eleq1d 2823 . . . 4 (𝑣 = (𝑤 ∪ {𝑢}) → ( 𝑥𝑣 𝐵𝐷 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷))
1310, 12imbi12d 344 . . 3 (𝑣 = (𝑤 ∪ {𝑢}) → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)))
14 neeq1 3005 . . . 4 (𝑣 = 𝐴 → (𝑣 ≠ ∅ ↔ 𝐴 ≠ ∅))
15 iuneq1 4937 . . . . 5 (𝑣 = 𝐴 𝑥𝑣 𝐵 = 𝑥𝐴 𝐵)
1615eleq1d 2823 . . . 4 (𝑣 = 𝐴 → ( 𝑥𝑣 𝐵𝐷 𝑥𝐴 𝐵𝐷))
1714, 16imbi12d 344 . . 3 (𝑣 = 𝐴 → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ (𝐴 ≠ ∅ → 𝑥𝐴 𝐵𝐷)))
18 neirr 2951 . . . . 5 ¬ ∅ ≠ ∅
1918pm2.21i 119 . . . 4 (∅ ≠ ∅ → 𝑥 ∈ ∅ 𝐵𝐷)
2019a1i 11 . . 3 (𝜑 → (∅ ≠ ∅ → 𝑥 ∈ ∅ 𝐵𝐷))
21 iunxun 5019 . . . . . . . 8 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵 = ( 𝑥𝑤 𝐵 𝑥 ∈ {𝑢}𝐵)
22 nfcsb1v 3853 . . . . . . . . . 10 𝑥𝑢 / 𝑥𝐵
23 vex 3426 . . . . . . . . . 10 𝑢 ∈ V
24 csbeq1a 3842 . . . . . . . . . 10 (𝑥 = 𝑢𝐵 = 𝑢 / 𝑥𝐵)
2522, 23, 24iunxsnf 42501 . . . . . . . . 9 𝑥 ∈ {𝑢}𝐵 = 𝑢 / 𝑥𝐵
2625uneq2i 4090 . . . . . . . 8 ( 𝑥𝑤 𝐵 𝑥 ∈ {𝑢}𝐵) = ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵)
2721, 26eqtri 2766 . . . . . . 7 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵 = ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵)
28 iuneq1 4937 . . . . . . . . . . . . . 14 (𝑤 = ∅ → 𝑥𝑤 𝐵 = 𝑥 ∈ ∅ 𝐵)
29 0iun 4988 . . . . . . . . . . . . . . 15 𝑥 ∈ ∅ 𝐵 = ∅
3029a1i 11 . . . . . . . . . . . . . 14 (𝑤 = ∅ → 𝑥 ∈ ∅ 𝐵 = ∅)
3128, 30eqtrd 2778 . . . . . . . . . . . . 13 (𝑤 = ∅ → 𝑥𝑤 𝐵 = ∅)
3231uneq1d 4092 . . . . . . . . . . . 12 (𝑤 = ∅ → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) = (∅ ∪ 𝑢 / 𝑥𝐵))
33 0un 4323 . . . . . . . . . . . . . 14 (∅ ∪ 𝑢 / 𝑥𝐵) = 𝑢 / 𝑥𝐵
34 unidm 4082 . . . . . . . . . . . . . 14 (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) = 𝑢 / 𝑥𝐵
3533, 34eqtr4i 2769 . . . . . . . . . . . . 13 (∅ ∪ 𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵)
3635a1i 11 . . . . . . . . . . . 12 (𝑤 = ∅ → (∅ ∪ 𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵))
3732, 36eqtrd 2778 . . . . . . . . . . 11 (𝑤 = ∅ → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵))
3837adantl 481 . . . . . . . . . 10 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵))
39 simpl 482 . . . . . . . . . . . 12 ((𝜑𝑢 ∈ (𝐴𝑤)) → 𝜑)
40 eldifi 4057 . . . . . . . . . . . . 13 (𝑢 ∈ (𝐴𝑤) → 𝑢𝐴)
4140adantl 481 . . . . . . . . . . . 12 ((𝜑𝑢 ∈ (𝐴𝑤)) → 𝑢𝐴)
42 fiiuncl.xph . . . . . . . . . . . . . . . 16 𝑥𝜑
43 nfv 1918 . . . . . . . . . . . . . . . 16 𝑥 𝑢𝐴
4442, 43nfan 1903 . . . . . . . . . . . . . . 15 𝑥(𝜑𝑢𝐴)
45 nfcv 2906 . . . . . . . . . . . . . . . 16 𝑥𝐷
4622, 45nfel 2920 . . . . . . . . . . . . . . 15 𝑥𝑢 / 𝑥𝐵𝐷
4744, 46nfim 1900 . . . . . . . . . . . . . 14 𝑥((𝜑𝑢𝐴) → 𝑢 / 𝑥𝐵𝐷)
48 eleq1 2826 . . . . . . . . . . . . . . . 16 (𝑥 = 𝑢 → (𝑥𝐴𝑢𝐴))
4948anbi2d 628 . . . . . . . . . . . . . . 15 (𝑥 = 𝑢 → ((𝜑𝑥𝐴) ↔ (𝜑𝑢𝐴)))
5024eleq1d 2823 . . . . . . . . . . . . . . 15 (𝑥 = 𝑢 → (𝐵𝐷𝑢 / 𝑥𝐵𝐷))
5149, 50imbi12d 344 . . . . . . . . . . . . . 14 (𝑥 = 𝑢 → (((𝜑𝑥𝐴) → 𝐵𝐷) ↔ ((𝜑𝑢𝐴) → 𝑢 / 𝑥𝐵𝐷)))
52 fiiuncl.b . . . . . . . . . . . . . 14 ((𝜑𝑥𝐴) → 𝐵𝐷)
5347, 51, 52chvarfv 2236 . . . . . . . . . . . . 13 ((𝜑𝑢𝐴) → 𝑢 / 𝑥𝐵𝐷)
5434, 53eqeltrid 2843 . . . . . . . . . . . 12 ((𝜑𝑢𝐴) → (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5539, 41, 54syl2anc 583 . . . . . . . . . . 11 ((𝜑𝑢 ∈ (𝐴𝑤)) → (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5655adantr 480 . . . . . . . . . 10 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ 𝑤 = ∅) → (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5738, 56eqeltrd 2839 . . . . . . . . 9 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5857adantlr 711 . . . . . . . 8 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
59 simplll 771 . . . . . . . . 9 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → 𝜑)
6040ad3antlr 727 . . . . . . . . 9 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → 𝑢𝐴)
61 neqne 2950 . . . . . . . . . . . 12 𝑤 = ∅ → 𝑤 ≠ ∅)
6261adantl 481 . . . . . . . . . . 11 (((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) ∧ ¬ 𝑤 = ∅) → 𝑤 ≠ ∅)
63 simpl 482 . . . . . . . . . . 11 (((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) ∧ ¬ 𝑤 = ∅) → (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷))
6462, 63mpd 15 . . . . . . . . . 10 (((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) ∧ ¬ 𝑤 = ∅) → 𝑥𝑤 𝐵𝐷)
6564adantll 710 . . . . . . . . 9 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → 𝑥𝑤 𝐵𝐷)
66533adant3 1130 . . . . . . . . . 10 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → 𝑢 / 𝑥𝐵𝐷)
67 simp3 1136 . . . . . . . . . 10 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → 𝑥𝑤 𝐵𝐷)
68 simp1 1134 . . . . . . . . . . 11 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → 𝜑)
6968, 67, 663jca 1126 . . . . . . . . . 10 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → (𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷))
70 eleq1 2826 . . . . . . . . . . . . . 14 (𝑧 = 𝑢 / 𝑥𝐵 → (𝑧𝐷𝑢 / 𝑥𝐵𝐷))
71703anbi3d 1440 . . . . . . . . . . . . 13 (𝑧 = 𝑢 / 𝑥𝐵 → ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) ↔ (𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷)))
72 uneq2 4087 . . . . . . . . . . . . . 14 (𝑧 = 𝑢 / 𝑥𝐵 → ( 𝑥𝑤 𝐵𝑧) = ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵))
7372eleq1d 2823 . . . . . . . . . . . . 13 (𝑧 = 𝑢 / 𝑥𝐵 → (( 𝑥𝑤 𝐵𝑧) ∈ 𝐷 ↔ ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷))
7471, 73imbi12d 344 . . . . . . . . . . . 12 (𝑧 = 𝑢 / 𝑥𝐵 → (((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷) ↔ ((𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)))
7574imbi2d 340 . . . . . . . . . . 11 (𝑧 = 𝑢 / 𝑥𝐵 → (( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷)) ↔ ( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷))))
76 eleq1 2826 . . . . . . . . . . . . . 14 (𝑦 = 𝑥𝑤 𝐵 → (𝑦𝐷 𝑥𝑤 𝐵𝐷))
77763anbi2d 1439 . . . . . . . . . . . . 13 (𝑦 = 𝑥𝑤 𝐵 → ((𝜑𝑦𝐷𝑧𝐷) ↔ (𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷)))
78 uneq1 4086 . . . . . . . . . . . . . 14 (𝑦 = 𝑥𝑤 𝐵 → (𝑦𝑧) = ( 𝑥𝑤 𝐵𝑧))
7978eleq1d 2823 . . . . . . . . . . . . 13 (𝑦 = 𝑥𝑤 𝐵 → ((𝑦𝑧) ∈ 𝐷 ↔ ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷))
8077, 79imbi12d 344 . . . . . . . . . . . 12 (𝑦 = 𝑥𝑤 𝐵 → (((𝜑𝑦𝐷𝑧𝐷) → (𝑦𝑧) ∈ 𝐷) ↔ ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷)))
81 fiiuncl.un . . . . . . . . . . . 12 ((𝜑𝑦𝐷𝑧𝐷) → (𝑦𝑧) ∈ 𝐷)
8280, 81vtoclg 3495 . . . . . . . . . . 11 ( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷))
8375, 82vtoclg 3495 . . . . . . . . . 10 (𝑢 / 𝑥𝐵𝐷 → ( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)))
8466, 67, 69, 83syl3c 66 . . . . . . . . 9 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
8559, 60, 65, 84syl3anc 1369 . . . . . . . 8 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
8658, 85pm2.61dan 809 . . . . . . 7 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
8727, 86eqeltrid 2843 . . . . . 6 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)
8887a1d 25 . . . . 5 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) → ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷))
8988ex 412 . . . 4 ((𝜑𝑢 ∈ (𝐴𝑤)) → ((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) → ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)))
9089adantrl 712 . . 3 ((𝜑 ∧ (𝑤𝐴𝑢 ∈ (𝐴𝑤))) → ((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) → ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)))
91 fiiuncl.a . . 3 (𝜑𝐴 ∈ Fin)
925, 9, 13, 17, 20, 90, 91findcard2d 8911 . 2 (𝜑 → (𝐴 ≠ ∅ → 𝑥𝐴 𝐵𝐷))
931, 92mpd 15 1 (𝜑 𝑥𝐴 𝐵𝐷)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395  w3a 1085   = wceq 1539  wnf 1787  wcel 2108  wne 2942  csb 3828  cdif 3880  cun 3881  wss 3883  c0 4253  {csn 4558   ciun 4921  Fincfn 8691
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-om 7688  df-en 8692  df-fin 8695
This theorem is referenced by:  fiunicl  42504  caragenfiiuncl  43943
  Copyright terms: Public domain W3C validator