Step | Hyp | Ref
| Expression |
1 | | madjusmdet.n |
. . . . . . . . . . . 12
⊢ (𝜑 → 𝑁 ∈ ℕ) |
2 | | nnuz 12630 |
. . . . . . . . . . . 12
⊢ ℕ =
(ℤ≥‘1) |
3 | 1, 2 | eleqtrdi 2850 |
. . . . . . . . . . 11
⊢ (𝜑 → 𝑁 ∈
(ℤ≥‘1)) |
4 | | eluzfz2 13273 |
. . . . . . . . . . 11
⊢ (𝑁 ∈
(ℤ≥‘1) → 𝑁 ∈ (1...𝑁)) |
5 | 3, 4 | syl 17 |
. . . . . . . . . 10
⊢ (𝜑 → 𝑁 ∈ (1...𝑁)) |
6 | | eqid 2739 |
. . . . . . . . . . 11
⊢
(1...𝑁) = (1...𝑁) |
7 | | madjusmdetlem2.s |
. . . . . . . . . . 11
⊢ 𝑆 = (𝑖 ∈ (1...𝑁) ↦ if(𝑖 = 1, 𝑁, if(𝑖 ≤ 𝑁, (𝑖 − 1), 𝑖))) |
8 | | eqid 2739 |
. . . . . . . . . . 11
⊢
(SymGrp‘(1...𝑁)) = (SymGrp‘(1...𝑁)) |
9 | | eqid 2739 |
. . . . . . . . . . 11
⊢
(Base‘(SymGrp‘(1...𝑁))) = (Base‘(SymGrp‘(1...𝑁))) |
10 | 6, 7, 8, 9 | fzto1st 31379 |
. . . . . . . . . 10
⊢ (𝑁 ∈ (1...𝑁) → 𝑆 ∈ (Base‘(SymGrp‘(1...𝑁)))) |
11 | 5, 10 | syl 17 |
. . . . . . . . 9
⊢ (𝜑 → 𝑆 ∈ (Base‘(SymGrp‘(1...𝑁)))) |
12 | 8, 9 | symgbasf1o 18991 |
. . . . . . . . 9
⊢ (𝑆 ∈
(Base‘(SymGrp‘(1...𝑁))) → 𝑆:(1...𝑁)–1-1-onto→(1...𝑁)) |
13 | 11, 12 | syl 17 |
. . . . . . . 8
⊢ (𝜑 → 𝑆:(1...𝑁)–1-1-onto→(1...𝑁)) |
14 | 13 | adantr 481 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → 𝑆:(1...𝑁)–1-1-onto→(1...𝑁)) |
15 | | fznatpl1 13319 |
. . . . . . . 8
⊢ ((𝑁 ∈ ℕ ∧ 𝑋 ∈ (1...(𝑁 − 1))) → (𝑋 + 1) ∈ (1...𝑁)) |
16 | 1, 15 | sylan 580 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → (𝑋 + 1) ∈ (1...𝑁)) |
17 | | eqeq1 2743 |
. . . . . . . . . . . . 13
⊢ (𝑖 = 𝑥 → (𝑖 = 1 ↔ 𝑥 = 1)) |
18 | | breq1 5078 |
. . . . . . . . . . . . . 14
⊢ (𝑖 = 𝑥 → (𝑖 ≤ 𝑁 ↔ 𝑥 ≤ 𝑁)) |
19 | | oveq1 7291 |
. . . . . . . . . . . . . 14
⊢ (𝑖 = 𝑥 → (𝑖 − 1) = (𝑥 − 1)) |
20 | | id 22 |
. . . . . . . . . . . . . 14
⊢ (𝑖 = 𝑥 → 𝑖 = 𝑥) |
21 | 18, 19, 20 | ifbieq12d 4488 |
. . . . . . . . . . . . 13
⊢ (𝑖 = 𝑥 → if(𝑖 ≤ 𝑁, (𝑖 − 1), 𝑖) = if(𝑥 ≤ 𝑁, (𝑥 − 1), 𝑥)) |
22 | 17, 21 | ifbieq2d 4486 |
. . . . . . . . . . . 12
⊢ (𝑖 = 𝑥 → if(𝑖 = 1, 𝑁, if(𝑖 ≤ 𝑁, (𝑖 − 1), 𝑖)) = if(𝑥 = 1, 𝑁, if(𝑥 ≤ 𝑁, (𝑥 − 1), 𝑥))) |
23 | 22 | cbvmptv 5188 |
. . . . . . . . . . 11
⊢ (𝑖 ∈ (1...𝑁) ↦ if(𝑖 = 1, 𝑁, if(𝑖 ≤ 𝑁, (𝑖 − 1), 𝑖))) = (𝑥 ∈ (1...𝑁) ↦ if(𝑥 = 1, 𝑁, if(𝑥 ≤ 𝑁, (𝑥 − 1), 𝑥))) |
24 | 7, 23 | eqtri 2767 |
. . . . . . . . . 10
⊢ 𝑆 = (𝑥 ∈ (1...𝑁) ↦ if(𝑥 = 1, 𝑁, if(𝑥 ≤ 𝑁, (𝑥 − 1), 𝑥))) |
25 | 24 | a1i 11 |
. . . . . . . . 9
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → 𝑆 = (𝑥 ∈ (1...𝑁) ↦ if(𝑥 = 1, 𝑁, if(𝑥 ≤ 𝑁, (𝑥 − 1), 𝑥)))) |
26 | | simpr 485 |
. . . . . . . . . . . . 13
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → 𝑥 = (𝑋 + 1)) |
27 | | 1red 10985 |
. . . . . . . . . . . . . . 15
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → 1 ∈
ℝ) |
28 | | fz1ssnn 13296 |
. . . . . . . . . . . . . . . . . . 19
⊢
(1...(𝑁 − 1))
⊆ ℕ |
29 | | simpr 485 |
. . . . . . . . . . . . . . . . . . 19
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → 𝑋 ∈ (1...(𝑁 − 1))) |
30 | 28, 29 | sselid 3920 |
. . . . . . . . . . . . . . . . . 18
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → 𝑋 ∈ ℕ) |
31 | 30 | nnrpd 12779 |
. . . . . . . . . . . . . . . . 17
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → 𝑋 ∈
ℝ+) |
32 | 31 | adantr 481 |
. . . . . . . . . . . . . . . 16
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → 𝑋 ∈
ℝ+) |
33 | 27, 32 | ltaddrp2d 12815 |
. . . . . . . . . . . . . . 15
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → 1 < (𝑋 + 1)) |
34 | 27, 33 | ltned 11120 |
. . . . . . . . . . . . . 14
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → 1 ≠ (𝑋 + 1)) |
35 | 34 | necomd 3000 |
. . . . . . . . . . . . 13
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → (𝑋 + 1) ≠ 1) |
36 | 26, 35 | eqnetrd 3012 |
. . . . . . . . . . . 12
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → 𝑥 ≠ 1) |
37 | 36 | neneqd 2949 |
. . . . . . . . . . 11
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → ¬ 𝑥 = 1) |
38 | 37 | iffalsed 4471 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → if(𝑥 = 1, 𝑁, if(𝑥 ≤ 𝑁, (𝑥 − 1), 𝑥)) = if(𝑥 ≤ 𝑁, (𝑥 − 1), 𝑥)) |
39 | 1 | adantr 481 |
. . . . . . . . . . . . . 14
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → 𝑁 ∈ ℕ) |
40 | 30 | nnnn0d 12302 |
. . . . . . . . . . . . . . 15
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → 𝑋 ∈
ℕ0) |
41 | 39 | nnnn0d 12302 |
. . . . . . . . . . . . . . 15
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → 𝑁 ∈
ℕ0) |
42 | | elfzle2 13269 |
. . . . . . . . . . . . . . . 16
⊢ (𝑋 ∈ (1...(𝑁 − 1)) → 𝑋 ≤ (𝑁 − 1)) |
43 | 29, 42 | syl 17 |
. . . . . . . . . . . . . . 15
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → 𝑋 ≤ (𝑁 − 1)) |
44 | | nn0ltlem1 12389 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑋 ∈ ℕ0
∧ 𝑁 ∈
ℕ0) → (𝑋 < 𝑁 ↔ 𝑋 ≤ (𝑁 − 1))) |
45 | 44 | biimpar 478 |
. . . . . . . . . . . . . . 15
⊢ (((𝑋 ∈ ℕ0
∧ 𝑁 ∈
ℕ0) ∧ 𝑋 ≤ (𝑁 − 1)) → 𝑋 < 𝑁) |
46 | 40, 41, 43, 45 | syl21anc 835 |
. . . . . . . . . . . . . 14
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → 𝑋 < 𝑁) |
47 | | nnltp1le 12385 |
. . . . . . . . . . . . . . 15
⊢ ((𝑋 ∈ ℕ ∧ 𝑁 ∈ ℕ) → (𝑋 < 𝑁 ↔ (𝑋 + 1) ≤ 𝑁)) |
48 | 47 | biimpa 477 |
. . . . . . . . . . . . . 14
⊢ (((𝑋 ∈ ℕ ∧ 𝑁 ∈ ℕ) ∧ 𝑋 < 𝑁) → (𝑋 + 1) ≤ 𝑁) |
49 | 30, 39, 46, 48 | syl21anc 835 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → (𝑋 + 1) ≤ 𝑁) |
50 | 49 | adantr 481 |
. . . . . . . . . . . 12
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → (𝑋 + 1) ≤ 𝑁) |
51 | 26, 50 | eqbrtrd 5097 |
. . . . . . . . . . 11
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → 𝑥 ≤ 𝑁) |
52 | 51 | iftrued 4468 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → if(𝑥 ≤ 𝑁, (𝑥 − 1), 𝑥) = (𝑥 − 1)) |
53 | 26 | oveq1d 7299 |
. . . . . . . . . . 11
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → (𝑥 − 1) = ((𝑋 + 1) − 1)) |
54 | 30 | nncnd 11998 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → 𝑋 ∈ ℂ) |
55 | | 1cnd 10979 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → 1 ∈
ℂ) |
56 | 54, 55 | pncand 11342 |
. . . . . . . . . . . 12
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → ((𝑋 + 1) − 1) = 𝑋) |
57 | 56 | adantr 481 |
. . . . . . . . . . 11
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → ((𝑋 + 1) − 1) = 𝑋) |
58 | 53, 57 | eqtrd 2779 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → (𝑥 − 1) = 𝑋) |
59 | 38, 52, 58 | 3eqtrd 2783 |
. . . . . . . . 9
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → if(𝑥 = 1, 𝑁, if(𝑥 ≤ 𝑁, (𝑥 − 1), 𝑥)) = 𝑋) |
60 | 25, 59, 16, 29 | fvmptd 6891 |
. . . . . . . 8
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → (𝑆‘(𝑋 + 1)) = 𝑋) |
61 | 60 | idi 1 |
. . . . . . 7
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → (𝑆‘(𝑋 + 1)) = 𝑋) |
62 | | f1ocnvfv 7159 |
. . . . . . . 8
⊢ ((𝑆:(1...𝑁)–1-1-onto→(1...𝑁) ∧ (𝑋 + 1) ∈ (1...𝑁)) → ((𝑆‘(𝑋 + 1)) = 𝑋 → (◡𝑆‘𝑋) = (𝑋 + 1))) |
63 | 62 | imp 407 |
. . . . . . 7
⊢ (((𝑆:(1...𝑁)–1-1-onto→(1...𝑁) ∧ (𝑋 + 1) ∈ (1...𝑁)) ∧ (𝑆‘(𝑋 + 1)) = 𝑋) → (◡𝑆‘𝑋) = (𝑋 + 1)) |
64 | 14, 16, 61, 63 | syl21anc 835 |
. . . . . 6
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → (◡𝑆‘𝑋) = (𝑋 + 1)) |
65 | 64 | fveq2d 6787 |
. . . . 5
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → (𝑃‘(◡𝑆‘𝑋)) = (𝑃‘(𝑋 + 1))) |
66 | 65 | adantr 481 |
. . . 4
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) → (𝑃‘(◡𝑆‘𝑋)) = (𝑃‘(𝑋 + 1))) |
67 | | madjusmdetlem2.p |
. . . . . . 7
⊢ 𝑃 = (𝑖 ∈ (1...𝑁) ↦ if(𝑖 = 1, 𝐼, if(𝑖 ≤ 𝐼, (𝑖 − 1), 𝑖))) |
68 | 20 | breq1d 5085 |
. . . . . . . . . 10
⊢ (𝑖 = 𝑥 → (𝑖 ≤ 𝐼 ↔ 𝑥 ≤ 𝐼)) |
69 | 68, 19, 20 | ifbieq12d 4488 |
. . . . . . . . 9
⊢ (𝑖 = 𝑥 → if(𝑖 ≤ 𝐼, (𝑖 − 1), 𝑖) = if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥)) |
70 | 17, 69 | ifbieq2d 4486 |
. . . . . . . 8
⊢ (𝑖 = 𝑥 → if(𝑖 = 1, 𝐼, if(𝑖 ≤ 𝐼, (𝑖 − 1), 𝑖)) = if(𝑥 = 1, 𝐼, if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥))) |
71 | 70 | cbvmptv 5188 |
. . . . . . 7
⊢ (𝑖 ∈ (1...𝑁) ↦ if(𝑖 = 1, 𝐼, if(𝑖 ≤ 𝐼, (𝑖 − 1), 𝑖))) = (𝑥 ∈ (1...𝑁) ↦ if(𝑥 = 1, 𝐼, if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥))) |
72 | 67, 71 | eqtri 2767 |
. . . . . 6
⊢ 𝑃 = (𝑥 ∈ (1...𝑁) ↦ if(𝑥 = 1, 𝐼, if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥))) |
73 | 72 | a1i 11 |
. . . . 5
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) → 𝑃 = (𝑥 ∈ (1...𝑁) ↦ if(𝑥 = 1, 𝐼, if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥)))) |
74 | 33, 26 | breqtrrd 5103 |
. . . . . . . . . . 11
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → 1 < 𝑥) |
75 | 27, 74 | ltned 11120 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → 1 ≠ 𝑥) |
76 | 75 | necomd 3000 |
. . . . . . . . 9
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → 𝑥 ≠ 1) |
77 | 76 | neneqd 2949 |
. . . . . . . 8
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → ¬ 𝑥 = 1) |
78 | 77 | iffalsed 4471 |
. . . . . . 7
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → if(𝑥 = 1, 𝐼, if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥)) = if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥)) |
79 | 78 | adantlr 712 |
. . . . . 6
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → if(𝑥 = 1, 𝐼, if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥)) = if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥)) |
80 | | simpr 485 |
. . . . . . . 8
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → 𝑥 = (𝑋 + 1)) |
81 | 30 | ad2antrr 723 |
. . . . . . . . 9
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → 𝑋 ∈ ℕ) |
82 | | fz1ssnn 13296 |
. . . . . . . . . . 11
⊢
(1...𝑁) ⊆
ℕ |
83 | | madjusmdet.i |
. . . . . . . . . . 11
⊢ (𝜑 → 𝐼 ∈ (1...𝑁)) |
84 | 82, 83 | sselid 3920 |
. . . . . . . . . 10
⊢ (𝜑 → 𝐼 ∈ ℕ) |
85 | 84 | ad3antrrr 727 |
. . . . . . . . 9
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → 𝐼 ∈ ℕ) |
86 | | simplr 766 |
. . . . . . . . 9
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → 𝑋 < 𝐼) |
87 | | nnltp1le 12385 |
. . . . . . . . . 10
⊢ ((𝑋 ∈ ℕ ∧ 𝐼 ∈ ℕ) → (𝑋 < 𝐼 ↔ (𝑋 + 1) ≤ 𝐼)) |
88 | 87 | biimpa 477 |
. . . . . . . . 9
⊢ (((𝑋 ∈ ℕ ∧ 𝐼 ∈ ℕ) ∧ 𝑋 < 𝐼) → (𝑋 + 1) ≤ 𝐼) |
89 | 81, 85, 86, 88 | syl21anc 835 |
. . . . . . . 8
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → (𝑋 + 1) ≤ 𝐼) |
90 | 80, 89 | eqbrtrd 5097 |
. . . . . . 7
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → 𝑥 ≤ 𝐼) |
91 | 90 | iftrued 4468 |
. . . . . 6
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥) = (𝑥 − 1)) |
92 | 58 | adantlr 712 |
. . . . . 6
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → (𝑥 − 1) = 𝑋) |
93 | 79, 91, 92 | 3eqtrd 2783 |
. . . . 5
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → if(𝑥 = 1, 𝐼, if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥)) = 𝑋) |
94 | 16 | adantr 481 |
. . . . 5
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) → (𝑋 + 1) ∈ (1...𝑁)) |
95 | | simplr 766 |
. . . . 5
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) → 𝑋 ∈ (1...(𝑁 − 1))) |
96 | 73, 93, 94, 95 | fvmptd 6891 |
. . . 4
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) → (𝑃‘(𝑋 + 1)) = 𝑋) |
97 | 66, 96 | eqtr2d 2780 |
. . 3
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑋 < 𝐼) → 𝑋 = (𝑃‘(◡𝑆‘𝑋))) |
98 | 65 | adantr 481 |
. . . 4
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ ¬ 𝑋 < 𝐼) → (𝑃‘(◡𝑆‘𝑋)) = (𝑃‘(𝑋 + 1))) |
99 | 72 | a1i 11 |
. . . . 5
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ ¬ 𝑋 < 𝐼) → 𝑃 = (𝑥 ∈ (1...𝑁) ↦ if(𝑥 = 1, 𝐼, if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥)))) |
100 | 78 | adantlr 712 |
. . . . . 6
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ ¬ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → if(𝑥 = 1, 𝐼, if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥)) = if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥)) |
101 | 30 | ad2antrr 723 |
. . . . . . . . . . . . 13
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) ∧ 𝑥 ≤ 𝐼) → 𝑋 ∈ ℕ) |
102 | 84 | ad3antrrr 727 |
. . . . . . . . . . . . 13
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) ∧ 𝑥 ≤ 𝐼) → 𝐼 ∈ ℕ) |
103 | 26 | adantr 481 |
. . . . . . . . . . . . . 14
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) ∧ 𝑥 ≤ 𝐼) → 𝑥 = (𝑋 + 1)) |
104 | | simpr 485 |
. . . . . . . . . . . . . 14
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) ∧ 𝑥 ≤ 𝐼) → 𝑥 ≤ 𝐼) |
105 | 103, 104 | eqbrtrrd 5099 |
. . . . . . . . . . . . 13
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) ∧ 𝑥 ≤ 𝐼) → (𝑋 + 1) ≤ 𝐼) |
106 | 87 | biimpar 478 |
. . . . . . . . . . . . 13
⊢ (((𝑋 ∈ ℕ ∧ 𝐼 ∈ ℕ) ∧ (𝑋 + 1) ≤ 𝐼) → 𝑋 < 𝐼) |
107 | 101, 102,
105, 106 | syl21anc 835 |
. . . . . . . . . . . 12
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) ∧ 𝑥 ≤ 𝐼) → 𝑋 < 𝐼) |
108 | 107 | ex 413 |
. . . . . . . . . . 11
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → (𝑥 ≤ 𝐼 → 𝑋 < 𝐼)) |
109 | 108 | con3d 152 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) → (¬ 𝑋 < 𝐼 → ¬ 𝑥 ≤ 𝐼)) |
110 | 109 | imp 407 |
. . . . . . . . 9
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ 𝑥 = (𝑋 + 1)) ∧ ¬ 𝑋 < 𝐼) → ¬ 𝑥 ≤ 𝐼) |
111 | 110 | an32s 649 |
. . . . . . . 8
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ ¬ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → ¬ 𝑥 ≤ 𝐼) |
112 | 111 | iffalsed 4471 |
. . . . . . 7
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ ¬ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥) = 𝑥) |
113 | | simpr 485 |
. . . . . . 7
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ ¬ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → 𝑥 = (𝑋 + 1)) |
114 | 112, 113 | eqtrd 2779 |
. . . . . 6
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ ¬ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥) = (𝑋 + 1)) |
115 | 100, 114 | eqtrd 2779 |
. . . . 5
⊢ ((((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ ¬ 𝑋 < 𝐼) ∧ 𝑥 = (𝑋 + 1)) → if(𝑥 = 1, 𝐼, if(𝑥 ≤ 𝐼, (𝑥 − 1), 𝑥)) = (𝑋 + 1)) |
116 | 16 | adantr 481 |
. . . . 5
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ ¬ 𝑋 < 𝐼) → (𝑋 + 1) ∈ (1...𝑁)) |
117 | 99, 115, 116, 116 | fvmptd 6891 |
. . . 4
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ ¬ 𝑋 < 𝐼) → (𝑃‘(𝑋 + 1)) = (𝑋 + 1)) |
118 | 98, 117 | eqtr2d 2780 |
. . 3
⊢ (((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) ∧ ¬ 𝑋 < 𝐼) → (𝑋 + 1) = (𝑃‘(◡𝑆‘𝑋))) |
119 | 97, 118 | ifeqda 4496 |
. 2
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → if(𝑋 < 𝐼, 𝑋, (𝑋 + 1)) = (𝑃‘(◡𝑆‘𝑋))) |
120 | | f1ocnv 6737 |
. . . . . 6
⊢ (𝑆:(1...𝑁)–1-1-onto→(1...𝑁) → ◡𝑆:(1...𝑁)–1-1-onto→(1...𝑁)) |
121 | 11, 12, 120 | 3syl 18 |
. . . . 5
⊢ (𝜑 → ◡𝑆:(1...𝑁)–1-1-onto→(1...𝑁)) |
122 | | f1ofun 6727 |
. . . . 5
⊢ (◡𝑆:(1...𝑁)–1-1-onto→(1...𝑁) → Fun ◡𝑆) |
123 | 121, 122 | syl 17 |
. . . 4
⊢ (𝜑 → Fun ◡𝑆) |
124 | 123 | adantr 481 |
. . 3
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → Fun ◡𝑆) |
125 | | fzdif2 31121 |
. . . . . . . 8
⊢ (𝑁 ∈
(ℤ≥‘1) → ((1...𝑁) ∖ {𝑁}) = (1...(𝑁 − 1))) |
126 | 3, 125 | syl 17 |
. . . . . . 7
⊢ (𝜑 → ((1...𝑁) ∖ {𝑁}) = (1...(𝑁 − 1))) |
127 | | difss 4067 |
. . . . . . 7
⊢
((1...𝑁) ∖
{𝑁}) ⊆ (1...𝑁) |
128 | 126, 127 | eqsstrrdi 3977 |
. . . . . 6
⊢ (𝜑 → (1...(𝑁 − 1)) ⊆ (1...𝑁)) |
129 | | f1odm 6729 |
. . . . . . 7
⊢ (◡𝑆:(1...𝑁)–1-1-onto→(1...𝑁) → dom ◡𝑆 = (1...𝑁)) |
130 | 121, 129 | syl 17 |
. . . . . 6
⊢ (𝜑 → dom ◡𝑆 = (1...𝑁)) |
131 | 128, 130 | sseqtrrd 3963 |
. . . . 5
⊢ (𝜑 → (1...(𝑁 − 1)) ⊆ dom ◡𝑆) |
132 | 131 | adantr 481 |
. . . 4
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → (1...(𝑁 − 1)) ⊆ dom ◡𝑆) |
133 | 132, 29 | sseldd 3923 |
. . 3
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → 𝑋 ∈ dom ◡𝑆) |
134 | | fvco 6875 |
. . 3
⊢ ((Fun
◡𝑆 ∧ 𝑋 ∈ dom ◡𝑆) → ((𝑃 ∘ ◡𝑆)‘𝑋) = (𝑃‘(◡𝑆‘𝑋))) |
135 | 124, 133,
134 | syl2anc 584 |
. 2
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → ((𝑃 ∘ ◡𝑆)‘𝑋) = (𝑃‘(◡𝑆‘𝑋))) |
136 | 119, 135 | eqtr4d 2782 |
1
⊢ ((𝜑 ∧ 𝑋 ∈ (1...(𝑁 − 1))) → if(𝑋 < 𝐼, 𝑋, (𝑋 + 1)) = ((𝑃 ∘ ◡𝑆)‘𝑋)) |