| Intuitionistic Logic Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > ILE Home > Th. List > nndifsnid | GIF version | ||
| Description: If we remove a single element from a natural number then put it back in, we end up with the original natural number. This strengthens difsnss 3842 from subset to equality but the proof relies on equality being decidable. (Contributed by Jim Kingdon, 31-Aug-2021.) |
| Ref | Expression |
|---|---|
| nndifsnid | ⊢ ((𝐴 ∈ ω ∧ 𝐵 ∈ 𝐴) → ((𝐴 ∖ {𝐵}) ∪ {𝐵}) = 𝐴) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | elnn 4730 | . . . . . 6 ⊢ ((𝑥 ∈ 𝐴 ∧ 𝐴 ∈ ω) → 𝑥 ∈ ω) | |
| 2 | 1 | expcom 116 | . . . . 5 ⊢ (𝐴 ∈ ω → (𝑥 ∈ 𝐴 → 𝑥 ∈ ω)) |
| 3 | elnn 4730 | . . . . . 6 ⊢ ((𝑦 ∈ 𝐴 ∧ 𝐴 ∈ ω) → 𝑦 ∈ ω) | |
| 4 | 3 | expcom 116 | . . . . 5 ⊢ (𝐴 ∈ ω → (𝑦 ∈ 𝐴 → 𝑦 ∈ ω)) |
| 5 | 2, 4 | anim12d 335 | . . . 4 ⊢ (𝐴 ∈ ω → ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐴) → (𝑥 ∈ ω ∧ 𝑦 ∈ ω))) |
| 6 | nndceq 6734 | . . . 4 ⊢ ((𝑥 ∈ ω ∧ 𝑦 ∈ ω) → DECID 𝑥 = 𝑦) | |
| 7 | 5, 6 | syl6 33 | . . 3 ⊢ (𝐴 ∈ ω → ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐴) → DECID 𝑥 = 𝑦)) |
| 8 | 7 | ralrimivv 2625 | . 2 ⊢ (𝐴 ∈ ω → ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 DECID 𝑥 = 𝑦) |
| 9 | dcdifsnid 6739 | . 2 ⊢ ((∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 DECID 𝑥 = 𝑦 ∧ 𝐵 ∈ 𝐴) → ((𝐴 ∖ {𝐵}) ∪ {𝐵}) = 𝐴) | |
| 10 | 8, 9 | sylan 283 | 1 ⊢ ((𝐴 ∈ ω ∧ 𝐵 ∈ 𝐴) → ((𝐴 ∖ {𝐵}) ∪ {𝐵}) = 𝐴) |
| Colors of variables: wff set class |
| Syntax hints: → wi 4 ∧ wa 104 DECID wdc 842 = wceq 1398 ∈ wcel 2205 ∀wral 2522 ∖ cdif 3210 ∪ cun 3211 {csn 3691 ωcom 4714 |
| 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-13 2207 ax-14 2208 ax-ext 2216 ax-sep 4230 ax-nul 4238 ax-pow 4289 ax-pr 4324 ax-un 4556 ax-setind 4661 ax-iinf 4712 |
| This theorem depends on definitions: df-bi 117 df-dc 843 df-3or 1006 df-3an 1007 df-tru 1401 df-nf 1510 df-sb 1812 df-clab 2221 df-cleq 2227 df-clel 2230 df-nfc 2375 df-ne 2415 df-ral 2527 df-rex 2528 df-v 2817 df-dif 3215 df-un 3217 df-in 3219 df-ss 3226 df-nul 3511 df-pw 3673 df-sn 3697 df-pr 3698 df-uni 3917 df-int 3952 df-tr 4211 df-iord 4489 df-on 4491 df-suc 4494 df-iom 4715 |
| This theorem is referenced by: phplem2 7109 |
| Copyright terms: Public domain | W3C validator |