Proof of Theorem metakunt12
Step | Hyp | Ref
| Expression |
1 | | ioran 981 |
. 2
⊢ (¬
(𝑋 = 𝑀 ∨ 𝑋 < 𝐼) ↔ (¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼)) |
2 | | metakunt12.4 |
. . . . 5
⊢ 𝐴 = (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))) |
3 | 2 | a1i 11 |
. . . 4
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐴 = (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1))))) |
4 | | eqeq1 2742 |
. . . . . . 7
⊢ (𝑥 = (𝐶‘𝑋) → (𝑥 = 𝐼 ↔ (𝐶‘𝑋) = 𝐼)) |
5 | | breq1 5077 |
. . . . . . . 8
⊢ (𝑥 = (𝐶‘𝑋) → (𝑥 < 𝐼 ↔ (𝐶‘𝑋) < 𝐼)) |
6 | | id 22 |
. . . . . . . 8
⊢ (𝑥 = (𝐶‘𝑋) → 𝑥 = (𝐶‘𝑋)) |
7 | | oveq1 7282 |
. . . . . . . 8
⊢ (𝑥 = (𝐶‘𝑋) → (𝑥 − 1) = ((𝐶‘𝑋) − 1)) |
8 | 5, 6, 7 | ifbieq12d 4487 |
. . . . . . 7
⊢ (𝑥 = (𝐶‘𝑋) → if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)) = if((𝐶‘𝑋) < 𝐼, (𝐶‘𝑋), ((𝐶‘𝑋) − 1))) |
9 | 4, 8 | ifbieq2d 4485 |
. . . . . 6
⊢ (𝑥 = (𝐶‘𝑋) → if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1))) = if((𝐶‘𝑋) = 𝐼, 𝑀, if((𝐶‘𝑋) < 𝐼, (𝐶‘𝑋), ((𝐶‘𝑋) − 1)))) |
10 | 9 | adantl 482 |
. . . . 5
⊢ (((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) ∧ 𝑥 = (𝐶‘𝑋)) → if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1))) = if((𝐶‘𝑋) = 𝐼, 𝑀, if((𝐶‘𝑋) < 𝐼, (𝐶‘𝑋), ((𝐶‘𝑋) − 1)))) |
11 | | metakunt12.5 |
. . . . . . . . . 10
⊢ 𝐶 = (𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝐼, if(𝑦 < 𝐼, 𝑦, (𝑦 + 1)))) |
12 | 11 | a1i 11 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐶 = (𝑦 ∈ (1...𝑀) ↦ if(𝑦 = 𝑀, 𝐼, if(𝑦 < 𝐼, 𝑦, (𝑦 + 1))))) |
13 | | eqeq1 2742 |
. . . . . . . . . . . 12
⊢ (𝑦 = 𝑋 → (𝑦 = 𝑀 ↔ 𝑋 = 𝑀)) |
14 | | breq1 5077 |
. . . . . . . . . . . . 13
⊢ (𝑦 = 𝑋 → (𝑦 < 𝐼 ↔ 𝑋 < 𝐼)) |
15 | | id 22 |
. . . . . . . . . . . . 13
⊢ (𝑦 = 𝑋 → 𝑦 = 𝑋) |
16 | | oveq1 7282 |
. . . . . . . . . . . . 13
⊢ (𝑦 = 𝑋 → (𝑦 + 1) = (𝑋 + 1)) |
17 | 14, 15, 16 | ifbieq12d 4487 |
. . . . . . . . . . . 12
⊢ (𝑦 = 𝑋 → if(𝑦 < 𝐼, 𝑦, (𝑦 + 1)) = if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) |
18 | 13, 17 | ifbieq2d 4485 |
. . . . . . . . . . 11
⊢ (𝑦 = 𝑋 → if(𝑦 = 𝑀, 𝐼, if(𝑦 < 𝐼, 𝑦, (𝑦 + 1))) = if(𝑋 = 𝑀, 𝐼, if(𝑋 < 𝐼, 𝑋, (𝑋 + 1)))) |
19 | 18 | adantl 482 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) ∧ 𝑦 = 𝑋) → if(𝑦 = 𝑀, 𝐼, if(𝑦 < 𝐼, 𝑦, (𝑦 + 1))) = if(𝑋 = 𝑀, 𝐼, if(𝑋 < 𝐼, 𝑋, (𝑋 + 1)))) |
20 | | simp2 1136 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → ¬ 𝑋 = 𝑀) |
21 | | iffalse 4468 |
. . . . . . . . . . . . 13
⊢ (¬
𝑋 = 𝑀 → if(𝑋 = 𝑀, 𝐼, if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) = if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) |
22 | 20, 21 | syl 17 |
. . . . . . . . . . . 12
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → if(𝑋 = 𝑀, 𝐼, if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) = if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) |
23 | | simp3 1137 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → ¬ 𝑋 < 𝐼) |
24 | | iffalse 4468 |
. . . . . . . . . . . . 13
⊢ (¬
𝑋 < 𝐼 → if(𝑋 < 𝐼, 𝑋, (𝑋 + 1)) = (𝑋 + 1)) |
25 | 23, 24 | syl 17 |
. . . . . . . . . . . 12
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → if(𝑋 < 𝐼, 𝑋, (𝑋 + 1)) = (𝑋 + 1)) |
26 | 22, 25 | eqtrd 2778 |
. . . . . . . . . . 11
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → if(𝑋 = 𝑀, 𝐼, if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) = (𝑋 + 1)) |
27 | 26 | adantr 481 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) ∧ 𝑦 = 𝑋) → if(𝑋 = 𝑀, 𝐼, if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) = (𝑋 + 1)) |
28 | 19, 27 | eqtrd 2778 |
. . . . . . . . 9
⊢ (((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) ∧ 𝑦 = 𝑋) → if(𝑦 = 𝑀, 𝐼, if(𝑦 < 𝐼, 𝑦, (𝑦 + 1))) = (𝑋 + 1)) |
29 | | metakunt12.6 |
. . . . . . . . . 10
⊢ (𝜑 → 𝑋 ∈ (1...𝑀)) |
30 | 29 | 3ad2ant1 1132 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝑋 ∈ (1...𝑀)) |
31 | 29 | elfzelzd 13257 |
. . . . . . . . . . 11
⊢ (𝜑 → 𝑋 ∈ ℤ) |
32 | 31 | 3ad2ant1 1132 |
. . . . . . . . . 10
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝑋 ∈ ℤ) |
33 | 32 | peano2zd 12429 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝑋 + 1) ∈ ℤ) |
34 | 12, 28, 30, 33 | fvmptd 6882 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝐶‘𝑋) = (𝑋 + 1)) |
35 | | eqeq1 2742 |
. . . . . . . . 9
⊢ ((𝐶‘𝑋) = (𝑋 + 1) → ((𝐶‘𝑋) = 𝐼 ↔ (𝑋 + 1) = 𝐼)) |
36 | | breq1 5077 |
. . . . . . . . . 10
⊢ ((𝐶‘𝑋) = (𝑋 + 1) → ((𝐶‘𝑋) < 𝐼 ↔ (𝑋 + 1) < 𝐼)) |
37 | | id 22 |
. . . . . . . . . 10
⊢ ((𝐶‘𝑋) = (𝑋 + 1) → (𝐶‘𝑋) = (𝑋 + 1)) |
38 | | oveq1 7282 |
. . . . . . . . . 10
⊢ ((𝐶‘𝑋) = (𝑋 + 1) → ((𝐶‘𝑋) − 1) = ((𝑋 + 1) − 1)) |
39 | 36, 37, 38 | ifbieq12d 4487 |
. . . . . . . . 9
⊢ ((𝐶‘𝑋) = (𝑋 + 1) → if((𝐶‘𝑋) < 𝐼, (𝐶‘𝑋), ((𝐶‘𝑋) − 1)) = if((𝑋 + 1) < 𝐼, (𝑋 + 1), ((𝑋 + 1) − 1))) |
40 | 35, 39 | ifbieq2d 4485 |
. . . . . . . 8
⊢ ((𝐶‘𝑋) = (𝑋 + 1) → if((𝐶‘𝑋) = 𝐼, 𝑀, if((𝐶‘𝑋) < 𝐼, (𝐶‘𝑋), ((𝐶‘𝑋) − 1))) = if((𝑋 + 1) = 𝐼, 𝑀, if((𝑋 + 1) < 𝐼, (𝑋 + 1), ((𝑋 + 1) − 1)))) |
41 | 34, 40 | syl 17 |
. . . . . . 7
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → if((𝐶‘𝑋) = 𝐼, 𝑀, if((𝐶‘𝑋) < 𝐼, (𝐶‘𝑋), ((𝐶‘𝑋) − 1))) = if((𝑋 + 1) = 𝐼, 𝑀, if((𝑋 + 1) < 𝐼, (𝑋 + 1), ((𝑋 + 1) − 1)))) |
42 | | metakunt12.2 |
. . . . . . . . . . . . . 14
⊢ (𝜑 → 𝐼 ∈ ℕ) |
43 | 42 | nnred 11988 |
. . . . . . . . . . . . 13
⊢ (𝜑 → 𝐼 ∈ ℝ) |
44 | 43 | 3ad2ant1 1132 |
. . . . . . . . . . . 12
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐼 ∈ ℝ) |
45 | 32 | zred 12426 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝑋 ∈ ℝ) |
46 | 33 | zred 12426 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝑋 + 1) ∈ ℝ) |
47 | 44, 45 | lenltd 11121 |
. . . . . . . . . . . . . 14
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝐼 ≤ 𝑋 ↔ ¬ 𝑋 < 𝐼)) |
48 | 23, 47 | mpbird 256 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐼 ≤ 𝑋) |
49 | 45 | ltp1d 11905 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝑋 < (𝑋 + 1)) |
50 | 44, 45, 46, 48, 49 | lelttrd 11133 |
. . . . . . . . . . . 12
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐼 < (𝑋 + 1)) |
51 | 44, 50 | ltned 11111 |
. . . . . . . . . . 11
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐼 ≠ (𝑋 + 1)) |
52 | 51 | necomd 2999 |
. . . . . . . . . 10
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝑋 + 1) ≠ 𝐼) |
53 | 52 | neneqd 2948 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → ¬ (𝑋 + 1) = 𝐼) |
54 | | iffalse 4468 |
. . . . . . . . 9
⊢ (¬
(𝑋 + 1) = 𝐼 → if((𝑋 + 1) = 𝐼, 𝑀, if((𝑋 + 1) < 𝐼, (𝑋 + 1), ((𝑋 + 1) − 1))) = if((𝑋 + 1) < 𝐼, (𝑋 + 1), ((𝑋 + 1) − 1))) |
55 | 53, 54 | syl 17 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → if((𝑋 + 1) = 𝐼, 𝑀, if((𝑋 + 1) < 𝐼, (𝑋 + 1), ((𝑋 + 1) − 1))) = if((𝑋 + 1) < 𝐼, (𝑋 + 1), ((𝑋 + 1) − 1))) |
56 | 45 | lep1d 11906 |
. . . . . . . . . . 11
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝑋 ≤ (𝑋 + 1)) |
57 | 44, 45, 46, 48, 56 | letrd 11132 |
. . . . . . . . . 10
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐼 ≤ (𝑋 + 1)) |
58 | 44, 46 | lenltd 11121 |
. . . . . . . . . 10
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝐼 ≤ (𝑋 + 1) ↔ ¬ (𝑋 + 1) < 𝐼)) |
59 | 57, 58 | mpbid 231 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → ¬ (𝑋 + 1) < 𝐼) |
60 | | iffalse 4468 |
. . . . . . . . 9
⊢ (¬
(𝑋 + 1) < 𝐼 → if((𝑋 + 1) < 𝐼, (𝑋 + 1), ((𝑋 + 1) − 1)) = ((𝑋 + 1) − 1)) |
61 | 59, 60 | syl 17 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → if((𝑋 + 1) < 𝐼, (𝑋 + 1), ((𝑋 + 1) − 1)) = ((𝑋 + 1) − 1)) |
62 | 32 | zcnd 12427 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝑋 ∈ ℂ) |
63 | | 1cnd 10970 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 1 ∈ ℂ) |
64 | 62, 63 | pncand 11333 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → ((𝑋 + 1) − 1) = 𝑋) |
65 | 55, 61, 64 | 3eqtrd 2782 |
. . . . . . 7
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → if((𝑋 + 1) = 𝐼, 𝑀, if((𝑋 + 1) < 𝐼, (𝑋 + 1), ((𝑋 + 1) − 1))) = 𝑋) |
66 | 41, 65 | eqtrd 2778 |
. . . . . 6
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → if((𝐶‘𝑋) = 𝐼, 𝑀, if((𝐶‘𝑋) < 𝐼, (𝐶‘𝑋), ((𝐶‘𝑋) − 1))) = 𝑋) |
67 | 66 | adantr 481 |
. . . . 5
⊢ (((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) ∧ 𝑥 = (𝐶‘𝑋)) → if((𝐶‘𝑋) = 𝐼, 𝑀, if((𝐶‘𝑋) < 𝐼, (𝐶‘𝑋), ((𝐶‘𝑋) − 1))) = 𝑋) |
68 | 10, 67 | eqtrd 2778 |
. . . 4
⊢ (((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) ∧ 𝑥 = (𝐶‘𝑋)) → if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1))) = 𝑋) |
69 | | metakunt12.1 |
. . . . . . 7
⊢ (𝜑 → 𝑀 ∈ ℕ) |
70 | | metakunt12.3 |
. . . . . . 7
⊢ (𝜑 → 𝐼 ≤ 𝑀) |
71 | 69, 42, 70, 11 | metakunt2 40126 |
. . . . . 6
⊢ (𝜑 → 𝐶:(1...𝑀)⟶(1...𝑀)) |
72 | 71 | 3ad2ant1 1132 |
. . . . 5
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐶:(1...𝑀)⟶(1...𝑀)) |
73 | 72, 30 | ffvelrnd 6962 |
. . . 4
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝐶‘𝑋) ∈ (1...𝑀)) |
74 | 3, 68, 73, 30 | fvmptd 6882 |
. . 3
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝐴‘(𝐶‘𝑋)) = 𝑋) |
75 | 74 | 3expb 1119 |
. 2
⊢ ((𝜑 ∧ (¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼)) → (𝐴‘(𝐶‘𝑋)) = 𝑋) |
76 | 1, 75 | sylan2b 594 |
1
⊢ ((𝜑 ∧ ¬ (𝑋 = 𝑀 ∨ 𝑋 < 𝐼)) → (𝐴‘(𝐶‘𝑋)) = 𝑋) |