MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  hashunx Structured version   Visualization version   GIF version

Theorem hashunx 14575
Description: The size of the union of disjoint sets is the result of the extended real addition of their sizes, analogous to hashun 14571. (Contributed by Alexander van der Vekens, 21-Dec-2017.)
Assertion
Ref Expression
hashunx ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ (𝐴 ∩ 𝐵) = ∅) → (♯‘(𝐴 ∪ 𝐵)) = ((♯‘𝐴) +e (♯‘𝐵)))

Proof of Theorem hashunx
StepHypRef Expression
1 hashun 14571 . . . . . 6 ((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin ∧ (𝐴 ∩ 𝐵) = ∅) → (♯‘(𝐴 ∪ 𝐵)) = ((♯‘𝐴) + (♯‘𝐵)))
213expa 1137 . . . . 5 (((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) ∧ (𝐴 ∩ 𝐵) = ∅) → (♯‘(𝐴 ∪ 𝐵)) = ((♯‘𝐴) + (♯‘𝐵)))
3 hashcl 14545 . . . . . . . . . 10 (𝐴 ∈ Fin → (♯‘𝐴) ∈ ℕ0)
43nn0red 12712 . . . . . . . . 9 (𝐴 ∈ Fin → (♯‘𝐴) ∈ ℝ)
5 hashcl 14545 . . . . . . . . . 10 (𝐵 ∈ Fin → (♯‘𝐵) ∈ ℕ0)
65nn0red 12712 . . . . . . . . 9 (𝐵 ∈ Fin → (♯‘𝐵) ∈ ℝ)
74, 6anim12i 625 . . . . . . . 8 ((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → ((♯‘𝐴) ∈ ℝ ∧ (♯‘𝐵) ∈ ℝ))
87adantr 486 . . . . . . 7 (((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) ∧ (𝐴 ∩ 𝐵) = ∅) → ((♯‘𝐴) ∈ ℝ ∧ (♯‘𝐵) ∈ ℝ))
9 rexadd 13406 . . . . . . 7 (((♯‘𝐴) ∈ ℝ ∧ (♯‘𝐵) ∈ ℝ) → ((♯‘𝐴) +e (♯‘𝐵)) = ((♯‘𝐴) + (♯‘𝐵)))
108, 9syl 18 . . . . . 6 (((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) ∧ (𝐴 ∩ 𝐵) = ∅) → ((♯‘𝐴) +e (♯‘𝐵)) = ((♯‘𝐴) + (♯‘𝐵)))
1110eqcomd 2775 . . . . 5 (((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) ∧ (𝐴 ∩ 𝐵) = ∅) → ((♯‘𝐴) + (♯‘𝐵)) = ((♯‘𝐴) +e (♯‘𝐵)))
122, 11eqtrd 2804 . . . 4 (((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) ∧ (𝐴 ∩ 𝐵) = ∅) → (♯‘(𝐴 ∪ 𝐵)) = ((♯‘𝐴) +e (♯‘𝐵)))
1312expcom 419 . . 3 ((𝐴 ∩ 𝐵) = ∅ → ((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → (♯‘(𝐴 ∪ 𝐵)) = ((♯‘𝐴) +e (♯‘𝐵))))
14133ad2ant3 1154 . 2 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ (𝐴 ∩ 𝐵) = ∅) → ((𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → (♯‘(𝐴 ∪ 𝐵)) = ((♯‘𝐴) +e (♯‘𝐵))))
15 unexg 7796 . . . . . 6 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → (𝐴 ∪ 𝐵) ∈ V)
16 unfir 9342 . . . . . . 7 ((𝐴 ∪ 𝐵) ∈ Fin → (𝐴 ∈ Fin ∧ 𝐵 ∈ Fin))
1716con3i 155 . . . . . 6 (¬ (𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → ¬ (𝐴 ∪ 𝐵) ∈ Fin)
18 hashinf 14524 . . . . . 6 (((𝐴 ∪ 𝐵) ∈ V ∧ ¬ (𝐴 ∪ 𝐵) ∈ Fin) → (♯‘(𝐴 ∪ 𝐵)) = +∞)
1915, 17, 18syl2anr 609 . . . . 5 ((¬ (𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → (♯‘(𝐴 ∪ 𝐵)) = +∞)
20 ianor 998 . . . . . . 7 (¬ (𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) ↔ (¬ 𝐴 ∈ Fin ∨ ¬ 𝐵 ∈ Fin))
21 simprl 783 . . . . . . . . . . 11 ((¬ 𝐴 ∈ Fin ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → 𝐴 ∈ 𝑉)
22 simprr 785 . . . . . . . . . . 11 ((¬ 𝐴 ∈ Fin ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → 𝐵 ∈ 𝑊)
23 hashnfinnn0 14550 . . . . . . . . . . . . . 14 ((𝐴 ∈ 𝑉 ∧ ¬ 𝐴 ∈ Fin) → (♯‘𝐴) ∉ ℕ0)
2423ex 418 . . . . . . . . . . . . 13 (𝐴 ∈ 𝑉 → (¬ 𝐴 ∈ Fin → (♯‘𝐴) ∉ ℕ0))
2524adantr 486 . . . . . . . . . . . 12 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → (¬ 𝐴 ∈ Fin → (♯‘𝐴) ∉ ℕ0))
2625impcom 413 . . . . . . . . . . 11 ((¬ 𝐴 ∈ Fin ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → (♯‘𝐴) ∉ ℕ0)
27 hashinfxadd 14574 . . . . . . . . . . 11 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ (♯‘𝐴) ∉ ℕ0) → ((♯‘𝐴) +e (♯‘𝐵)) = +∞)
2821, 22, 26, 27syl3anc 1401 . . . . . . . . . 10 ((¬ 𝐴 ∈ Fin ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → ((♯‘𝐴) +e (♯‘𝐵)) = +∞)
2928eqcomd 2775 . . . . . . . . 9 ((¬ 𝐴 ∈ Fin ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → +∞ = ((♯‘𝐴) +e (♯‘𝐵)))
3029ex 418 . . . . . . . 8 (¬ 𝐴 ∈ Fin → ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → +∞ = ((♯‘𝐴) +e (♯‘𝐵))))
31 hashxrcl 14546 . . . . . . . . . . . . . 14 (𝐴 ∈ 𝑉 → (♯‘𝐴) ∈ ℝ*)
32 hashxrcl 14546 . . . . . . . . . . . . . 14 (𝐵 ∈ 𝑊 → (♯‘𝐵) ∈ ℝ*)
3331, 32anim12i 625 . . . . . . . . . . . . 13 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → ((♯‘𝐴) ∈ ℝ* ∧ (♯‘𝐵) ∈ ℝ*))
3433adantl 487 . . . . . . . . . . . 12 ((¬ 𝐵 ∈ Fin ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → ((♯‘𝐴) ∈ ℝ* ∧ (♯‘𝐵) ∈ ℝ*))
35 xaddcom 13414 . . . . . . . . . . . 12 (((♯‘𝐴) ∈ ℝ* ∧ (♯‘𝐵) ∈ ℝ*) → ((♯‘𝐴) +e (♯‘𝐵)) = ((♯‘𝐵) +e (♯‘𝐴)))
3634, 35syl 18 . . . . . . . . . . 11 ((¬ 𝐵 ∈ Fin ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → ((♯‘𝐴) +e (♯‘𝐵)) = ((♯‘𝐵) +e (♯‘𝐴)))
37 simprr 785 . . . . . . . . . . . 12 ((¬ 𝐵 ∈ Fin ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → 𝐵 ∈ 𝑊)
38 simprl 783 . . . . . . . . . . . 12 ((¬ 𝐵 ∈ Fin ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → 𝐴 ∈ 𝑉)
39 hashnfinnn0 14550 . . . . . . . . . . . . . . 15 ((𝐵 ∈ 𝑊 ∧ ¬ 𝐵 ∈ Fin) → (♯‘𝐵) ∉ ℕ0)
4039ex 418 . . . . . . . . . . . . . 14 (𝐵 ∈ 𝑊 → (¬ 𝐵 ∈ Fin → (♯‘𝐵) ∉ ℕ0))
4140adantl 487 . . . . . . . . . . . . 13 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → (¬ 𝐵 ∈ Fin → (♯‘𝐵) ∉ ℕ0))
4241impcom 413 . . . . . . . . . . . 12 ((¬ 𝐵 ∈ Fin ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → (♯‘𝐵) ∉ ℕ0)
43 hashinfxadd 14574 . . . . . . . . . . . 12 ((𝐵 ∈ 𝑊 ∧ 𝐴 ∈ 𝑉 ∧ (♯‘𝐵) ∉ ℕ0) → ((♯‘𝐵) +e (♯‘𝐴)) = +∞)
4437, 38, 42, 43syl3anc 1401 . . . . . . . . . . 11 ((¬ 𝐵 ∈ Fin ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → ((♯‘𝐵) +e (♯‘𝐴)) = +∞)
4536, 44eqtrd 2804 . . . . . . . . . 10 ((¬ 𝐵 ∈ Fin ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → ((♯‘𝐴) +e (♯‘𝐵)) = +∞)
4645eqcomd 2775 . . . . . . . . 9 ((¬ 𝐵 ∈ Fin ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → +∞ = ((♯‘𝐴) +e (♯‘𝐵)))
4746ex 418 . . . . . . . 8 (¬ 𝐵 ∈ Fin → ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → +∞ = ((♯‘𝐴) +e (♯‘𝐵))))
4830, 47jaoi 871 . . . . . . 7 ((¬ 𝐴 ∈ Fin ∨ ¬ 𝐵 ∈ Fin) → ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → +∞ = ((♯‘𝐴) +e (♯‘𝐵))))
4920, 48sylbi 220 . . . . . 6 (¬ (𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → +∞ = ((♯‘𝐴) +e (♯‘𝐵))))
5049imp 412 . . . . 5 ((¬ (𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → +∞ = ((♯‘𝐴) +e (♯‘𝐵)))
5119, 50eqtrd 2804 . . . 4 ((¬ (𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) ∧ (𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊)) → (♯‘(𝐴 ∪ 𝐵)) = ((♯‘𝐴) +e (♯‘𝐵)))
5251expcom 419 . . 3 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊) → (¬ (𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → (♯‘(𝐴 ∪ 𝐵)) = ((♯‘𝐴) +e (♯‘𝐵))))
53523adant3 1151 . 2 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ (𝐴 ∩ 𝐵) = ∅) → (¬ (𝐴 ∈ Fin ∧ 𝐵 ∈ Fin) → (♯‘(𝐴 ∪ 𝐵)) = ((♯‘𝐴) +e (♯‘𝐵))))
5414, 53pm2.61d 181 1 ((𝐴 ∈ 𝑉 ∧ 𝐵 ∈ 𝑊 ∧ (𝐴 ∩ 𝐵) = ∅) → (♯‘(𝐴 ∪ 𝐵)) = ((♯‘𝐴) +e (♯‘𝐵)))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   ∨ wo 861   ∧ w3a 1104   = wceq 1572   ∈ wcel 2151   ∉ wnel 3071  Vcvv 3456   ∩ cin 4094   ∪ cun 4154  ∅c0 4283  ‘cfv 6570  (class class class)co 7455  Fincfn 9015  ℝcr 11242   + caddc 11246  +∞cpnf 11383  ℝ*cxr 11385  ℕ0cn0 12650   +e cxad 13283  ♯chash 14519
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-sep 5258  ax-nul 5269  ax-pow 5337  ax-pr 5401  ax-un 7787  ax-cnex 11299  ax-resscn 11300  ax-1cn 11301  ax-icn 11302  ax-addcl 11303  ax-addrcl 11304  ax-mulcl 11305  ax-mulrcl 11306  ax-mulcom 11307  ax-addass 11308  ax-mulass 11309  ax-distr 11310  ax-i2m1 11311  ax-1ne0 11312  ax-1rid 11313  ax-rnegex 11314  ax-rrecex 11315  ax-cnre 11316  ax-pre-lttri 11317  ax-pre-lttrn 11318  ax-pre-ltadd 11319  ax-pre-mulgt0 11320
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-nel 3072  df-ral 3087  df-rex 3097  df-reu 3372  df-rab 3419  df-v 3458  df-sbc 3745  df-csb 3854  df-ss 3903  df-pss 4019  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-pw 4564  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-int 4916  df-iun 4961  df-br 5112  df-opab 5177  df-mpt 5196  df-tr 5222  df-id 5556  df-eprel 5561  df-po 5569  df-so 5570  df-fr 5614  df-we 5616  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-pred 6334  df-ord 6395  df-on 6396  df-lim 6397  df-suc 6398  df-iota 6524  df-fun 6572  df-fn 6573  df-f 6574  df-f1 6575  df-fo 6576  df-f1o 6577  df-fv 6578  df-riota 7412  df-ov 7458  df-oprab 7459  df-mpo 7460  df-om 7916  df-1st 8039  df-2nd 8040  df-frecs 8341  df-wrecs 8372  df-recs 8421  df-rdg 8460  df-1o 8518  df-oadd 8522  df-er 8759  df-en 9016  df-dom 9017  df-sdom 9018  df-fin 9019  df-dju 10023  df-card 10061  df-pnf 11388  df-mnf 11389  df-xr 11390  df-ltxr 11391  df-le 11392  df-sub 11586  df-neg 11587  df-nn 12380  df-n0 12651  df-xnn0 12724  df-z 12738  df-uz 13010  df-xadd 13286  df-hash 14520
This theorem is used by:  hashunsngx  14582  vtxdun  30132  vtxdginducedm1  30194  dimkerim  34381
  Copyright terms: Public domain W3C validator