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 42583
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 3008 . . . 4 (𝑣 = ∅ → (𝑣 ≠ ∅ ↔ ∅ ≠ ∅))
3 iuneq1 4946 . . . . 5 (𝑣 = ∅ → 𝑥𝑣 𝐵 = 𝑥 ∈ ∅ 𝐵)
43eleq1d 2825 . . . 4 (𝑣 = ∅ → ( 𝑥𝑣 𝐵𝐷 𝑥 ∈ ∅ 𝐵𝐷))
52, 4imbi12d 345 . . 3 (𝑣 = ∅ → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ (∅ ≠ ∅ → 𝑥 ∈ ∅ 𝐵𝐷)))
6 neeq1 3008 . . . 4 (𝑣 = 𝑤 → (𝑣 ≠ ∅ ↔ 𝑤 ≠ ∅))
7 iuneq1 4946 . . . . 5 (𝑣 = 𝑤 𝑥𝑣 𝐵 = 𝑥𝑤 𝐵)
87eleq1d 2825 . . . 4 (𝑣 = 𝑤 → ( 𝑥𝑣 𝐵𝐷 𝑥𝑤 𝐵𝐷))
96, 8imbi12d 345 . . 3 (𝑣 = 𝑤 → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)))
10 neeq1 3008 . . . 4 (𝑣 = (𝑤 ∪ {𝑢}) → (𝑣 ≠ ∅ ↔ (𝑤 ∪ {𝑢}) ≠ ∅))
11 iuneq1 4946 . . . . 5 (𝑣 = (𝑤 ∪ {𝑢}) → 𝑥𝑣 𝐵 = 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵)
1211eleq1d 2825 . . . 4 (𝑣 = (𝑤 ∪ {𝑢}) → ( 𝑥𝑣 𝐵𝐷 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷))
1310, 12imbi12d 345 . . 3 (𝑣 = (𝑤 ∪ {𝑢}) → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)))
14 neeq1 3008 . . . 4 (𝑣 = 𝐴 → (𝑣 ≠ ∅ ↔ 𝐴 ≠ ∅))
15 iuneq1 4946 . . . . 5 (𝑣 = 𝐴 𝑥𝑣 𝐵 = 𝑥𝐴 𝐵)
1615eleq1d 2825 . . . 4 (𝑣 = 𝐴 → ( 𝑥𝑣 𝐵𝐷 𝑥𝐴 𝐵𝐷))
1714, 16imbi12d 345 . . 3 (𝑣 = 𝐴 → ((𝑣 ≠ ∅ → 𝑥𝑣 𝐵𝐷) ↔ (𝐴 ≠ ∅ → 𝑥𝐴 𝐵𝐷)))
18 neirr 2954 . . . . 5 ¬ ∅ ≠ ∅
1918pm2.21i 119 . . . 4 (∅ ≠ ∅ → 𝑥 ∈ ∅ 𝐵𝐷)
2019a1i 11 . . 3 (𝜑 → (∅ ≠ ∅ → 𝑥 ∈ ∅ 𝐵𝐷))
21 iunxun 5028 . . . . . . . 8 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵 = ( 𝑥𝑤 𝐵 𝑥 ∈ {𝑢}𝐵)
22 nfcsb1v 3862 . . . . . . . . . 10 𝑥𝑢 / 𝑥𝐵
23 vex 3435 . . . . . . . . . 10 𝑢 ∈ V
24 csbeq1a 3851 . . . . . . . . . 10 (𝑥 = 𝑢𝐵 = 𝑢 / 𝑥𝐵)
2522, 23, 24iunxsnf 42582 . . . . . . . . 9 𝑥 ∈ {𝑢}𝐵 = 𝑢 / 𝑥𝐵
2625uneq2i 4099 . . . . . . . 8 ( 𝑥𝑤 𝐵 𝑥 ∈ {𝑢}𝐵) = ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵)
2721, 26eqtri 2768 . . . . . . 7 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵 = ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵)
28 iuneq1 4946 . . . . . . . . . . . . . 14 (𝑤 = ∅ → 𝑥𝑤 𝐵 = 𝑥 ∈ ∅ 𝐵)
29 0iun 4997 . . . . . . . . . . . . . . 15 𝑥 ∈ ∅ 𝐵 = ∅
3029a1i 11 . . . . . . . . . . . . . 14 (𝑤 = ∅ → 𝑥 ∈ ∅ 𝐵 = ∅)
3128, 30eqtrd 2780 . . . . . . . . . . . . 13 (𝑤 = ∅ → 𝑥𝑤 𝐵 = ∅)
3231uneq1d 4101 . . . . . . . . . . . 12 (𝑤 = ∅ → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) = (∅ ∪ 𝑢 / 𝑥𝐵))
33 0un 4332 . . . . . . . . . . . . . 14 (∅ ∪ 𝑢 / 𝑥𝐵) = 𝑢 / 𝑥𝐵
34 unidm 4091 . . . . . . . . . . . . . 14 (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) = 𝑢 / 𝑥𝐵
3533, 34eqtr4i 2771 . . . . . . . . . . . . 13 (∅ ∪ 𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵)
3635a1i 11 . . . . . . . . . . . 12 (𝑤 = ∅ → (∅ ∪ 𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵))
3732, 36eqtrd 2780 . . . . . . . . . . 11 (𝑤 = ∅ → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵))
3837adantl 482 . . . . . . . . . 10 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) = (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵))
39 simpl 483 . . . . . . . . . . . 12 ((𝜑𝑢 ∈ (𝐴𝑤)) → 𝜑)
40 eldifi 4066 . . . . . . . . . . . . 13 (𝑢 ∈ (𝐴𝑤) → 𝑢𝐴)
4140adantl 482 . . . . . . . . . . . 12 ((𝜑𝑢 ∈ (𝐴𝑤)) → 𝑢𝐴)
42 fiiuncl.xph . . . . . . . . . . . . . . . 16 𝑥𝜑
43 nfv 1921 . . . . . . . . . . . . . . . 16 𝑥 𝑢𝐴
4442, 43nfan 1906 . . . . . . . . . . . . . . 15 𝑥(𝜑𝑢𝐴)
45 nfcv 2909 . . . . . . . . . . . . . . . 16 𝑥𝐷
4622, 45nfel 2923 . . . . . . . . . . . . . . 15 𝑥𝑢 / 𝑥𝐵𝐷
4744, 46nfim 1903 . . . . . . . . . . . . . 14 𝑥((𝜑𝑢𝐴) → 𝑢 / 𝑥𝐵𝐷)
48 eleq1 2828 . . . . . . . . . . . . . . . 16 (𝑥 = 𝑢 → (𝑥𝐴𝑢𝐴))
4948anbi2d 629 . . . . . . . . . . . . . . 15 (𝑥 = 𝑢 → ((𝜑𝑥𝐴) ↔ (𝜑𝑢𝐴)))
5024eleq1d 2825 . . . . . . . . . . . . . . 15 (𝑥 = 𝑢 → (𝐵𝐷𝑢 / 𝑥𝐵𝐷))
5149, 50imbi12d 345 . . . . . . . . . . . . . 14 (𝑥 = 𝑢 → (((𝜑𝑥𝐴) → 𝐵𝐷) ↔ ((𝜑𝑢𝐴) → 𝑢 / 𝑥𝐵𝐷)))
52 fiiuncl.b . . . . . . . . . . . . . 14 ((𝜑𝑥𝐴) → 𝐵𝐷)
5347, 51, 52chvarfv 2237 . . . . . . . . . . . . 13 ((𝜑𝑢𝐴) → 𝑢 / 𝑥𝐵𝐷)
5434, 53eqeltrid 2845 . . . . . . . . . . . 12 ((𝜑𝑢𝐴) → (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5539, 41, 54syl2anc 584 . . . . . . . . . . 11 ((𝜑𝑢 ∈ (𝐴𝑤)) → (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5655adantr 481 . . . . . . . . . 10 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ 𝑤 = ∅) → (𝑢 / 𝑥𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5738, 56eqeltrd 2841 . . . . . . . . 9 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
5857adantlr 712 . . . . . . . 8 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
59 simplll 772 . . . . . . . . 9 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → 𝜑)
6040ad3antlr 728 . . . . . . . . 9 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → 𝑢𝐴)
61 neqne 2953 . . . . . . . . . . . 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 2828 . . . . . . . . . . . . . 14 (𝑧 = 𝑢 / 𝑥𝐵 → (𝑧𝐷𝑢 / 𝑥𝐵𝐷))
71703anbi3d 1441 . . . . . . . . . . . . 13 (𝑧 = 𝑢 / 𝑥𝐵 → ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) ↔ (𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷)))
72 uneq2 4096 . . . . . . . . . . . . . 14 (𝑧 = 𝑢 / 𝑥𝐵 → ( 𝑥𝑤 𝐵𝑧) = ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵))
7372eleq1d 2825 . . . . . . . . . . . . 13 (𝑧 = 𝑢 / 𝑥𝐵 → (( 𝑥𝑤 𝐵𝑧) ∈ 𝐷 ↔ ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷))
7471, 73imbi12d 345 . . . . . . . . . . . 12 (𝑧 = 𝑢 / 𝑥𝐵 → (((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷) ↔ ((𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)))
7574imbi2d 341 . . . . . . . . . . 11 (𝑧 = 𝑢 / 𝑥𝐵 → (( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷)) ↔ ( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷))))
76 eleq1 2828 . . . . . . . . . . . . . 14 (𝑦 = 𝑥𝑤 𝐵 → (𝑦𝐷 𝑥𝑤 𝐵𝐷))
77763anbi2d 1440 . . . . . . . . . . . . 13 (𝑦 = 𝑥𝑤 𝐵 → ((𝜑𝑦𝐷𝑧𝐷) ↔ (𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷)))
78 uneq1 4095 . . . . . . . . . . . . . 14 (𝑦 = 𝑥𝑤 𝐵 → (𝑦𝑧) = ( 𝑥𝑤 𝐵𝑧))
7978eleq1d 2825 . . . . . . . . . . . . 13 (𝑦 = 𝑥𝑤 𝐵 → ((𝑦𝑧) ∈ 𝐷 ↔ ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷))
8077, 79imbi12d 345 . . . . . . . . . . . 12 (𝑦 = 𝑥𝑤 𝐵 → (((𝜑𝑦𝐷𝑧𝐷) → (𝑦𝑧) ∈ 𝐷) ↔ ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷)))
81 fiiuncl.un . . . . . . . . . . . 12 ((𝜑𝑦𝐷𝑧𝐷) → (𝑦𝑧) ∈ 𝐷)
8280, 81vtoclg 3504 . . . . . . . . . . 11 ( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑧𝐷) → ( 𝑥𝑤 𝐵𝑧) ∈ 𝐷))
8375, 82vtoclg 3504 . . . . . . . . . 10 (𝑢 / 𝑥𝐵𝐷 → ( 𝑥𝑤 𝐵𝐷 → ((𝜑 𝑥𝑤 𝐵𝐷𝑢 / 𝑥𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)))
8466, 67, 69, 83syl3c 66 . . . . . . . . 9 ((𝜑𝑢𝐴 𝑥𝑤 𝐵𝐷) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
8559, 60, 65, 84syl3anc 1370 . . . . . . . 8 ((((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) ∧ ¬ 𝑤 = ∅) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
8658, 85pm2.61dan 810 . . . . . . 7 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) → ( 𝑥𝑤 𝐵𝑢 / 𝑥𝐵) ∈ 𝐷)
8727, 86eqeltrid 2845 . . . . . 6 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)
8887a1d 25 . . . . 5 (((𝜑𝑢 ∈ (𝐴𝑤)) ∧ (𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷)) → ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷))
8988ex 413 . . . 4 ((𝜑𝑢 ∈ (𝐴𝑤)) → ((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) → ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)))
9089adantrl 713 . . 3 ((𝜑 ∧ (𝑤𝐴𝑢 ∈ (𝐴𝑤))) → ((𝑤 ≠ ∅ → 𝑥𝑤 𝐵𝐷) → ((𝑤 ∪ {𝑢}) ≠ ∅ → 𝑥 ∈ (𝑤 ∪ {𝑢})𝐵𝐷)))
91 fiiuncl.a . . 3 (𝜑𝐴 ∈ Fin)
925, 9, 13, 17, 20, 90, 91findcard2d 8931 . 2 (𝜑 → (𝐴 ≠ ∅ → 𝑥𝐴 𝐵𝐷))
931, 92mpd 15 1 (𝜑 𝑥𝐴 𝐵𝐷)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396  w3a 1086   = wceq 1542  wnf 1790  wcel 2110  wne 2945  csb 3837  cdif 3889  cun 3890  wss 3892  c0 4262  {csn 4567   ciun 4930  Fincfn 8716
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1917  ax-6 1975  ax-7 2015  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2711  ax-sep 5227  ax-nul 5234  ax-pr 5356  ax-un 7582
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2072  df-mo 2542  df-eu 2571  df-clab 2718  df-cleq 2732  df-clel 2818  df-nfc 2891  df-ne 2946  df-ral 3071  df-rex 3072  df-reu 3073  df-rab 3075  df-v 3433  df-sbc 3721  df-csb 3838  df-dif 3895  df-un 3897  df-in 3899  df-ss 3909  df-pss 3911  df-nul 4263  df-if 4466  df-pw 4541  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4846  df-iun 4932  df-br 5080  df-opab 5142  df-tr 5197  df-id 5490  df-eprel 5496  df-po 5504  df-so 5505  df-fr 5545  df-we 5547  df-xp 5596  df-rel 5597  df-cnv 5598  df-co 5599  df-dm 5600  df-rn 5601  df-res 5602  df-ima 5603  df-ord 6268  df-on 6269  df-lim 6270  df-suc 6271  df-iota 6390  df-fun 6434  df-fn 6435  df-f 6436  df-f1 6437  df-fo 6438  df-f1o 6439  df-fv 6440  df-om 7707  df-en 8717  df-fin 8720
This theorem is referenced by:  fiunicl  42585  caragenfiiuncl  44024
  Copyright terms: Public domain W3C validator