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

Theorem infdifsn 9415
Description: Removing a singleton from an infinite set does not change the cardinality of the set. (Contributed by Mario Carneiro, 30-Apr-2015.) (Revised by Mario Carneiro, 16-May-2015.)
Assertion
Ref Expression
infdifsn (ω ≼ 𝐴 → (𝐴 ∖ {𝐵}) ≈ 𝐴)

Proof of Theorem infdifsn
Dummy variable 𝑓 is distinct from all other variables.
StepHypRef Expression
1 brdomi 8748 . . . 4 (ω ≼ 𝐴 → ∃𝑓 𝑓:ω–1-1𝐴)
21adantr 481 . . 3 ((ω ≼ 𝐴𝐵𝐴) → ∃𝑓 𝑓:ω–1-1𝐴)
3 reldom 8739 . . . . . . 7 Rel ≼
43brrelex2i 5644 . . . . . 6 (ω ≼ 𝐴𝐴 ∈ V)
54ad2antrr 723 . . . . 5 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝐴 ∈ V)
6 simplr 766 . . . . 5 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝐵𝐴)
7 f1f 6670 . . . . . . 7 (𝑓:ω–1-1𝐴𝑓:ω⟶𝐴)
87adantl 482 . . . . . 6 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝑓:ω⟶𝐴)
9 peano1 7735 . . . . . 6 ∅ ∈ ω
10 ffvelrn 6959 . . . . . 6 ((𝑓:ω⟶𝐴 ∧ ∅ ∈ ω) → (𝑓‘∅) ∈ 𝐴)
118, 9, 10sylancl 586 . . . . 5 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓‘∅) ∈ 𝐴)
12 difsnen 8840 . . . . 5 ((𝐴 ∈ V ∧ 𝐵𝐴 ∧ (𝑓‘∅) ∈ 𝐴) → (𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {(𝑓‘∅)}))
135, 6, 11, 12syl3anc 1370 . . . 4 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {(𝑓‘∅)}))
14 vex 3436 . . . . . . . . . 10 𝑓 ∈ V
15 f1f1orn 6727 . . . . . . . . . . 11 (𝑓:ω–1-1𝐴𝑓:ω–1-1-onto→ran 𝑓)
1615adantl 482 . . . . . . . . . 10 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝑓:ω–1-1-onto→ran 𝑓)
17 f1oen3g 8754 . . . . . . . . . 10 ((𝑓 ∈ V ∧ 𝑓:ω–1-1-onto→ran 𝑓) → ω ≈ ran 𝑓)
1814, 16, 17sylancr 587 . . . . . . . . 9 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ω ≈ ran 𝑓)
1918ensymd 8791 . . . . . . . 8 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ran 𝑓 ≈ ω)
203brrelex1i 5643 . . . . . . . . . . 11 (ω ≼ 𝐴 → ω ∈ V)
2120ad2antrr 723 . . . . . . . . . 10 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ω ∈ V)
22 limom 7728 . . . . . . . . . . 11 Lim ω
2322limenpsi 8939 . . . . . . . . . 10 (ω ∈ V → ω ≈ (ω ∖ {∅}))
2421, 23syl 17 . . . . . . . . 9 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ω ≈ (ω ∖ {∅}))
2514resex 5939 . . . . . . . . . . 11 (𝑓 ↾ (ω ∖ {∅})) ∈ V
26 simpr 485 . . . . . . . . . . . 12 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝑓:ω–1-1𝐴)
27 difss 4066 . . . . . . . . . . . 12 (ω ∖ {∅}) ⊆ ω
28 f1ores 6730 . . . . . . . . . . . 12 ((𝑓:ω–1-1𝐴 ∧ (ω ∖ {∅}) ⊆ ω) → (𝑓 ↾ (ω ∖ {∅})):(ω ∖ {∅})–1-1-onto→(𝑓 “ (ω ∖ {∅})))
2926, 27, 28sylancl 586 . . . . . . . . . . 11 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓 ↾ (ω ∖ {∅})):(ω ∖ {∅})–1-1-onto→(𝑓 “ (ω ∖ {∅})))
30 f1oen3g 8754 . . . . . . . . . . 11 (((𝑓 ↾ (ω ∖ {∅})) ∈ V ∧ (𝑓 ↾ (ω ∖ {∅})):(ω ∖ {∅})–1-1-onto→(𝑓 “ (ω ∖ {∅}))) → (ω ∖ {∅}) ≈ (𝑓 “ (ω ∖ {∅})))
3125, 29, 30sylancr 587 . . . . . . . . . 10 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (ω ∖ {∅}) ≈ (𝑓 “ (ω ∖ {∅})))
32 f1orn 6726 . . . . . . . . . . . . 13 (𝑓:ω–1-1-onto→ran 𝑓 ↔ (𝑓 Fn ω ∧ Fun 𝑓))
3332simprbi 497 . . . . . . . . . . . 12 (𝑓:ω–1-1-onto→ran 𝑓 → Fun 𝑓)
34 imadif 6518 . . . . . . . . . . . 12 (Fun 𝑓 → (𝑓 “ (ω ∖ {∅})) = ((𝑓 “ ω) ∖ (𝑓 “ {∅})))
3516, 33, 343syl 18 . . . . . . . . . . 11 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓 “ (ω ∖ {∅})) = ((𝑓 “ ω) ∖ (𝑓 “ {∅})))
36 f1fn 6671 . . . . . . . . . . . . . 14 (𝑓:ω–1-1𝐴𝑓 Fn ω)
3736adantl 482 . . . . . . . . . . . . 13 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝑓 Fn ω)
38 fnima 6563 . . . . . . . . . . . . 13 (𝑓 Fn ω → (𝑓 “ ω) = ran 𝑓)
3937, 38syl 17 . . . . . . . . . . . 12 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓 “ ω) = ran 𝑓)
40 fnsnfv 6847 . . . . . . . . . . . . . 14 ((𝑓 Fn ω ∧ ∅ ∈ ω) → {(𝑓‘∅)} = (𝑓 “ {∅}))
4137, 9, 40sylancl 586 . . . . . . . . . . . . 13 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → {(𝑓‘∅)} = (𝑓 “ {∅}))
4241eqcomd 2744 . . . . . . . . . . . 12 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓 “ {∅}) = {(𝑓‘∅)})
4339, 42difeq12d 4058 . . . . . . . . . . 11 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((𝑓 “ ω) ∖ (𝑓 “ {∅})) = (ran 𝑓 ∖ {(𝑓‘∅)}))
4435, 43eqtrd 2778 . . . . . . . . . 10 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓 “ (ω ∖ {∅})) = (ran 𝑓 ∖ {(𝑓‘∅)}))
4531, 44breqtrd 5100 . . . . . . . . 9 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (ω ∖ {∅}) ≈ (ran 𝑓 ∖ {(𝑓‘∅)}))
46 entr 8792 . . . . . . . . 9 ((ω ≈ (ω ∖ {∅}) ∧ (ω ∖ {∅}) ≈ (ran 𝑓 ∖ {(𝑓‘∅)})) → ω ≈ (ran 𝑓 ∖ {(𝑓‘∅)}))
4724, 45, 46syl2anc 584 . . . . . . . 8 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ω ≈ (ran 𝑓 ∖ {(𝑓‘∅)}))
48 entr 8792 . . . . . . . 8 ((ran 𝑓 ≈ ω ∧ ω ≈ (ran 𝑓 ∖ {(𝑓‘∅)})) → ran 𝑓 ≈ (ran 𝑓 ∖ {(𝑓‘∅)}))
4919, 47, 48syl2anc 584 . . . . . . 7 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ran 𝑓 ≈ (ran 𝑓 ∖ {(𝑓‘∅)}))
50 difexg 5251 . . . . . . . 8 (𝐴 ∈ V → (𝐴 ∖ ran 𝑓) ∈ V)
51 enrefg 8772 . . . . . . . 8 ((𝐴 ∖ ran 𝑓) ∈ V → (𝐴 ∖ ran 𝑓) ≈ (𝐴 ∖ ran 𝑓))
525, 50, 513syl 18 . . . . . . 7 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝐴 ∖ ran 𝑓) ≈ (𝐴 ∖ ran 𝑓))
53 disjdif 4405 . . . . . . . 8 (ran 𝑓 ∩ (𝐴 ∖ ran 𝑓)) = ∅
5453a1i 11 . . . . . . 7 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (ran 𝑓 ∩ (𝐴 ∖ ran 𝑓)) = ∅)
55 difss 4066 . . . . . . . . . 10 (ran 𝑓 ∖ {(𝑓‘∅)}) ⊆ ran 𝑓
56 ssrin 4167 . . . . . . . . . 10 ((ran 𝑓 ∖ {(𝑓‘∅)}) ⊆ ran 𝑓 → ((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) ⊆ (ran 𝑓 ∩ (𝐴 ∖ ran 𝑓)))
5755, 56ax-mp 5 . . . . . . . . 9 ((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) ⊆ (ran 𝑓 ∩ (𝐴 ∖ ran 𝑓))
58 sseq0 4333 . . . . . . . . 9 ((((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) ⊆ (ran 𝑓 ∩ (𝐴 ∖ ran 𝑓)) ∧ (ran 𝑓 ∩ (𝐴 ∖ ran 𝑓)) = ∅) → ((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) = ∅)
5957, 53, 58mp2an 689 . . . . . . . 8 ((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) = ∅
6059a1i 11 . . . . . . 7 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) = ∅)
61 unen 8836 . . . . . . 7 (((ran 𝑓 ≈ (ran 𝑓 ∖ {(𝑓‘∅)}) ∧ (𝐴 ∖ ran 𝑓) ≈ (𝐴 ∖ ran 𝑓)) ∧ ((ran 𝑓 ∩ (𝐴 ∖ ran 𝑓)) = ∅ ∧ ((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) = ∅)) → (ran 𝑓 ∪ (𝐴 ∖ ran 𝑓)) ≈ ((ran 𝑓 ∖ {(𝑓‘∅)}) ∪ (𝐴 ∖ ran 𝑓)))
6249, 52, 54, 60, 61syl22anc 836 . . . . . 6 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (ran 𝑓 ∪ (𝐴 ∖ ran 𝑓)) ≈ ((ran 𝑓 ∖ {(𝑓‘∅)}) ∪ (𝐴 ∖ ran 𝑓)))
638frnd 6608 . . . . . . 7 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ran 𝑓𝐴)
64 undif 4415 . . . . . . 7 (ran 𝑓𝐴 ↔ (ran 𝑓 ∪ (𝐴 ∖ ran 𝑓)) = 𝐴)
6563, 64sylib 217 . . . . . 6 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (ran 𝑓 ∪ (𝐴 ∖ ran 𝑓)) = 𝐴)
66 uncom 4087 . . . . . . 7 ((ran 𝑓 ∖ {(𝑓‘∅)}) ∪ (𝐴 ∖ ran 𝑓)) = ((𝐴 ∖ ran 𝑓) ∪ (ran 𝑓 ∖ {(𝑓‘∅)}))
67 eldifn 4062 . . . . . . . . . . 11 ((𝑓‘∅) ∈ (𝐴 ∖ ran 𝑓) → ¬ (𝑓‘∅) ∈ ran 𝑓)
68 fnfvelrn 6958 . . . . . . . . . . . 12 ((𝑓 Fn ω ∧ ∅ ∈ ω) → (𝑓‘∅) ∈ ran 𝑓)
6937, 9, 68sylancl 586 . . . . . . . . . . 11 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓‘∅) ∈ ran 𝑓)
7067, 69nsyl3 138 . . . . . . . . . 10 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ¬ (𝑓‘∅) ∈ (𝐴 ∖ ran 𝑓))
71 disjsn 4647 . . . . . . . . . 10 (((𝐴 ∖ ran 𝑓) ∩ {(𝑓‘∅)}) = ∅ ↔ ¬ (𝑓‘∅) ∈ (𝐴 ∖ ran 𝑓))
7270, 71sylibr 233 . . . . . . . . 9 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((𝐴 ∖ ran 𝑓) ∩ {(𝑓‘∅)}) = ∅)
73 undif4 4400 . . . . . . . . 9 (((𝐴 ∖ ran 𝑓) ∩ {(𝑓‘∅)}) = ∅ → ((𝐴 ∖ ran 𝑓) ∪ (ran 𝑓 ∖ {(𝑓‘∅)})) = (((𝐴 ∖ ran 𝑓) ∪ ran 𝑓) ∖ {(𝑓‘∅)}))
7472, 73syl 17 . . . . . . . 8 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((𝐴 ∖ ran 𝑓) ∪ (ran 𝑓 ∖ {(𝑓‘∅)})) = (((𝐴 ∖ ran 𝑓) ∪ ran 𝑓) ∖ {(𝑓‘∅)}))
75 uncom 4087 . . . . . . . . . 10 ((𝐴 ∖ ran 𝑓) ∪ ran 𝑓) = (ran 𝑓 ∪ (𝐴 ∖ ran 𝑓))
7675, 65eqtrid 2790 . . . . . . . . 9 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((𝐴 ∖ ran 𝑓) ∪ ran 𝑓) = 𝐴)
7776difeq1d 4056 . . . . . . . 8 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (((𝐴 ∖ ran 𝑓) ∪ ran 𝑓) ∖ {(𝑓‘∅)}) = (𝐴 ∖ {(𝑓‘∅)}))
7874, 77eqtrd 2778 . . . . . . 7 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((𝐴 ∖ ran 𝑓) ∪ (ran 𝑓 ∖ {(𝑓‘∅)})) = (𝐴 ∖ {(𝑓‘∅)}))
7966, 78eqtrid 2790 . . . . . 6 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((ran 𝑓 ∖ {(𝑓‘∅)}) ∪ (𝐴 ∖ ran 𝑓)) = (𝐴 ∖ {(𝑓‘∅)}))
8062, 65, 793brtr3d 5105 . . . . 5 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝐴 ≈ (𝐴 ∖ {(𝑓‘∅)}))
8180ensymd 8791 . . . 4 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝐴 ∖ {(𝑓‘∅)}) ≈ 𝐴)
82 entr 8792 . . . 4 (((𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {(𝑓‘∅)}) ∧ (𝐴 ∖ {(𝑓‘∅)}) ≈ 𝐴) → (𝐴 ∖ {𝐵}) ≈ 𝐴)
8313, 81, 82syl2anc 584 . . 3 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝐴 ∖ {𝐵}) ≈ 𝐴)
842, 83exlimddv 1938 . 2 ((ω ≼ 𝐴𝐵𝐴) → (𝐴 ∖ {𝐵}) ≈ 𝐴)
85 difsn 4731 . . . 4 𝐵𝐴 → (𝐴 ∖ {𝐵}) = 𝐴)
8685adantl 482 . . 3 ((ω ≼ 𝐴 ∧ ¬ 𝐵𝐴) → (𝐴 ∖ {𝐵}) = 𝐴)
87 enrefg 8772 . . . . 5 (𝐴 ∈ V → 𝐴𝐴)
884, 87syl 17 . . . 4 (ω ≼ 𝐴𝐴𝐴)
8988adantr 481 . . 3 ((ω ≼ 𝐴 ∧ ¬ 𝐵𝐴) → 𝐴𝐴)
9086, 89eqbrtrd 5096 . 2 ((ω ≼ 𝐴 ∧ ¬ 𝐵𝐴) → (𝐴 ∖ {𝐵}) ≈ 𝐴)
9184, 90pm2.61dan 810 1 (ω ≼ 𝐴 → (𝐴 ∖ {𝐵}) ≈ 𝐴)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 396   = wceq 1539  wex 1782  wcel 2106  Vcvv 3432  cdif 3884  cun 3885  cin 3886  wss 3887  c0 4256  {csn 4561   class class class wbr 5074  ccnv 5588  ran crn 5590  cres 5591  cima 5592  Fun wfun 6427   Fn wfn 6428  wf 6429  1-1wf1 6430  1-1-ontowf1o 6432  cfv 6433  ωcom 7712  cen 8730  cdom 8731
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-om 7713  df-er 8498  df-en 8734  df-dom 8735
This theorem is referenced by:  infdiffi  9416  infdju1  9945  infpss  9973
  Copyright terms: Public domain W3C validator