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

Theorem dif1enen 7188
Description: Subtracting one element from each of two equinumerous finite sets. (Contributed by Jim Kingdon, 5-Jun-2022.)
Hypotheses
Ref Expression
dif1enen.a (𝜑 → 𝐴 ∈ Fin)
dif1enen.ab (𝜑 → 𝐴 ≈ 𝐵)
dif1enen.c (𝜑 → 𝐶 ∈ 𝐴)
dif1enen.d (𝜑 → 𝐷 ∈ 𝐵)
Assertion
Ref Expression
dif1enen (𝜑 → (𝐴 ∖ {𝐶}) ≈ (𝐵 ∖ {𝐷}))

Proof of Theorem dif1enen
Dummy variables 𝑚 𝑛 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 dif1enen.a . . 3 (𝜑 → 𝐴 ∈ Fin)
2 isfi 7051 . . 3 (𝐴 ∈ Fin ↔ ∃𝑛 ∈ ω 𝐴 ≈ 𝑛)
31, 2sylib 122 . 2 (𝜑 → ∃𝑛 ∈ ω 𝐴 ≈ 𝑛)
4 simplrr 542 . . . . . 6 (((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑛 = ∅) → 𝐴 ≈ 𝑛)
5 breq2 4135 . . . . . . 7 (𝑛 = ∅ → (𝐴 ≈ 𝑛 ↔ 𝐴 ≈ ∅))
65adantl 277 . . . . . 6 (((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑛 = ∅) → (𝐴 ≈ 𝑛 ↔ 𝐴 ≈ ∅))
74, 6mpbid 147 . . . . 5 (((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑛 = ∅) → 𝐴 ≈ ∅)
8 en0 7086 . . . . 5 (𝐴 ≈ ∅ ↔ 𝐴 = ∅)
97, 8sylib 122 . . . 4 (((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑛 = ∅) → 𝐴 = ∅)
10 dif1enen.c . . . . . 6 (𝜑 → 𝐶 ∈ 𝐴)
11 n0i 3527 . . . . . 6 (𝐶 ∈ 𝐴 → ¬ 𝐴 = ∅)
1210, 11syl 14 . . . . 5 (𝜑 → ¬ 𝐴 = ∅)
1312ad2antrr 492 . . . 4 (((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑛 = ∅) → ¬ 𝐴 = ∅)
149, 13pm2.21dd 629 . . 3 (((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑛 = ∅) → (𝐴 ∖ {𝐶}) ≈ (𝐵 ∖ {𝐷}))
15 simplr 533 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → 𝑚 ∈ ω)
16 simprr 537 . . . . . . . . . 10 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) → 𝐴 ≈ 𝑛)
1716ad2antrr 492 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → 𝐴 ≈ 𝑛)
18 breq2 4135 . . . . . . . . . 10 (𝑛 = suc 𝑚 → (𝐴 ≈ 𝑛 ↔ 𝐴 ≈ suc 𝑚))
1918adantl 277 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → (𝐴 ≈ 𝑛 ↔ 𝐴 ≈ suc 𝑚))
2017, 19mpbid 147 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → 𝐴 ≈ suc 𝑚)
2110ad3antrrr 496 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → 𝐶 ∈ 𝐴)
22 dif1en 7187 . . . . . . . 8 ((𝑚 ∈ ω ∧ 𝐴 ≈ suc 𝑚 ∧ 𝐶 ∈ 𝐴) → (𝐴 ∖ {𝐶}) ≈ 𝑚)
2315, 20, 21, 22syl3anc 1278 . . . . . . 7 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → (𝐴 ∖ {𝐶}) ≈ 𝑚)
24 dif1enen.ab . . . . . . . . . . . 12 (𝜑 → 𝐴 ≈ 𝐵)
2524ad3antrrr 496 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → 𝐴 ≈ 𝐵)
2625ensymd 7074 . . . . . . . . . 10 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → 𝐵 ≈ 𝐴)
27 entr 7075 . . . . . . . . . 10 ((𝐵 ≈ 𝐴 ∧ 𝐴 ≈ suc 𝑚) → 𝐵 ≈ suc 𝑚)
2826, 20, 27syl2anc 415 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → 𝐵 ≈ suc 𝑚)
29 dif1enen.d . . . . . . . . . 10 (𝜑 → 𝐷 ∈ 𝐵)
3029ad3antrrr 496 . . . . . . . . 9 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → 𝐷 ∈ 𝐵)
31 dif1en 7187 . . . . . . . . 9 ((𝑚 ∈ ω ∧ 𝐵 ≈ suc 𝑚 ∧ 𝐷 ∈ 𝐵) → (𝐵 ∖ {𝐷}) ≈ 𝑚)
3215, 28, 30, 31syl3anc 1278 . . . . . . . 8 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → (𝐵 ∖ {𝐷}) ≈ 𝑚)
3332ensymd 7074 . . . . . . 7 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → 𝑚 ≈ (𝐵 ∖ {𝐷}))
34 entr 7075 . . . . . . 7 (((𝐴 ∖ {𝐶}) ≈ 𝑚 ∧ 𝑚 ≈ (𝐵 ∖ {𝐷})) → (𝐴 ∖ {𝐶}) ≈ (𝐵 ∖ {𝐷}))
3523, 33, 34syl2anc 415 . . . . . 6 ((((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) ∧ 𝑛 = suc 𝑚) → (𝐴 ∖ {𝐶}) ≈ (𝐵 ∖ {𝐷}))
3635ex 115 . . . . 5 (((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ 𝑚 ∈ ω) → (𝑛 = suc 𝑚 → (𝐴 ∖ {𝐶}) ≈ (𝐵 ∖ {𝐷})))
3736rexlimdva 2668 . . . 4 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) → (∃𝑚 ∈ ω 𝑛 = suc 𝑚 → (𝐴 ∖ {𝐶}) ≈ (𝐵 ∖ {𝐷})))
3837imp 124 . . 3 (((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) ∧ ∃𝑚 ∈ ω 𝑛 = suc 𝑚) → (𝐴 ∖ {𝐶}) ≈ (𝐵 ∖ {𝐷}))
39 nn0suc 4753 . . . 4 (𝑛 ∈ ω → (𝑛 = ∅ ∨ ∃𝑚 ∈ ω 𝑛 = suc 𝑚))
4039ad2antrl 494 . . 3 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) → (𝑛 = ∅ ∨ ∃𝑚 ∈ ω 𝑛 = suc 𝑚))
4114, 38, 40mpjaodan 810 . 2 ((𝜑 ∧ (𝑛 ∈ ω ∧ 𝐴 ≈ 𝑛)) → (𝐴 ∖ {𝐶}) ≈ (𝐵 ∖ {𝐷}))
423, 41rexlimddv 2673 1 (𝜑 → (𝐴 ∖ {𝐶}) ≈ (𝐵 ∖ {𝐷}))
Colors of variables:    wff set class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 104   ↔ wb 105   ∨ wo 720   = wceq 1402   ∈ wcel 2209  ∃wrex 2529   ∖ cdif 3217  ∅c0 3520  {csn 3709   class class class wbr 4131  suc csuc 4512  ωcom 4739   ≈ cen 7024  Fincfn 7026
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 623  ax-in2 624  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-14 2212  ax-ext 2220  ax-coll 4248  ax-sep 4251  ax-nul 4261  ax-pow 4313  ax-pr 4348  ax-un 4580  ax-setind 4686  ax-iinf 4737
This proof depends on definitions:  df-bi 117  df-dc 847  df-3or 1010  df-3an 1011  df-tru 1405  df-fal 1408  df-nf 1514  df-sb 1816  df-eu 2089  df-mo 2090  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ne 2421  df-ral 2533  df-rex 2534  df-reu 2535  df-rab 2537  df-v 2823  df-sbc 3052  df-csb 3148  df-dif 3222  df-un 3224  df-in 3226  df-ss 3233  df-nul 3521  df-if 3639  df-pw 3690  df-sn 3715  df-pr 3716  df-op 3718  df-uni 3936  df-int 3971  df-iun 4014  df-br 4132  df-opab 4194  df-mpt 4195  df-tr 4232  df-id 4440  df-iord 4513  df-on 4515  df-suc 4518  df-iom 4740  df-xp 4782  df-rel 4783  df-cnv 4784  df-co 4785  df-dm 4786  df-rn 4787  df-res 4788  df-ima 4789  df-iota 5340  df-fun 5382  df-fn 5383  df-f 5384  df-f1 5385  df-fo 5386  df-f1o 5387  df-fv 5388  df-er 6811  df-en 7027  df-fin 7029
This theorem is used by:  fisseneq  7246
  Copyright terms: Public domain W3C validator