Users' Mathboxes Mathbox for Brendan Leahy < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  poimirlem6 Structured version   Visualization version   GIF version

Theorem poimirlem6 38545
Description: Lemma for poimir 38572 establishing, for a face of a simplex defined by a walk along the edges of an 𝑁-cube, the single dimension in which successive vertices before the opposite vertex differ. (Contributed by Brendan Leahy, 21-Aug-2020.)
Hypotheses
Ref Expression
poimir.0 (𝜑 → 𝑁 ∈ ℕ)
poimirlem22.s 𝑆 = {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ ⦋if(𝑦 < (2nd ‘𝑡), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑡)) ∘f + ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}
poimirlem9.1 (𝜑 → 𝑇 ∈ 𝑆)
poimirlem9.2 (𝜑 → (2nd ‘𝑇) ∈ (1...(𝑁 − 1)))
poimirlem6.3 (𝜑 → 𝑀 ∈ (1...((2nd ‘𝑇) − 1)))
Assertion
Ref Expression
poimirlem6 (𝜑 → (℩𝑛 ∈ (1...𝑁)((𝐹‘(𝑀 − 1))‘𝑛) ≠ ((𝐹‘𝑀)‘𝑛)) = ((2nd ‘(1st ‘𝑇))‘𝑀))
Distinct variable groups:   𝑓,𝑗,𝑛,𝑡,𝑦   𝜑,𝑗,𝑛,𝑦   𝑗,𝐹,𝑛,𝑦   𝑗,𝑀,𝑛,𝑦   𝑗,𝑁,𝑛,𝑦   𝑇,𝑗,𝑛,𝑦   𝜑,𝑡   𝑓,𝐾,𝑗,𝑛,𝑡   𝑓,𝑀,𝑡   𝑓,𝑁,𝑡   𝑇,𝑓   𝑓,𝐹,𝑡   𝑡,𝑇   𝑆,𝑗,𝑛,𝑡,𝑦
Allowed substitution hints:   𝜑(𝑓)   𝑆(𝑓)   𝐾(𝑦)

