| Intuitionistic Logic Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > ILE Home > Th. List > hashunsng | GIF version | ||
| Description: The size of the union of a finite set with a disjoint singleton is one more than the size of the set. (Contributed by Paul Chapman, 30-Nov-2012.) |
| Ref | Expression |
|---|---|
| hashunsng | ⊢ (𝐵 ∈ 𝑉 → ((𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ 𝐴) → (♯‘(𝐴 ∪ {𝐵})) = ((♯‘𝐴) + 1))) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | simpll 527 | . . . 4 ⊢ (((𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ 𝐴) ∧ 𝐵 ∈ 𝑉) → 𝐴 ∈ Fin) | |
| 2 | snfig 7071 | . . . . 5 ⊢ (𝐵 ∈ 𝑉 → {𝐵} ∈ Fin) | |
| 3 | 2 | adantl 277 | . . . 4 ⊢ (((𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ 𝐴) ∧ 𝐵 ∈ 𝑉) → {𝐵} ∈ Fin) |
| 4 | simplr 529 | . . . . 5 ⊢ (((𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ 𝐴) ∧ 𝐵 ∈ 𝑉) → ¬ 𝐵 ∈ 𝐴) | |
| 5 | disjsn 3757 | . . . . 5 ⊢ ((𝐴 ∩ {𝐵}) = ∅ ↔ ¬ 𝐵 ∈ 𝐴) | |
| 6 | 4, 5 | sylibr 134 | . . . 4 ⊢ (((𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ 𝐴) ∧ 𝐵 ∈ 𝑉) → (𝐴 ∩ {𝐵}) = ∅) |
| 7 | hashun 11199 | . . . 4 ⊢ ((𝐴 ∈ Fin ∧ {𝐵} ∈ Fin ∧ (𝐴 ∩ {𝐵}) = ∅) → (♯‘(𝐴 ∪ {𝐵})) = ((♯‘𝐴) + (♯‘{𝐵}))) | |
| 8 | 1, 3, 6, 7 | syl3anc 1274 | . . 3 ⊢ (((𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ 𝐴) ∧ 𝐵 ∈ 𝑉) → (♯‘(𝐴 ∪ {𝐵})) = ((♯‘𝐴) + (♯‘{𝐵}))) |
| 9 | hashsng 11191 | . . . . 5 ⊢ (𝐵 ∈ 𝑉 → (♯‘{𝐵}) = 1) | |
| 10 | 9 | oveq2d 6076 | . . . 4 ⊢ (𝐵 ∈ 𝑉 → ((♯‘𝐴) + (♯‘{𝐵})) = ((♯‘𝐴) + 1)) |
| 11 | 10 | adantl 277 | . . 3 ⊢ (((𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ 𝐴) ∧ 𝐵 ∈ 𝑉) → ((♯‘𝐴) + (♯‘{𝐵})) = ((♯‘𝐴) + 1)) |
| 12 | 8, 11 | eqtrd 2267 | . 2 ⊢ (((𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ 𝐴) ∧ 𝐵 ∈ 𝑉) → (♯‘(𝐴 ∪ {𝐵})) = ((♯‘𝐴) + 1)) |
| 13 | 12 | expcom 116 | 1 ⊢ (𝐵 ∈ 𝑉 → ((𝐴 ∈ Fin ∧ ¬ 𝐵 ∈ 𝐴) → (♯‘(𝐴 ∪ {𝐵})) = ((♯‘𝐴) + 1))) |
| Colors of variables: wff set class |
| Syntax hints: ¬ wn 3 → wi 4 ∧ wa 104 = wceq 1398 ∈ wcel 2205 ∪ cun 3212 ∩ cin 3213 ∅c0 3512 {csn 3695 ‘cfv 5359 (class class class)co 6060 Fincfn 6990 1c1 8146 + caddc 8148 ♯chash 11168 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-ia1 106 ax-ia2 107 ax-ia3 108 ax-in1 619 ax-in2 620 ax-io 717 ax-5 1496 ax-7 1497 ax-gen 1498 ax-ie1 1542 ax-ie2 1543 ax-8 1553 ax-10 1554 ax-11 1555 ax-i12 1556 ax-bndl 1558 ax-4 1559 ax-17 1575 ax-i9 1579 ax-ial 1583 ax-i5r 1584 ax-14 2208 ax-ext 2216 ax-coll 4231 ax-sep 4234 ax-nul 4242 ax-pow 4293 ax-pr 4328 ax-un 4560 ax-setind 4666 ax-iinf 4717 ax-cnex 8236 ax-resscn 8237 ax-1cn 8238 ax-1re 8239 ax-icn 8240 ax-addcl 8241 ax-addrcl 8242 ax-mulcl 8243 ax-addcom 8245 ax-addass 8247 ax-distr 8249 ax-i2m1 8250 ax-0lt1 8251 ax-0id 8253 ax-rnegex 8254 ax-cnre 8256 ax-pre-ltirr 8257 ax-pre-ltwlin 8258 ax-pre-lttrn 8259 ax-pre-apti 8260 ax-pre-ltadd 8261 |
| This theorem depends on definitions: df-bi 117 df-dc 843 df-3or 1006 df-3an 1007 df-tru 1401 df-fal 1404 df-nf 1510 df-sb 1812 df-eu 2085 df-mo 2086 df-clab 2221 df-cleq 2227 df-clel 2230 df-nfc 2375 df-ne 2415 df-nel 2510 df-ral 2527 df-rex 2528 df-reu 2529 df-rab 2531 df-v 2817 df-sbc 3046 df-csb 3142 df-dif 3216 df-un 3218 df-in 3220 df-ss 3227 df-nul 3513 df-if 3626 df-pw 3677 df-sn 3701 df-pr 3702 df-op 3704 df-uni 3921 df-int 3956 df-iun 3999 df-br 4116 df-opab 4178 df-mpt 4179 df-tr 4215 df-id 4420 df-iord 4493 df-on 4495 df-ilim 4496 df-suc 4498 df-iom 4720 df-xp 4762 df-rel 4763 df-cnv 4764 df-co 4765 df-dm 4766 df-rn 4767 df-res 4768 df-ima 4769 df-iota 5319 df-fun 5361 df-fn 5362 df-f 5363 df-f1 5364 df-fo 5365 df-f1o 5366 df-fv 5367 df-riota 6013 df-ov 6063 df-oprab 6064 df-mpo 6065 df-1st 6349 df-2nd 6350 df-recs 6551 df-irdg 6616 df-frec 6637 df-1o 6662 df-oadd 6666 df-er 6782 df-en 6991 df-dom 6992 df-fin 6993 df-pnf 8328 df-mnf 8329 df-xr 8330 df-ltxr 8331 df-le 8332 df-sub 8465 df-neg 8466 df-inn 9260 df-n0 9519 df-z 9600 df-uz 9877 df-fz 10367 df-ihash 11169 |
| This theorem is referenced by: hashprg 11203 hashp1i 11205 hashxp 11221 hashmap 11222 fprodconst 12337 ballotfilemfp1 13181 gfsump1 14114 |
| Copyright terms: Public domain | W3C validator |