Proof of Theorem metakunt12
Step | Hyp | Ref
| Expression |
1 | | ioran 984 |
. 2
⊢ (¬
(𝑋 = 𝑀 ∨ 𝑋 < 𝐼) ↔ (¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼)) |
2 | | metakunt12.4 |
. . . . 5
⊢ 𝐴 = (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)))) |
3 | 2 | a1i 11 |
. . . 4
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐴 = (𝑥 ∈ (1...𝑀) ↦ if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1))))) |
4 | | eqeq1 2741 |
. . . . . . 7
⊢ (𝑥 = (𝐶‘𝑋) → (𝑥 = 𝐼 ↔ (𝐶‘𝑋) = 𝐼)) |
5 | | breq1 5056 |
. . . . . . . 8
⊢ (𝑥 = (𝐶‘𝑋) → (𝑥 < 𝐼 ↔ (𝐶‘𝑋) < 𝐼)) |
6 | | id 22 |
. . . . . . . 8
⊢ (𝑥 = (𝐶‘𝑋) → 𝑥 = (𝐶‘𝑋)) |
7 | | oveq1 7220 |
. . . . . . . 8
⊢ (𝑥 = (𝐶‘𝑋) → (𝑥 − 1) = ((𝐶‘𝑋) − 1)) |
8 | 5, 6, 7 | ifbieq12d 4467 |
. . . . . . 7
⊢ (𝑥 = (𝐶‘𝑋) → if(𝑥 < 𝐼, 𝑥, (𝑥 − 1)) = if((𝐶‘𝑋) < 𝐼, (𝐶‘𝑋), ((𝐶‘𝑋) − 1))) |
9 | 4, 8 | ifbieq2d 4465 |
. . . . . 6
⊢ (𝑥 = (𝐶‘𝑋) → if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1))) = if((𝐶‘𝑋) = 𝐼, 𝑀, if((𝐶‘𝑋) < 𝐼, (𝐶‘𝑋), ((𝐶‘𝑋) − 1)))) |
10 | 9 | adantl 485 |
. . . . 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 2741 |
. . . . . . . . . . . 12
⊢ (𝑦 = 𝑋 → (𝑦 = 𝑀 ↔ 𝑋 = 𝑀)) |
14 | | breq1 5056 |
. . . . . . . . . . . . 13
⊢ (𝑦 = 𝑋 → (𝑦 < 𝐼 ↔ 𝑋 < 𝐼)) |
15 | | id 22 |
. . . . . . . . . . . . 13
⊢ (𝑦 = 𝑋 → 𝑦 = 𝑋) |
16 | | oveq1 7220 |
. . . . . . . . . . . . 13
⊢ (𝑦 = 𝑋 → (𝑦 + 1) = (𝑋 + 1)) |
17 | 14, 15, 16 | ifbieq12d 4467 |
. . . . . . . . . . . 12
⊢ (𝑦 = 𝑋 → if(𝑦 < 𝐼, 𝑦, (𝑦 + 1)) = if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) |
18 | 13, 17 | ifbieq2d 4465 |
. . . . . . . . . . 11
⊢ (𝑦 = 𝑋 → if(𝑦 = 𝑀, 𝐼, if(𝑦 < 𝐼, 𝑦, (𝑦 + 1))) = if(𝑋 = 𝑀, 𝐼, if(𝑋 < 𝐼, 𝑋, (𝑋 + 1)))) |
19 | 18 | adantl 485 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) ∧ 𝑦 = 𝑋) → if(𝑦 = 𝑀, 𝐼, if(𝑦 < 𝐼, 𝑦, (𝑦 + 1))) = if(𝑋 = 𝑀, 𝐼, if(𝑋 < 𝐼, 𝑋, (𝑋 + 1)))) |
20 | | simp2 1139 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → ¬ 𝑋 = 𝑀) |
21 | | iffalse 4448 |
. . . . . . . . . . . . 13
⊢ (¬
𝑋 = 𝑀 → if(𝑋 = 𝑀, 𝐼, if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) = if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) |
22 | 20, 21 | syl 17 |
. . . . . . . . . . . 12
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → if(𝑋 = 𝑀, 𝐼, if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) = if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) |
23 | | simp3 1140 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → ¬ 𝑋 < 𝐼) |
24 | | iffalse 4448 |
. . . . . . . . . . . . 13
⊢ (¬
𝑋 < 𝐼 → if(𝑋 < 𝐼, 𝑋, (𝑋 + 1)) = (𝑋 + 1)) |
25 | 23, 24 | syl 17 |
. . . . . . . . . . . 12
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → if(𝑋 < 𝐼, 𝑋, (𝑋 + 1)) = (𝑋 + 1)) |
26 | 22, 25 | eqtrd 2777 |
. . . . . . . . . . 11
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → if(𝑋 = 𝑀, 𝐼, if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) = (𝑋 + 1)) |
27 | 26 | adantr 484 |
. . . . . . . . . 10
⊢ (((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) ∧ 𝑦 = 𝑋) → if(𝑋 = 𝑀, 𝐼, if(𝑋 < 𝐼, 𝑋, (𝑋 + 1))) = (𝑋 + 1)) |
28 | 19, 27 | eqtrd 2777 |
. . . . . . . . 9
⊢ (((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) ∧ 𝑦 = 𝑋) → if(𝑦 = 𝑀, 𝐼, if(𝑦 < 𝐼, 𝑦, (𝑦 + 1))) = (𝑋 + 1)) |
29 | | metakunt12.6 |
. . . . . . . . . 10
⊢ (𝜑 → 𝑋 ∈ (1...𝑀)) |
30 | 29 | 3ad2ant1 1135 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝑋 ∈ (1...𝑀)) |
31 | 29 | elfzelzd 13113 |
. . . . . . . . . . 11
⊢ (𝜑 → 𝑋 ∈ ℤ) |
32 | 31 | 3ad2ant1 1135 |
. . . . . . . . . 10
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝑋 ∈ ℤ) |
33 | 32 | peano2zd 12285 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝑋 + 1) ∈ ℤ) |
34 | 12, 28, 30, 33 | fvmptd 6825 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝐶‘𝑋) = (𝑋 + 1)) |
35 | | eqeq1 2741 |
. . . . . . . . 9
⊢ ((𝐶‘𝑋) = (𝑋 + 1) → ((𝐶‘𝑋) = 𝐼 ↔ (𝑋 + 1) = 𝐼)) |
36 | | breq1 5056 |
. . . . . . . . . 10
⊢ ((𝐶‘𝑋) = (𝑋 + 1) → ((𝐶‘𝑋) < 𝐼 ↔ (𝑋 + 1) < 𝐼)) |
37 | | id 22 |
. . . . . . . . . 10
⊢ ((𝐶‘𝑋) = (𝑋 + 1) → (𝐶‘𝑋) = (𝑋 + 1)) |
38 | | oveq1 7220 |
. . . . . . . . . 10
⊢ ((𝐶‘𝑋) = (𝑋 + 1) → ((𝐶‘𝑋) − 1) = ((𝑋 + 1) − 1)) |
39 | 36, 37, 38 | ifbieq12d 4467 |
. . . . . . . . 9
⊢ ((𝐶‘𝑋) = (𝑋 + 1) → if((𝐶‘𝑋) < 𝐼, (𝐶‘𝑋), ((𝐶‘𝑋) − 1)) = if((𝑋 + 1) < 𝐼, (𝑋 + 1), ((𝑋 + 1) − 1))) |
40 | 35, 39 | ifbieq2d 4465 |
. . . . . . . 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 11845 |
. . . . . . . . . . . . 13
⊢ (𝜑 → 𝐼 ∈ ℝ) |
44 | 43 | 3ad2ant1 1135 |
. . . . . . . . . . . 12
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐼 ∈ ℝ) |
45 | 32 | zred 12282 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝑋 ∈ ℝ) |
46 | 33 | zred 12282 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝑋 + 1) ∈ ℝ) |
47 | 44, 45 | lenltd 10978 |
. . . . . . . . . . . . . 14
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝐼 ≤ 𝑋 ↔ ¬ 𝑋 < 𝐼)) |
48 | 23, 47 | mpbird 260 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐼 ≤ 𝑋) |
49 | 45 | ltp1d 11762 |
. . . . . . . . . . . . 13
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝑋 < (𝑋 + 1)) |
50 | 44, 45, 46, 48, 49 | lelttrd 10990 |
. . . . . . . . . . . 12
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐼 < (𝑋 + 1)) |
51 | 44, 50 | ltned 10968 |
. . . . . . . . . . 11
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐼 ≠ (𝑋 + 1)) |
52 | 51 | necomd 2996 |
. . . . . . . . . 10
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝑋 + 1) ≠ 𝐼) |
53 | 52 | neneqd 2945 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → ¬ (𝑋 + 1) = 𝐼) |
54 | | iffalse 4448 |
. . . . . . . . 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 11763 |
. . . . . . . . . . 11
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝑋 ≤ (𝑋 + 1)) |
57 | 44, 45, 46, 48, 56 | letrd 10989 |
. . . . . . . . . 10
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐼 ≤ (𝑋 + 1)) |
58 | 44, 46 | lenltd 10978 |
. . . . . . . . . 10
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝐼 ≤ (𝑋 + 1) ↔ ¬ (𝑋 + 1) < 𝐼)) |
59 | 57, 58 | mpbid 235 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → ¬ (𝑋 + 1) < 𝐼) |
60 | | iffalse 4448 |
. . . . . . . . 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 12283 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝑋 ∈ ℂ) |
63 | | 1cnd 10828 |
. . . . . . . . 9
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 1 ∈ ℂ) |
64 | 62, 63 | pncand 11190 |
. . . . . . . 8
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → ((𝑋 + 1) − 1) = 𝑋) |
65 | 55, 61, 64 | 3eqtrd 2781 |
. . . . . . 7
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → if((𝑋 + 1) = 𝐼, 𝑀, if((𝑋 + 1) < 𝐼, (𝑋 + 1), ((𝑋 + 1) − 1))) = 𝑋) |
66 | 41, 65 | eqtrd 2777 |
. . . . . 6
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → if((𝐶‘𝑋) = 𝐼, 𝑀, if((𝐶‘𝑋) < 𝐼, (𝐶‘𝑋), ((𝐶‘𝑋) − 1))) = 𝑋) |
67 | 66 | adantr 484 |
. . . . 5
⊢ (((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) ∧ 𝑥 = (𝐶‘𝑋)) → if((𝐶‘𝑋) = 𝐼, 𝑀, if((𝐶‘𝑋) < 𝐼, (𝐶‘𝑋), ((𝐶‘𝑋) − 1))) = 𝑋) |
68 | 10, 67 | eqtrd 2777 |
. . . 4
⊢ (((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) ∧ 𝑥 = (𝐶‘𝑋)) → if(𝑥 = 𝐼, 𝑀, if(𝑥 < 𝐼, 𝑥, (𝑥 − 1))) = 𝑋) |
69 | | metakunt12.1 |
. . . . . . 7
⊢ (𝜑 → 𝑀 ∈ ℕ) |
70 | | metakunt12.3 |
. . . . . . 7
⊢ (𝜑 → 𝐼 ≤ 𝑀) |
71 | 69, 42, 70, 11 | metakunt2 39848 |
. . . . . 6
⊢ (𝜑 → 𝐶:(1...𝑀)⟶(1...𝑀)) |
72 | 71 | 3ad2ant1 1135 |
. . . . 5
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → 𝐶:(1...𝑀)⟶(1...𝑀)) |
73 | 72, 30 | ffvelrnd 6905 |
. . . 4
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝐶‘𝑋) ∈ (1...𝑀)) |
74 | 3, 68, 73, 30 | fvmptd 6825 |
. . 3
⊢ ((𝜑 ∧ ¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼) → (𝐴‘(𝐶‘𝑋)) = 𝑋) |
75 | 74 | 3expb 1122 |
. 2
⊢ ((𝜑 ∧ (¬ 𝑋 = 𝑀 ∧ ¬ 𝑋 < 𝐼)) → (𝐴‘(𝐶‘𝑋)) = 𝑋) |
76 | 1, 75 | sylan2b 597 |
1
⊢ ((𝜑 ∧ ¬ (𝑋 = 𝑀 ∨ 𝑋 < 𝐼)) → (𝐴‘(𝐶‘𝑋)) = 𝑋) |