Proof of Theorem poimirlem6
StepHypRef Expression
1 poimirlem9.1 . . . . . . . 8 (𝜑 → 𝑇 ∈ 𝑆)
2 elrabi 3640 . . . . . . . . 9 (𝑇 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ ⦋if(𝑦 < (2nd ‘𝑡), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑡)) ∘f + ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} → 𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
3 poimirlem22.s . . . . . . . . 9 𝑆 = {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ ⦋if(𝑦 < (2nd ‘𝑡), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑡)) ∘f + ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}
42, 3eleq2s 2878 . . . . . . . 8 (𝑇 ∈ 𝑆 → 𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
51, 4syl 18 . . . . . . 7 (𝜑 → 𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
6 xp1st 8033 . . . . . . 7 (𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (1st ‘𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
75, 6syl 18 . . . . . 6 (𝜑 → (1st ‘𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
8 xp2nd 8034 . . . . . 6 ((1st ‘𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (2nd ‘(1st ‘𝑇)) ∈ {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
97, 8syl 18 . . . . 5 (𝜑 → (2nd ‘(1st ‘𝑇)) ∈ {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
10 fvex 6898 . . . . . 6 (2nd ‘(1st ‘𝑇)) ∈ V
11 f1oeq1 6812 . . . . . 6 (𝑓 = (2nd ‘(1st ‘𝑇)) → (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) ↔ (2nd ‘(1st ‘𝑇)):(1...𝑁)–1-1-onto→(1...𝑁)))
1210, 11elab 3632 . . . . 5 ((2nd ‘(1st ‘𝑇)) ∈ {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ↔ (2nd ‘(1st ‘𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
139, 12sylib 221 . . . 4 (𝜑 → (2nd ‘(1st ‘𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
14 f1of 6824 . . . 4 ((2nd ‘(1st ‘𝑇)):(1...𝑁)–1-1-onto→(1...𝑁) → (2nd ‘(1st ‘𝑇)):(1...𝑁)⟶(1...𝑁))
1513, 14syl 18 . . 3 (𝜑 → (2nd ‘(1st ‘𝑇)):(1...𝑁)⟶(1...𝑁))
16 poimirlem9.2 . . . . . . . . 9 (𝜑 → (2nd ‘𝑇) ∈ (1...(𝑁 − 1)))
17 elfznn 13687 . . . . . . . . 9 ((2nd ‘𝑇) ∈ (1...(𝑁 − 1)) → (2nd ‘𝑇) ∈ ℕ)
1816, 17syl 18 . . . . . . . 8 (𝜑 → (2nd ‘𝑇) ∈ ℕ)
1918nnzd 12719 . . . . . . 7 (𝜑 → (2nd ‘𝑇) ∈ ℤ)
20 peano2zm 12739 . . . . . . 7 ((2nd ‘𝑇) ∈ ℤ → ((2nd ‘𝑇) − 1) ∈ ℤ)
2119, 20syl 18 . . . . . 6 (𝜑 → ((2nd ‘𝑇) − 1) ∈ ℤ)
22 poimir.0 . . . . . . 7 (𝜑 → 𝑁 ∈ ℕ)
2322nnzd 12719 . . . . . 6 (𝜑 → 𝑁 ∈ ℤ)
2421zred 12803 . . . . . . 7 (𝜑 → ((2nd ‘𝑇) − 1) ∈ ℝ)
2518nnred 12350 . . . . . . 7 (𝜑 → (2nd ‘𝑇) ∈ ℝ)
2622nnred 12350 . . . . . . 7 (𝜑 → 𝑁 ∈ ℝ)
2725lem1d 12250 . . . . . . 7 (𝜑 → ((2nd ‘𝑇) − 1) ≤ (2nd ‘𝑇))
28 nnm1nn0 12647 . . . . . . . . . 10 (𝑁 ∈ ℕ → (𝑁 − 1) ∈ ℕ0)
2922, 28syl 18 . . . . . . . . 9 (𝜑 → (𝑁 − 1) ∈ ℕ0)
3029nn0red 12668 . . . . . . . 8 (𝜑 → (𝑁 − 1) ∈ ℝ)
31 elfzle2 13661 . . . . . . . . 9 ((2nd ‘𝑇) ∈ (1...(𝑁 − 1)) → (2nd ‘𝑇) ≤ (𝑁 − 1))
3216, 31syl 18 . . . . . . . 8 (𝜑 → (2nd ‘𝑇) ≤ (𝑁 − 1))
3326lem1d 12250 . . . . . . . 8 (𝜑 → (𝑁 − 1) ≤ 𝑁)
3425, 30, 26, 32, 33letrd 11467 . . . . . . 7 (𝜑 → (2nd ‘𝑇) ≤ 𝑁)
3524, 25, 26, 27, 34letrd 11467 . . . . . 6 (𝜑 → ((2nd ‘𝑇) − 1) ≤ 𝑁)
36 eluz2 12971 . . . . . 6 (𝑁 ∈ (ℤ≥‘((2nd ‘𝑇) − 1)) ↔ (((2nd ‘𝑇) − 1) ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ ((2nd ‘𝑇) − 1) ≤ 𝑁))
3721, 23, 35, 36syl3anbrc 1362 . . . . 5 (𝜑 → 𝑁 ∈ (ℤ≥‘((2nd ‘𝑇) − 1)))
38 fzss2 13698 . . . . 5 (𝑁 ∈ (ℤ≥‘((2nd ‘𝑇) − 1)) → (1...((2nd ‘𝑇) − 1)) ⊆ (1...𝑁))
3937, 38syl 18 . . . 4 (𝜑 → (1...((2nd ‘𝑇) − 1)) ⊆ (1...𝑁))
40 poimirlem6.3 . . . 4 (𝜑 → 𝑀 ∈ (1...((2nd ‘𝑇) − 1)))
4139, 40sseldd 3909 . . 3 (𝜑 → 𝑀 ∈ (1...𝑁))
4215, 41ffvelcdmd 7085 . 2 (𝜑 → ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ (1...𝑁))
43 xp1st 8033 . . . . . . . . . . . . 13 ((1st ‘𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (1st ‘(1st ‘𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)))
447, 43syl 18 . . . . . . . . . . . 12 (𝜑 → (1st ‘(1st ‘𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)))
45 elmapfn 8887 . . . . . . . . . . . 12 ((1st ‘(1st ‘𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)) → (1st ‘(1st ‘𝑇)) Fn (1...𝑁))
4644, 45syl 18 . . . . . . . . . . 11 (𝜑 → (1st ‘(1st ‘𝑇)) Fn (1...𝑁))
4746adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) → (1st ‘(1st ‘𝑇)) Fn (1...𝑁))
48 1ex 11303 . . . . . . . . . . . . . . 15 1 ∈ V
49 fnconstg 6770 . . . . . . . . . . . . . . 15 (1 ∈ V → (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) Fn ((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))))
5048, 49ax-mp 5 . . . . . . . . . . . . . 14 (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) Fn ((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1)))
51 c0ex 11300 . . . . . . . . . . . . . . 15 0 ∈ V
52 fnconstg 6770 . . . . . . . . . . . . . . 15 (0 ∈ V → (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}) Fn ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)))
5351, 52ax-mp 5 . . . . . . . . . . . . . 14 (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}) Fn ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))
5450, 53pm3.2i 476 . . . . . . . . . . . . 13 ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) Fn ((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∧ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}) Fn ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)))
55 dff1o3 6831 . . . . . . . . . . . . . . . . 17 ((2nd ‘(1st ‘𝑇)):(1...𝑁)–1-1-onto→(1...𝑁) ↔ ((2nd ‘(1st ‘𝑇)):(1...𝑁)–onto→(1...𝑁) ∧ Fun ◡(2nd ‘(1st ‘𝑇))))
5655simprbi 503 . . . . . . . . . . . . . . . 16 ((2nd ‘(1st ‘𝑇)):(1...𝑁)–1-1-onto→(1...𝑁) → Fun ◡(2nd ‘(1st ‘𝑇)))
5713, 56syl 18 . . . . . . . . . . . . . . 15 (𝜑 → Fun ◡(2nd ‘(1st ‘𝑇)))
58 imain 6625 . . . . . . . . . . . . . . 15 (Fun ◡(2nd ‘(1st ‘𝑇)) → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∩ (𝑀...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∩ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))))
5957, 58syl 18 . . . . . . . . . . . . . 14 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∩ (𝑀...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∩ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))))
60 elfznn 13687 . . . . . . . . . . . . . . . . . . . 20 (𝑀 ∈ (1...((2nd ‘𝑇) − 1)) → 𝑀 ∈ ℕ)
6140, 60syl 18 . . . . . . . . . . . . . . . . . . 19 (𝜑 → 𝑀 ∈ ℕ)
6261nnred 12350 . . . . . . . . . . . . . . . . . 18 (𝜑 → 𝑀 ∈ ℝ)
6362ltm1d 12249 . . . . . . . . . . . . . . . . 17 (𝜑 → (𝑀 − 1) < 𝑀)
64 fzdisj 13685 . . . . . . . . . . . . . . . . 17 ((𝑀 − 1) < 𝑀 → ((1...(𝑀 − 1)) ∩ (𝑀...𝑁)) = ∅)
6563, 64syl 18 . . . . . . . . . . . . . . . 16 (𝜑 → ((1...(𝑀 − 1)) ∩ (𝑀...𝑁)) = ∅)
6665imaeq2d 6051 . . . . . . . . . . . . . . 15 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∩ (𝑀...𝑁))) = ((2nd ‘(1st ‘𝑇)) “ ∅))
67 ima0 6074 . . . . . . . . . . . . . . 15 ((2nd ‘(1st ‘𝑇)) “ ∅) = ∅
6866, 67eqtrdi 2811 . . . . . . . . . . . . . 14 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∩ (𝑀...𝑁))) = ∅)
6959, 68eqtr3d 2797 . . . . . . . . . . . . 13 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∩ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))) = ∅)
70 fnun 6653 . . . . . . . . . . . . 13 ((((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) Fn ((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∧ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}) Fn ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))) ∧ (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∩ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))) = ∅) → ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})) Fn (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))))
7154, 69, 70sylancr 599 . . . . . . . . . . . 12 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})) Fn (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))))
7261nncnd 12351 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → 𝑀 ∈ ℂ)
73 npcan1 11741 . . . . . . . . . . . . . . . . . . . 20 (𝑀 ∈ ℂ → ((𝑀 − 1) + 1) = 𝑀)
7472, 73syl 18 . . . . . . . . . . . . . . . . . . 19 (𝜑 → ((𝑀 − 1) + 1) = 𝑀)
75 nnuz 13004 . . . . . . . . . . . . . . . . . . . 20 ℕ = (ℤ≥‘1)
7661, 75eleqtrdi 2870 . . . . . . . . . . . . . . . . . . 19 (𝜑 → 𝑀 ∈ (ℤ≥‘1))
7774, 76eqeltrd 2860 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((𝑀 − 1) + 1) ∈ (ℤ≥‘1))
78 nnm1nn0 12647 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑀 ∈ ℕ → (𝑀 − 1) ∈ ℕ0)
7961, 78syl 18 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → (𝑀 − 1) ∈ ℕ0)
8079nn0zd 12718 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → (𝑀 − 1) ∈ ℤ)
81 uzid 12980 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑀 − 1) ∈ ℤ → (𝑀 − 1) ∈ (ℤ≥‘(𝑀 − 1)))
8280, 81syl 18 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → (𝑀 − 1) ∈ (ℤ≥‘(𝑀 − 1)))
83 peano2uz 13028 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑀 − 1) ∈ (ℤ≥‘(𝑀 − 1)) → ((𝑀 − 1) + 1) ∈ (ℤ≥‘(𝑀 − 1)))
8482, 83syl 18 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → ((𝑀 − 1) + 1) ∈ (ℤ≥‘(𝑀 − 1)))
8574, 84eqeltrrd 2861 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → 𝑀 ∈ (ℤ≥‘(𝑀 − 1)))
86 uzss 12988 . . . . . . . . . . . . . . . . . . . 20 (𝑀 ∈ (ℤ≥‘(𝑀 − 1)) → (ℤ≥‘𝑀) ⊆ (ℤ≥‘(𝑀 − 1)))
8785, 86syl 18 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (ℤ≥‘𝑀) ⊆ (ℤ≥‘(𝑀 − 1)))
8861nnzd 12719 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → 𝑀 ∈ ℤ)
89 elfzle2 13661 . . . . . . . . . . . . . . . . . . . . . 22 (𝑀 ∈ (1...((2nd ‘𝑇) − 1)) → 𝑀 ≤ ((2nd ‘𝑇) − 1))
9040, 89syl 18 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → 𝑀 ≤ ((2nd ‘𝑇) − 1))
9162, 24, 26, 90, 35letrd 11467 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → 𝑀 ≤ 𝑁)
92 eluz2 12971 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ (ℤ≥‘𝑀) ↔ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 ≤ 𝑁))
9388, 23, 91, 92syl3anbrc 1362 . . . . . . . . . . . . . . . . . . 19 (𝜑 → 𝑁 ∈ (ℤ≥‘𝑀))
9487, 93sseldd 3909 . . . . . . . . . . . . . . . . . 18 (𝜑 → 𝑁 ∈ (ℤ≥‘(𝑀 − 1)))
95 fzsplit2 13683 . . . . . . . . . . . . . . . . . 18 ((((𝑀 − 1) + 1) ∈ (ℤ≥‘1) ∧ 𝑁 ∈ (ℤ≥‘(𝑀 − 1))) → (1...𝑁) = ((1...(𝑀 − 1)) ∪ (((𝑀 − 1) + 1)...𝑁)))
9677, 94, 95syl2anc 596 . . . . . . . . . . . . . . . . 17 (𝜑 → (1...𝑁) = ((1...(𝑀 − 1)) ∪ (((𝑀 − 1) + 1)...𝑁)))
9774oveq1d 7435 . . . . . . . . . . . . . . . . . 18 (𝜑 → (((𝑀 − 1) + 1)...𝑁) = (𝑀...𝑁))
9897uneq2d 4167 . . . . . . . . . . . . . . . . 17 (𝜑 → ((1...(𝑀 − 1)) ∪ (((𝑀 − 1) + 1)...𝑁)) = ((1...(𝑀 − 1)) ∪ (𝑀...𝑁)))
9996, 98eqtrd 2795 . . . . . . . . . . . . . . . 16 (𝜑 → (1...𝑁) = ((1...(𝑀 − 1)) ∪ (𝑀...𝑁)))
10099imaeq2d 6051 . . . . . . . . . . . . . . 15 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) = ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ (𝑀...𝑁))))
101 imaundi 6140 . . . . . . . . . . . . . . 15 ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ (𝑀...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)))
102100, 101eqtrdi 2811 . . . . . . . . . . . . . 14 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))))
103 f1ofo 6832 . . . . . . . . . . . . . . . 16 ((2nd ‘(1st ‘𝑇)):(1...𝑁)–1-1-onto→(1...𝑁) → (2nd ‘(1st ‘𝑇)):(1...𝑁)–onto→(1...𝑁))
10413, 103syl 18 . . . . . . . . . . . . . . 15 (𝜑 → (2nd ‘(1st ‘𝑇)):(1...𝑁)–onto→(1...𝑁))
105 foima 6801 . . . . . . . . . . . . . . 15 ((2nd ‘(1st ‘𝑇)):(1...𝑁)–onto→(1...𝑁) → ((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) = (1...𝑁))
106104, 105syl 18 . . . . . . . . . . . . . 14 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) = (1...𝑁))
107102, 106eqtr3d 2797 . . . . . . . . . . . . 13 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))) = (1...𝑁))
108107fneq2d 6633 . . . . . . . . . . . 12 (𝜑 → (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})) Fn (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))) ↔ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})) Fn (1...𝑁)))
10971, 108mpbid 235 . . . . . . . . . . 11 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})) Fn (1...𝑁))
110109adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) → ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})) Fn (1...𝑁))
111 ovexd 7455 . . . . . . . . . 10 ((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) → (1...𝑁) ∈ V)
112 inidm 4123 . . . . . . . . . 10 ((1...𝑁) ∩ (1...𝑁)) = (1...𝑁)
113 eqidd 2761 . . . . . . . . . 10 (((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) ∧ 𝑛 ∈ (1...𝑁)) → ((1st ‘(1st ‘𝑇))‘𝑛) = ((1st ‘(1st ‘𝑇))‘𝑛))
114 imaundi 6140 . . . . . . . . . . . . . . . . . 18 ((2nd ‘(1st ‘𝑇)) “ ({𝑀} ∪ ((𝑀 + 1)...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ {𝑀}) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)))
115 fzpred 13706 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ (ℤ≥‘𝑀) → (𝑀...𝑁) = ({𝑀} ∪ ((𝑀 + 1)...𝑁)))
11693, 115syl 18 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (𝑀...𝑁) = ({𝑀} ∪ ((𝑀 + 1)...𝑁)))
117116imaeq2d 6051 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) = ((2nd ‘(1st ‘𝑇)) “ ({𝑀} ∪ ((𝑀 + 1)...𝑁))))
118 f1ofn 6825 . . . . . . . . . . . . . . . . . . . . 21 ((2nd ‘(1st ‘𝑇)):(1...𝑁)–1-1-onto→(1...𝑁) → (2nd ‘(1st ‘𝑇)) Fn (1...𝑁))
11913, 118syl 18 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (2nd ‘(1st ‘𝑇)) Fn (1...𝑁))
120 fnsnfv 6964 . . . . . . . . . . . . . . . . . . . 20 (((2nd ‘(1st ‘𝑇)) Fn (1...𝑁) ∧ 𝑀 ∈ (1...𝑁)) → {((2nd ‘(1st ‘𝑇))‘𝑀)} = ((2nd ‘(1st ‘𝑇)) “ {𝑀}))
121119, 41, 120syl2anc 596 . . . . . . . . . . . . . . . . . . 19 (𝜑 → {((2nd ‘(1st ‘𝑇))‘𝑀)} = ((2nd ‘(1st ‘𝑇)) “ {𝑀}))
122121uneq1d 4166 . . . . . . . . . . . . . . . . . 18 (𝜑 → ({((2nd ‘(1st ‘𝑇))‘𝑀)} ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ {𝑀}) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
123114, 117, 1223eqtr4a 2821 . . . . . . . . . . . . . . . . 17 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) = ({((2nd ‘(1st ‘𝑇))‘𝑀)} ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
124123xpeq1d 5679 . . . . . . . . . . . . . . . 16 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}) = (({((2nd ‘(1st ‘𝑇))‘𝑀)} ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) × {0}))
125 xpundir 5720 . . . . . . . . . . . . . . . 16 (({((2nd ‘(1st ‘𝑇))‘𝑀)} ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) × {0}) = (({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))
126124, 125eqtrdi 2811 . . . . . . . . . . . . . . 15 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}) = (({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))
127126uneq2d 4167 . . . . . . . . . . . . . 14 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})) = ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))))
128 un12 4171 . . . . . . . . . . . . . 14 ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))) = (({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))
129127, 128eqtrdi 2811 . . . . . . . . . . . . 13 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})) = (({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))))
130129fveq1d 6887 . . . . . . . . . . . 12 (𝜑 → (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))‘𝑛) = ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛))
131130ad2antrr 739 . . . . . . . . . . 11 (((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) ∧ 𝑛 ∈ (1...𝑁)) → (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))‘𝑛) = ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛))
132 fnconstg 6770 . . . . . . . . . . . . . . . . 17 (0 ∈ V → (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}) Fn ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)))
13351, 132ax-mp 5 . . . . . . . . . . . . . . . 16 (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}) Fn ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))
13450, 133pm3.2i 476 . . . . . . . . . . . . . . 15 ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) Fn ((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∧ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}) Fn ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)))
135 imain 6625 . . . . . . . . . . . . . . . . 17 (Fun ◡(2nd ‘(1st ‘𝑇)) → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∩ ((𝑀 + 1)...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∩ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
13657, 135syl 18 . . . . . . . . . . . . . . . 16 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∩ ((𝑀 + 1)...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∩ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
13779nn0red 12668 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (𝑀 − 1) ∈ ℝ)
138 peano2re 11483 . . . . . . . . . . . . . . . . . . . . 21 (𝑀 ∈ ℝ → (𝑀 + 1) ∈ ℝ)
13962, 138syl 18 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (𝑀 + 1) ∈ ℝ)
14062ltp1d 12247 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → 𝑀 < (𝑀 + 1))
141137, 62, 139, 63, 140lttrd 11471 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (𝑀 − 1) < (𝑀 + 1))
142 fzdisj 13685 . . . . . . . . . . . . . . . . . . 19 ((𝑀 − 1) < (𝑀 + 1) → ((1...(𝑀 − 1)) ∩ ((𝑀 + 1)...𝑁)) = ∅)
143141, 142syl 18 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((1...(𝑀 − 1)) ∩ ((𝑀 + 1)...𝑁)) = ∅)
144143imaeq2d 6051 . . . . . . . . . . . . . . . . 17 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∩ ((𝑀 + 1)...𝑁))) = ((2nd ‘(1st ‘𝑇)) “ ∅))
145144, 67eqtrdi 2811 . . . . . . . . . . . . . . . 16 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∩ ((𝑀 + 1)...𝑁))) = ∅)
146136, 145eqtr3d 2797 . . . . . . . . . . . . . . 15 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∩ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = ∅)
147 fnun 6653 . . . . . . . . . . . . . . 15 ((((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) Fn ((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∧ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}) Fn ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) ∧ (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∩ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = ∅) → ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
148134, 146, 147sylancr 599 . . . . . . . . . . . . . 14 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
149 imaundi 6140 . . . . . . . . . . . . . . . 16 ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ ((𝑀 + 1)...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)))
150 imadif 6624 . . . . . . . . . . . . . . . . . 18 (Fun ◡(2nd ‘(1st ‘𝑇)) → ((2nd ‘(1st ‘𝑇)) “ ((1...𝑁) ∖ {𝑀})) = (((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) ∖ ((2nd ‘(1st ‘𝑇)) “ {𝑀})))
15157, 150syl 18 . . . . . . . . . . . . . . . . 17 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...𝑁) ∖ {𝑀})) = (((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) ∖ ((2nd ‘(1st ‘𝑇)) “ {𝑀})))
152 fzsplit 13684 . . . . . . . . . . . . . . . . . . . . 21 (𝑀 ∈ (1...𝑁) → (1...𝑁) = ((1...𝑀) ∪ ((𝑀 + 1)...𝑁)))
15341, 152syl 18 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (1...𝑁) = ((1...𝑀) ∪ ((𝑀 + 1)...𝑁)))
154153difeq1d 4062 . . . . . . . . . . . . . . . . . . 19 (𝜑 → ((1...𝑁) ∖ {𝑀}) = (((1...𝑀) ∪ ((𝑀 + 1)...𝑁)) ∖ {𝑀}))
155 difundir 4236 . . . . . . . . . . . . . . . . . . . 20 (((1...𝑀) ∪ ((𝑀 + 1)...𝑁)) ∖ {𝑀}) = (((1...𝑀) ∖ {𝑀}) ∪ (((𝑀 + 1)...𝑁) ∖ {𝑀}))
156 fzsplit2 13683 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((((𝑀 − 1) + 1) ∈ (ℤ≥‘1) ∧ 𝑀 ∈ (ℤ≥‘(𝑀 − 1))) → (1...𝑀) = ((1...(𝑀 − 1)) ∪ (((𝑀 − 1) + 1)...𝑀)))
15777, 85, 156syl2anc 596 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → (1...𝑀) = ((1...(𝑀 − 1)) ∪ (((𝑀 − 1) + 1)...𝑀)))
15874oveq1d 7435 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝜑 → (((𝑀 − 1) + 1)...𝑀) = (𝑀...𝑀))
159 fzsn 13700 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑀 ∈ ℤ → (𝑀...𝑀) = {𝑀})
16088, 159syl 18 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝜑 → (𝑀...𝑀) = {𝑀})
161158, 160eqtrd 2795 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝜑 → (((𝑀 − 1) + 1)...𝑀) = {𝑀})
162161uneq2d 4167 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → ((1...(𝑀 − 1)) ∪ (((𝑀 − 1) + 1)...𝑀)) = ((1...(𝑀 − 1)) ∪ {𝑀}))
163157, 162eqtrd 2795 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → (1...𝑀) = ((1...(𝑀 − 1)) ∪ {𝑀}))
164163difeq1d 4062 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → ((1...𝑀) ∖ {𝑀}) = (((1...(𝑀 − 1)) ∪ {𝑀}) ∖ {𝑀}))
165 difun2 4436 . . . . . . . . . . . . . . . . . . . . . . 23 (((1...(𝑀 − 1)) ∪ {𝑀}) ∖ {𝑀}) = ((1...(𝑀 − 1)) ∖ {𝑀})
166137, 62ltnled 11457 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝜑 → ((𝑀 − 1) < 𝑀 ↔ ¬ 𝑀 ≤ (𝑀 − 1)))
16763, 166mpbid 235 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝜑 → ¬ 𝑀 ≤ (𝑀 − 1))
168 elfzle2 13661 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑀 ∈ (1...(𝑀 − 1)) → 𝑀 ≤ (𝑀 − 1))
169167, 168nsyl 141 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → ¬ 𝑀 ∈ (1...(𝑀 − 1)))
170 difsn 4760 . . . . . . . . . . . . . . . . . . . . . . . 24 (¬ 𝑀 ∈ (1...(𝑀 − 1)) → ((1...(𝑀 − 1)) ∖ {𝑀}) = (1...(𝑀 − 1)))
171169, 170syl 18 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → ((1...(𝑀 − 1)) ∖ {𝑀}) = (1...(𝑀 − 1)))
172165, 171eqtrid 2807 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → (((1...(𝑀 − 1)) ∪ {𝑀}) ∖ {𝑀}) = (1...(𝑀 − 1)))
173164, 172eqtrd 2795 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → ((1...𝑀) ∖ {𝑀}) = (1...(𝑀 − 1)))
17462, 139ltnled 11457 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → (𝑀 < (𝑀 + 1) ↔ ¬ (𝑀 + 1) ≤ 𝑀))
175140, 174mpbid 235 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → ¬ (𝑀 + 1) ≤ 𝑀)
176 elfzle1 13660 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑀 ∈ ((𝑀 + 1)...𝑁) → (𝑀 + 1) ≤ 𝑀)
177175, 176nsyl 141 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → ¬ 𝑀 ∈ ((𝑀 + 1)...𝑁))
178 difsn 4760 . . . . . . . . . . . . . . . . . . . . . 22 (¬ 𝑀 ∈ ((𝑀 + 1)...𝑁) → (((𝑀 + 1)...𝑁) ∖ {𝑀}) = ((𝑀 + 1)...𝑁))
179177, 178syl 18 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → (((𝑀 + 1)...𝑁) ∖ {𝑀}) = ((𝑀 + 1)...𝑁))
180173, 179uneq12d 4168 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (((1...𝑀) ∖ {𝑀}) ∪ (((𝑀 + 1)...𝑁) ∖ {𝑀})) = ((1...(𝑀 − 1)) ∪ ((𝑀 + 1)...𝑁)))
181155, 180eqtrid 2807 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (((1...𝑀) ∪ ((𝑀 + 1)...𝑁)) ∖ {𝑀}) = ((1...(𝑀 − 1)) ∪ ((𝑀 + 1)...𝑁)))
182154, 181eqtrd 2795 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((1...𝑁) ∖ {𝑀}) = ((1...(𝑀 − 1)) ∪ ((𝑀 + 1)...𝑁)))
183182imaeq2d 6051 . . . . . . . . . . . . . . . . 17 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...𝑁) ∖ {𝑀})) = ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ ((𝑀 + 1)...𝑁))))
184121eqcomd 2766 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ {𝑀}) = {((2nd ‘(1st ‘𝑇))‘𝑀)})
185106, 184difeq12d 4064 . . . . . . . . . . . . . . . . 17 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) ∖ ((2nd ‘(1st ‘𝑇)) “ {𝑀})) = ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}))
186151, 183, 1853eqtr3d 2803 . . . . . . . . . . . . . . . 16 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ ((𝑀 + 1)...𝑁))) = ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}))
187149, 186eqtr3id 2809 . . . . . . . . . . . . . . 15 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}))
188187fneq2d 6633 . . . . . . . . . . . . . 14 (𝜑 → (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) ↔ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)})))
189148, 188mpbid 235 . . . . . . . . . . . . 13 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}))
190 eldifsn 4747 . . . . . . . . . . . . . . 15 (𝑛 ∈ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}) ↔ (𝑛 ∈ (1...𝑁) ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)))
191190biimpri 231 . . . . . . . . . . . . . 14 ((𝑛 ∈ (1...𝑁) ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) → 𝑛 ∈ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}))
192191ancoms 464 . . . . . . . . . . . . 13 ((𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀) ∧ 𝑛 ∈ (1...𝑁)) → 𝑛 ∈ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}))
193 disjdif 4425 . . . . . . . . . . . . . 14 ({((2nd ‘(1st ‘𝑇))‘𝑀)} ∩ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)})) = ∅
194 fnconstg 6770 . . . . . . . . . . . . . . . 16 (0 ∈ V → ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) Fn {((2nd ‘(1st ‘𝑇))‘𝑀)})
19551, 194ax-mp 5 . . . . . . . . . . . . . . 15 ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) Fn {((2nd ‘(1st ‘𝑇))‘𝑀)}
196 fvun2 6977 . . . . . . . . . . . . . . 15 ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) Fn {((2nd ‘(1st ‘𝑇))‘𝑀)} ∧ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}) ∧ (({((2nd ‘(1st ‘𝑇))‘𝑀)} ∩ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)})) = ∅ ∧ 𝑛 ∈ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}))) → ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛))
197195, 196mp3an1 1477 . . . . . . . . . . . . . 14 ((((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}) ∧ (({((2nd ‘(1st ‘𝑇))‘𝑀)} ∩ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)})) = ∅ ∧ 𝑛 ∈ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}))) → ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛))
198193, 197mpanr1 716 . . . . . . . . . . . . 13 ((((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}) ∧ 𝑛 ∈ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)})) → ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛))
199189, 192, 198syl2an 608 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀) ∧ 𝑛 ∈ (1...𝑁))) → ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛))
200199anassrs 473 . . . . . . . . . . 11 (((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) ∧ 𝑛 ∈ (1...𝑁)) → ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛))
201131, 200eqtrd 2795 . . . . . . . . . 10 (((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) ∧ 𝑛 ∈ (1...𝑁)) → (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))‘𝑛) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛))
20247, 110, 111, 111, 112, 113, 201ofval 7704 . . . . . . . . 9 (((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) ∧ 𝑛 ∈ (1...𝑁)) → (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})))‘𝑛) = (((1st ‘(1st ‘𝑇))‘𝑛) + (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛)))
203 fnconstg 6770 . . . . . . . . . . . . . . 15 (1 ∈ V → (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) Fn ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)))
20448, 203ax-mp 5 . . . . . . . . . . . . . 14 (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) Fn ((2nd ‘(1st ‘𝑇)) “ (1...𝑀))
205204, 133pm3.2i 476 . . . . . . . . . . . . 13 ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) Fn ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∧ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}) Fn ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)))
206 imain 6625 . . . . . . . . . . . . . . 15 (Fun ◡(2nd ‘(1st ‘𝑇)) → ((2nd ‘(1st ‘𝑇)) “ ((1...𝑀) ∩ ((𝑀 + 1)...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∩ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
20757, 206syl 18 . . . . . . . . . . . . . 14 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...𝑀) ∩ ((𝑀 + 1)...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∩ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
208 fzdisj 13685 . . . . . . . . . . . . . . . . 17 (𝑀 < (𝑀 + 1) → ((1...𝑀) ∩ ((𝑀 + 1)...𝑁)) = ∅)
209140, 208syl 18 . . . . . . . . . . . . . . . 16 (𝜑 → ((1...𝑀) ∩ ((𝑀 + 1)...𝑁)) = ∅)
210209imaeq2d 6051 . . . . . . . . . . . . . . 15 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...𝑀) ∩ ((𝑀 + 1)...𝑁))) = ((2nd ‘(1st ‘𝑇)) “ ∅))
211210, 67eqtrdi 2811 . . . . . . . . . . . . . 14 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...𝑀) ∩ ((𝑀 + 1)...𝑁))) = ∅)
212207, 211eqtr3d 2797 . . . . . . . . . . . . 13 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∩ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = ∅)
213 fnun 6653 . . . . . . . . . . . . 13 ((((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) Fn ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∧ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}) Fn ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) ∧ (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∩ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = ∅) → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
214205, 212, 213sylancr 599 . . . . . . . . . . . 12 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
215153imaeq2d 6051 . . . . . . . . . . . . . . 15 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) = ((2nd ‘(1st ‘𝑇)) “ ((1...𝑀) ∪ ((𝑀 + 1)...𝑁))))
216 imaundi 6140 . . . . . . . . . . . . . . 15 ((2nd ‘(1st ‘𝑇)) “ ((1...𝑀) ∪ ((𝑀 + 1)...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)))
217215, 216eqtrdi 2811 . . . . . . . . . . . . . 14 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) = (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
218217, 106eqtr3d 2797 . . . . . . . . . . . . 13 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = (1...𝑁))
219218fneq2d 6633 . . . . . . . . . . . 12 (𝜑 → (((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) ↔ ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn (1...𝑁)))
220214, 219mpbid 235 . . . . . . . . . . 11 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn (1...𝑁))
221220adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn (1...𝑁))
222 imaundi 6140 . . . . . . . . . . . . . . . . . 18 ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ {𝑀})) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ {𝑀}))
223163imaeq2d 6051 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) = ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ {𝑀})))
224121uneq2d 4167 . . . . . . . . . . . . . . . . . 18 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ {((2nd ‘(1st ‘𝑇))‘𝑀)}) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ {𝑀})))
225222, 223, 2243eqtr4a 2821 . . . . . . . . . . . . . . . . 17 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ {((2nd ‘(1st ‘𝑇))‘𝑀)}))
226225xpeq1d 5679 . . . . . . . . . . . . . . . 16 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) = ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ {((2nd ‘(1st ‘𝑇))‘𝑀)}) × {1}))
227 xpundir 5720 . . . . . . . . . . . . . . . 16 ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ {((2nd ‘(1st ‘𝑇))‘𝑀)}) × {1}) = ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}))
228226, 227eqtrdi 2811 . . . . . . . . . . . . . . 15 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) = ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1})))
229228uneq1d 4166 . . . . . . . . . . . . . 14 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1})) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))
230 un23 4172 . . . . . . . . . . . . . . 15 (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1})) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) ∪ ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}))
231230equncomi 4159 . . . . . . . . . . . . . 14 (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1})) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) = (({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))
232229, 231eqtrdi 2811 . . . . . . . . . . . . 13 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) = (({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))))
233232fveq1d 6887 . . . . . . . . . . . 12 (𝜑 → (((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛) = ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛))
234233ad2antrr 739 . . . . . . . . . . 11 (((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) ∧ 𝑛 ∈ (1...𝑁)) → (((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛) = ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛))
235 fnconstg 6770 . . . . . . . . . . . . . . . 16 (1 ∈ V → ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) Fn {((2nd ‘(1st ‘𝑇))‘𝑀)})
23648, 235ax-mp 5 . . . . . . . . . . . . . . 15 ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) Fn {((2nd ‘(1st ‘𝑇))‘𝑀)}
237 fvun2 6977 . . . . . . . . . . . . . . 15 ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) Fn {((2nd ‘(1st ‘𝑇))‘𝑀)} ∧ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}) ∧ (({((2nd ‘(1st ‘𝑇))‘𝑀)} ∩ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)})) = ∅ ∧ 𝑛 ∈ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}))) → ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛))
238236, 237mp3an1 1477 . . . . . . . . . . . . . 14 ((((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}) ∧ (({((2nd ‘(1st ‘𝑇))‘𝑀)} ∩ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)})) = ∅ ∧ 𝑛 ∈ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}))) → ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛))
239193, 238mpanr1 716 . . . . . . . . . . . . 13 ((((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) Fn ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}) ∧ 𝑛 ∈ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)})) → ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛))
240189, 192, 239syl2an 608 . . . . . . . . . . . 12 ((𝜑 ∧ (𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀) ∧ 𝑛 ∈ (1...𝑁))) → ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛))
241240anassrs 473 . . . . . . . . . . 11 (((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) ∧ 𝑛 ∈ (1...𝑁)) → ((({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛))
242234, 241eqtrd 2795 . . . . . . . . . 10 (((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) ∧ 𝑛 ∈ (1...𝑁)) → (((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛))
24347, 221, 111, 111, 112, 113, 242ofval 7704 . . . . . . . . 9 (((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) ∧ 𝑛 ∈ (1...𝑁)) → (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛) = (((1st ‘(1st ‘𝑇))‘𝑛) + (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘𝑛)))
244202, 243eqtr4d 2798 . . . . . . . 8 (((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) ∧ 𝑛 ∈ (1...𝑁)) → (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})))‘𝑛) = (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛))
245244an32s 665 . . . . . . 7 (((𝜑 ∧ 𝑛 ∈ (1...𝑁)) ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) → (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})))‘𝑛) = (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛))
246245anasss 472 . . . . . 6 ((𝜑 ∧ (𝑛 ∈ (1...𝑁) ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀))) → (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})))‘𝑛) = (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛))
247 fveq2 6885 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑇 → (2nd ‘𝑡) = (2nd ‘𝑇))
248247breq2d 5114 . . . . . . . . . . . . . . . . 17 (𝑡 = 𝑇 → (𝑦 < (2nd ‘𝑡) ↔ 𝑦 < (2nd ‘𝑇)))
249248ifbid 4505 . . . . . . . . . . . . . . . 16 (𝑡 = 𝑇 → if(𝑦 < (2nd ‘𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)))
250249csbeq1d 3850 . . . . . . . . . . . . . . 15 (𝑡 = 𝑇 → ⦋if(𝑦 < (2nd ‘𝑡), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑡)) ∘f + ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ⦋if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑡)) ∘f + ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))
251 2fveq3 6890 . . . . . . . . . . . . . . . . 17 (𝑡 = 𝑇 → (1st ‘(1st ‘𝑡)) = (1st ‘(1st ‘𝑇)))
252 2fveq3 6890 . . . . . . . . . . . . . . . . . . . 20 (𝑡 = 𝑇 → (2nd ‘(1st ‘𝑡)) = (2nd ‘(1st ‘𝑇)))
253252imaeq1d 6050 . . . . . . . . . . . . . . . . . . 19 (𝑡 = 𝑇 → ((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) = ((2nd ‘(1st ‘𝑇)) “ (1...𝑗)))
254253xpeq1d 5679 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑇 → (((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}))
255252imaeq1d 6050 . . . . . . . . . . . . . . . . . . 19 (𝑡 = 𝑇 → ((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)))
256255xpeq1d 5679 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑇 → (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))
257254, 256uneq12d 4168 . . . . . . . . . . . . . . . . 17 (𝑡 = 𝑇 → ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))
258251, 257oveq12d 7438 . . . . . . . . . . . . . . . 16 (𝑡 = 𝑇 → ((1st ‘(1st ‘𝑡)) ∘f + ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
259258csbeq2dv 3853 . . . . . . . . . . . . . . 15 (𝑡 = 𝑇 → ⦋if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑡)) ∘f + ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ⦋if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
260250, 259eqtrd 2795 . . . . . . . . . . . . . 14 (𝑡 = 𝑇 → ⦋if(𝑦 < (2nd ‘𝑡), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑡)) ∘f + ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ⦋if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
261260mpteq2dv 5198 . . . . . . . . . . . . 13 (𝑡 = 𝑇 → (𝑦 ∈ (0...(𝑁 − 1)) ↦ ⦋if(𝑦 < (2nd ‘𝑡), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑡)) ∘f + ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) = (𝑦 ∈ (0...(𝑁 − 1)) ↦ ⦋if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
262261eqeq2d 2771 . . . . . . . . . . . 12 (𝑡 = 𝑇 → (𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ ⦋if(𝑦 < (2nd ‘𝑡), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑡)) ∘f + ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ↔ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ ⦋if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))))
263262, 3elrab2 3648 . . . . . . . . . . 11 (𝑇 ∈ 𝑆 ↔ (𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ ⦋if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))))
264263simprbi 503 . . . . . . . . . 10 (𝑇 ∈ 𝑆 → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ ⦋if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
2651, 264syl 18 . . . . . . . . 9 (𝜑 → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ ⦋if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
266 breq1 5105 . . . . . . . . . . . . 13 (𝑦 = (𝑀 − 1) → (𝑦 < (2nd ‘𝑇) ↔ (𝑀 − 1) < (2nd ‘𝑇)))
267 id 23 . . . . . . . . . . . . 13 (𝑦 = (𝑀 − 1) → 𝑦 = (𝑀 − 1))
268266, 267ifbieq1d 4506 . . . . . . . . . . . 12 (𝑦 = (𝑀 − 1) → if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) = if((𝑀 − 1) < (2nd ‘𝑇), (𝑀 − 1), (𝑦 + 1)))
26925ltm1d 12249 . . . . . . . . . . . . . . 15 (𝜑 → ((2nd ‘𝑇) − 1) < (2nd ‘𝑇))
27062, 24, 25, 90, 269lelttrd 11468 . . . . . . . . . . . . . 14 (𝜑 → 𝑀 < (2nd ‘𝑇))
271137, 62, 25, 63, 270lttrd 11471 . . . . . . . . . . . . 13 (𝜑 → (𝑀 − 1) < (2nd ‘𝑇))
272271iftrued 4489 . . . . . . . . . . . 12 (𝜑 → if((𝑀 − 1) < (2nd ‘𝑇), (𝑀 − 1), (𝑦 + 1)) = (𝑀 − 1))
273268, 272sylan9eqr 2817 . . . . . . . . . . 11 ((𝜑 ∧ 𝑦 = (𝑀 − 1)) → if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) = (𝑀 − 1))
274273csbeq1d 3850 . . . . . . . . . 10 ((𝜑 ∧ 𝑦 = (𝑀 − 1)) → ⦋if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ⦋(𝑀 − 1) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
275 oveq2 7428 . . . . . . . . . . . . . . . . 17 (𝑗 = (𝑀 − 1) → (1...𝑗) = (1...(𝑀 − 1)))
276275imaeq2d 6051 . . . . . . . . . . . . . . . 16 (𝑗 = (𝑀 − 1) → ((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) = ((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))))
277276xpeq1d 5679 . . . . . . . . . . . . . . 15 (𝑗 = (𝑀 − 1) → (((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}))
278277adantl 487 . . . . . . . . . . . . . 14 ((𝜑 ∧ 𝑗 = (𝑀 − 1)) → (((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}))
279 oveq1 7427 . . . . . . . . . . . . . . . . . 18 (𝑗 = (𝑀 − 1) → (𝑗 + 1) = ((𝑀 − 1) + 1))
280279, 74sylan9eqr 2817 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑗 = (𝑀 − 1)) → (𝑗 + 1) = 𝑀)
281280oveq1d 7435 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ 𝑗 = (𝑀 − 1)) → ((𝑗 + 1)...𝑁) = (𝑀...𝑁))
282281imaeq2d 6051 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 𝑗 = (𝑀 − 1)) → ((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)))
283282xpeq1d 5679 . . . . . . . . . . . . . 14 ((𝜑 ∧ 𝑗 = (𝑀 − 1)) → (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))
284278, 283uneq12d 4168 . . . . . . . . . . . . 13 ((𝜑 ∧ 𝑗 = (𝑀 − 1)) → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})))
285284oveq2d 7436 . . . . . . . . . . . 12 ((𝜑 ∧ 𝑗 = (𝑀 − 1)) → ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))))
28679, 285csbied 3882 . . . . . . . . . . 11 (𝜑 → ⦋(𝑀 − 1) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))))
287286adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝑦 = (𝑀 − 1)) → ⦋(𝑀 − 1) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))))
288274, 287eqtrd 2795 . . . . . . . . 9 ((𝜑 ∧ 𝑦 = (𝑀 − 1)) → ⦋if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))))
289 1red 11309 . . . . . . . . . . 11 (𝜑 → 1 ∈ ℝ)
29062, 26, 289, 91lesub1dd 11932 . . . . . . . . . 10 (𝜑 → (𝑀 − 1) ≤ (𝑁 − 1))
291 elfz2nn0 13752 . . . . . . . . . 10 ((𝑀 − 1) ∈ (0...(𝑁 − 1)) ↔ ((𝑀 − 1) ∈ ℕ0 ∧ (𝑁 − 1) ∈ ℕ0 ∧ (𝑀 − 1) ≤ (𝑁 − 1)))
29279, 29, 290, 291syl3anbrc 1362 . . . . . . . . 9 (𝜑 → (𝑀 − 1) ∈ (0...(𝑁 − 1)))
293 ovexd 7455 . . . . . . . . 9 (𝜑 → ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))) ∈ V)
294265, 288, 292, 293fvmptd 7001 . . . . . . . 8 (𝜑 → (𝐹‘(𝑀 − 1)) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))))
295294fveq1d 6887 . . . . . . 7 (𝜑 → ((𝐹‘(𝑀 − 1))‘𝑛) = (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})))‘𝑛))
296295adantr 486 . . . . . 6 ((𝜑 ∧ (𝑛 ∈ (1...𝑁) ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀))) → ((𝐹‘(𝑀 − 1))‘𝑛) = (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})))‘𝑛))
297 breq1 5105 . . . . . . . . . . . . 13 (𝑦 = 𝑀 → (𝑦 < (2nd ‘𝑇) ↔ 𝑀 < (2nd ‘𝑇)))
298 id 23 . . . . . . . . . . . . 13 (𝑦 = 𝑀 → 𝑦 = 𝑀)
299297, 298ifbieq1d 4506 . . . . . . . . . . . 12 (𝑦 = 𝑀 → if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) = if(𝑀 < (2nd ‘𝑇), 𝑀, (𝑦 + 1)))
300270iftrued 4489 . . . . . . . . . . . 12 (𝜑 → if(𝑀 < (2nd ‘𝑇), 𝑀, (𝑦 + 1)) = 𝑀)
301299, 300sylan9eqr 2817 . . . . . . . . . . 11 ((𝜑 ∧ 𝑦 = 𝑀) → if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) = 𝑀)
302301csbeq1d 3850 . . . . . . . . . 10 ((𝜑 ∧ 𝑦 = 𝑀) → ⦋if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ⦋𝑀 / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
303 oveq2 7428 . . . . . . . . . . . . . . . . 17 (𝑗 = 𝑀 → (1...𝑗) = (1...𝑀))
304303imaeq2d 6051 . . . . . . . . . . . . . . . 16 (𝑗 = 𝑀 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) = ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)))
305304xpeq1d 5679 . . . . . . . . . . . . . . 15 (𝑗 = 𝑀 → (((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}))
306 oveq1 7427 . . . . . . . . . . . . . . . . . 18 (𝑗 = 𝑀 → (𝑗 + 1) = (𝑀 + 1))
307306oveq1d 7435 . . . . . . . . . . . . . . . . 17 (𝑗 = 𝑀 → ((𝑗 + 1)...𝑁) = ((𝑀 + 1)...𝑁))
308307imaeq2d 6051 . . . . . . . . . . . . . . . 16 (𝑗 = 𝑀 → ((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)))
309308xpeq1d 5679 . . . . . . . . . . . . . . 15 (𝑗 = 𝑀 → (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))
310305, 309uneq12d 4168 . . . . . . . . . . . . . 14 (𝑗 = 𝑀 → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))
311310oveq2d 7436 . . . . . . . . . . . . 13 (𝑗 = 𝑀 → ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))))
312311adantl 487 . . . . . . . . . . . 12 ((𝜑 ∧ 𝑗 = 𝑀) → ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))))
31340, 312csbied 3882 . . . . . . . . . . 11 (𝜑 → ⦋𝑀 / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))))
314313adantr 486 . . . . . . . . . 10 ((𝜑 ∧ 𝑦 = 𝑀) → ⦋𝑀 / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))))
315302, 314eqtrd 2795 . . . . . . . . 9 ((𝜑 ∧ 𝑦 = 𝑀) → ⦋if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))))
31629nn0zd 12718 . . . . . . . . . . . . 13 (𝜑 → (𝑁 − 1) ∈ ℤ)
31725, 26, 289, 34lesub1dd 11932 . . . . . . . . . . . . 13 (𝜑 → ((2nd ‘𝑇) − 1) ≤ (𝑁 − 1))
318 eluz2 12971 . . . . . . . . . . . . 13 ((𝑁 − 1) ∈ (ℤ≥‘((2nd ‘𝑇) − 1)) ↔ (((2nd ‘𝑇) − 1) ∈ ℤ ∧ (𝑁 − 1) ∈ ℤ ∧ ((2nd ‘𝑇) − 1) ≤ (𝑁 − 1)))
31921, 316, 317, 318syl3anbrc 1362 . . . . . . . . . . . 12 (𝜑 → (𝑁 − 1) ∈ (ℤ≥‘((2nd ‘𝑇) − 1)))
320 fzss2 13698 . . . . . . . . . . . 12 ((𝑁 − 1) ∈ (ℤ≥‘((2nd ‘𝑇) − 1)) → (1...((2nd ‘𝑇) − 1)) ⊆ (1...(𝑁 − 1)))
321319, 320syl 18 . . . . . . . . . . 11 (𝜑 → (1...((2nd ‘𝑇) − 1)) ⊆ (1...(𝑁 − 1)))
322 fz1ssfz0 13757 . . . . . . . . . . 11 (1...(𝑁 − 1)) ⊆ (0...(𝑁 − 1))
323321, 322sstrdi 3920 . . . . . . . . . 10 (𝜑 → (1...((2nd ‘𝑇) − 1)) ⊆ (0...(𝑁 − 1)))
324323, 40sseldd 3909 . . . . . . . . 9 (𝜑 → 𝑀 ∈ (0...(𝑁 − 1)))
325 ovexd 7455 . . . . . . . . 9 (𝜑 → ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))) ∈ V)
326265, 315, 324, 325fvmptd 7001 . . . . . . . 8 (𝜑 → (𝐹‘𝑀) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))))
327326fveq1d 6887 . . . . . . 7 (𝜑 → ((𝐹‘𝑀)‘𝑛) = (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛))
328327adantr 486 . . . . . 6 ((𝜑 ∧ (𝑛 ∈ (1...𝑁) ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀))) → ((𝐹‘𝑀)‘𝑛) = (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘𝑛))
329246, 296, 3283eqtr4d 2805 . . . . 5 ((𝜑 ∧ (𝑛 ∈ (1...𝑁) ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀))) → ((𝐹‘(𝑀 − 1))‘𝑛) = ((𝐹‘𝑀)‘𝑛))
330329expr 462 . . . 4 ((𝜑 ∧ 𝑛 ∈ (1...𝑁)) → (𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀) → ((𝐹‘(𝑀 − 1))‘𝑛) = ((𝐹‘𝑀)‘𝑛)))
331330necon1d 2977 . . 3 ((𝜑 ∧ 𝑛 ∈ (1...𝑁)) → (((𝐹‘(𝑀 − 1))‘𝑛) ≠ ((𝐹‘𝑀)‘𝑛) → 𝑛 = ((2nd ‘(1st ‘𝑇))‘𝑀)))
332 elmapi 8869 . . . . . . . . . . 11 ((1st ‘(1st ‘𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)) → (1st ‘(1st ‘𝑇)):(1...𝑁)⟶(0..^𝐾))
33344, 332syl 18 . . . . . . . . . 10 (𝜑 → (1st ‘(1st ‘𝑇)):(1...𝑁)⟶(0..^𝐾))
334333, 42ffvelcdmd 7085 . . . . . . . . 9 (𝜑 → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ∈ (0..^𝐾))
335 elfzonn0 13842 . . . . . . . . 9 (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ∈ (0..^𝐾) → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ∈ ℕ0)
336334, 335syl 18 . . . . . . . 8 (𝜑 → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ∈ ℕ0)
337336nn0red 12668 . . . . . . 7 (𝜑 → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ∈ ℝ)
338337ltp1d 12247 . . . . . . 7 (𝜑 → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) < (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) + 1))
339337, 338ltned 11446 . . . . . 6 (𝜑 → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ≠ (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) + 1))
340294fveq1d 6887 . . . . . . 7 (𝜑 → ((𝐹‘(𝑀 − 1))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})))‘((2nd ‘(1st ‘𝑇))‘𝑀)))
341 ovexd 7455 . . . . . . . . 9 (𝜑 → (1...𝑁) ∈ V)
342 eqidd 2761 . . . . . . . . 9 ((𝜑 ∧ ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ (1...𝑁)) → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)))
343 fzss1 13697 . . . . . . . . . . . . . 14 (𝑀 ∈ (ℤ≥‘1) → (𝑀...𝑁) ⊆ (1...𝑁))
34476, 343syl 18 . . . . . . . . . . . . 13 (𝜑 → (𝑀...𝑁) ⊆ (1...𝑁))
345 eluzfz1 13664 . . . . . . . . . . . . . 14 (𝑁 ∈ (ℤ≥‘𝑀) → 𝑀 ∈ (𝑀...𝑁))
34693, 345syl 18 . . . . . . . . . . . . 13 (𝜑 → 𝑀 ∈ (𝑀...𝑁))
347 fnfvima 7239 . . . . . . . . . . . . 13 (((2nd ‘(1st ‘𝑇)) Fn (1...𝑁) ∧ (𝑀...𝑁) ⊆ (1...𝑁) ∧ 𝑀 ∈ (𝑀...𝑁)) → ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)))
348119, 344, 346, 347syl3anc 1398 . . . . . . . . . . . 12 (𝜑 → ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)))
349 fvun2 6977 . . . . . . . . . . . . 13 (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) Fn ((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∧ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}) Fn ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) ∧ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∩ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))) = ∅ ∧ ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)))) → (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = ((((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})‘((2nd ‘(1st ‘𝑇))‘𝑀)))
35050, 53, 349mp3an12 1480 . . . . . . . . . . . 12 (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∩ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))) = ∅ ∧ ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))) → (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = ((((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})‘((2nd ‘(1st ‘𝑇))‘𝑀)))
35169, 348, 350syl2anc 596 . . . . . . . . . . 11 (𝜑 → (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = ((((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})‘((2nd ‘(1st ‘𝑇))‘𝑀)))
35251fvconst2 7210 . . . . . . . . . . . 12 (((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) → ((((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})‘((2nd ‘(1st ‘𝑇))‘𝑀)) = 0)
353348, 352syl 18 . . . . . . . . . . 11 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})‘((2nd ‘(1st ‘𝑇))‘𝑀)) = 0)
354351, 353eqtrd 2795 . . . . . . . . . 10 (𝜑 → (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = 0)
355354adantr 486 . . . . . . . . 9 ((𝜑 ∧ ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ (1...𝑁)) → (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = 0)
35646, 109, 341, 341, 112, 342, 355ofval 7704 . . . . . . . 8 ((𝜑 ∧ ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ (1...𝑁)) → (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) + 0))
35742, 356mpdan 700 . . . . . . 7 (𝜑 → (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) + 0))
358336nn0cnd 12669 . . . . . . . 8 (𝜑 → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ∈ ℂ)
359358addridd 11510 . . . . . . 7 (𝜑 → (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) + 0) = ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)))
360340, 357, 3593eqtrd 2799 . . . . . 6 (𝜑 → ((𝐹‘(𝑀 − 1))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)))
361326fveq1d 6887 . . . . . . 7 (𝜑 → ((𝐹‘𝑀)‘((2nd ‘(1st ‘𝑇))‘𝑀)) = (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘((2nd ‘(1st ‘𝑇))‘𝑀)))
362 fzss2 13698 . . . . . . . . . . . . . 14 (𝑁 ∈ (ℤ≥‘𝑀) → (1...𝑀) ⊆ (1...𝑁))
36393, 362syl 18 . . . . . . . . . . . . 13 (𝜑 → (1...𝑀) ⊆ (1...𝑁))
364 elfz1end 13688 . . . . . . . . . . . . . 14 (𝑀 ∈ ℕ ↔ 𝑀 ∈ (1...𝑀))
36561, 364sylib 221 . . . . . . . . . . . . 13 (𝜑 → 𝑀 ∈ (1...𝑀))
366 fnfvima 7239 . . . . . . . . . . . . 13 (((2nd ‘(1st ‘𝑇)) Fn (1...𝑁) ∧ (1...𝑀) ⊆ (1...𝑁) ∧ 𝑀 ∈ (1...𝑀)) → ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)))
367119, 363, 365, 366syl3anc 1398 . . . . . . . . . . . 12 (𝜑 → ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)))
368 fvun1 6976 . . . . . . . . . . . . 13 (((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) Fn ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∧ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}) Fn ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) ∧ ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∩ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = ∅ ∧ ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)))) → (((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1})‘((2nd ‘(1st ‘𝑇))‘𝑀)))
369204, 133, 368mp3an12 1480 . . . . . . . . . . . 12 (((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∩ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = ∅ ∧ ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (1...𝑀))) → (((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1})‘((2nd ‘(1st ‘𝑇))‘𝑀)))
370212, 367, 369syl2anc 596 . . . . . . . . . . 11 (𝜑 → (((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1})‘((2nd ‘(1st ‘𝑇))‘𝑀)))
37148fvconst2 7210 . . . . . . . . . . . 12 (((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1})‘((2nd ‘(1st ‘𝑇))‘𝑀)) = 1)
372367, 371syl 18 . . . . . . . . . . 11 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1})‘((2nd ‘(1st ‘𝑇))‘𝑀)) = 1)
373370, 372eqtrd 2795 . . . . . . . . . 10 (𝜑 → (((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = 1)
374373adantr 486 . . . . . . . . 9 ((𝜑 ∧ ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ (1...𝑁)) → (((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = 1)
37546, 220, 341, 341, 112, 342, 374ofval 7704 . . . . . . . 8 ((𝜑 ∧ ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ (1...𝑁)) → (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) + 1))
37642, 375mpdan 700 . . . . . . 7 (𝜑 → (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) + 1))
377361, 376eqtrd 2795 . . . . . 6 (𝜑 → ((𝐹‘𝑀)‘((2nd ‘(1st ‘𝑇))‘𝑀)) = (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) + 1))
378339, 360, 3773netr4d 3032 . . . . 5 (𝜑 → ((𝐹‘(𝑀 − 1))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ≠ ((𝐹‘𝑀)‘((2nd ‘(1st ‘𝑇))‘𝑀)))
379 fveq2 6885 . . . . . 6 (𝑛 = ((2nd ‘(1st ‘𝑇))‘𝑀) → ((𝐹‘(𝑀 − 1))‘𝑛) = ((𝐹‘(𝑀 − 1))‘((2nd ‘(1st ‘𝑇))‘𝑀)))
380 fveq2 6885 . . . . . 6 (𝑛 = ((2nd ‘(1st ‘𝑇))‘𝑀) → ((𝐹‘𝑀)‘𝑛) = ((𝐹‘𝑀)‘((2nd ‘(1st ‘𝑇))‘𝑀)))
381379, 380neeq12d 3016 . . . . 5 (𝑛 = ((2nd ‘(1st ‘𝑇))‘𝑀) → (((𝐹‘(𝑀 − 1))‘𝑛) ≠ ((𝐹‘𝑀)‘𝑛) ↔ ((𝐹‘(𝑀 − 1))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ≠ ((𝐹‘𝑀)‘((2nd ‘(1st ‘𝑇))‘𝑀))))
382378, 381syl5ibrcom 250 . . . 4 (𝜑 → (𝑛 = ((2nd ‘(1st ‘𝑇))‘𝑀) → ((𝐹‘(𝑀 − 1))‘𝑛) ≠ ((𝐹‘𝑀)‘𝑛)))
383382adantr 486 . . 3 ((𝜑 ∧ 𝑛 ∈ (1...𝑁)) → (𝑛 = ((2nd ‘(1st ‘𝑇))‘𝑀) → ((𝐹‘(𝑀 − 1))‘𝑛) ≠ ((𝐹‘𝑀)‘𝑛)))
384331, 383impbid 215 . 2 ((𝜑 ∧ 𝑛 ∈ (1...𝑁)) → (((𝐹‘(𝑀 − 1))‘𝑛) ≠ ((𝐹‘𝑀)‘𝑛) ↔ 𝑛 = ((2nd ‘(1st ‘𝑇))‘𝑀)))
38542, 384riota5 7406 1 (𝜑 → (℩𝑛 ∈ (1...𝑁)((𝐹‘(𝑀 − 1))‘𝑛) ≠ ((𝐹‘𝑀)‘𝑛)) = ((2nd ‘(1st ‘𝑇))‘𝑀))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   = wceq 1569   ∈ wcel 2144  {cab 2738   ≠ wne 2955  {crab 3412  Vcvv 3450  ⦋csb 3846   ⊆ wss 3895   ∖ cdif 4045   ∩ cin 4089   ∪ cun 4149  ∅c0 4278  ifcif 4481  {csn 4583   class class class wbr 5102   ↦ cmpt 5185   × cxp 5648  ◡ccnv 5649   “ cima 5653  Fun wfun 6532   Fn wfn 6533  ⟶wf 6534  –onto→wfo 6536  –1-1-onto→wf1o 6537  ‘cfv 6538  ℩crio 7376  (class class class)co 7420   ∘f cof 7691  1st c1st 7999  2nd c2nd 8000   ↑m cmap 8847  ℂcc 11198  ℝcr 11199  0cc0 11200  1c1 11201   + caddc 11203   < clt 11343   ≤ cle 11344   − cmin 11541  ℕcn 12335  ℕ0cn0 12606  ℤcz 12693  ℤ≥cuz 12965  ...cfz 13639  ..^cfzo 13788
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-rep 5231  ax-sep 5248  ax-nul 5259  ax-pow 5326  ax-pr 5390  ax-un 7751  ax-cnex 11256  ax-resscn 11257  ax-1cn 11258  ax-icn 11259  ax-addcl 11260  ax-addrcl 11261  ax-mulcl 11262  ax-mulrcl 11263  ax-mulcom 11264  ax-addass 11265  ax-mulass 11266  ax-distr 11267  ax-i2m1 11268  ax-1ne0 11269  ax-1rid 11270  ax-rnegex 11271  ax-rrecex 11272  ax-cnre 11273  ax-pre-lttri 11274  ax-pre-lttrn 11275  ax-pre-ltadd 11276  ax-pre-mulgt0 11277
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-nel 3062  df-ral 3077  df-rex 3087  df-reu 3366  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-pss 4014  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-pw 4558  df-sn 4584  df-pr 4586  df-op 4590  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-tr 5212  df-id 5545  df-eprel 5550  df-po 5558  df-so 5559  df-fr 5603  df-we 5605  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-pred 6304  df-ord 6365  df-on 6366  df-lim 6367  df-suc 6368  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-f1 6543  df-fo 6544  df-f1o 6545  df-fv 6546  df-riota 7377  df-ov 7423  df-oprab 7424  df-mpo 7425  df-of 7693  df-om 7878  df-1st 8001  df-2nd 8002  df-frecs 8299  df-wrecs 8330  df-recs 8379  df-rdg 8418  df-er 8717  df-map 8849  df-en 8974  df-dom 8975  df-sdom 8976  df-pnf 11345  df-mnf 11346  df-xr 11347  df-ltxr 11348  df-le 11349  df-sub 11543  df-neg 11544  df-nn 12336  df-n0 12607  df-z 12694  df-uz 12966  df-fz 13640  df-fzo 13789
This theorem is used by:  poimirlem8  38547
  Copyright terms: Public domain W3C validator