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 38735
Description: Lemma for poimir 38762 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-1onto(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 3644 . . . . . . . . 9 (𝑇 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(1...𝑁)}) × (0...𝑁)) ∣ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ ⦋if(𝑦 < (2nd ‘𝑡), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑡)) ∘f + ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} → 𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(1...𝑁)}) × (0...𝑁)))
3 poimirlem22.s . . . . . . . . 9 𝑆 = {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(1...𝑁)}) × (0...𝑁)) ∣ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ ⦋if(𝑦 < (2nd ‘𝑡), 𝑦, (𝑦 + 1)) / 𝑗⦌((1st ‘(1st ‘𝑡)) ∘f + ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}
42, 3eleq2s 2882 . . . . . . . 8 (𝑇 ∈ 𝑆 → 𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(1...𝑁)}) × (0...𝑁)))
51, 4syl 18 . . . . . . 7 (𝜑 → 𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(1...𝑁)}) × (0...𝑁)))
6 xp1st 8054 . . . . . . 7 (𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(1...𝑁)}) × (0...𝑁)) → (1st ‘𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(1...𝑁)}))
75, 6syl 18 . . . . . 6 (𝜑 → (1st ‘𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(1...𝑁)}))
8 xp2nd 8055 . . . . . 6 ((1st ‘𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(1...𝑁)}) → (2nd ‘(1st ‘𝑇)) ∈ {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(1...𝑁)})
97, 8syl 18 . . . . 5 (𝜑 → (2nd ‘(1st ‘𝑇)) ∈ {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(1...𝑁)})
10 fvex 6918 . . . . . 6 (2nd ‘(1st ‘𝑇)) ∈ V
11 f1oeq1 6831 . . . . . 6 (𝑓 = (2nd ‘(1st ‘𝑇)) → (𝑓:(1...𝑁)⟶1-1onto(1...𝑁) ↔ (2nd ‘(1st ‘𝑇)):(1...𝑁)⟶1-1onto(1...𝑁)))
1210, 11elab 3636 . . . . 5 ((2nd ‘(1st ‘𝑇)) ∈ {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(1...𝑁)} ↔ (2nd ‘(1st ‘𝑇)):(1...𝑁)⟶1-1onto(1...𝑁))
139, 12sylib 221 . . . 4 (𝜑 → (2nd ‘(1st ‘𝑇)):(1...𝑁)⟶1-1onto(1...𝑁))
14 f1of 6843 . . . 4 ((2nd ‘(1st ‘𝑇)):(1...𝑁)⟶1-1onto(1...𝑁) → (2nd ‘(1st ‘𝑇)):(1...𝑁)⟶(1...𝑁))
1513, 14syl 18 . . 3 (𝜑 → (2nd ‘(1st ‘𝑇)):(1...𝑁)⟶(1...𝑁))
16 poimirlem9.2 . . . . . . . . 9 (𝜑 → (2nd ‘𝑇) ∈ (1...(𝑁 − 1)))
17 elfznn 13711 . . . . . . . . 9 ((2nd ‘𝑇) ∈ (1...(𝑁 − 1)) → (2nd ‘𝑇) ∈ ℕ)
1816, 17syl 18 . . . . . . . 8 (𝜑 → (2nd ‘𝑇) ∈ ℕ)
1918nnzd 12743 . . . . . . 7 (𝜑 → (2nd ‘𝑇) ∈ ℤ)
20 peano2zm 12763 . . . . . . 7 ((2nd ‘𝑇) ∈ ℤ → ((2nd ‘𝑇) − 1) ∈ ℤ)
2119, 20syl 18 . . . . . 6 (𝜑 → ((2nd ‘𝑇) − 1) ∈ ℤ)
22 poimir.0 . . . . . . 7 (𝜑 → 𝑁 ∈ ℕ)
2322nnzd 12743 . . . . . 6 (𝜑 → 𝑁 ∈ ℤ)
2421zred 12827 . . . . . . 7 (𝜑 → ((2nd ‘𝑇) − 1) ∈ ℝ)
2518nnred 12374 . . . . . . 7 (𝜑 → (2nd ‘𝑇) ∈ ℝ)
2622nnred 12374 . . . . . . 7 (𝜑 → 𝑁 ∈ ℝ)
2725lem1d 12274 . . . . . . 7 (𝜑 → ((2nd ‘𝑇) − 1) ≤ (2nd ‘𝑇))
28 nnm1nn0 12671 . . . . . . . . . 10 (𝑁 ∈ ℕ → (𝑁 − 1) ∈ ℕ0)
2922, 28syl 18 . . . . . . . . 9 (𝜑 → (𝑁 − 1) ∈ ℕ0)
3029nn0red 12692 . . . . . . . 8 (𝜑 → (𝑁 − 1) ∈ ℝ)
31 elfzle2 13685 . . . . . . . . 9 ((2nd ‘𝑇) ∈ (1...(𝑁 − 1)) → (2nd ‘𝑇) ≤ (𝑁 − 1))
3216, 31syl 18 . . . . . . . 8 (𝜑 → (2nd ‘𝑇) ≤ (𝑁 − 1))
3326lem1d 12274 . . . . . . . 8 (𝜑 → (𝑁 − 1) ≤ 𝑁)
3425, 30, 26, 32, 33letrd 11491 . . . . . . 7 (𝜑 → (2nd ‘𝑇) ≤ 𝑁)
3524, 25, 26, 27, 34letrd 11491 . . . . . 6 (𝜑 → ((2nd ‘𝑇) − 1) ≤ 𝑁)
36 eluz2 12995 . . . . . 6 (𝑁 ∈ (ℤ≥‘((2nd ‘𝑇) − 1)) ↔ (((2nd ‘𝑇) − 1) ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ ((2nd ‘𝑇) − 1) ≤ 𝑁))
3721, 23, 35, 36syl3anbrc 1362 . . . . 5 (𝜑 → 𝑁 ∈ (ℤ≥‘((2nd ‘𝑇) − 1)))
38 fzss2 13722 . . . . 5 (𝑁 ∈ (ℤ≥‘((2nd ‘𝑇) − 1)) → (1...((2nd ‘𝑇) − 1)) ⊆ (1...𝑁))
3937, 38syl 18 . . . 4 (𝜑 → (1...((2nd ‘𝑇) − 1)) ⊆ (1...𝑁))
40 poimirlem6.3 . . . 4 (𝜑 → 𝑀 ∈ (1...((2nd ‘𝑇) − 1)))
4139, 40sseldd 3914 . . 3 (𝜑 → 𝑀 ∈ (1...𝑁))
4215, 41ffvelcdmd 7106 . 2 (𝜑 → ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ (1...𝑁))
43 xp1st 8054 . . . . . . . . . . . . 13 ((1st ‘𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(1...𝑁)}) → (1st ‘(1st ‘𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)))
447, 43syl 18 . . . . . . . . . . . 12 (𝜑 → (1st ‘(1st ‘𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)))
45 elmapfn 8912 . . . . . . . . . . . 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 11327 . . . . . . . . . . . . . . 15 1 ∈ V
49 fnconstg 6789 . . . . . . . . . . . . . . 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 11324 . . . . . . . . . . . . . . 15 0 ∈ V
52 fnconstg 6789 . . . . . . . . . . . . . . 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 6850 . . . . . . . . . . . . . . . . 17 ((2nd ‘(1st ‘𝑇)):(1...𝑁)⟶1-1onto(1...𝑁) ↔ ((2nd ‘(1st ‘𝑇)):(1...𝑁)⟶onto(1...𝑁) ∧ Fun ◡(2nd ‘(1st ‘𝑇))))
5655simprbi 503 . . . . . . . . . . . . . . . 16 ((2nd ‘(1st ‘𝑇)):(1...𝑁)⟶1-1onto(1...𝑁) → Fun ◡(2nd ‘(1st ‘𝑇)))
5713, 56syl 18 . . . . . . . . . . . . . . 15 (𝜑 → Fun ◡(2nd ‘(1st ‘𝑇)))
58 imain 6644 . . . . . . . . . . . . . . 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 13711 . . . . . . . . . . . . . . . . . . . 20 (𝑀 ∈ (1...((2nd ‘𝑇) − 1)) → 𝑀 ∈ ℕ)
6140, 60syl 18 . . . . . . . . . . . . . . . . . . 19 (𝜑 → 𝑀 ∈ ℕ)
6261nnred 12374 . . . . . . . . . . . . . . . . . 18 (𝜑 → 𝑀 ∈ ℝ)
6362ltm1d 12273 . . . . . . . . . . . . . . . . 17 (𝜑 → (𝑀 − 1) < 𝑀)
64 fzdisj 13709 . . . . . . . . . . . . . . . . 17 ((𝑀 − 1) < 𝑀 → ((1...(𝑀 − 1)) ∩ (𝑀...𝑁)) = ∅)
6563, 64syl 18 . . . . . . . . . . . . . . . 16 (𝜑 → ((1...(𝑀 − 1)) ∩ (𝑀...𝑁)) = ∅)
6665imaeq2d 6063 . . . . . . . . . . . . . . 15 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∩ (𝑀...𝑁))) = ((2nd ‘(1st ‘𝑇)) “ ∅))
67 ima0 6086 . . . . . . . . . . . . . . 15 ((2nd ‘(1st ‘𝑇)) “ ∅) = ∅
6866, 67eqtrdi 2814 . . . . . . . . . . . . . 14 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∩ (𝑀...𝑁))) = ∅)
6959, 68eqtr3d 2800 . . . . . . . . . . . . 13 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∩ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))) = ∅)
70 fnun 6672 . . . . . . . . . . . . 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 12375 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → 𝑀 ∈ ℂ)
73 npcan1 11765 . . . . . . . . . . . . . . . . . . . 20 (𝑀 ∈ ℂ → ((𝑀 − 1) + 1) = 𝑀)
7472, 73syl 18 . . . . . . . . . . . . . . . . . . 19 (𝜑 → ((𝑀 − 1) + 1) = 𝑀)
75 nnuz 13028 . . . . . . . . . . . . . . . . . . . 20 ℕ = (ℤ≥‘1)
7661, 75eleqtrdi 2874 . . . . . . . . . . . . . . . . . . 19 (𝜑 → 𝑀 ∈ (ℤ≥‘1))
7774, 76eqeltrd 2864 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((𝑀 − 1) + 1) ∈ (ℤ≥‘1))
78 nnm1nn0 12671 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑀 ∈ ℕ → (𝑀 − 1) ∈ ℕ0)
7961, 78syl 18 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → (𝑀 − 1) ∈ ℕ0)
8079nn0zd 12742 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → (𝑀 − 1) ∈ ℤ)
81 uzid 13004 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑀 − 1) ∈ ℤ → (𝑀 − 1) ∈ (ℤ≥‘(𝑀 − 1)))
8280, 81syl 18 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → (𝑀 − 1) ∈ (ℤ≥‘(𝑀 − 1)))
83 peano2uz 13052 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑀 − 1) ∈ (ℤ≥‘(𝑀 − 1)) → ((𝑀 − 1) + 1) ∈ (ℤ≥‘(𝑀 − 1)))
8482, 83syl 18 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → ((𝑀 − 1) + 1) ∈ (ℤ≥‘(𝑀 − 1)))
8574, 84eqeltrrd 2865 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → 𝑀 ∈ (ℤ≥‘(𝑀 − 1)))
86 uzss 13012 . . . . . . . . . . . . . . . . . . . 20 (𝑀 ∈ (ℤ≥‘(𝑀 − 1)) → (ℤ≥‘𝑀) ⊆ (ℤ≥‘(𝑀 − 1)))
8785, 86syl 18 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (ℤ≥‘𝑀) ⊆ (ℤ≥‘(𝑀 − 1)))
8861nnzd 12743 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → 𝑀 ∈ ℤ)
89 elfzle2 13685 . . . . . . . . . . . . . . . . . . . . . 22 (𝑀 ∈ (1...((2nd ‘𝑇) − 1)) → 𝑀 ≤ ((2nd ‘𝑇) − 1))
9040, 89syl 18 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → 𝑀 ≤ ((2nd ‘𝑇) − 1))
9162, 24, 26, 90, 35letrd 11491 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → 𝑀 ≤ 𝑁)
92 eluz2 12995 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ (ℤ≥‘𝑀) ↔ (𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 𝑀 ≤ 𝑁))
9388, 23, 91, 92syl3anbrc 1362 . . . . . . . . . . . . . . . . . . 19 (𝜑 → 𝑁 ∈ (ℤ≥‘𝑀))
9487, 93sseldd 3914 . . . . . . . . . . . . . . . . . 18 (𝜑 → 𝑁 ∈ (ℤ≥‘(𝑀 − 1)))
95 fzsplit2 13707 . . . . . . . . . . . . . . . . . 18 ((((𝑀 − 1) + 1) ∈ (ℤ≥‘1) ∧ 𝑁 ∈ (ℤ≥‘(𝑀 − 1))) → (1...𝑁) = ((1...(𝑀 − 1)) ∪ (((𝑀 − 1) + 1)...𝑁)))
9677, 94, 95syl2anc 596 . . . . . . . . . . . . . . . . 17 (𝜑 → (1...𝑁) = ((1...(𝑀 − 1)) ∪ (((𝑀 − 1) + 1)...𝑁)))
9774oveq1d 7455 . . . . . . . . . . . . . . . . . 18 (𝜑 → (((𝑀 − 1) + 1)...𝑁) = (𝑀...𝑁))
9897uneq2d 4170 . . . . . . . . . . . . . . . . 17 (𝜑 → ((1...(𝑀 − 1)) ∪ (((𝑀 − 1) + 1)...𝑁)) = ((1...(𝑀 − 1)) ∪ (𝑀...𝑁)))
9996, 98eqtrd 2798 . . . . . . . . . . . . . . . 16 (𝜑 → (1...𝑁) = ((1...(𝑀 − 1)) ∪ (𝑀...𝑁)))
10099imaeq2d 6063 . . . . . . . . . . . . . . 15 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) = ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ (𝑀...𝑁))))
101 imaundi 6152 . . . . . . . . . . . . . . 15 ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ (𝑀...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)))
102100, 101eqtrdi 2814 . . . . . . . . . . . . . 14 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))))
103 f1ofo 6851 . . . . . . . . . . . . . . . 16 ((2nd ‘(1st ‘𝑇)):(1...𝑁)⟶1-1onto(1...𝑁) → (2nd ‘(1st ‘𝑇)):(1...𝑁)⟶onto(1...𝑁))
10413, 103syl 18 . . . . . . . . . . . . . . 15 (𝜑 → (2nd ‘(1st ‘𝑇)):(1...𝑁)⟶onto(1...𝑁))
105 foima 6820 . . . . . . . . . . . . . . 15 ((2nd ‘(1st ‘𝑇)):(1...𝑁)⟶onto(1...𝑁) → ((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) = (1...𝑁))
106104, 105syl 18 . . . . . . . . . . . . . 14 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) = (1...𝑁))
107102, 106eqtr3d 2800 . . . . . . . . . . . . 13 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁))) = (1...𝑁))
108107fneq2d 6652 . . . . . . . . . . . 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 7475 . . . . . . . . . 10 ((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) → (1...𝑁) ∈ V)
112 inidm 4126 . . . . . . . . . 10 ((1...𝑁) ∩ (1...𝑁)) = (1...𝑁)
113 eqidd 2764 . . . . . . . . . 10 (((𝜑 ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀)) ∧ 𝑛 ∈ (1...𝑁)) → ((1st ‘(1st ‘𝑇))‘𝑛) = ((1st ‘(1st ‘𝑇))‘𝑛))
114 imaundi 6152 . . . . . . . . . . . . . . . . . 18 ((2nd ‘(1st ‘𝑇)) “ ({𝑀} ∪ ((𝑀 + 1)...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ {𝑀}) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)))
115 fzpred 13730 . . . . . . . . . . . . . . . . . . . 20 (𝑁 ∈ (ℤ≥‘𝑀) → (𝑀...𝑁) = ({𝑀} ∪ ((𝑀 + 1)...𝑁)))
11693, 115syl 18 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (𝑀...𝑁) = ({𝑀} ∪ ((𝑀 + 1)...𝑁)))
117116imaeq2d 6063 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) = ((2nd ‘(1st ‘𝑇)) “ ({𝑀} ∪ ((𝑀 + 1)...𝑁))))
118 f1ofn 6844 . . . . . . . . . . . . . . . . . . . . 21 ((2nd ‘(1st ‘𝑇)):(1...𝑁)⟶1-1onto(1...𝑁) → (2nd ‘(1st ‘𝑇)) Fn (1...𝑁))
11913, 118syl 18 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (2nd ‘(1st ‘𝑇)) Fn (1...𝑁))
120 fnsnfv 6984 . . . . . . . . . . . . . . . . . . . 20 (((2nd ‘(1st ‘𝑇)) Fn (1...𝑁) ∧ 𝑀 ∈ (1...𝑁)) → {((2nd ‘(1st ‘𝑇))‘𝑀)} = ((2nd ‘(1st ‘𝑇)) “ {𝑀}))
121119, 41, 120syl2anc 596 . . . . . . . . . . . . . . . . . . 19 (𝜑 → {((2nd ‘(1st ‘𝑇))‘𝑀)} = ((2nd ‘(1st ‘𝑇)) “ {𝑀}))
122121uneq1d 4169 . . . . . . . . . . . . . . . . . 18 (𝜑 → ({((2nd ‘(1st ‘𝑇))‘𝑀)} ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ {𝑀}) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
123114, 117, 1223eqtr4a 2824 . . . . . . . . . . . . . . . . 17 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) = ({((2nd ‘(1st ‘𝑇))‘𝑀)} ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
124123xpeq1d 5684 . . . . . . . . . . . . . . . 16 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}) = (({((2nd ‘(1st ‘𝑇))‘𝑀)} ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) × {0}))
125 xpundir 5725 . . . . . . . . . . . . . . . 16 (({((2nd ‘(1st ‘𝑇))‘𝑀)} ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) × {0}) = (({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))
126124, 125eqtrdi 2814 . . . . . . . . . . . . . . 15 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}) = (({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))
127126uneq2d 4170 . . . . . . . . . . . . . 14 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})) = ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))))
128 un12 4174 . . . . . . . . . . . . . 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 2814 . . . . . . . . . . . . 13 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})) = (({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))))
130129fveq1d 6907 . . . . . . . . . . . 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 6789 . . . . . . . . . . . . . . . . 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 6644 . . . . . . . . . . . . . . . . 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 12692 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (𝑀 − 1) ∈ ℝ)
138 peano2re 11507 . . . . . . . . . . . . . . . . . . . . 21 (𝑀 ∈ ℝ → (𝑀 + 1) ∈ ℝ)
13962, 138syl 18 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (𝑀 + 1) ∈ ℝ)
14062ltp1d 12271 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → 𝑀 < (𝑀 + 1))
141137, 62, 139, 63, 140lttrd 11495 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (𝑀 − 1) < (𝑀 + 1))
142 fzdisj 13709 . . . . . . . . . . . . . . . . . . 19 ((𝑀 − 1) < (𝑀 + 1) → ((1...(𝑀 − 1)) ∩ ((𝑀 + 1)...𝑁)) = ∅)
143141, 142syl 18 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((1...(𝑀 − 1)) ∩ ((𝑀 + 1)...𝑁)) = ∅)
144143imaeq2d 6063 . . . . . . . . . . . . . . . . 17 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∩ ((𝑀 + 1)...𝑁))) = ((2nd ‘(1st ‘𝑇)) “ ∅))
145144, 67eqtrdi 2814 . . . . . . . . . . . . . . . 16 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∩ ((𝑀 + 1)...𝑁))) = ∅)
146136, 145eqtr3d 2800 . . . . . . . . . . . . . . 15 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∩ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = ∅)
147 fnun 6672 . . . . . . . . . . . . . . 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 6152 . . . . . . . . . . . . . . . 16 ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ ((𝑀 + 1)...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)))
150 imadif 6643 . . . . . . . . . . . . . . . . . 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 13708 . . . . . . . . . . . . . . . . . . . . 21 (𝑀 ∈ (1...𝑁) → (1...𝑁) = ((1...𝑀) ∪ ((𝑀 + 1)...𝑁)))
15341, 152syl 18 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (1...𝑁) = ((1...𝑀) ∪ ((𝑀 + 1)...𝑁)))
154153difeq1d 4065 . . . . . . . . . . . . . . . . . . 19 (𝜑 → ((1...𝑁) ∖ {𝑀}) = (((1...𝑀) ∪ ((𝑀 + 1)...𝑁)) ∖ {𝑀}))
155 difundir 4239 . . . . . . . . . . . . . . . . . . . 20 (((1...𝑀) ∪ ((𝑀 + 1)...𝑁)) ∖ {𝑀}) = (((1...𝑀) ∖ {𝑀}) ∪ (((𝑀 + 1)...𝑁) ∖ {𝑀}))
156 fzsplit2 13707 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((((𝑀 − 1) + 1) ∈ (ℤ≥‘1) ∧ 𝑀 ∈ (ℤ≥‘(𝑀 − 1))) → (1...𝑀) = ((1...(𝑀 − 1)) ∪ (((𝑀 − 1) + 1)...𝑀)))
15777, 85, 156syl2anc 596 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → (1...𝑀) = ((1...(𝑀 − 1)) ∪ (((𝑀 − 1) + 1)...𝑀)))
15874oveq1d 7455 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝜑 → (((𝑀 − 1) + 1)...𝑀) = (𝑀...𝑀))
159 fzsn 13724 . . . . . . . . . . . . . . . . . . . . . . . . . . 27 (𝑀 ∈ ℤ → (𝑀...𝑀) = {𝑀})
16088, 159syl 18 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝜑 → (𝑀...𝑀) = {𝑀})
161158, 160eqtrd 2798 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝜑 → (((𝑀 − 1) + 1)...𝑀) = {𝑀})
162161uneq2d 4170 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → ((1...(𝑀 − 1)) ∪ (((𝑀 − 1) + 1)...𝑀)) = ((1...(𝑀 − 1)) ∪ {𝑀}))
163157, 162eqtrd 2798 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → (1...𝑀) = ((1...(𝑀 − 1)) ∪ {𝑀}))
164163difeq1d 4065 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → ((1...𝑀) ∖ {𝑀}) = (((1...(𝑀 − 1)) ∪ {𝑀}) ∖ {𝑀}))
165 difun2 4440 . . . . . . . . . . . . . . . . . . . . . . 23 (((1...(𝑀 − 1)) ∪ {𝑀}) ∖ {𝑀}) = ((1...(𝑀 − 1)) ∖ {𝑀})
166137, 62ltnled 11481 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝜑 → ((𝑀 − 1) < 𝑀 ↔ ¬ 𝑀 ≤ (𝑀 − 1)))
16763, 166mpbid 235 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝜑 → ¬ 𝑀 ≤ (𝑀 − 1))
168 elfzle2 13685 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑀 ∈ (1...(𝑀 − 1)) → 𝑀 ≤ (𝑀 − 1))
169167, 168nsyl 141 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → ¬ 𝑀 ∈ (1...(𝑀 − 1)))
170 difsn 4761 . . . . . . . . . . . . . . . . . . . . . . . 24 (¬ 𝑀 ∈ (1...(𝑀 − 1)) → ((1...(𝑀 − 1)) ∖ {𝑀}) = (1...(𝑀 − 1)))
171169, 170syl 18 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → ((1...(𝑀 − 1)) ∖ {𝑀}) = (1...(𝑀 − 1)))
172165, 171eqtrid 2810 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → (((1...(𝑀 − 1)) ∪ {𝑀}) ∖ {𝑀}) = (1...(𝑀 − 1)))
173164, 172eqtrd 2798 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → ((1...𝑀) ∖ {𝑀}) = (1...(𝑀 − 1)))
17462, 139ltnled 11481 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝜑 → (𝑀 < (𝑀 + 1) ↔ ¬ (𝑀 + 1) ≤ 𝑀))
175140, 174mpbid 235 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → ¬ (𝑀 + 1) ≤ 𝑀)
176 elfzle1 13684 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑀 ∈ ((𝑀 + 1)...𝑁) → (𝑀 + 1) ≤ 𝑀)
177175, 176nsyl 141 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → ¬ 𝑀 ∈ ((𝑀 + 1)...𝑁))
178 difsn 4761 . . . . . . . . . . . . . . . . . . . . . 22 (¬ 𝑀 ∈ ((𝑀 + 1)...𝑁) → (((𝑀 + 1)...𝑁) ∖ {𝑀}) = ((𝑀 + 1)...𝑁))
179177, 178syl 18 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → (((𝑀 + 1)...𝑁) ∖ {𝑀}) = ((𝑀 + 1)...𝑁))
180173, 179uneq12d 4171 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (((1...𝑀) ∖ {𝑀}) ∪ (((𝑀 + 1)...𝑁) ∖ {𝑀})) = ((1...(𝑀 − 1)) ∪ ((𝑀 + 1)...𝑁)))
181155, 180eqtrid 2810 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (((1...𝑀) ∪ ((𝑀 + 1)...𝑁)) ∖ {𝑀}) = ((1...(𝑀 − 1)) ∪ ((𝑀 + 1)...𝑁)))
182154, 181eqtrd 2798 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((1...𝑁) ∖ {𝑀}) = ((1...(𝑀 − 1)) ∪ ((𝑀 + 1)...𝑁)))
183182imaeq2d 6063 . . . . . . . . . . . . . . . . 17 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...𝑁) ∖ {𝑀})) = ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ ((𝑀 + 1)...𝑁))))
184121eqcomd 2769 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ {𝑀}) = {((2nd ‘(1st ‘𝑇))‘𝑀)})
185106, 184difeq12d 4067 . . . . . . . . . . . . . . . . 17 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) ∖ ((2nd ‘(1st ‘𝑇)) “ {𝑀})) = ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}))
186151, 183, 1853eqtr3d 2806 . . . . . . . . . . . . . . . 16 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ ((𝑀 + 1)...𝑁))) = ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}))
187149, 186eqtr3id 2812 . . . . . . . . . . . . . . 15 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)}))
188187fneq2d 6652 . . . . . . . . . . . . . 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 4748 . . . . . . . . . . . . . . 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 4429 . . . . . . . . . . . . . 14 ({((2nd ‘(1st ‘𝑇))‘𝑀)} ∩ ((1...𝑁) ∖ {((2nd ‘(1st ‘𝑇))‘𝑀)})) = ∅
194 fnconstg 6789 . . . . . . . . . . . . . . . 16 (0 ∈ V → ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) Fn {((2nd ‘(1st ‘𝑇))‘𝑀)})
19551, 194ax-mp 5 . . . . . . . . . . . . . . 15 ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {0}) Fn {((2nd ‘(1st ‘𝑇))‘𝑀)}
196 fvun2 6997 . . . . . . . . . . . . . . 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 1478 . . . . . . . . . . . . . 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 2798 . . . . . . . . . 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 7725 . . . . . . . . 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 6789 . . . . . . . . . . . . . . 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 6644 . . . . . . . . . . . . . . 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 13709 . . . . . . . . . . . . . . . . 17 (𝑀 < (𝑀 + 1) → ((1...𝑀) ∩ ((𝑀 + 1)...𝑁)) = ∅)
209140, 208syl 18 . . . . . . . . . . . . . . . 16 (𝜑 → ((1...𝑀) ∩ ((𝑀 + 1)...𝑁)) = ∅)
210209imaeq2d 6063 . . . . . . . . . . . . . . 15 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...𝑀) ∩ ((𝑀 + 1)...𝑁))) = ((2nd ‘(1st ‘𝑇)) “ ∅))
211210, 67eqtrdi 2814 . . . . . . . . . . . . . 14 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ ((1...𝑀) ∩ ((𝑀 + 1)...𝑁))) = ∅)
212207, 211eqtr3d 2800 . . . . . . . . . . . . 13 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∩ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = ∅)
213 fnun 6672 . . . . . . . . . . . . 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 6063 . . . . . . . . . . . . . . 15 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) = ((2nd ‘(1st ‘𝑇)) “ ((1...𝑀) ∪ ((𝑀 + 1)...𝑁))))
216 imaundi 6152 . . . . . . . . . . . . . . 15 ((2nd ‘(1st ‘𝑇)) “ ((1...𝑀) ∪ ((𝑀 + 1)...𝑁))) = (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)))
217215, 216eqtrdi 2814 . . . . . . . . . . . . . 14 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑁)) = (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))))
218217, 106eqtr3d 2800 . . . . . . . . . . . . 13 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) ∪ ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁))) = (1...𝑁))
219218fneq2d 6652 . . . . . . . . . . . 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 6152 . . . . . . . . . . . . . . . . . 18 ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ {𝑀})) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ {𝑀}))
223163imaeq2d 6063 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) = ((2nd ‘(1st ‘𝑇)) “ ((1...(𝑀 − 1)) ∪ {𝑀})))
224121uneq2d 4170 . . . . . . . . . . . . . . . . . 18 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ {((2nd ‘(1st ‘𝑇))‘𝑀)}) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ ((2nd ‘(1st ‘𝑇)) “ {𝑀})))
225222, 223, 2243eqtr4a 2824 . . . . . . . . . . . . . . . . 17 (𝜑 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) = (((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ {((2nd ‘(1st ‘𝑇))‘𝑀)}))
226225xpeq1d 5684 . . . . . . . . . . . . . . . 16 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) = ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ {((2nd ‘(1st ‘𝑇))‘𝑀)}) × {1}))
227 xpundir 5725 . . . . . . . . . . . . . . . 16 ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) ∪ {((2nd ‘(1st ‘𝑇))‘𝑀)}) × {1}) = ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}))
228226, 227eqtrdi 2814 . . . . . . . . . . . . . . 15 (𝜑 → (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) = ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1})))
229228uneq1d 4169 . . . . . . . . . . . . . 14 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) = (((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1})) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))
230 un23 4175 . . . . . . . . . . . . . . 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 4162 . . . . . . . . . . . . . 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 2814 . . . . . . . . . . . . 13 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})) = (({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) ∪ ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))))
233232fveq1d 6907 . . . . . . . . . . . 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 6789 . . . . . . . . . . . . . . . 16 (1 ∈ V → ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) Fn {((2nd ‘(1st ‘𝑇))‘𝑀)})
23648, 235ax-mp 5 . . . . . . . . . . . . . . 15 ({((2nd ‘(1st ‘𝑇))‘𝑀)} × {1}) Fn {((2nd ‘(1st ‘𝑇))‘𝑀)}
237 fvun2 6997 . . . . . . . . . . . . . . 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 1478 . . . . . . . . . . . . . 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 2798 . . . . . . . . . 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 7725 . . . . . . . . 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 2801 . . . . . . . 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 6905 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑇 → (2nd ‘𝑡) = (2nd ‘𝑇))
248247breq2d 5118 . . . . . . . . . . . . . . . . 17 (𝑡 = 𝑇 → (𝑦 < (2nd ‘𝑡) ↔ 𝑦 < (2nd ‘𝑇)))
249248ifbid 4509 . . . . . . . . . . . . . . . 16 (𝑡 = 𝑇 → if(𝑦 < (2nd ‘𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)))
250249csbeq1d 3855 . . . . . . . . . . . . . . 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 6910 . . . . . . . . . . . . . . . . 17 (𝑡 = 𝑇 → (1st ‘(1st ‘𝑡)) = (1st ‘(1st ‘𝑇)))
252 2fveq3 6910 . . . . . . . . . . . . . . . . . . . 20 (𝑡 = 𝑇 → (2nd ‘(1st ‘𝑡)) = (2nd ‘(1st ‘𝑇)))
253252imaeq1d 6062 . . . . . . . . . . . . . . . . . . 19 (𝑡 = 𝑇 → ((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) = ((2nd ‘(1st ‘𝑇)) “ (1...𝑗)))
254253xpeq1d 5684 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑇 → (((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}))
255252imaeq1d 6062 . . . . . . . . . . . . . . . . . . 19 (𝑡 = 𝑇 → ((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)))
256255xpeq1d 5684 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑇 → (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))
257254, 256uneq12d 4171 . . . . . . . . . . . . . . . . 17 (𝑡 = 𝑇 → ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))
258251, 257oveq12d 7458 . . . . . . . . . . . . . . . 16 (𝑡 = 𝑇 → ((1st ‘(1st ‘𝑡)) ∘f + ((((2nd ‘(1st ‘𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
259258csbeq2dv 3858 . . . . . . . . . . . . . . 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 2798 . . . . . . . . . . . . . 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 5202 . . . . . . . . . . . . 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 2774 . . . . . . . . . . . 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 3652 . . . . . . . . . . 11 (𝑇 ∈ 𝑆 ↔ (𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓 ∣ 𝑓:(1...𝑁)⟶1-1onto(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 5109 . . . . . . . . . . . . 13 (𝑦 = (𝑀 − 1) → (𝑦 < (2nd ‘𝑇) ↔ (𝑀 − 1) < (2nd ‘𝑇)))
267 id 23 . . . . . . . . . . . . 13 (𝑦 = (𝑀 − 1) → 𝑦 = (𝑀 − 1))
268266, 267ifbieq1d 4510 . . . . . . . . . . . 12 (𝑦 = (𝑀 − 1) → if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) = if((𝑀 − 1) < (2nd ‘𝑇), (𝑀 − 1), (𝑦 + 1)))
26925ltm1d 12273 . . . . . . . . . . . . . . 15 (𝜑 → ((2nd ‘𝑇) − 1) < (2nd ‘𝑇))
27062, 24, 25, 90, 269lelttrd 11492 . . . . . . . . . . . . . 14 (𝜑 → 𝑀 < (2nd ‘𝑇))
271137, 62, 25, 63, 270lttrd 11495 . . . . . . . . . . . . 13 (𝜑 → (𝑀 − 1) < (2nd ‘𝑇))
272271iftrued 4493 . . . . . . . . . . . 12 (𝜑 → if((𝑀 − 1) < (2nd ‘𝑇), (𝑀 − 1), (𝑦 + 1)) = (𝑀 − 1))
273268, 272sylan9eqr 2820 . . . . . . . . . . 11 ((𝜑 ∧ 𝑦 = (𝑀 − 1)) → if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) = (𝑀 − 1))
274273csbeq1d 3855 . . . . . . . . . 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 7448 . . . . . . . . . . . . . . . . 17 (𝑗 = (𝑀 − 1) → (1...𝑗) = (1...(𝑀 − 1)))
276275imaeq2d 6063 . . . . . . . . . . . . . . . 16 (𝑗 = (𝑀 − 1) → ((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) = ((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))))
277276xpeq1d 5684 . . . . . . . . . . . . . . 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 7447 . . . . . . . . . . . . . . . . . 18 (𝑗 = (𝑀 − 1) → (𝑗 + 1) = ((𝑀 − 1) + 1))
280279, 74sylan9eqr 2820 . . . . . . . . . . . . . . . . 17 ((𝜑 ∧ 𝑗 = (𝑀 − 1)) → (𝑗 + 1) = 𝑀)
281280oveq1d 7455 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ 𝑗 = (𝑀 − 1)) → ((𝑗 + 1)...𝑁) = (𝑀...𝑁))
282281imaeq2d 6063 . . . . . . . . . . . . . . 15 ((𝜑 ∧ 𝑗 = (𝑀 − 1)) → ((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)))
283282xpeq1d 5684 . . . . . . . . . . . . . 14 ((𝜑 ∧ 𝑗 = (𝑀 − 1)) → (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))
284278, 283uneq12d 4171 . . . . . . . . . . . . 13 ((𝜑 ∧ 𝑗 = (𝑀 − 1)) → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})))
285284oveq2d 7456 . . . . . . . . . . . 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 3887 . . . . . . . . . . 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 2798 . . . . . . . . 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 11333 . . . . . . . . . . 11 (𝜑 → 1 ∈ ℝ)
29062, 26, 289, 91lesub1dd 11956 . . . . . . . . . 10 (𝜑 → (𝑀 − 1) ≤ (𝑁 − 1))
291 elfz2nn0 13776 . . . . . . . . . 10 ((𝑀 − 1) ∈ (0...(𝑁 − 1)) ↔ ((𝑀 − 1) ∈ ℕ0 ∧ (𝑁 − 1) ∈ ℕ0 ∧ (𝑀 − 1) ≤ (𝑁 − 1)))
29279, 29, 290, 291syl3anbrc 1362 . . . . . . . . 9 (𝜑 → (𝑀 − 1) ∈ (0...(𝑁 − 1)))
293 ovexd 7475 . . . . . . . . 9 (𝜑 → ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))) ∈ V)
294265, 288, 292, 293fvmptd 7021 . . . . . . . 8 (𝜑 → (𝐹‘(𝑀 − 1)) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0}))))
295294fveq1d 6907 . . . . . . 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 5109 . . . . . . . . . . . . 13 (𝑦 = 𝑀 → (𝑦 < (2nd ‘𝑇) ↔ 𝑀 < (2nd ‘𝑇)))
298 id 23 . . . . . . . . . . . . 13 (𝑦 = 𝑀 → 𝑦 = 𝑀)
299297, 298ifbieq1d 4510 . . . . . . . . . . . 12 (𝑦 = 𝑀 → if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) = if(𝑀 < (2nd ‘𝑇), 𝑀, (𝑦 + 1)))
300270iftrued 4493 . . . . . . . . . . . 12 (𝜑 → if(𝑀 < (2nd ‘𝑇), 𝑀, (𝑦 + 1)) = 𝑀)
301299, 300sylan9eqr 2820 . . . . . . . . . . 11 ((𝜑 ∧ 𝑦 = 𝑀) → if(𝑦 < (2nd ‘𝑇), 𝑦, (𝑦 + 1)) = 𝑀)
302301csbeq1d 3855 . . . . . . . . . 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 7448 . . . . . . . . . . . . . . . . 17 (𝑗 = 𝑀 → (1...𝑗) = (1...𝑀))
304303imaeq2d 6063 . . . . . . . . . . . . . . . 16 (𝑗 = 𝑀 → ((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) = ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)))
305304xpeq1d 5684 . . . . . . . . . . . . . . 15 (𝑗 = 𝑀 → (((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}))
306 oveq1 7447 . . . . . . . . . . . . . . . . . 18 (𝑗 = 𝑀 → (𝑗 + 1) = (𝑀 + 1))
307306oveq1d 7455 . . . . . . . . . . . . . . . . 17 (𝑗 = 𝑀 → ((𝑗 + 1)...𝑁) = ((𝑀 + 1)...𝑁))
308307imaeq2d 6063 . . . . . . . . . . . . . . . 16 (𝑗 = 𝑀 → ((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)))
309308xpeq1d 5684 . . . . . . . . . . . . . . 15 (𝑗 = 𝑀 → (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))
310305, 309uneq12d 4171 . . . . . . . . . . . . . 14 (𝑗 = 𝑀 → ((((2nd ‘(1st ‘𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))
311310oveq2d 7456 . . . . . . . . . . . . 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 3887 . . . . . . . . . . 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 2798 . . . . . . . . 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 12742 . . . . . . . . . . . . 13 (𝜑 → (𝑁 − 1) ∈ ℤ)
31725, 26, 289, 34lesub1dd 11956 . . . . . . . . . . . . 13 (𝜑 → ((2nd ‘𝑇) − 1) ≤ (𝑁 − 1))
318 eluz2 12995 . . . . . . . . . . . . 13 ((𝑁 − 1) ∈ (ℤ≥‘((2nd ‘𝑇) − 1)) ↔ (((2nd ‘𝑇) − 1) ∈ ℤ ∧ (𝑁 − 1) ∈ ℤ ∧ ((2nd ‘𝑇) − 1) ≤ (𝑁 − 1)))
31921, 316, 317, 318syl3anbrc 1362 . . . . . . . . . . . 12 (𝜑 → (𝑁 − 1) ∈ (ℤ≥‘((2nd ‘𝑇) − 1)))
320 fzss2 13722 . . . . . . . . . . . 12 ((𝑁 − 1) ∈ (ℤ≥‘((2nd ‘𝑇) − 1)) → (1...((2nd ‘𝑇) − 1)) ⊆ (1...(𝑁 − 1)))
321319, 320syl 18 . . . . . . . . . . 11 (𝜑 → (1...((2nd ‘𝑇) − 1)) ⊆ (1...(𝑁 − 1)))
322 fz1ssfz0 13781 . . . . . . . . . . 11 (1...(𝑁 − 1)) ⊆ (0...(𝑁 − 1))
323321, 322sstrdi 3925 . . . . . . . . . 10 (𝜑 → (1...((2nd ‘𝑇) − 1)) ⊆ (0...(𝑁 − 1)))
324323, 40sseldd 3914 . . . . . . . . 9 (𝜑 → 𝑀 ∈ (0...(𝑁 − 1)))
325 ovexd 7475 . . . . . . . . 9 (𝜑 → ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))) ∈ V)
326265, 315, 324, 325fvmptd 7021 . . . . . . . 8 (𝜑 → (𝐹‘𝑀) = ((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0}))))
327326fveq1d 6907 . . . . . . 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 2808 . . . . 5 ((𝜑 ∧ (𝑛 ∈ (1...𝑁) ∧ 𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀))) → ((𝐹‘(𝑀 − 1))‘𝑛) = ((𝐹‘𝑀)‘𝑛))
330329expr 462 . . . 4 ((𝜑 ∧ 𝑛 ∈ (1...𝑁)) → (𝑛 ≠ ((2nd ‘(1st ‘𝑇))‘𝑀) → ((𝐹‘(𝑀 − 1))‘𝑛) = ((𝐹‘𝑀)‘𝑛)))
331330necon1d 2981 . . 3 ((𝜑 ∧ 𝑛 ∈ (1...𝑁)) → (((𝐹‘(𝑀 − 1))‘𝑛) ≠ ((𝐹‘𝑀)‘𝑛) → 𝑛 = ((2nd ‘(1st ‘𝑇))‘𝑀)))
332 elmapi 8894 . . . . . . . . . . 11 ((1st ‘(1st ‘𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)) → (1st ‘(1st ‘𝑇)):(1...𝑁)⟶(0..^𝐾))
33344, 332syl 18 . . . . . . . . . 10 (𝜑 → (1st ‘(1st ‘𝑇)):(1...𝑁)⟶(0..^𝐾))
334333, 42ffvelcdmd 7106 . . . . . . . . 9 (𝜑 → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ∈ (0..^𝐾))
335 elfzonn0 13866 . . . . . . . . 9 (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ∈ (0..^𝐾) → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ∈ ℕ0)
336334, 335syl 18 . . . . . . . 8 (𝜑 → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ∈ ℕ0)
337336nn0red 12692 . . . . . . 7 (𝜑 → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ∈ ℝ)
338337ltp1d 12271 . . . . . . 7 (𝜑 → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) < (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) + 1))
339337, 338ltned 11470 . . . . . 6 (𝜑 → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ≠ (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) + 1))
340294fveq1d 6907 . . . . . . 7 (𝜑 → ((𝐹‘(𝑀 − 1))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...(𝑀 − 1))) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})))‘((2nd ‘(1st ‘𝑇))‘𝑀)))
341 ovexd 7475 . . . . . . . . 9 (𝜑 → (1...𝑁) ∈ V)
342 eqidd 2764 . . . . . . . . 9 ((𝜑 ∧ ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ (1...𝑁)) → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)))
343 fzss1 13721 . . . . . . . . . . . . . 14 (𝑀 ∈ (ℤ≥‘1) → (𝑀...𝑁) ⊆ (1...𝑁))
34476, 343syl 18 . . . . . . . . . . . . 13 (𝜑 → (𝑀...𝑁) ⊆ (1...𝑁))
345 eluzfz1 13688 . . . . . . . . . . . . . 14 (𝑁 ∈ (ℤ≥‘𝑀) → 𝑀 ∈ (𝑀...𝑁))
34693, 345syl 18 . . . . . . . . . . . . 13 (𝜑 → 𝑀 ∈ (𝑀...𝑁))
347 fnfvima 7259 . . . . . . . . . . . . 13 (((2nd ‘(1st ‘𝑇)) Fn (1...𝑁) ∧ (𝑀...𝑁) ⊆ (1...𝑁) ∧ 𝑀 ∈ (𝑀...𝑁)) → ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)))
348119, 344, 346, 347syl3anc 1399 . . . . . . . . . . . 12 (𝜑 → ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)))
349 fvun2 6997 . . . . . . . . . . . . 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 1481 . . . . . . . . . . . 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 7230 . . . . . . . . . . . 12 (((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) → ((((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})‘((2nd ‘(1st ‘𝑇))‘𝑀)) = 0)
353348, 352syl 18 . . . . . . . . . . 11 (𝜑 → ((((2nd ‘(1st ‘𝑇)) “ (𝑀...𝑁)) × {0})‘((2nd ‘(1st ‘𝑇))‘𝑀)) = 0)
354351, 353eqtrd 2798 . . . . . . . . . 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 7725 . . . . . . . 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 12693 . . . . . . . 8 (𝜑 → ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ∈ ℂ)
359358addridd 11534 . . . . . . 7 (𝜑 → (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) + 0) = ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)))
360340, 357, 3593eqtrd 2802 . . . . . 6 (𝜑 → ((𝐹‘(𝑀 − 1))‘((2nd ‘(1st ‘𝑇))‘𝑀)) = ((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)))
361326fveq1d 6907 . . . . . . 7 (𝜑 → ((𝐹‘𝑀)‘((2nd ‘(1st ‘𝑇))‘𝑀)) = (((1st ‘(1st ‘𝑇)) ∘f + ((((2nd ‘(1st ‘𝑇)) “ (1...𝑀)) × {1}) ∪ (((2nd ‘(1st ‘𝑇)) “ ((𝑀 + 1)...𝑁)) × {0})))‘((2nd ‘(1st ‘𝑇))‘𝑀)))
362 fzss2 13722 . . . . . . . . . . . . . 14 (𝑁 ∈ (ℤ≥‘𝑀) → (1...𝑀) ⊆ (1...𝑁))
36393, 362syl 18 . . . . . . . . . . . . 13 (𝜑 → (1...𝑀) ⊆ (1...𝑁))
364 elfz1end 13712 . . . . . . . . . . . . . 14 (𝑀 ∈ ℕ ↔ 𝑀 ∈ (1...𝑀))
36561, 364sylib 221 . . . . . . . . . . . . 13 (𝜑 → 𝑀 ∈ (1...𝑀))
366 fnfvima 7259 . . . . . . . . . . . . 13 (((2nd ‘(1st ‘𝑇)) Fn (1...𝑁) ∧ (1...𝑀) ⊆ (1...𝑁) ∧ 𝑀 ∈ (1...𝑀)) → ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)))
367119, 363, 365, 366syl3anc 1399 . . . . . . . . . . . 12 (𝜑 → ((2nd ‘(1st ‘𝑇))‘𝑀) ∈ ((2nd ‘(1st ‘𝑇)) “ (1...𝑀)))
368 fvun1 6996 . . . . . . . . . . . . 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 1481 . . . . . . . . . . . 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 7230 . . . . . . . . . . . 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 2798 . . . . . . . . . 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 7725 . . . . . . . 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 2798 . . . . . 6 (𝜑 → ((𝐹‘𝑀)‘((2nd ‘(1st ‘𝑇))‘𝑀)) = (((1st ‘(1st ‘𝑇))‘((2nd ‘(1st ‘𝑇))‘𝑀)) + 1))
378339, 360, 3773netr4d 3036 . . . . 5 (𝜑 → ((𝐹‘(𝑀 − 1))‘((2nd ‘(1st ‘𝑇))‘𝑀)) ≠ ((𝐹‘𝑀)‘((2nd ‘(1st ‘𝑇))‘𝑀)))
379 fveq2 6905 . . . . . 6 (𝑛 = ((2nd ‘(1st ‘𝑇))‘𝑀) → ((𝐹‘(𝑀 − 1))‘𝑛) = ((𝐹‘(𝑀 − 1))‘((2nd ‘(1st ‘𝑇))‘𝑀)))
380 fveq2 6905 . . . . . 6 (𝑛 = ((2nd ‘(1st ‘𝑇))‘𝑀) → ((𝐹‘𝑀)‘𝑛) = ((𝐹‘𝑀)‘((2nd ‘(1st ‘𝑇))‘𝑀)))
381379, 380neeq12d 3020 . . . . 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 7426 1 (𝜑 → (℩𝑛 ∈ (1...𝑁)((𝐹‘(𝑀 − 1))‘𝑛) ≠ ((𝐹‘𝑀)‘𝑛)) = ((2nd ‘(1st ‘𝑇))‘𝑀))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 401   = wceq 1570   ∈ wcel 2147  {cab 2741   ≠ wne 2959  {crab 3416  Vcvv 3454  ⦋csb 3851   ⊆ wss 3900   ∖ cdif 4048   ∩ cin 4092   ∪ cun 4152  ∅c0 4281  ifcif 4485  {csn 4588   class class class wbr 5106   ↦ cmpt 5189   × cxp 5653  ◡ccnv 5654   “ cima 5658  Fun wfun 6549   Fn wfn 6550  ⟶wf 6551  ⟶ontowfo 6553  ⟶1-1ontowf1o 6554  ‘cfv 6555  ℩crio 7396  (class class class)co 7440   ∘f cof 7712  1st c1st 8020  2nd c2nd 8021   ↑m cmap 8872  ℂcc 11222  ℝcr 11223  0cc0 11224  1c1 11225   + caddc 11227   < clt 11367   ≤ cle 11368   − cmin 11565  ℕcn 12359  ℕ0cn0 12630  ℤcz 12717  ℤ≥cuz 12989  ...cfz 13663  ..^cfzo 13812
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-rep 5235  ax-sep 5252  ax-nul 5263  ax-pow 5331  ax-pr 5395  ax-un 7772  ax-cnex 11280  ax-resscn 11281  ax-1cn 11282  ax-icn 11283  ax-addcl 11284  ax-addrcl 11285  ax-mulcl 11286  ax-mulrcl 11287  ax-mulcom 11288  ax-addass 11289  ax-mulass 11290  ax-distr 11291  ax-i2m1 11292  ax-1ne0 11293  ax-1rid 11294  ax-rnegex 11295  ax-rrecex 11296  ax-cnre 11297  ax-pre-lttri 11298  ax-pre-lttrn 11299  ax-pre-ltadd 11300  ax-pre-mulgt0 11301
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1104  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-nel 3066  df-ral 3081  df-rex 3091  df-reu 3370  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-pss 4017  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-pw 4562  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-tr 5216  df-id 5550  df-eprel 5555  df-po 5563  df-so 5564  df-fr 5608  df-we 5610  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-pred 6319  df-ord 6380  df-on 6381  df-lim 6382  df-suc 6383  df-iota 6509  df-fun 6557  df-fn 6558  df-f 6559  df-f1 6560  df-fo 6561  df-f1o 6562  df-fv 6563  df-riota 7397  df-ov 7443  df-oprab 7444  df-mpo 7445  df-of 7714  df-om 7899  df-1st 8022  df-2nd 8023  df-frecs 8324  df-wrecs 8355  df-recs 8404  df-rdg 8443  df-er 8742  df-map 8874  df-en 8999  df-dom 9000  df-sdom 9001  df-pnf 11369  df-mnf 11370  df-xr 11371  df-ltxr 11372  df-le 11373  df-sub 11567  df-neg 11568  df-nn 12360  df-n0 12631  df-z 12718  df-uz 12990  df-fz 13664  df-fzo 13813
This theorem is used by:  poimirlem8  38737
  Copyright terms: Public domain W3C validator