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

Theorem infdifsn 9345
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 8704 . . . 4 (ω ≼ 𝐴 → ∃𝑓 𝑓:ω–1-1𝐴)
21adantr 480 . . 3 ((ω ≼ 𝐴𝐵𝐴) → ∃𝑓 𝑓:ω–1-1𝐴)
3 reldom 8697 . . . . . . 7 Rel ≼
43brrelex2i 5635 . . . . . 6 (ω ≼ 𝐴𝐴 ∈ V)
54ad2antrr 722 . . . . 5 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝐴 ∈ V)
6 simplr 765 . . . . 5 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝐵𝐴)
7 f1f 6654 . . . . . . 7 (𝑓:ω–1-1𝐴𝑓:ω⟶𝐴)
87adantl 481 . . . . . 6 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝑓:ω⟶𝐴)
9 peano1 7710 . . . . . 6 ∅ ∈ ω
10 ffvelrn 6941 . . . . . 6 ((𝑓:ω⟶𝐴 ∧ ∅ ∈ ω) → (𝑓‘∅) ∈ 𝐴)
118, 9, 10sylancl 585 . . . . 5 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓‘∅) ∈ 𝐴)
12 difsnen 8794 . . . . 5 ((𝐴 ∈ V ∧ 𝐵𝐴 ∧ (𝑓‘∅) ∈ 𝐴) → (𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {(𝑓‘∅)}))
135, 6, 11, 12syl3anc 1369 . . . 4 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {(𝑓‘∅)}))
14 vex 3426 . . . . . . . . . 10 𝑓 ∈ V
15 f1f1orn 6711 . . . . . . . . . . 11 (𝑓:ω–1-1𝐴𝑓:ω–1-1-onto→ran 𝑓)
1615adantl 481 . . . . . . . . . 10 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝑓:ω–1-1-onto→ran 𝑓)
17 f1oen3g 8709 . . . . . . . . . 10 ((𝑓 ∈ V ∧ 𝑓:ω–1-1-onto→ran 𝑓) → ω ≈ ran 𝑓)
1814, 16, 17sylancr 586 . . . . . . . . 9 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ω ≈ ran 𝑓)
1918ensymd 8746 . . . . . . . 8 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ran 𝑓 ≈ ω)
203brrelex1i 5634 . . . . . . . . . . 11 (ω ≼ 𝐴 → ω ∈ V)
2120ad2antrr 722 . . . . . . . . . 10 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ω ∈ V)
22 limom 7703 . . . . . . . . . . 11 Lim ω
2322limenpsi 8888 . . . . . . . . . 10 (ω ∈ V → ω ≈ (ω ∖ {∅}))
2421, 23syl 17 . . . . . . . . 9 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ω ≈ (ω ∖ {∅}))
2514resex 5928 . . . . . . . . . . 11 (𝑓 ↾ (ω ∖ {∅})) ∈ V
26 simpr 484 . . . . . . . . . . . 12 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝑓:ω–1-1𝐴)
27 difss 4062 . . . . . . . . . . . 12 (ω ∖ {∅}) ⊆ ω
28 f1ores 6714 . . . . . . . . . . . 12 ((𝑓:ω–1-1𝐴 ∧ (ω ∖ {∅}) ⊆ ω) → (𝑓 ↾ (ω ∖ {∅})):(ω ∖ {∅})–1-1-onto→(𝑓 “ (ω ∖ {∅})))
2926, 27, 28sylancl 585 . . . . . . . . . . 11 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓 ↾ (ω ∖ {∅})):(ω ∖ {∅})–1-1-onto→(𝑓 “ (ω ∖ {∅})))
30 f1oen3g 8709 . . . . . . . . . . 11 (((𝑓 ↾ (ω ∖ {∅})) ∈ V ∧ (𝑓 ↾ (ω ∖ {∅})):(ω ∖ {∅})–1-1-onto→(𝑓 “ (ω ∖ {∅}))) → (ω ∖ {∅}) ≈ (𝑓 “ (ω ∖ {∅})))
3125, 29, 30sylancr 586 . . . . . . . . . 10 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (ω ∖ {∅}) ≈ (𝑓 “ (ω ∖ {∅})))
32 f1orn 6710 . . . . . . . . . . . . 13 (𝑓:ω–1-1-onto→ran 𝑓 ↔ (𝑓 Fn ω ∧ Fun 𝑓))
3332simprbi 496 . . . . . . . . . . . 12 (𝑓:ω–1-1-onto→ran 𝑓 → Fun 𝑓)
34 imadif 6502 . . . . . . . . . . . 12 (Fun 𝑓 → (𝑓 “ (ω ∖ {∅})) = ((𝑓 “ ω) ∖ (𝑓 “ {∅})))
3516, 33, 343syl 18 . . . . . . . . . . 11 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓 “ (ω ∖ {∅})) = ((𝑓 “ ω) ∖ (𝑓 “ {∅})))
36 f1fn 6655 . . . . . . . . . . . . . 14 (𝑓:ω–1-1𝐴𝑓 Fn ω)
3736adantl 481 . . . . . . . . . . . . 13 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝑓 Fn ω)
38 fnima 6547 . . . . . . . . . . . . 13 (𝑓 Fn ω → (𝑓 “ ω) = ran 𝑓)
3937, 38syl 17 . . . . . . . . . . . 12 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓 “ ω) = ran 𝑓)
40 fnsnfv 6829 . . . . . . . . . . . . . 14 ((𝑓 Fn ω ∧ ∅ ∈ ω) → {(𝑓‘∅)} = (𝑓 “ {∅}))
4137, 9, 40sylancl 585 . . . . . . . . . . . . 13 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → {(𝑓‘∅)} = (𝑓 “ {∅}))
4241eqcomd 2744 . . . . . . . . . . . 12 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓 “ {∅}) = {(𝑓‘∅)})
4339, 42difeq12d 4054 . . . . . . . . . . 11 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((𝑓 “ ω) ∖ (𝑓 “ {∅})) = (ran 𝑓 ∖ {(𝑓‘∅)}))
4435, 43eqtrd 2778 . . . . . . . . . 10 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓 “ (ω ∖ {∅})) = (ran 𝑓 ∖ {(𝑓‘∅)}))
4531, 44breqtrd 5096 . . . . . . . . 9 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (ω ∖ {∅}) ≈ (ran 𝑓 ∖ {(𝑓‘∅)}))
46 entr 8747 . . . . . . . . 9 ((ω ≈ (ω ∖ {∅}) ∧ (ω ∖ {∅}) ≈ (ran 𝑓 ∖ {(𝑓‘∅)})) → ω ≈ (ran 𝑓 ∖ {(𝑓‘∅)}))
4724, 45, 46syl2anc 583 . . . . . . . 8 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ω ≈ (ran 𝑓 ∖ {(𝑓‘∅)}))
48 entr 8747 . . . . . . . 8 ((ran 𝑓 ≈ ω ∧ ω ≈ (ran 𝑓 ∖ {(𝑓‘∅)})) → ran 𝑓 ≈ (ran 𝑓 ∖ {(𝑓‘∅)}))
4919, 47, 48syl2anc 583 . . . . . . 7 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ran 𝑓 ≈ (ran 𝑓 ∖ {(𝑓‘∅)}))
50 difexg 5246 . . . . . . . 8 (𝐴 ∈ V → (𝐴 ∖ ran 𝑓) ∈ V)
51 enrefg 8727 . . . . . . . 8 ((𝐴 ∖ ran 𝑓) ∈ V → (𝐴 ∖ ran 𝑓) ≈ (𝐴 ∖ ran 𝑓))
525, 50, 513syl 18 . . . . . . 7 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝐴 ∖ ran 𝑓) ≈ (𝐴 ∖ ran 𝑓))
53 disjdif 4402 . . . . . . . 8 (ran 𝑓 ∩ (𝐴 ∖ ran 𝑓)) = ∅
5453a1i 11 . . . . . . 7 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (ran 𝑓 ∩ (𝐴 ∖ ran 𝑓)) = ∅)
55 difss 4062 . . . . . . . . . 10 (ran 𝑓 ∖ {(𝑓‘∅)}) ⊆ ran 𝑓
56 ssrin 4164 . . . . . . . . . 10 ((ran 𝑓 ∖ {(𝑓‘∅)}) ⊆ ran 𝑓 → ((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) ⊆ (ran 𝑓 ∩ (𝐴 ∖ ran 𝑓)))
5755, 56ax-mp 5 . . . . . . . . 9 ((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) ⊆ (ran 𝑓 ∩ (𝐴 ∖ ran 𝑓))
58 sseq0 4330 . . . . . . . . 9 ((((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) ⊆ (ran 𝑓 ∩ (𝐴 ∖ ran 𝑓)) ∧ (ran 𝑓 ∩ (𝐴 ∖ ran 𝑓)) = ∅) → ((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) = ∅)
5957, 53, 58mp2an 688 . . . . . . . 8 ((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) = ∅
6059a1i 11 . . . . . . 7 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) = ∅)
61 unen 8790 . . . . . . 7 (((ran 𝑓 ≈ (ran 𝑓 ∖ {(𝑓‘∅)}) ∧ (𝐴 ∖ ran 𝑓) ≈ (𝐴 ∖ ran 𝑓)) ∧ ((ran 𝑓 ∩ (𝐴 ∖ ran 𝑓)) = ∅ ∧ ((ran 𝑓 ∖ {(𝑓‘∅)}) ∩ (𝐴 ∖ ran 𝑓)) = ∅)) → (ran 𝑓 ∪ (𝐴 ∖ ran 𝑓)) ≈ ((ran 𝑓 ∖ {(𝑓‘∅)}) ∪ (𝐴 ∖ ran 𝑓)))
6249, 52, 54, 60, 61syl22anc 835 . . . . . 6 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (ran 𝑓 ∪ (𝐴 ∖ ran 𝑓)) ≈ ((ran 𝑓 ∖ {(𝑓‘∅)}) ∪ (𝐴 ∖ ran 𝑓)))
638frnd 6592 . . . . . . 7 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ran 𝑓𝐴)
64 undif 4412 . . . . . . 7 (ran 𝑓𝐴 ↔ (ran 𝑓 ∪ (𝐴 ∖ ran 𝑓)) = 𝐴)
6563, 64sylib 217 . . . . . 6 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (ran 𝑓 ∪ (𝐴 ∖ ran 𝑓)) = 𝐴)
66 uncom 4083 . . . . . . 7 ((ran 𝑓 ∖ {(𝑓‘∅)}) ∪ (𝐴 ∖ ran 𝑓)) = ((𝐴 ∖ ran 𝑓) ∪ (ran 𝑓 ∖ {(𝑓‘∅)}))
67 eldifn 4058 . . . . . . . . . . 11 ((𝑓‘∅) ∈ (𝐴 ∖ ran 𝑓) → ¬ (𝑓‘∅) ∈ ran 𝑓)
68 fnfvelrn 6940 . . . . . . . . . . . 12 ((𝑓 Fn ω ∧ ∅ ∈ ω) → (𝑓‘∅) ∈ ran 𝑓)
6937, 9, 68sylancl 585 . . . . . . . . . . 11 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝑓‘∅) ∈ ran 𝑓)
7067, 69nsyl3 138 . . . . . . . . . 10 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ¬ (𝑓‘∅) ∈ (𝐴 ∖ ran 𝑓))
71 disjsn 4644 . . . . . . . . . 10 (((𝐴 ∖ ran 𝑓) ∩ {(𝑓‘∅)}) = ∅ ↔ ¬ (𝑓‘∅) ∈ (𝐴 ∖ ran 𝑓))
7270, 71sylibr 233 . . . . . . . . 9 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((𝐴 ∖ ran 𝑓) ∩ {(𝑓‘∅)}) = ∅)
73 undif4 4397 . . . . . . . . 9 (((𝐴 ∖ ran 𝑓) ∩ {(𝑓‘∅)}) = ∅ → ((𝐴 ∖ ran 𝑓) ∪ (ran 𝑓 ∖ {(𝑓‘∅)})) = (((𝐴 ∖ ran 𝑓) ∪ ran 𝑓) ∖ {(𝑓‘∅)}))
7472, 73syl 17 . . . . . . . 8 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((𝐴 ∖ ran 𝑓) ∪ (ran 𝑓 ∖ {(𝑓‘∅)})) = (((𝐴 ∖ ran 𝑓) ∪ ran 𝑓) ∖ {(𝑓‘∅)}))
75 uncom 4083 . . . . . . . . . 10 ((𝐴 ∖ ran 𝑓) ∪ ran 𝑓) = (ran 𝑓 ∪ (𝐴 ∖ ran 𝑓))
7675, 65eqtrid 2790 . . . . . . . . 9 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((𝐴 ∖ ran 𝑓) ∪ ran 𝑓) = 𝐴)
7776difeq1d 4052 . . . . . . . 8 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (((𝐴 ∖ ran 𝑓) ∪ ran 𝑓) ∖ {(𝑓‘∅)}) = (𝐴 ∖ {(𝑓‘∅)}))
7874, 77eqtrd 2778 . . . . . . 7 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((𝐴 ∖ ran 𝑓) ∪ (ran 𝑓 ∖ {(𝑓‘∅)})) = (𝐴 ∖ {(𝑓‘∅)}))
7966, 78eqtrid 2790 . . . . . 6 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → ((ran 𝑓 ∖ {(𝑓‘∅)}) ∪ (𝐴 ∖ ran 𝑓)) = (𝐴 ∖ {(𝑓‘∅)}))
8062, 65, 793brtr3d 5101 . . . . 5 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → 𝐴 ≈ (𝐴 ∖ {(𝑓‘∅)}))
8180ensymd 8746 . . . 4 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝐴 ∖ {(𝑓‘∅)}) ≈ 𝐴)
82 entr 8747 . . . 4 (((𝐴 ∖ {𝐵}) ≈ (𝐴 ∖ {(𝑓‘∅)}) ∧ (𝐴 ∖ {(𝑓‘∅)}) ≈ 𝐴) → (𝐴 ∖ {𝐵}) ≈ 𝐴)
8313, 81, 82syl2anc 583 . . 3 (((ω ≼ 𝐴𝐵𝐴) ∧ 𝑓:ω–1-1𝐴) → (𝐴 ∖ {𝐵}) ≈ 𝐴)
842, 83exlimddv 1939 . 2 ((ω ≼ 𝐴𝐵𝐴) → (𝐴 ∖ {𝐵}) ≈ 𝐴)
85 difsn 4728 . . . 4 𝐵𝐴 → (𝐴 ∖ {𝐵}) = 𝐴)
8685adantl 481 . . 3 ((ω ≼ 𝐴 ∧ ¬ 𝐵𝐴) → (𝐴 ∖ {𝐵}) = 𝐴)
87 enrefg 8727 . . . . 5 (𝐴 ∈ V → 𝐴𝐴)
884, 87syl 17 . . . 4 (ω ≼ 𝐴𝐴𝐴)
8988adantr 480 . . 3 ((ω ≼ 𝐴 ∧ ¬ 𝐵𝐴) → 𝐴𝐴)
9086, 89eqbrtrd 5092 . 2 ((ω ≼ 𝐴 ∧ ¬ 𝐵𝐴) → (𝐴 ∖ {𝐵}) ≈ 𝐴)
9184, 90pm2.61dan 809 1 (ω ≼ 𝐴 → (𝐴 ∖ {𝐵}) ≈ 𝐴)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395   = wceq 1539  wex 1783  wcel 2108  Vcvv 3422  cdif 3880  cun 3881  cin 3882  wss 3883  c0 4253  {csn 4558   class class class wbr 5070  ccnv 5579  ran crn 5581  cres 5582  cima 5583  Fun wfun 6412   Fn wfn 6413  wf 6414  1-1wf1 6415  1-1-ontowf1o 6417  cfv 6418  ωcom 7687  cen 8688  cdom 8689
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-om 7688  df-er 8456  df-en 8692  df-dom 8693
This theorem is referenced by:  infdiffi  9346  infdju1  9876  infpss  9904
  Copyright terms: Public domain W3C validator