Step | Hyp | Ref
| Expression |
1 | | metakunt34.1 |
. . . . . . 7
⊢ (𝜑 → 𝑀 ∈ ℕ) |
2 | | metakunt34.2 |
. . . . . . 7
⊢ (𝜑 → 𝐼 ∈ ℕ) |
3 | | metakunt34.3 |
. . . . . . 7
⊢ (𝜑 → 𝐼 ≤ 𝑀) |
4 | | eqid 2738 |
. . . . . . 7
⊢ (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))) = (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))) |
5 | | eqid 2738 |
. . . . . . 7
⊢ (𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))) = (𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))) |
6 | 1, 2, 3, 4, 5 | metakunt14 40066 |
. . . . . 6
⊢ (𝜑 → ((𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))):(1...𝑀)–1-1-onto→(1...𝑀) ∧ ◡(𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))) = (𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))))) |
7 | 6 | simpld 494 |
. . . . 5
⊢ (𝜑 → (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))):(1...𝑀)–1-1-onto→(1...𝑀)) |
8 | | f1ocnv 6712 |
. . . . 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 495 |
. . . . 5
⊢ (𝜑 → ◡(𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))) = (𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1))))) |
11 | 10 | f1oeq1d 6695 |
. . . 4
⊢ (𝜑 → (◡(𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))):(1...𝑀)–1-1-onto→(1...𝑀) ↔ (𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))):(1...𝑀)–1-1-onto→(1...𝑀))) |
12 | 9, 11 | mpbid 231 |
. . 3
⊢ (𝜑 → (𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))):(1...𝑀)–1-1-onto→(1...𝑀)) |
13 | | eqid 2738 |
. . . . 5
⊢ (𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))) = (𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))) |
14 | 1, 2, 3, 13 | metakunt25 40077 |
. . . 4
⊢ (𝜑 → (𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))):(1...𝑀)–1-1-onto→(1...𝑀)) |
15 | | f1oco 6722 |
. . . 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 583 |
. . 3
⊢ (𝜑 → ((𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))) ∘ (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1))))):(1...𝑀)–1-1-onto→(1...𝑀)) |
17 | | f1oco 6722 |
. . 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 583 |
. 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 40085 |
. . 3
⊢ (𝜑 → ((𝑧 ∈ (1...𝑀) ↦ if(𝑧 = 𝑀, 𝐼, if(𝑧 < 𝐼, 𝑧, (𝑧 + 1)))) ∘ ((𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝑀, if(𝑦 < 𝐼, (𝑦 + (𝑀 − 𝐼)), (𝑦 + (1 − 𝐼))))) ∘ (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))))) = 𝐷) |
21 | 20 | f1oeq1d 6695 |
. 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 231 |
1
⊢ (𝜑 → 𝐷:(1...𝑀)–1-1-onto→(1...𝑀)) |