Proof of Theorem rp-isfinite6
Step | Hyp | Ref
| Expression |
1 | | exmid 892 |
. . . 4
⊢ (𝐴 = ∅ ∨ ¬ 𝐴 = ∅) |
2 | 1 | biantrur 531 |
. . 3
⊢ (𝐴 ∈ Fin ↔ ((𝐴 = ∅ ∨ ¬ 𝐴 = ∅) ∧ 𝐴 ∈ Fin)) |
3 | | andir 1006 |
. . 3
⊢ (((𝐴 = ∅ ∨ ¬ 𝐴 = ∅) ∧ 𝐴 ∈ Fin) ↔ ((𝐴 = ∅ ∧ 𝐴 ∈ Fin) ∨ (¬ 𝐴 = ∅ ∧ 𝐴 ∈ Fin))) |
4 | 2, 3 | bitri 274 |
. 2
⊢ (𝐴 ∈ Fin ↔ ((𝐴 = ∅ ∧ 𝐴 ∈ Fin) ∨ (¬ 𝐴 = ∅ ∧ 𝐴 ∈ Fin))) |
5 | | simpl 483 |
. . . 4
⊢ ((𝐴 = ∅ ∧ 𝐴 ∈ Fin) → 𝐴 = ∅) |
6 | | 0fin 8954 |
. . . . . 6
⊢ ∅
∈ Fin |
7 | | eleq1a 2834 |
. . . . . 6
⊢ (∅
∈ Fin → (𝐴 =
∅ → 𝐴 ∈
Fin)) |
8 | 6, 7 | ax-mp 5 |
. . . . 5
⊢ (𝐴 = ∅ → 𝐴 ∈ Fin) |
9 | 8 | ancli 549 |
. . . 4
⊢ (𝐴 = ∅ → (𝐴 = ∅ ∧ 𝐴 ∈ Fin)) |
10 | 5, 9 | impbii 208 |
. . 3
⊢ ((𝐴 = ∅ ∧ 𝐴 ∈ Fin) ↔ 𝐴 = ∅) |
11 | | rp-isfinite5 41124 |
. . . . . 6
⊢ (𝐴 ∈ Fin ↔ ∃𝑛 ∈ ℕ0
(1...𝑛) ≈ 𝐴) |
12 | | df-rex 3070 |
. . . . . 6
⊢
(∃𝑛 ∈
ℕ0 (1...𝑛)
≈ 𝐴 ↔
∃𝑛(𝑛 ∈ ℕ0 ∧ (1...𝑛) ≈ 𝐴)) |
13 | 11, 12 | bitri 274 |
. . . . 5
⊢ (𝐴 ∈ Fin ↔ ∃𝑛(𝑛 ∈ ℕ0 ∧ (1...𝑛) ≈ 𝐴)) |
14 | 13 | anbi2i 623 |
. . . 4
⊢ ((¬
𝐴 = ∅ ∧ 𝐴 ∈ Fin) ↔ (¬ 𝐴 = ∅ ∧ ∃𝑛(𝑛 ∈ ℕ0 ∧ (1...𝑛) ≈ 𝐴))) |
15 | | df-rex 3070 |
. . . . 5
⊢
(∃𝑛 ∈
ℕ (1...𝑛) ≈
𝐴 ↔ ∃𝑛(𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴)) |
16 | | en0 8803 |
. . . . . . . . . . . . . 14
⊢ (𝐴 ≈ ∅ ↔ 𝐴 = ∅) |
17 | | ensymb 8788 |
. . . . . . . . . . . . . 14
⊢ (𝐴 ≈ ∅ ↔ ∅
≈ 𝐴) |
18 | 16, 17 | bitr3i 276 |
. . . . . . . . . . . . 13
⊢ (𝐴 = ∅ ↔ ∅
≈ 𝐴) |
19 | 18 | notbii 320 |
. . . . . . . . . . . 12
⊢ (¬
𝐴 = ∅ ↔ ¬
∅ ≈ 𝐴) |
20 | | elnn0 12235 |
. . . . . . . . . . . . . 14
⊢ (𝑛 ∈ ℕ0
↔ (𝑛 ∈ ℕ
∨ 𝑛 =
0)) |
21 | 20 | anbi1i 624 |
. . . . . . . . . . . . 13
⊢ ((𝑛 ∈ ℕ0
∧ (1...𝑛) ≈ 𝐴) ↔ ((𝑛 ∈ ℕ ∨ 𝑛 = 0) ∧ (1...𝑛) ≈ 𝐴)) |
22 | | andir 1006 |
. . . . . . . . . . . . 13
⊢ (((𝑛 ∈ ℕ ∨ 𝑛 = 0) ∧ (1...𝑛) ≈ 𝐴) ↔ ((𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴) ∨ (𝑛 = 0 ∧ (1...𝑛) ≈ 𝐴))) |
23 | 21, 22 | bitri 274 |
. . . . . . . . . . . 12
⊢ ((𝑛 ∈ ℕ0
∧ (1...𝑛) ≈ 𝐴) ↔ ((𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴) ∨ (𝑛 = 0 ∧ (1...𝑛) ≈ 𝐴))) |
24 | 19, 23 | anbi12i 627 |
. . . . . . . . . . 11
⊢ ((¬
𝐴 = ∅ ∧ (𝑛 ∈ ℕ0
∧ (1...𝑛) ≈ 𝐴)) ↔ (¬ ∅ ≈
𝐴 ∧ ((𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴) ∨ (𝑛 = 0 ∧ (1...𝑛) ≈ 𝐴)))) |
25 | | andi 1005 |
. . . . . . . . . . 11
⊢ ((¬
∅ ≈ 𝐴 ∧
((𝑛 ∈ ℕ ∧
(1...𝑛) ≈ 𝐴) ∨ (𝑛 = 0 ∧ (1...𝑛) ≈ 𝐴))) ↔ ((¬ ∅ ≈ 𝐴 ∧ (𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴)) ∨ (¬ ∅ ≈ 𝐴 ∧ (𝑛 = 0 ∧ (1...𝑛) ≈ 𝐴)))) |
26 | 24, 25 | bitri 274 |
. . . . . . . . . 10
⊢ ((¬
𝐴 = ∅ ∧ (𝑛 ∈ ℕ0
∧ (1...𝑛) ≈ 𝐴)) ↔ ((¬ ∅
≈ 𝐴 ∧ (𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴)) ∨ (¬ ∅ ≈ 𝐴 ∧ (𝑛 = 0 ∧ (1...𝑛) ≈ 𝐴)))) |
27 | | 3anass 1094 |
. . . . . . . . . . 11
⊢ ((¬
∅ ≈ 𝐴 ∧
𝑛 ∈ ℕ ∧
(1...𝑛) ≈ 𝐴) ↔ (¬ ∅ ≈
𝐴 ∧ (𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴))) |
28 | | 3anass 1094 |
. . . . . . . . . . 11
⊢ ((¬
∅ ≈ 𝐴 ∧
𝑛 = 0 ∧ (1...𝑛) ≈ 𝐴) ↔ (¬ ∅ ≈ 𝐴 ∧ (𝑛 = 0 ∧ (1...𝑛) ≈ 𝐴))) |
29 | 27, 28 | orbi12i 912 |
. . . . . . . . . 10
⊢ (((¬
∅ ≈ 𝐴 ∧
𝑛 ∈ ℕ ∧
(1...𝑛) ≈ 𝐴) ∨ (¬ ∅ ≈
𝐴 ∧ 𝑛 = 0 ∧ (1...𝑛) ≈ 𝐴)) ↔ ((¬ ∅ ≈ 𝐴 ∧ (𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴)) ∨ (¬ ∅ ≈ 𝐴 ∧ (𝑛 = 0 ∧ (1...𝑛) ≈ 𝐴)))) |
30 | 26, 29 | sylbb2 237 |
. . . . . . . . 9
⊢ ((¬
𝐴 = ∅ ∧ (𝑛 ∈ ℕ0
∧ (1...𝑛) ≈ 𝐴)) → ((¬ ∅
≈ 𝐴 ∧ 𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴) ∨ (¬ ∅ ≈ 𝐴 ∧ 𝑛 = 0 ∧ (1...𝑛) ≈ 𝐴))) |
31 | | simp2 1136 |
. . . . . . . . . 10
⊢ ((¬
∅ ≈ 𝐴 ∧
𝑛 ∈ ℕ ∧
(1...𝑛) ≈ 𝐴) → 𝑛 ∈ ℕ) |
32 | | oveq2 7283 |
. . . . . . . . . . . 12
⊢ (𝑛 = 0 → (1...𝑛) = (1...0)) |
33 | | fz10 13277 |
. . . . . . . . . . . 12
⊢ (1...0) =
∅ |
34 | 32, 33 | eqtrdi 2794 |
. . . . . . . . . . 11
⊢ (𝑛 = 0 → (1...𝑛) = ∅) |
35 | | simp2 1136 |
. . . . . . . . . . . . 13
⊢ ((¬
∅ ≈ 𝐴 ∧
(1...𝑛) = ∅ ∧
(1...𝑛) ≈ 𝐴) → (1...𝑛) = ∅) |
36 | | simp3 1137 |
. . . . . . . . . . . . 13
⊢ ((¬
∅ ≈ 𝐴 ∧
(1...𝑛) = ∅ ∧
(1...𝑛) ≈ 𝐴) → (1...𝑛) ≈ 𝐴) |
37 | 35, 36 | eqbrtrrd 5098 |
. . . . . . . . . . . 12
⊢ ((¬
∅ ≈ 𝐴 ∧
(1...𝑛) = ∅ ∧
(1...𝑛) ≈ 𝐴) → ∅ ≈ 𝐴) |
38 | | simp1 1135 |
. . . . . . . . . . . 12
⊢ ((¬
∅ ≈ 𝐴 ∧
(1...𝑛) = ∅ ∧
(1...𝑛) ≈ 𝐴) → ¬ ∅ ≈
𝐴) |
39 | 37, 38 | pm2.21dd 194 |
. . . . . . . . . . 11
⊢ ((¬
∅ ≈ 𝐴 ∧
(1...𝑛) = ∅ ∧
(1...𝑛) ≈ 𝐴) → 𝑛 ∈ ℕ) |
40 | 34, 39 | syl3an2 1163 |
. . . . . . . . . 10
⊢ ((¬
∅ ≈ 𝐴 ∧
𝑛 = 0 ∧ (1...𝑛) ≈ 𝐴) → 𝑛 ∈ ℕ) |
41 | 31, 40 | jaoi 854 |
. . . . . . . . 9
⊢ (((¬
∅ ≈ 𝐴 ∧
𝑛 ∈ ℕ ∧
(1...𝑛) ≈ 𝐴) ∨ (¬ ∅ ≈
𝐴 ∧ 𝑛 = 0 ∧ (1...𝑛) ≈ 𝐴)) → 𝑛 ∈ ℕ) |
42 | 30, 41 | syl 17 |
. . . . . . . 8
⊢ ((¬
𝐴 = ∅ ∧ (𝑛 ∈ ℕ0
∧ (1...𝑛) ≈ 𝐴)) → 𝑛 ∈ ℕ) |
43 | | simprr 770 |
. . . . . . . 8
⊢ ((¬
𝐴 = ∅ ∧ (𝑛 ∈ ℕ0
∧ (1...𝑛) ≈ 𝐴)) → (1...𝑛) ≈ 𝐴) |
44 | 42, 43 | jca 512 |
. . . . . . 7
⊢ ((¬
𝐴 = ∅ ∧ (𝑛 ∈ ℕ0
∧ (1...𝑛) ≈ 𝐴)) → (𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴)) |
45 | | nngt0 12004 |
. . . . . . . . . . . 12
⊢ (𝑛 ∈ ℕ → 0 <
𝑛) |
46 | | hash0 14082 |
. . . . . . . . . . . . 13
⊢
(♯‘∅) = 0 |
47 | 46 | a1i 11 |
. . . . . . . . . . . 12
⊢ (𝑛 ∈ ℕ →
(♯‘∅) = 0) |
48 | | nnnn0 12240 |
. . . . . . . . . . . . 13
⊢ (𝑛 ∈ ℕ → 𝑛 ∈
ℕ0) |
49 | | hashfz1 14060 |
. . . . . . . . . . . . 13
⊢ (𝑛 ∈ ℕ0
→ (♯‘(1...𝑛)) = 𝑛) |
50 | 48, 49 | syl 17 |
. . . . . . . . . . . 12
⊢ (𝑛 ∈ ℕ →
(♯‘(1...𝑛)) =
𝑛) |
51 | 45, 47, 50 | 3brtr4d 5106 |
. . . . . . . . . . 11
⊢ (𝑛 ∈ ℕ →
(♯‘∅) < (♯‘(1...𝑛))) |
52 | | fzfi 13692 |
. . . . . . . . . . . 12
⊢
(1...𝑛) ∈
Fin |
53 | | hashsdom 14096 |
. . . . . . . . . . . 12
⊢ ((∅
∈ Fin ∧ (1...𝑛)
∈ Fin) → ((♯‘∅) < (♯‘(1...𝑛)) ↔ ∅ ≺
(1...𝑛))) |
54 | 6, 52, 53 | mp2an 689 |
. . . . . . . . . . 11
⊢
((♯‘∅) < (♯‘(1...𝑛)) ↔ ∅ ≺ (1...𝑛)) |
55 | 51, 54 | sylib 217 |
. . . . . . . . . 10
⊢ (𝑛 ∈ ℕ → ∅
≺ (1...𝑛)) |
56 | 55 | anim1i 615 |
. . . . . . . . 9
⊢ ((𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴) → (∅ ≺ (1...𝑛) ∧ (1...𝑛) ≈ 𝐴)) |
57 | | sdomentr 8898 |
. . . . . . . . . . 11
⊢ ((∅
≺ (1...𝑛) ∧
(1...𝑛) ≈ 𝐴) → ∅ ≺ 𝐴) |
58 | | sdomnen 8769 |
. . . . . . . . . . 11
⊢ (∅
≺ 𝐴 → ¬
∅ ≈ 𝐴) |
59 | 57, 58 | syl 17 |
. . . . . . . . . 10
⊢ ((∅
≺ (1...𝑛) ∧
(1...𝑛) ≈ 𝐴) → ¬ ∅ ≈
𝐴) |
60 | | ensymb 8788 |
. . . . . . . . . . . 12
⊢ (∅
≈ 𝐴 ↔ 𝐴 ≈
∅) |
61 | 60, 16 | bitri 274 |
. . . . . . . . . . 11
⊢ (∅
≈ 𝐴 ↔ 𝐴 = ∅) |
62 | 61 | notbii 320 |
. . . . . . . . . 10
⊢ (¬
∅ ≈ 𝐴 ↔
¬ 𝐴 =
∅) |
63 | 59, 62 | sylib 217 |
. . . . . . . . 9
⊢ ((∅
≺ (1...𝑛) ∧
(1...𝑛) ≈ 𝐴) → ¬ 𝐴 = ∅) |
64 | 56, 63 | syl 17 |
. . . . . . . 8
⊢ ((𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴) → ¬ 𝐴 = ∅) |
65 | 48 | anim1i 615 |
. . . . . . . 8
⊢ ((𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴) → (𝑛 ∈ ℕ0 ∧ (1...𝑛) ≈ 𝐴)) |
66 | 64, 65 | jca 512 |
. . . . . . 7
⊢ ((𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴) → (¬ 𝐴 = ∅ ∧ (𝑛 ∈ ℕ0 ∧ (1...𝑛) ≈ 𝐴))) |
67 | 44, 66 | impbii 208 |
. . . . . 6
⊢ ((¬
𝐴 = ∅ ∧ (𝑛 ∈ ℕ0
∧ (1...𝑛) ≈ 𝐴)) ↔ (𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴)) |
68 | 67 | exbii 1850 |
. . . . 5
⊢
(∃𝑛(¬
𝐴 = ∅ ∧ (𝑛 ∈ ℕ0
∧ (1...𝑛) ≈ 𝐴)) ↔ ∃𝑛(𝑛 ∈ ℕ ∧ (1...𝑛) ≈ 𝐴)) |
69 | | 19.42v 1957 |
. . . . 5
⊢
(∃𝑛(¬
𝐴 = ∅ ∧ (𝑛 ∈ ℕ0
∧ (1...𝑛) ≈ 𝐴)) ↔ (¬ 𝐴 = ∅ ∧ ∃𝑛(𝑛 ∈ ℕ0 ∧ (1...𝑛) ≈ 𝐴))) |
70 | 15, 68, 69 | 3bitr2ri 300 |
. . . 4
⊢ ((¬
𝐴 = ∅ ∧
∃𝑛(𝑛 ∈ ℕ0 ∧ (1...𝑛) ≈ 𝐴)) ↔ ∃𝑛 ∈ ℕ (1...𝑛) ≈ 𝐴) |
71 | 14, 70 | bitri 274 |
. . 3
⊢ ((¬
𝐴 = ∅ ∧ 𝐴 ∈ Fin) ↔ ∃𝑛 ∈ ℕ (1...𝑛) ≈ 𝐴) |
72 | 10, 71 | orbi12i 912 |
. 2
⊢ (((𝐴 = ∅ ∧ 𝐴 ∈ Fin) ∨ (¬ 𝐴 = ∅ ∧ 𝐴 ∈ Fin)) ↔ (𝐴 = ∅ ∨ ∃𝑛 ∈ ℕ (1...𝑛) ≈ 𝐴)) |
73 | 4, 72 | bitri 274 |
1
⊢ (𝐴 ∈ Fin ↔ (𝐴 = ∅ ∨ ∃𝑛 ∈ ℕ (1...𝑛) ≈ 𝐴)) |