Step | Hyp | Ref
| Expression |
1 | | metakunt34.1 |
. . . . . . 7
⊢ (𝜑 → 𝑀 ∈ ℕ) |
2 | | metakunt34.2 |
. . . . . . 7
⊢ (𝜑 → 𝐼 ∈ ℕ) |
3 | | metakunt34.3 |
. . . . . . 7
⊢ (𝜑 → 𝐼 ≤ 𝑀) |
4 | | eqid 2737 |
. . . . . . 7
⊢ (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))) = (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))) |
5 | | eqid 2737 |
. . . . . . 7
⊢ (𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))) = (𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))) |
6 | 1, 2, 3, 4, 5 | metakunt14 39860 |
. . . . . 6
⊢ (𝜑 → ((𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))):(1...𝑀)–1-1-onto→(1...𝑀) ∧ ◡(𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))) = (𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))))) |
7 | 6 | simpld 498 |
. . . . 5
⊢ (𝜑 → (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))):(1...𝑀)–1-1-onto→(1...𝑀)) |
8 | | f1ocnv 6673 |
. . . . 5
⊢ ((𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))):(1...𝑀)–1-1-onto→(1...𝑀) → ◡(𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))):(1...𝑀)–1-1-onto→(1...𝑀)) |
9 | 7, 8 | syl 17 |
. . . 4
⊢ (𝜑 → ◡(𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))):(1...𝑀)–1-1-onto→(1...𝑀)) |
10 | 6 | simprd 499 |
. . . . 5
⊢ (𝜑 → ◡(𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))) = (𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1))))) |
11 | 10 | f1oeq1d 6656 |
. . . 4
⊢ (𝜑 → (◡(𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))):(1...𝑀)–1-1-onto→(1...𝑀) ↔ (𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))):(1...𝑀)–1-1-onto→(1...𝑀))) |
12 | 9, 11 | mpbid 235 |
. . 3
⊢ (𝜑 → (𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))):(1...𝑀)–1-1-onto→(1...𝑀)) |
13 | | eqid 2737 |
. . . . 5
⊢ (𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))) = (𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))) |
14 | 1, 2, 3, 13 | metakunt25 39871 |
. . . 4
⊢ (𝜑 → (𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))):(1...𝑀)–1-1-onto→(1...𝑀)) |
15 | | f1oco 6683 |
. . . 4
⊢ (((𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))):(1...𝑀)–1-1-onto→(1...𝑀) ∧ (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))):(1...𝑀)–1-1-onto→(1...𝑀)) → ((𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))) ∘ (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1))))):(1...𝑀)–1-1-onto→(1...𝑀)) |
16 | 14, 7, 15 | syl2anc 587 |
. . 3
⊢ (𝜑 → ((𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))) ∘ (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1))))):(1...𝑀)–1-1-onto→(1...𝑀)) |
17 | | f1oco 6683 |
. . 3
⊢ (((𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))):(1...𝑀)–1-1-onto→(1...𝑀) ∧ ((𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))) ∘ (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1))))):(1...𝑀)–1-1-onto→(1...𝑀)) → ((𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))) ∘ ((𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))) ∘ (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))))):(1...𝑀)–1-1-onto→(1...𝑀)) |
18 | 12, 16, 17 | syl2anc 587 |
. 2
⊢ (𝜑 → ((𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))) ∘ ((𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))) ∘ (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))))):(1...𝑀)–1-1-onto→(1...𝑀)) |
19 | | metakunt34.4 |
. . . 4
⊢ 𝐷 = (𝑤 ∈ (1...𝑀) ↦ if(𝑤 = 𝐼, 𝑤, if(𝑤 < 𝐼, ((𝑤 + (𝑀 − 𝐼)) + if(𝐼 ≤ (𝑤 + (𝑀 − 𝐼)), 1, 0)), ((𝑤 − 𝐼) + if(𝐼 ≤ (𝑤 − 𝐼), 1, 0))))) |
20 | 1, 2, 3, 4, 13, 5,
19 | metakunt33 39879 |
. . 3
⊢ (𝜑 → ((𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))) ∘ ((𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))) ∘ (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))))) = 𝐷) |
21 | 20 | f1oeq1d 6656 |
. 2
⊢ (𝜑 → (((𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))) ∘ ((𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))) ∘ (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))))):(1...𝑀)–1-1-onto→(1...𝑀) ↔ 𝐷:(1...𝑀)–1-1-onto→(1...𝑀))) |
22 | 18, 21 | mpbid 235 |
1
⊢ (𝜑 → 𝐷:(1...𝑀)–1-1-onto→(1...𝑀)) |