ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  fidifsnid GIF version

Theorem fidifsnid 7051
Description: If we remove a single element from a finite set then put it back in, we end up with the original finite set. This strengthens difsnss 3815 from subset to equality when the set is finite. (Contributed by Jim Kingdon, 9-Sep-2021.)
Assertion
Ref Expression
fidifsnid ((𝐴 ∈ Fin ∧ 𝐵𝐴) → ((𝐴 ∖ {𝐵}) ∪ {𝐵}) = 𝐴)

Proof of Theorem fidifsnid
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fidceq 7049 . . . 4 ((𝐴 ∈ Fin ∧ 𝑥𝐴𝑦𝐴) → DECID 𝑥 = 𝑦)
213expb 1228 . . 3 ((𝐴 ∈ Fin ∧ (𝑥𝐴𝑦𝐴)) → DECID 𝑥 = 𝑦)
32ralrimivva 2612 . 2 (𝐴 ∈ Fin → ∀𝑥𝐴𝑦𝐴 DECID 𝑥 = 𝑦)
4 dcdifsnid 6665 . 2 ((∀𝑥𝐴𝑦𝐴 DECID 𝑥 = 𝑦𝐵𝐴) → ((𝐴 ∖ {𝐵}) ∪ {𝐵}) = 𝐴)
53, 4sylan 283 1 ((𝐴 ∈ Fin ∧ 𝐵𝐴) → ((𝐴 ∖ {𝐵}) ∪ {𝐵}) = 𝐴)
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104  DECID wdc 839   = wceq 1395  wcel 2200  wral 2508  cdif 3195  cun 3196  {csn 3667  Fincfn 6902
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 617  ax-in2 618  ax-io 714  ax-5 1493  ax-7 1494  ax-gen 1495  ax-ie1 1539  ax-ie2 1540  ax-8 1550  ax-10 1551  ax-11 1552  ax-i12 1553  ax-bndl 1555  ax-4 1556  ax-17 1572  ax-i9 1576  ax-ial 1580  ax-i5r 1581  ax-13 2202  ax-14 2203  ax-ext 2211  ax-sep 4203  ax-nul 4211  ax-pow 4260  ax-pr 4295  ax-un 4526  ax-setind 4631  ax-iinf 4682
This theorem depends on definitions:  df-bi 117  df-dc 840  df-3or 1003  df-3an 1004  df-tru 1398  df-nf 1507  df-sb 1809  df-eu 2080  df-mo 2081  df-clab 2216  df-cleq 2222  df-clel 2225  df-nfc 2361  df-ne 2401  df-ral 2513  df-rex 2514  df-v 2802  df-sbc 3030  df-dif 3200  df-un 3202  df-in 3204  df-ss 3211  df-nul 3493  df-pw 3652  df-sn 3673  df-pr 3674  df-op 3676  df-uni 3890  df-int 3925  df-br 4085  df-opab 4147  df-tr 4184  df-id 4386  df-iord 4459  df-on 4461  df-suc 4464  df-iom 4685  df-xp 4727  df-rel 4728  df-cnv 4729  df-co 4730  df-dm 4731  df-rn 4732  df-iota 5282  df-fun 5324  df-fn 5325  df-f 5326  df-f1 5327  df-fo 5328  df-f1o 5329  df-fv 5330  df-en 6903  df-fin 6905
This theorem is referenced by:  findcard2  7069  findcard2s  7070  xpfi  7115  fisseneq  7117  zfz1isolem1  11091
  Copyright terms: Public domain W3C validator