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

Theorem poimirlem15 35529
Description: Lemma for poimir 35547, that the face in poimirlem22 35536 is a face. (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}))))}
poimirlem22.1 (𝜑𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑m (1...𝑁)))
poimirlem22.2 (𝜑𝑇𝑆)
poimirlem15.3 (𝜑 → (2nd𝑇) ∈ (1...(𝑁 − 1)))
Assertion
Ref Expression
poimirlem15 (𝜑 → ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ ∈ 𝑆)
Distinct variable groups:   𝑓,𝑗,𝑡,𝑦   𝜑,𝑗,𝑦   𝑗,𝐹,𝑦   𝑗,𝑁,𝑦   𝑇,𝑗,𝑦   𝜑,𝑡   𝑓,𝐾,𝑗,𝑡   𝑓,𝑁,𝑡   𝑇,𝑓   𝑓,𝐹,𝑡   𝑡,𝑇   𝑆,𝑗,𝑡,𝑦
Allowed substitution hints:   𝜑(𝑓)   𝑆(𝑓)   𝐾(𝑦)

Proof of Theorem poimirlem15
StepHypRef Expression
1 poimirlem22.2 . . . . . 6 (𝜑𝑇𝑆)
2 elrabi 3596 . . . . . . 7 (𝑇 ∈ {𝑡 ∈ ((((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 . . . . . . 7 𝑆 = {𝑡 ∈ ((((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 2856 . . . . . 6 (𝑇𝑆𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
51, 4syl 17 . . . . 5 (𝜑𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
6 xp1st 7793 . . . . 5 (𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (1st𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
7 xp1st 7793 . . . . 5 ((1st𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (1st ‘(1st𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)))
85, 6, 73syl 18 . . . 4 (𝜑 → (1st ‘(1st𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)))
9 xp2nd 7794 . . . . . . . 8 ((1st𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (2nd ‘(1st𝑇)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
105, 6, 93syl 18 . . . . . . 7 (𝜑 → (2nd ‘(1st𝑇)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
11 fvex 6730 . . . . . . . 8 (2nd ‘(1st𝑇)) ∈ V
12 f1oeq1 6649 . . . . . . . 8 (𝑓 = (2nd ‘(1st𝑇)) → (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) ↔ (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁)))
1311, 12elab 3587 . . . . . . 7 ((2nd ‘(1st𝑇)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ↔ (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
1410, 13sylib 221 . . . . . 6 (𝜑 → (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
15 poimirlem15.3 . . . . . . . . . . . . 13 (𝜑 → (2nd𝑇) ∈ (1...(𝑁 − 1)))
16 elfznn 13141 . . . . . . . . . . . . 13 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ∈ ℕ)
1715, 16syl 17 . . . . . . . . . . . 12 (𝜑 → (2nd𝑇) ∈ ℕ)
1817nnred 11845 . . . . . . . . . . 11 (𝜑 → (2nd𝑇) ∈ ℝ)
1918ltp1d 11762 . . . . . . . . . . 11 (𝜑 → (2nd𝑇) < ((2nd𝑇) + 1))
2018, 19ltned 10968 . . . . . . . . . 10 (𝜑 → (2nd𝑇) ≠ ((2nd𝑇) + 1))
2120necomd 2996 . . . . . . . . . 10 (𝜑 → ((2nd𝑇) + 1) ≠ (2nd𝑇))
22 fvex 6730 . . . . . . . . . . 11 (2nd𝑇) ∈ V
23 ovex 7246 . . . . . . . . . . 11 ((2nd𝑇) + 1) ∈ V
24 f1oprg 6705 . . . . . . . . . . 11 ((((2nd𝑇) ∈ V ∧ ((2nd𝑇) + 1) ∈ V) ∧ (((2nd𝑇) + 1) ∈ V ∧ (2nd𝑇) ∈ V)) → (((2nd𝑇) ≠ ((2nd𝑇) + 1) ∧ ((2nd𝑇) + 1) ≠ (2nd𝑇)) → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{((2nd𝑇) + 1), (2nd𝑇)}))
2522, 23, 23, 22, 24mp4an 693 . . . . . . . . . 10 (((2nd𝑇) ≠ ((2nd𝑇) + 1) ∧ ((2nd𝑇) + 1) ≠ (2nd𝑇)) → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{((2nd𝑇) + 1), (2nd𝑇)})
2620, 21, 25syl2anc 587 . . . . . . . . 9 (𝜑 → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{((2nd𝑇) + 1), (2nd𝑇)})
27 prcom 4648 . . . . . . . . . 10 {((2nd𝑇) + 1), (2nd𝑇)} = {(2nd𝑇), ((2nd𝑇) + 1)}
28 f1oeq3 6651 . . . . . . . . . 10 ({((2nd𝑇) + 1), (2nd𝑇)} = {(2nd𝑇), ((2nd𝑇) + 1)} → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{((2nd𝑇) + 1), (2nd𝑇)} ↔ {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{(2nd𝑇), ((2nd𝑇) + 1)}))
2927, 28ax-mp 5 . . . . . . . . 9 ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{((2nd𝑇) + 1), (2nd𝑇)} ↔ {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{(2nd𝑇), ((2nd𝑇) + 1)})
3026, 29sylib 221 . . . . . . . 8 (𝜑 → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{(2nd𝑇), ((2nd𝑇) + 1)})
31 f1oi 6698 . . . . . . . 8 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})–1-1-onto→((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
32 disjdif 4386 . . . . . . . . 9 ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ∅
33 f1oun 6680 . . . . . . . . 9 ((({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{(2nd𝑇), ((2nd𝑇) + 1)} ∧ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})–1-1-onto→((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) ∧ (({(2nd𝑇), ((2nd𝑇) + 1)} ∩ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ∅ ∧ ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ∅)) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))):({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))–1-1-onto→({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
3432, 32, 33mpanr12 705 . . . . . . . 8 (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{(2nd𝑇), ((2nd𝑇) + 1)} ∧ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})–1-1-onto→((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))):({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))–1-1-onto→({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
3530, 31, 34sylancl 589 . . . . . . 7 (𝜑 → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))):({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))–1-1-onto→({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
36 poimir.0 . . . . . . . . . . . . . . 15 (𝜑𝑁 ∈ ℕ)
3736nncnd 11846 . . . . . . . . . . . . . 14 (𝜑𝑁 ∈ ℂ)
38 npcan1 11257 . . . . . . . . . . . . . 14 (𝑁 ∈ ℂ → ((𝑁 − 1) + 1) = 𝑁)
3937, 38syl 17 . . . . . . . . . . . . 13 (𝜑 → ((𝑁 − 1) + 1) = 𝑁)
4036nnzd 12281 . . . . . . . . . . . . . . 15 (𝜑𝑁 ∈ ℤ)
41 peano2zm 12220 . . . . . . . . . . . . . . 15 (𝑁 ∈ ℤ → (𝑁 − 1) ∈ ℤ)
4240, 41syl 17 . . . . . . . . . . . . . 14 (𝜑 → (𝑁 − 1) ∈ ℤ)
43 uzid 12453 . . . . . . . . . . . . . 14 ((𝑁 − 1) ∈ ℤ → (𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)))
44 peano2uz 12497 . . . . . . . . . . . . . 14 ((𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)) → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
4542, 43, 443syl 18 . . . . . . . . . . . . 13 (𝜑 → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
4639, 45eqeltrrd 2839 . . . . . . . . . . . 12 (𝜑𝑁 ∈ (ℤ‘(𝑁 − 1)))
47 fzss2 13152 . . . . . . . . . . . 12 (𝑁 ∈ (ℤ‘(𝑁 − 1)) → (1...(𝑁 − 1)) ⊆ (1...𝑁))
4846, 47syl 17 . . . . . . . . . . 11 (𝜑 → (1...(𝑁 − 1)) ⊆ (1...𝑁))
4948, 15sseldd 3902 . . . . . . . . . 10 (𝜑 → (2nd𝑇) ∈ (1...𝑁))
5017peano2nnd 11847 . . . . . . . . . . 11 (𝜑 → ((2nd𝑇) + 1) ∈ ℕ)
5142zred 12282 . . . . . . . . . . . . 13 (𝜑 → (𝑁 − 1) ∈ ℝ)
5236nnred 11845 . . . . . . . . . . . . 13 (𝜑𝑁 ∈ ℝ)
53 elfzle2 13116 . . . . . . . . . . . . . 14 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ≤ (𝑁 − 1))
5415, 53syl 17 . . . . . . . . . . . . 13 (𝜑 → (2nd𝑇) ≤ (𝑁 − 1))
5552ltm1d 11764 . . . . . . . . . . . . 13 (𝜑 → (𝑁 − 1) < 𝑁)
5618, 51, 52, 54, 55lelttrd 10990 . . . . . . . . . . . 12 (𝜑 → (2nd𝑇) < 𝑁)
5717nnzd 12281 . . . . . . . . . . . . 13 (𝜑 → (2nd𝑇) ∈ ℤ)
58 zltp1le 12227 . . . . . . . . . . . . 13 (((2nd𝑇) ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((2nd𝑇) < 𝑁 ↔ ((2nd𝑇) + 1) ≤ 𝑁))
5957, 40, 58syl2anc 587 . . . . . . . . . . . 12 (𝜑 → ((2nd𝑇) < 𝑁 ↔ ((2nd𝑇) + 1) ≤ 𝑁))
6056, 59mpbid 235 . . . . . . . . . . 11 (𝜑 → ((2nd𝑇) + 1) ≤ 𝑁)
61 fznn 13180 . . . . . . . . . . . 12 (𝑁 ∈ ℤ → (((2nd𝑇) + 1) ∈ (1...𝑁) ↔ (((2nd𝑇) + 1) ∈ ℕ ∧ ((2nd𝑇) + 1) ≤ 𝑁)))
6240, 61syl 17 . . . . . . . . . . 11 (𝜑 → (((2nd𝑇) + 1) ∈ (1...𝑁) ↔ (((2nd𝑇) + 1) ∈ ℕ ∧ ((2nd𝑇) + 1) ≤ 𝑁)))
6350, 60, 62mpbir2and 713 . . . . . . . . . 10 (𝜑 → ((2nd𝑇) + 1) ∈ (1...𝑁))
64 prssi 4734 . . . . . . . . . 10 (((2nd𝑇) ∈ (1...𝑁) ∧ ((2nd𝑇) + 1) ∈ (1...𝑁)) → {(2nd𝑇), ((2nd𝑇) + 1)} ⊆ (1...𝑁))
6549, 63, 64syl2anc 587 . . . . . . . . 9 (𝜑 → {(2nd𝑇), ((2nd𝑇) + 1)} ⊆ (1...𝑁))
66 undif 4396 . . . . . . . . 9 ({(2nd𝑇), ((2nd𝑇) + 1)} ⊆ (1...𝑁) ↔ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (1...𝑁))
6765, 66sylib 221 . . . . . . . 8 (𝜑 → ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (1...𝑁))
68 f1oeq23 6652 . . . . . . . 8 ((({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (1...𝑁) ∧ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (1...𝑁)) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))):({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))–1-1-onto→({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) ↔ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))):(1...𝑁)–1-1-onto→(1...𝑁)))
6967, 67, 68syl2anc 587 . . . . . . 7 (𝜑 → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))):({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))–1-1-onto→({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) ↔ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))):(1...𝑁)–1-1-onto→(1...𝑁)))
7035, 69mpbid 235 . . . . . 6 (𝜑 → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))):(1...𝑁)–1-1-onto→(1...𝑁))
71 f1oco 6683 . . . . . 6 (((2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁) ∧ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))):(1...𝑁)–1-1-onto→(1...𝑁)) → ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))):(1...𝑁)–1-1-onto→(1...𝑁))
7214, 70, 71syl2anc 587 . . . . 5 (𝜑 → ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))):(1...𝑁)–1-1-onto→(1...𝑁))
73 prex 5325 . . . . . . . 8 {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∈ V
74 ovex 7246 . . . . . . . . 9 (1...𝑁) ∈ V
75 difexg 5220 . . . . . . . . 9 ((1...𝑁) ∈ V → ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∈ V)
76 resiexg 7692 . . . . . . . . 9 (((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∈ V → ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) ∈ V)
7774, 75, 76mp2b 10 . . . . . . . 8 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) ∈ V
7873, 77unex 7531 . . . . . . 7 ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) ∈ V
7911, 78coex 7708 . . . . . 6 ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) ∈ V
80 f1oeq1 6649 . . . . . 6 (𝑓 = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) → (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) ↔ ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))):(1...𝑁)–1-1-onto→(1...𝑁)))
8179, 80elab 3587 . . . . 5 (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ↔ ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))):(1...𝑁)–1-1-onto→(1...𝑁))
8272, 81sylibr 237 . . . 4 (𝜑 → ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
83 opelxpi 5588 . . . 4 (((1st ‘(1st𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)) ∧ ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
848, 82, 83syl2anc 587 . . 3 (𝜑 → ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
85 fz1ssfz0 13208 . . . . 5 (1...𝑁) ⊆ (0...𝑁)
8648, 85sstrdi 3913 . . . 4 (𝜑 → (1...(𝑁 − 1)) ⊆ (0...𝑁))
8786, 15sseldd 3902 . . 3 (𝜑 → (2nd𝑇) ∈ (0...𝑁))
88 opelxpi 5588 . . 3 ((⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (2nd𝑇) ∈ (0...𝑁)) → ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
8984, 87, 88syl2anc 587 . 2 (𝜑 → ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
90 fveq2 6717 . . . . . . . . . . . 12 (𝑡 = 𝑇 → (2nd𝑡) = (2nd𝑇))
9190breq2d 5065 . . . . . . . . . . 11 (𝑡 = 𝑇 → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑇)))
9291ifbid 4462 . . . . . . . . . 10 (𝑡 = 𝑇 → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)))
9392csbeq1d 3815 . . . . . . . . 9 (𝑡 = 𝑇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}))))
94 2fveq3 6722 . . . . . . . . . . 11 (𝑡 = 𝑇 → (1st ‘(1st𝑡)) = (1st ‘(1st𝑇)))
95 2fveq3 6722 . . . . . . . . . . . . . 14 (𝑡 = 𝑇 → (2nd ‘(1st𝑡)) = (2nd ‘(1st𝑇)))
9695imaeq1d 5928 . . . . . . . . . . . . 13 (𝑡 = 𝑇 → ((2nd ‘(1st𝑡)) “ (1...𝑗)) = ((2nd ‘(1st𝑇)) “ (1...𝑗)))
9796xpeq1d 5580 . . . . . . . . . . . 12 (𝑡 = 𝑇 → (((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}))
9895imaeq1d 5928 . . . . . . . . . . . . 13 (𝑡 = 𝑇 → ((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)))
9998xpeq1d 5580 . . . . . . . . . . . 12 (𝑡 = 𝑇 → (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))
10097, 99uneq12d 4078 . . . . . . . . . . 11 (𝑡 = 𝑇 → ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))
10194, 100oveq12d 7231 . . . . . . . . . 10 (𝑡 = 𝑇 → ((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
102101csbeq2dv 3818 . . . . . . . . 9 (𝑡 = 𝑇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}))))
10393, 102eqtrd 2777 . . . . . . . 8 (𝑡 = 𝑇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}))))
104103mpteq2dv 5151 . . . . . . 7 (𝑡 = 𝑇 → (𝑦 ∈ (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})))))
105104eqeq2d 2748 . . . . . 6 (𝑡 = 𝑇 → (𝐹 = (𝑦 ∈ (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}))))))
106105, 3elrab2 3605 . . . . 5 (𝑇𝑆 ↔ (𝑇 ∈ ((((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}))))))
107106simprbi 500 . . . 4 (𝑇𝑆𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
1081, 107syl 17 . . 3 (𝜑𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
109 imaco 6115 . . . . . . . . . 10 (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑦)) = ((2nd ‘(1st𝑇)) “ (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (1...𝑦)))
110 f1ofn 6662 . . . . . . . . . . . . . . . 16 ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{((2nd𝑇) + 1), (2nd𝑇)} → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)})
11126, 110syl 17 . . . . . . . . . . . . . . 15 (𝜑 → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)})
112111ad2antrr 726 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)})
113 incom 4115 . . . . . . . . . . . . . . 15 ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ (1...𝑦)) = ((1...𝑦) ∩ {(2nd𝑇), ((2nd𝑇) + 1)})
114 elfznn0 13205 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 ∈ (0...(𝑁 − 1)) → 𝑦 ∈ ℕ0)
115114nn0red 12151 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 ∈ (0...(𝑁 − 1)) → 𝑦 ∈ ℝ)
116 ltnle 10912 . . . . . . . . . . . . . . . . . . . . 21 ((𝑦 ∈ ℝ ∧ (2nd𝑇) ∈ ℝ) → (𝑦 < (2nd𝑇) ↔ ¬ (2nd𝑇) ≤ 𝑦))
117115, 18, 116syl2anr 600 . . . . . . . . . . . . . . . . . . . 20 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (𝑦 < (2nd𝑇) ↔ ¬ (2nd𝑇) ≤ 𝑦))
118117biimpa 480 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ¬ (2nd𝑇) ≤ 𝑦)
119 elfzle2 13116 . . . . . . . . . . . . . . . . . . 19 ((2nd𝑇) ∈ (1...𝑦) → (2nd𝑇) ≤ 𝑦)
120118, 119nsyl 142 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ¬ (2nd𝑇) ∈ (1...𝑦))
121 disjsn 4627 . . . . . . . . . . . . . . . . . 18 (((1...𝑦) ∩ {(2nd𝑇)}) = ∅ ↔ ¬ (2nd𝑇) ∈ (1...𝑦))
122120, 121sylibr 237 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((1...𝑦) ∩ {(2nd𝑇)}) = ∅)
123115ad2antlr 727 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → 𝑦 ∈ ℝ)
12418ad2antrr 726 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (2nd𝑇) ∈ ℝ)
12550nnred 11845 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → ((2nd𝑇) + 1) ∈ ℝ)
126125ad2antrr 726 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((2nd𝑇) + 1) ∈ ℝ)
127 simpr 488 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → 𝑦 < (2nd𝑇))
12819ad2antrr 726 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (2nd𝑇) < ((2nd𝑇) + 1))
129123, 124, 126, 127, 128lttrd 10993 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → 𝑦 < ((2nd𝑇) + 1))
130 ltnle 10912 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑦 ∈ ℝ ∧ ((2nd𝑇) + 1) ∈ ℝ) → (𝑦 < ((2nd𝑇) + 1) ↔ ¬ ((2nd𝑇) + 1) ≤ 𝑦))
131115, 125, 130syl2anr 600 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (𝑦 < ((2nd𝑇) + 1) ↔ ¬ ((2nd𝑇) + 1) ≤ 𝑦))
132131adantr 484 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (𝑦 < ((2nd𝑇) + 1) ↔ ¬ ((2nd𝑇) + 1) ≤ 𝑦))
133129, 132mpbid 235 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ¬ ((2nd𝑇) + 1) ≤ 𝑦)
134 elfzle2 13116 . . . . . . . . . . . . . . . . . . 19 (((2nd𝑇) + 1) ∈ (1...𝑦) → ((2nd𝑇) + 1) ≤ 𝑦)
135133, 134nsyl 142 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ¬ ((2nd𝑇) + 1) ∈ (1...𝑦))
136 disjsn 4627 . . . . . . . . . . . . . . . . . 18 (((1...𝑦) ∩ {((2nd𝑇) + 1)}) = ∅ ↔ ¬ ((2nd𝑇) + 1) ∈ (1...𝑦))
137135, 136sylibr 237 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((1...𝑦) ∩ {((2nd𝑇) + 1)}) = ∅)
138122, 137uneq12d 4078 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (((1...𝑦) ∩ {(2nd𝑇)}) ∪ ((1...𝑦) ∩ {((2nd𝑇) + 1)})) = (∅ ∪ ∅))
139 df-pr 4544 . . . . . . . . . . . . . . . . . 18 {(2nd𝑇), ((2nd𝑇) + 1)} = ({(2nd𝑇)} ∪ {((2nd𝑇) + 1)})
140139ineq2i 4124 . . . . . . . . . . . . . . . . 17 ((1...𝑦) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ((1...𝑦) ∩ ({(2nd𝑇)} ∪ {((2nd𝑇) + 1)}))
141 indi 4188 . . . . . . . . . . . . . . . . 17 ((1...𝑦) ∩ ({(2nd𝑇)} ∪ {((2nd𝑇) + 1)})) = (((1...𝑦) ∩ {(2nd𝑇)}) ∪ ((1...𝑦) ∩ {((2nd𝑇) + 1)}))
142140, 141eqtr2i 2766 . . . . . . . . . . . . . . . 16 (((1...𝑦) ∩ {(2nd𝑇)}) ∪ ((1...𝑦) ∩ {((2nd𝑇) + 1)})) = ((1...𝑦) ∩ {(2nd𝑇), ((2nd𝑇) + 1)})
143 un0 4305 . . . . . . . . . . . . . . . 16 (∅ ∪ ∅) = ∅
144138, 142, 1433eqtr3g 2801 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((1...𝑦) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅)
145113, 144syl5eq 2790 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ (1...𝑦)) = ∅)
146 fnimadisj 6510 . . . . . . . . . . . . . 14 (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)} ∧ ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ (1...𝑦)) = ∅) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...𝑦)) = ∅)
147112, 145, 146syl2anc 587 . . . . . . . . . . . . 13 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...𝑦)) = ∅)
14839adantr 484 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((𝑁 − 1) + 1) = 𝑁)
149 elfzuz3 13109 . . . . . . . . . . . . . . . . . . . 20 (𝑦 ∈ (0...(𝑁 − 1)) → (𝑁 − 1) ∈ (ℤ𝑦))
150 peano2uz 12497 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 − 1) ∈ (ℤ𝑦) → ((𝑁 − 1) + 1) ∈ (ℤ𝑦))
151149, 150syl 17 . . . . . . . . . . . . . . . . . . 19 (𝑦 ∈ (0...(𝑁 − 1)) → ((𝑁 − 1) + 1) ∈ (ℤ𝑦))
152151adantl 485 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((𝑁 − 1) + 1) ∈ (ℤ𝑦))
153148, 152eqeltrrd 2839 . . . . . . . . . . . . . . . . 17 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → 𝑁 ∈ (ℤ𝑦))
154 fzss2 13152 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ (ℤ𝑦) → (1...𝑦) ⊆ (1...𝑁))
155 reldisj 4366 . . . . . . . . . . . . . . . . 17 ((1...𝑦) ⊆ (1...𝑁) → (((1...𝑦) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅ ↔ (1...𝑦) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
156153, 154, 1553syl 18 . . . . . . . . . . . . . . . 16 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (((1...𝑦) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅ ↔ (1...𝑦) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
157156adantr 484 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (((1...𝑦) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅ ↔ (1...𝑦) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
158144, 157mpbid 235 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (1...𝑦) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
159 resiima 5944 . . . . . . . . . . . . . 14 ((1...𝑦) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (1...𝑦)) = (1...𝑦))
160158, 159syl 17 . . . . . . . . . . . . 13 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (1...𝑦)) = (1...𝑦))
161147, 160uneq12d 4078 . . . . . . . . . . . 12 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...𝑦)) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (1...𝑦))) = (∅ ∪ (1...𝑦)))
162 imaundir 6014 . . . . . . . . . . . 12 (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (1...𝑦)) = (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...𝑦)) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (1...𝑦)))
163 uncom 4067 . . . . . . . . . . . . 13 (∅ ∪ (1...𝑦)) = ((1...𝑦) ∪ ∅)
164 un0 4305 . . . . . . . . . . . . 13 ((1...𝑦) ∪ ∅) = (1...𝑦)
165163, 164eqtr2i 2766 . . . . . . . . . . . 12 (1...𝑦) = (∅ ∪ (1...𝑦))
166161, 162, 1653eqtr4g 2803 . . . . . . . . . . 11 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (1...𝑦)) = (1...𝑦))
167166imaeq2d 5929 . . . . . . . . . 10 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((2nd ‘(1st𝑇)) “ (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (1...𝑦))) = ((2nd ‘(1st𝑇)) “ (1...𝑦)))
168109, 167syl5eq 2790 . . . . . . . . 9 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑦)) = ((2nd ‘(1st𝑇)) “ (1...𝑦)))
169168xpeq1d 5580 . . . . . . . 8 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑦)) × {1}) = (((2nd ‘(1st𝑇)) “ (1...𝑦)) × {1}))
170 imaco 6115 . . . . . . . . . 10 (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑦 + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ ((𝑦 + 1)...𝑁)))
171 imaundir 6014 . . . . . . . . . . . . 13 (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ ((𝑦 + 1)...𝑁)) = (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ ((𝑦 + 1)...𝑁)) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ((𝑦 + 1)...𝑁)))
172 imassrn 5940 . . . . . . . . . . . . . . . . 17 ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ ((𝑦 + 1)...𝑁)) ⊆ ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}
173172a1i 11 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ ((𝑦 + 1)...𝑁)) ⊆ ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩})
174 fnima 6508 . . . . . . . . . . . . . . . . . . 19 ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)} → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ {(2nd𝑇), ((2nd𝑇) + 1)}) = ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩})
17526, 110, 1743syl 18 . . . . . . . . . . . . . . . . . 18 (𝜑 → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ {(2nd𝑇), ((2nd𝑇) + 1)}) = ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩})
176175ad2antrr 726 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ {(2nd𝑇), ((2nd𝑇) + 1)}) = ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩})
177 elfzelz 13112 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 ∈ (0...(𝑁 − 1)) → 𝑦 ∈ ℤ)
178 zltp1le 12227 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑦 ∈ ℤ ∧ (2nd𝑇) ∈ ℤ) → (𝑦 < (2nd𝑇) ↔ (𝑦 + 1) ≤ (2nd𝑇)))
179177, 57, 178syl2anr 600 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (𝑦 < (2nd𝑇) ↔ (𝑦 + 1) ≤ (2nd𝑇)))
180179biimpa 480 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (𝑦 + 1) ≤ (2nd𝑇))
18118, 52, 56ltled 10980 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → (2nd𝑇) ≤ 𝑁)
182181ad2antrr 726 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (2nd𝑇) ≤ 𝑁)
18357adantr 484 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (2nd𝑇) ∈ ℤ)
184 nn0p1nn 12129 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑦 ∈ ℕ0 → (𝑦 + 1) ∈ ℕ)
185114, 184syl 17 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 ∈ (0...(𝑁 − 1)) → (𝑦 + 1) ∈ ℕ)
186185nnzd 12281 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 ∈ (0...(𝑁 − 1)) → (𝑦 + 1) ∈ ℤ)
187186adantl 485 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (𝑦 + 1) ∈ ℤ)
18840adantr 484 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → 𝑁 ∈ ℤ)
189 elfz 13101 . . . . . . . . . . . . . . . . . . . . . 22 (((2nd𝑇) ∈ ℤ ∧ (𝑦 + 1) ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((2nd𝑇) ∈ ((𝑦 + 1)...𝑁) ↔ ((𝑦 + 1) ≤ (2nd𝑇) ∧ (2nd𝑇) ≤ 𝑁)))
190183, 187, 188, 189syl3anc 1373 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((2nd𝑇) ∈ ((𝑦 + 1)...𝑁) ↔ ((𝑦 + 1) ≤ (2nd𝑇) ∧ (2nd𝑇) ≤ 𝑁)))
191190adantr 484 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((2nd𝑇) ∈ ((𝑦 + 1)...𝑁) ↔ ((𝑦 + 1) ≤ (2nd𝑇) ∧ (2nd𝑇) ≤ 𝑁)))
192180, 182, 191mpbir2and 713 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (2nd𝑇) ∈ ((𝑦 + 1)...𝑁))
193 1red 10834 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → 1 ∈ ℝ)
194 ltle 10921 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑦 ∈ ℝ ∧ (2nd𝑇) ∈ ℝ) → (𝑦 < (2nd𝑇) → 𝑦 ≤ (2nd𝑇)))
195115, 18, 194syl2anr 600 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (𝑦 < (2nd𝑇) → 𝑦 ≤ (2nd𝑇)))
196195imp 410 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → 𝑦 ≤ (2nd𝑇))
197123, 124, 193, 196leadd1dd 11446 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (𝑦 + 1) ≤ ((2nd𝑇) + 1))
19860ad2antrr 726 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((2nd𝑇) + 1) ≤ 𝑁)
19957peano2zd 12285 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → ((2nd𝑇) + 1) ∈ ℤ)
200199adantr 484 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((2nd𝑇) + 1) ∈ ℤ)
201 elfz 13101 . . . . . . . . . . . . . . . . . . . . . 22 ((((2nd𝑇) + 1) ∈ ℤ ∧ (𝑦 + 1) ∈ ℤ ∧ 𝑁 ∈ ℤ) → (((2nd𝑇) + 1) ∈ ((𝑦 + 1)...𝑁) ↔ ((𝑦 + 1) ≤ ((2nd𝑇) + 1) ∧ ((2nd𝑇) + 1) ≤ 𝑁)))
202200, 187, 188, 201syl3anc 1373 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (((2nd𝑇) + 1) ∈ ((𝑦 + 1)...𝑁) ↔ ((𝑦 + 1) ≤ ((2nd𝑇) + 1) ∧ ((2nd𝑇) + 1) ≤ 𝑁)))
203202adantr 484 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (((2nd𝑇) + 1) ∈ ((𝑦 + 1)...𝑁) ↔ ((𝑦 + 1) ≤ ((2nd𝑇) + 1) ∧ ((2nd𝑇) + 1) ≤ 𝑁)))
204197, 198, 203mpbir2and 713 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((2nd𝑇) + 1) ∈ ((𝑦 + 1)...𝑁))
205 prssi 4734 . . . . . . . . . . . . . . . . . . 19 (((2nd𝑇) ∈ ((𝑦 + 1)...𝑁) ∧ ((2nd𝑇) + 1) ∈ ((𝑦 + 1)...𝑁)) → {(2nd𝑇), ((2nd𝑇) + 1)} ⊆ ((𝑦 + 1)...𝑁))
206192, 204, 205syl2anc 587 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → {(2nd𝑇), ((2nd𝑇) + 1)} ⊆ ((𝑦 + 1)...𝑁))
207 imass2 5970 . . . . . . . . . . . . . . . . . 18 ({(2nd𝑇), ((2nd𝑇) + 1)} ⊆ ((𝑦 + 1)...𝑁) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ {(2nd𝑇), ((2nd𝑇) + 1)}) ⊆ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ ((𝑦 + 1)...𝑁)))
208206, 207syl 17 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ {(2nd𝑇), ((2nd𝑇) + 1)}) ⊆ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ ((𝑦 + 1)...𝑁)))
209176, 208eqsstrrd 3940 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ⊆ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ ((𝑦 + 1)...𝑁)))
210173, 209eqssd 3918 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ ((𝑦 + 1)...𝑁)) = ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩})
211 f1ofo 6668 . . . . . . . . . . . . . . . . . 18 ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{((2nd𝑇) + 1), (2nd𝑇)} → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–onto→{((2nd𝑇) + 1), (2nd𝑇)})
212 forn 6636 . . . . . . . . . . . . . . . . . 18 ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–onto→{((2nd𝑇) + 1), (2nd𝑇)} → ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} = {((2nd𝑇) + 1), (2nd𝑇)})
21326, 211, 2123syl 18 . . . . . . . . . . . . . . . . 17 (𝜑 → ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} = {((2nd𝑇) + 1), (2nd𝑇)})
214213, 27eqtrdi 2794 . . . . . . . . . . . . . . . 16 (𝜑 → ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} = {(2nd𝑇), ((2nd𝑇) + 1)})
215214ad2antrr 726 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} = {(2nd𝑇), ((2nd𝑇) + 1)})
216210, 215eqtrd 2777 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ ((𝑦 + 1)...𝑁)) = {(2nd𝑇), ((2nd𝑇) + 1)})
217 undif 4396 . . . . . . . . . . . . . . . . 17 ({(2nd𝑇), ((2nd𝑇) + 1)} ⊆ ((𝑦 + 1)...𝑁) ↔ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ((𝑦 + 1)...𝑁))
218206, 217sylib 221 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ((𝑦 + 1)...𝑁))
219218imaeq2d 5929 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) = (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ((𝑦 + 1)...𝑁)))
220 fnresi 6506 . . . . . . . . . . . . . . . . . . 19 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) Fn ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
221 disjdifr 4387 . . . . . . . . . . . . . . . . . . 19 (((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅
222 fnimadisj 6510 . . . . . . . . . . . . . . . . . . 19 ((( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) Fn ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∧ (((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅)
223220, 221, 222mp2an 692 . . . . . . . . . . . . . . . . . 18 (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅
224223a1i 11 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅)
225 nnuz 12477 . . . . . . . . . . . . . . . . . . . . . 22 ℕ = (ℤ‘1)
226185, 225eleqtrdi 2848 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 ∈ (0...(𝑁 − 1)) → (𝑦 + 1) ∈ (ℤ‘1))
227 fzss1 13151 . . . . . . . . . . . . . . . . . . . . 21 ((𝑦 + 1) ∈ (ℤ‘1) → ((𝑦 + 1)...𝑁) ⊆ (1...𝑁))
228226, 227syl 17 . . . . . . . . . . . . . . . . . . . 20 (𝑦 ∈ (0...(𝑁 − 1)) → ((𝑦 + 1)...𝑁) ⊆ (1...𝑁))
229228ssdifd 4055 . . . . . . . . . . . . . . . . . . 19 (𝑦 ∈ (0...(𝑁 − 1)) → (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
230 resiima 5944 . . . . . . . . . . . . . . . . . . 19 ((((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
231229, 230syl 17 . . . . . . . . . . . . . . . . . 18 (𝑦 ∈ (0...(𝑁 − 1)) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
232231ad2antlr 727 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
233224, 232uneq12d 4078 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ {(2nd𝑇), ((2nd𝑇) + 1)}) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) = (∅ ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
234 imaundi 6013 . . . . . . . . . . . . . . . 16 (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) = ((( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ {(2nd𝑇), ((2nd𝑇) + 1)}) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
235 uncom 4067 . . . . . . . . . . . . . . . . 17 (∅ ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ((((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∪ ∅)
236 un0 4305 . . . . . . . . . . . . . . . . 17 ((((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∪ ∅) = (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
237235, 236eqtr2i 2766 . . . . . . . . . . . . . . . 16 (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) = (∅ ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
238233, 234, 2373eqtr4g 2803 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) = (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
239219, 238eqtr3d 2779 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ((𝑦 + 1)...𝑁)) = (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
240216, 239uneq12d 4078 . . . . . . . . . . . . 13 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ ((𝑦 + 1)...𝑁)) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ((𝑦 + 1)...𝑁))) = ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
241171, 240syl5eq 2790 . . . . . . . . . . . 12 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ ((𝑦 + 1)...𝑁)) = ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
242241, 218eqtrd 2777 . . . . . . . . . . 11 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ ((𝑦 + 1)...𝑁)) = ((𝑦 + 1)...𝑁))
243242imaeq2d 5929 . . . . . . . . . 10 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((2nd ‘(1st𝑇)) “ (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ ((𝑦 + 1)...𝑁))) = ((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)))
244170, 243syl5eq 2790 . . . . . . . . 9 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑦 + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)))
245244xpeq1d 5580 . . . . . . . 8 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑦 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)) × {0}))
246169, 245uneq12d 4078 . . . . . . 7 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑦)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑦 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑇)) “ (1...𝑦)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)) × {0})))
247246oveq2d 7229 . . . . . 6 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑦)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑦 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑦)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)) × {0}))))
248 iftrue 4445 . . . . . . . . 9 (𝑦 < (2nd𝑇) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) = 𝑦)
249248csbeq1d 3815 . . . . . . . 8 (𝑦 < (2nd𝑇) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))) = 𝑦 / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))))
250 vex 3412 . . . . . . . . 9 𝑦 ∈ V
251 oveq2 7221 . . . . . . . . . . . . 13 (𝑗 = 𝑦 → (1...𝑗) = (1...𝑦))
252251imaeq2d 5929 . . . . . . . . . . . 12 (𝑗 = 𝑦 → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) = (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑦)))
253252xpeq1d 5580 . . . . . . . . . . 11 (𝑗 = 𝑦 → ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) = ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑦)) × {1}))
254 oveq1 7220 . . . . . . . . . . . . . 14 (𝑗 = 𝑦 → (𝑗 + 1) = (𝑦 + 1))
255254oveq1d 7228 . . . . . . . . . . . . 13 (𝑗 = 𝑦 → ((𝑗 + 1)...𝑁) = ((𝑦 + 1)...𝑁))
256255imaeq2d 5929 . . . . . . . . . . . 12 (𝑗 = 𝑦 → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) = (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑦 + 1)...𝑁)))
257256xpeq1d 5580 . . . . . . . . . . 11 (𝑗 = 𝑦 → ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}) = ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑦 + 1)...𝑁)) × {0}))
258253, 257uneq12d 4078 . . . . . . . . . 10 (𝑗 = 𝑦 → (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0})) = (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑦)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑦 + 1)...𝑁)) × {0})))
259258oveq2d 7229 . . . . . . . . 9 (𝑗 = 𝑦 → ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑦)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑦 + 1)...𝑁)) × {0}))))
260250, 259csbie 3847 . . . . . . . 8 𝑦 / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑦)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑦 + 1)...𝑁)) × {0})))
261249, 260eqtrdi 2794 . . . . . . 7 (𝑦 < (2nd𝑇) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑦)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑦 + 1)...𝑁)) × {0}))))
262261adantl 485 . . . . . 6 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑦)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑦 + 1)...𝑁)) × {0}))))
263248csbeq1d 3815 . . . . . . . 8 (𝑦 < (2nd𝑇) → 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}))))
264251imaeq2d 5929 . . . . . . . . . . . 12 (𝑗 = 𝑦 → ((2nd ‘(1st𝑇)) “ (1...𝑗)) = ((2nd ‘(1st𝑇)) “ (1...𝑦)))
265264xpeq1d 5580 . . . . . . . . . . 11 (𝑗 = 𝑦 → (((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑇)) “ (1...𝑦)) × {1}))
266255imaeq2d 5929 . . . . . . . . . . . 12 (𝑗 = 𝑦 → ((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)))
267266xpeq1d 5580 . . . . . . . . . . 11 (𝑗 = 𝑦 → (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)) × {0}))
268265, 267uneq12d 4078 . . . . . . . . . 10 (𝑗 = 𝑦 → ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑇)) “ (1...𝑦)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)) × {0})))
269268oveq2d 7229 . . . . . . . . 9 (𝑗 = 𝑦 → ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑦)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)) × {0}))))
270250, 269csbie 3847 . . . . . . . 8 𝑦 / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑦)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)) × {0})))
271263, 270eqtrdi 2794 . . . . . . 7 (𝑦 < (2nd𝑇) → 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}))))
272271adantl 485 . . . . . 6 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → 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}))))
273247, 262, 2723eqtr4d 2787 . . . . 5 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
274 lenlt 10911 . . . . . . . . . 10 (((2nd𝑇) ∈ ℝ ∧ 𝑦 ∈ ℝ) → ((2nd𝑇) ≤ 𝑦 ↔ ¬ 𝑦 < (2nd𝑇)))
27518, 115, 274syl2an 599 . . . . . . . . 9 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((2nd𝑇) ≤ 𝑦 ↔ ¬ 𝑦 < (2nd𝑇)))
276275biimpar 481 . . . . . . . 8 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ ¬ 𝑦 < (2nd𝑇)) → (2nd𝑇) ≤ 𝑦)
277 imaco 6115 . . . . . . . . . . 11 (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...(𝑦 + 1))) = ((2nd ‘(1st𝑇)) “ (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (1...(𝑦 + 1))))
278 imaundir 6014 . . . . . . . . . . . . . 14 (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (1...(𝑦 + 1))) = (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...(𝑦 + 1))) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (1...(𝑦 + 1))))
279 imassrn 5940 . . . . . . . . . . . . . . . . . 18 ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...(𝑦 + 1))) ⊆ ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}
280279a1i 11 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...(𝑦 + 1))) ⊆ ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩})
281175ad2antrr 726 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ {(2nd𝑇), ((2nd𝑇) + 1)}) = ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩})
28217ad2antrr 726 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) ∈ ℕ)
28318ad2antrr 726 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) ∈ ℝ)
284115ad2antlr 727 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → 𝑦 ∈ ℝ)
285185nnred 11845 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 ∈ (0...(𝑁 − 1)) → (𝑦 + 1) ∈ ℝ)
286285ad2antlr 727 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (𝑦 + 1) ∈ ℝ)
287 simpr 488 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) ≤ 𝑦)
288115lep1d 11763 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 ∈ (0...(𝑁 − 1)) → 𝑦 ≤ (𝑦 + 1))
289288ad2antlr 727 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → 𝑦 ≤ (𝑦 + 1))
290283, 284, 286, 287, 289letrd 10989 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) ≤ (𝑦 + 1))
291 fznn 13180 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑦 + 1) ∈ ℤ → ((2nd𝑇) ∈ (1...(𝑦 + 1)) ↔ ((2nd𝑇) ∈ ℕ ∧ (2nd𝑇) ≤ (𝑦 + 1))))
292186, 291syl 17 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 ∈ (0...(𝑁 − 1)) → ((2nd𝑇) ∈ (1...(𝑦 + 1)) ↔ ((2nd𝑇) ∈ ℕ ∧ (2nd𝑇) ≤ (𝑦 + 1))))
293292ad2antlr 727 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) ∈ (1...(𝑦 + 1)) ↔ ((2nd𝑇) ∈ ℕ ∧ (2nd𝑇) ≤ (𝑦 + 1))))
294282, 290, 293mpbir2and 713 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) ∈ (1...(𝑦 + 1)))
29550ad2antrr 726 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) + 1) ∈ ℕ)
296 1red 10834 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → 1 ∈ ℝ)
297283, 284, 296, 287leadd1dd 11446 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) + 1) ≤ (𝑦 + 1))
298 fznn 13180 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑦 + 1) ∈ ℤ → (((2nd𝑇) + 1) ∈ (1...(𝑦 + 1)) ↔ (((2nd𝑇) + 1) ∈ ℕ ∧ ((2nd𝑇) + 1) ≤ (𝑦 + 1))))
299186, 298syl 17 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 ∈ (0...(𝑁 − 1)) → (((2nd𝑇) + 1) ∈ (1...(𝑦 + 1)) ↔ (((2nd𝑇) + 1) ∈ ℕ ∧ ((2nd𝑇) + 1) ≤ (𝑦 + 1))))
300299ad2antlr 727 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (((2nd𝑇) + 1) ∈ (1...(𝑦 + 1)) ↔ (((2nd𝑇) + 1) ∈ ℕ ∧ ((2nd𝑇) + 1) ≤ (𝑦 + 1))))
301295, 297, 300mpbir2and 713 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) + 1) ∈ (1...(𝑦 + 1)))
302 prssi 4734 . . . . . . . . . . . . . . . . . . . 20 (((2nd𝑇) ∈ (1...(𝑦 + 1)) ∧ ((2nd𝑇) + 1) ∈ (1...(𝑦 + 1))) → {(2nd𝑇), ((2nd𝑇) + 1)} ⊆ (1...(𝑦 + 1)))
303294, 301, 302syl2anc 587 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → {(2nd𝑇), ((2nd𝑇) + 1)} ⊆ (1...(𝑦 + 1)))
304 imass2 5970 . . . . . . . . . . . . . . . . . . 19 ({(2nd𝑇), ((2nd𝑇) + 1)} ⊆ (1...(𝑦 + 1)) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ {(2nd𝑇), ((2nd𝑇) + 1)}) ⊆ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...(𝑦 + 1))))
305303, 304syl 17 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ {(2nd𝑇), ((2nd𝑇) + 1)}) ⊆ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...(𝑦 + 1))))
306281, 305eqsstrrd 3940 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ⊆ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...(𝑦 + 1))))
307280, 306eqssd 3918 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...(𝑦 + 1))) = ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩})
308214ad2antrr 726 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} = {(2nd𝑇), ((2nd𝑇) + 1)})
309307, 308eqtrd 2777 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...(𝑦 + 1))) = {(2nd𝑇), ((2nd𝑇) + 1)})
310 undif 4396 . . . . . . . . . . . . . . . . . 18 ({(2nd𝑇), ((2nd𝑇) + 1)} ⊆ (1...(𝑦 + 1)) ↔ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (1...(𝑦 + 1)))
311303, 310sylib 221 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (1...(𝑦 + 1)))
312311imaeq2d 5929 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) = (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (1...(𝑦 + 1))))
313223a1i 11 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅)
314 eluzp1p1 12466 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑁 − 1) ∈ (ℤ𝑦) → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑦 + 1)))
315149, 314syl 17 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 ∈ (0...(𝑁 − 1)) → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑦 + 1)))
316315adantl 485 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑦 + 1)))
317148, 316eqeltrrd 2839 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → 𝑁 ∈ (ℤ‘(𝑦 + 1)))
318 fzss2 13152 . . . . . . . . . . . . . . . . . . . . . 22 (𝑁 ∈ (ℤ‘(𝑦 + 1)) → (1...(𝑦 + 1)) ⊆ (1...𝑁))
319317, 318syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (1...(𝑦 + 1)) ⊆ (1...𝑁))
320319ssdifd 4055 . . . . . . . . . . . . . . . . . . . 20 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
321320adantr 484 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
322 resiima 5944 . . . . . . . . . . . . . . . . . . 19 (((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
323321, 322syl 17 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
324313, 323uneq12d 4078 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ {(2nd𝑇), ((2nd𝑇) + 1)}) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) = (∅ ∪ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
325 imaundi 6013 . . . . . . . . . . . . . . . . 17 (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) = ((( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ {(2nd𝑇), ((2nd𝑇) + 1)}) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
326 uncom 4067 . . . . . . . . . . . . . . . . . 18 (∅ ∪ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∪ ∅)
327 un0 4305 . . . . . . . . . . . . . . . . . 18 (((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∪ ∅) = ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
328326, 327eqtr2i 2766 . . . . . . . . . . . . . . . . 17 ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) = (∅ ∪ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
329324, 325, 3283eqtr4g 2803 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) = ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
330312, 329eqtr3d 2779 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (1...(𝑦 + 1))) = ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
331309, 330uneq12d 4078 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...(𝑦 + 1))) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (1...(𝑦 + 1)))) = ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
332278, 331syl5eq 2790 . . . . . . . . . . . . 13 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (1...(𝑦 + 1))) = ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
333332, 311eqtrd 2777 . . . . . . . . . . . 12 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (1...(𝑦 + 1))) = (1...(𝑦 + 1)))
334333imaeq2d 5929 . . . . . . . . . . 11 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd ‘(1st𝑇)) “ (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (1...(𝑦 + 1)))) = ((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))))
335277, 334syl5eq 2790 . . . . . . . . . 10 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...(𝑦 + 1))) = ((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))))
336335xpeq1d 5580 . . . . . . . . 9 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...(𝑦 + 1))) × {1}) = (((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))) × {1}))
337 imaco 6115 . . . . . . . . . . 11 (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (((𝑦 + 1) + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (((𝑦 + 1) + 1)...𝑁)))
338111ad2antrr 726 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)})
339 incom 4115 . . . . . . . . . . . . . . . 16 ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ (((𝑦 + 1) + 1)...𝑁)) = ((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇), ((2nd𝑇) + 1)})
340125ad2antrr 726 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) + 1) ∈ ℝ)
341185peano2nnd 11847 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 ∈ (0...(𝑁 − 1)) → ((𝑦 + 1) + 1) ∈ ℕ)
342341nnred 11845 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 ∈ (0...(𝑁 − 1)) → ((𝑦 + 1) + 1) ∈ ℝ)
343342ad2antlr 727 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((𝑦 + 1) + 1) ∈ ℝ)
34419ad2antrr 726 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) < ((2nd𝑇) + 1))
345115ltp1d 11762 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑦 ∈ (0...(𝑁 − 1)) → 𝑦 < (𝑦 + 1))
346345ad2antlr 727 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → 𝑦 < (𝑦 + 1))
347283, 284, 286, 287, 346lelttrd 10990 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) < (𝑦 + 1))
348283, 286, 296, 347ltadd1dd 11443 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) + 1) < ((𝑦 + 1) + 1))
349283, 340, 343, 344, 348lttrd 10993 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) < ((𝑦 + 1) + 1))
350 ltnle 10912 . . . . . . . . . . . . . . . . . . . . . . 23 (((2nd𝑇) ∈ ℝ ∧ ((𝑦 + 1) + 1) ∈ ℝ) → ((2nd𝑇) < ((𝑦 + 1) + 1) ↔ ¬ ((𝑦 + 1) + 1) ≤ (2nd𝑇)))
35118, 342, 350syl2an 599 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((2nd𝑇) < ((𝑦 + 1) + 1) ↔ ¬ ((𝑦 + 1) + 1) ≤ (2nd𝑇)))
352351adantr 484 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) < ((𝑦 + 1) + 1) ↔ ¬ ((𝑦 + 1) + 1) ≤ (2nd𝑇)))
353349, 352mpbid 235 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ¬ ((𝑦 + 1) + 1) ≤ (2nd𝑇))
354 elfzle1 13115 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ (((𝑦 + 1) + 1)...𝑁) → ((𝑦 + 1) + 1) ≤ (2nd𝑇))
355353, 354nsyl 142 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ¬ (2nd𝑇) ∈ (((𝑦 + 1) + 1)...𝑁))
356 disjsn 4627 . . . . . . . . . . . . . . . . . . 19 (((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇)}) = ∅ ↔ ¬ (2nd𝑇) ∈ (((𝑦 + 1) + 1)...𝑁))
357355, 356sylibr 237 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇)}) = ∅)
358 ltnle 10912 . . . . . . . . . . . . . . . . . . . . . . 23 ((((2nd𝑇) + 1) ∈ ℝ ∧ ((𝑦 + 1) + 1) ∈ ℝ) → (((2nd𝑇) + 1) < ((𝑦 + 1) + 1) ↔ ¬ ((𝑦 + 1) + 1) ≤ ((2nd𝑇) + 1)))
359125, 342, 358syl2an 599 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (((2nd𝑇) + 1) < ((𝑦 + 1) + 1) ↔ ¬ ((𝑦 + 1) + 1) ≤ ((2nd𝑇) + 1)))
360359adantr 484 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (((2nd𝑇) + 1) < ((𝑦 + 1) + 1) ↔ ¬ ((𝑦 + 1) + 1) ≤ ((2nd𝑇) + 1)))
361348, 360mpbid 235 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ¬ ((𝑦 + 1) + 1) ≤ ((2nd𝑇) + 1))
362 elfzle1 13115 . . . . . . . . . . . . . . . . . . . 20 (((2nd𝑇) + 1) ∈ (((𝑦 + 1) + 1)...𝑁) → ((𝑦 + 1) + 1) ≤ ((2nd𝑇) + 1))
363361, 362nsyl 142 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ¬ ((2nd𝑇) + 1) ∈ (((𝑦 + 1) + 1)...𝑁))
364 disjsn 4627 . . . . . . . . . . . . . . . . . . 19 (((((𝑦 + 1) + 1)...𝑁) ∩ {((2nd𝑇) + 1)}) = ∅ ↔ ¬ ((2nd𝑇) + 1) ∈ (((𝑦 + 1) + 1)...𝑁))
365363, 364sylibr 237 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((((𝑦 + 1) + 1)...𝑁) ∩ {((2nd𝑇) + 1)}) = ∅)
366357, 365uneq12d 4078 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇)}) ∪ ((((𝑦 + 1) + 1)...𝑁) ∩ {((2nd𝑇) + 1)})) = (∅ ∪ ∅))
367139ineq2i 4124 . . . . . . . . . . . . . . . . . 18 ((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ((((𝑦 + 1) + 1)...𝑁) ∩ ({(2nd𝑇)} ∪ {((2nd𝑇) + 1)}))
368 indi 4188 . . . . . . . . . . . . . . . . . 18 ((((𝑦 + 1) + 1)...𝑁) ∩ ({(2nd𝑇)} ∪ {((2nd𝑇) + 1)})) = (((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇)}) ∪ ((((𝑦 + 1) + 1)...𝑁) ∩ {((2nd𝑇) + 1)}))
369367, 368eqtr2i 2766 . . . . . . . . . . . . . . . . 17 (((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇)}) ∪ ((((𝑦 + 1) + 1)...𝑁) ∩ {((2nd𝑇) + 1)})) = ((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇), ((2nd𝑇) + 1)})
370366, 369, 1433eqtr3g 2801 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅)
371339, 370syl5eq 2790 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ (((𝑦 + 1) + 1)...𝑁)) = ∅)
372 fnimadisj 6510 . . . . . . . . . . . . . . 15 (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)} ∧ ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ (((𝑦 + 1) + 1)...𝑁)) = ∅) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (((𝑦 + 1) + 1)...𝑁)) = ∅)
373338, 371, 372syl2anc 587 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (((𝑦 + 1) + 1)...𝑁)) = ∅)
374341, 225eleqtrdi 2848 . . . . . . . . . . . . . . . . . 18 (𝑦 ∈ (0...(𝑁 − 1)) → ((𝑦 + 1) + 1) ∈ (ℤ‘1))
375 fzss1 13151 . . . . . . . . . . . . . . . . . 18 (((𝑦 + 1) + 1) ∈ (ℤ‘1) → (((𝑦 + 1) + 1)...𝑁) ⊆ (1...𝑁))
376 reldisj 4366 . . . . . . . . . . . . . . . . . 18 ((((𝑦 + 1) + 1)...𝑁) ⊆ (1...𝑁) → (((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅ ↔ (((𝑦 + 1) + 1)...𝑁) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
377374, 375, 3763syl 18 . . . . . . . . . . . . . . . . 17 (𝑦 ∈ (0...(𝑁 − 1)) → (((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅ ↔ (((𝑦 + 1) + 1)...𝑁) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
378377ad2antlr 727 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅ ↔ (((𝑦 + 1) + 1)...𝑁) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
379370, 378mpbid 235 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (((𝑦 + 1) + 1)...𝑁) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
380 resiima 5944 . . . . . . . . . . . . . . 15 ((((𝑦 + 1) + 1)...𝑁) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (((𝑦 + 1) + 1)...𝑁)) = (((𝑦 + 1) + 1)...𝑁))
381379, 380syl 17 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (((𝑦 + 1) + 1)...𝑁)) = (((𝑦 + 1) + 1)...𝑁))
382373, 381uneq12d 4078 . . . . . . . . . . . . 13 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (((𝑦 + 1) + 1)...𝑁)) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (((𝑦 + 1) + 1)...𝑁))) = (∅ ∪ (((𝑦 + 1) + 1)...𝑁)))
383 imaundir 6014 . . . . . . . . . . . . 13 (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (((𝑦 + 1) + 1)...𝑁)) = (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (((𝑦 + 1) + 1)...𝑁)) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (((𝑦 + 1) + 1)...𝑁)))
384 uncom 4067 . . . . . . . . . . . . . 14 (∅ ∪ (((𝑦 + 1) + 1)...𝑁)) = ((((𝑦 + 1) + 1)...𝑁) ∪ ∅)
385 un0 4305 . . . . . . . . . . . . . 14 ((((𝑦 + 1) + 1)...𝑁) ∪ ∅) = (((𝑦 + 1) + 1)...𝑁)
386384, 385eqtr2i 2766 . . . . . . . . . . . . 13 (((𝑦 + 1) + 1)...𝑁) = (∅ ∪ (((𝑦 + 1) + 1)...𝑁))
387382, 383, 3863eqtr4g 2803 . . . . . . . . . . . 12 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (((𝑦 + 1) + 1)...𝑁)) = (((𝑦 + 1) + 1)...𝑁))
388387imaeq2d 5929 . . . . . . . . . . 11 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd ‘(1st𝑇)) “ (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (((𝑦 + 1) + 1)...𝑁))) = ((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)))
389337, 388syl5eq 2790 . . . . . . . . . 10 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (((𝑦 + 1) + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)))
390389xpeq1d 5580 . . . . . . . . 9 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (((𝑦 + 1) + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)) × {0}))
391336, 390uneq12d 4078 . . . . . . . 8 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...(𝑦 + 1))) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (((𝑦 + 1) + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))) × {1}) ∪ (((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)) × {0})))
392276, 391syldan 594 . . . . . . 7 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ ¬ 𝑦 < (2nd𝑇)) → (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...(𝑦 + 1))) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (((𝑦 + 1) + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))) × {1}) ∪ (((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)) × {0})))
393392oveq2d 7229 . . . . . 6 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ ¬ 𝑦 < (2nd𝑇)) → ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...(𝑦 + 1))) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (((𝑦 + 1) + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))) × {1}) ∪ (((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)) × {0}))))
394 iffalse 4448 . . . . . . . . 9 𝑦 < (2nd𝑇) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) = (𝑦 + 1))
395394csbeq1d 3815 . . . . . . . 8 𝑦 < (2nd𝑇) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))) = (𝑦 + 1) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))))
396 ovex 7246 . . . . . . . . 9 (𝑦 + 1) ∈ V
397 oveq2 7221 . . . . . . . . . . . . 13 (𝑗 = (𝑦 + 1) → (1...𝑗) = (1...(𝑦 + 1)))
398397imaeq2d 5929 . . . . . . . . . . . 12 (𝑗 = (𝑦 + 1) → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) = (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...(𝑦 + 1))))
399398xpeq1d 5580 . . . . . . . . . . 11 (𝑗 = (𝑦 + 1) → ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) = ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...(𝑦 + 1))) × {1}))
400 oveq1 7220 . . . . . . . . . . . . . 14 (𝑗 = (𝑦 + 1) → (𝑗 + 1) = ((𝑦 + 1) + 1))
401400oveq1d 7228 . . . . . . . . . . . . 13 (𝑗 = (𝑦 + 1) → ((𝑗 + 1)...𝑁) = (((𝑦 + 1) + 1)...𝑁))
402401imaeq2d 5929 . . . . . . . . . . . 12 (𝑗 = (𝑦 + 1) → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) = (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (((𝑦 + 1) + 1)...𝑁)))
403402xpeq1d 5580 . . . . . . . . . . 11 (𝑗 = (𝑦 + 1) → ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}) = ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (((𝑦 + 1) + 1)...𝑁)) × {0}))
404399, 403uneq12d 4078 . . . . . . . . . 10 (𝑗 = (𝑦 + 1) → (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0})) = (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...(𝑦 + 1))) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (((𝑦 + 1) + 1)...𝑁)) × {0})))
405404oveq2d 7229 . . . . . . . . 9 (𝑗 = (𝑦 + 1) → ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...(𝑦 + 1))) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (((𝑦 + 1) + 1)...𝑁)) × {0}))))
406396, 405csbie 3847 . . . . . . . 8 (𝑦 + 1) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...(𝑦 + 1))) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (((𝑦 + 1) + 1)...𝑁)) × {0})))
407395, 406eqtrdi 2794 . . . . . . 7 𝑦 < (2nd𝑇) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...(𝑦 + 1))) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (((𝑦 + 1) + 1)...𝑁)) × {0}))))
408407adantl 485 . . . . . 6 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ ¬ 𝑦 < (2nd𝑇)) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...(𝑦 + 1))) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (((𝑦 + 1) + 1)...𝑁)) × {0}))))
409394csbeq1d 3815 . . . . . . . 8 𝑦 < (2nd𝑇) → 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}))))
410397imaeq2d 5929 . . . . . . . . . . . 12 (𝑗 = (𝑦 + 1) → ((2nd ‘(1st𝑇)) “ (1...𝑗)) = ((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))))
411410xpeq1d 5580 . . . . . . . . . . 11 (𝑗 = (𝑦 + 1) → (((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))) × {1}))
412401imaeq2d 5929 . . . . . . . . . . . 12 (𝑗 = (𝑦 + 1) → ((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)))
413412xpeq1d 5580 . . . . . . . . . . 11 (𝑗 = (𝑦 + 1) → (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)) × {0}))
414411, 413uneq12d 4078 . . . . . . . . . 10 (𝑗 = (𝑦 + 1) → ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))) × {1}) ∪ (((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)) × {0})))
415414oveq2d 7229 . . . . . . . . 9 (𝑗 = (𝑦 + 1) → ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))) × {1}) ∪ (((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)) × {0}))))
416396, 415csbie 3847 . . . . . . . 8 (𝑦 + 1) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))) × {1}) ∪ (((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)) × {0})))
417409, 416eqtrdi 2794 . . . . . . 7 𝑦 < (2nd𝑇) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))) × {1}) ∪ (((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)) × {0}))))
418417adantl 485 . . . . . 6 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ ¬ 𝑦 < (2nd𝑇)) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))) × {1}) ∪ (((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)) × {0}))))
419393, 408, 4183eqtr4d 2787 . . . . 5 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ ¬ 𝑦 < (2nd𝑇)) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
420273, 419pm2.61dan 813 . . . 4 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
421420mpteq2dva 5150 . . 3 (𝜑 → (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0})))) = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
422108, 421eqtr4d 2780 . 2 (𝜑𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0})))))
423 opex 5348 . . . . . . 7 ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ ∈ V
424423, 22op1std 7771 . . . . . 6 (𝑡 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ → (1st𝑡) = ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩)
425423, 22op2ndd 7772 . . . . . 6 (𝑡 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ → (2nd𝑡) = (2nd𝑇))
426 breq2 5057 . . . . . . . . 9 ((2nd𝑡) = (2nd𝑇) → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑇)))
427426ifbid 4462 . . . . . . . 8 ((2nd𝑡) = (2nd𝑇) → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)))
428427csbeq1d 3815 . . . . . . 7 ((2nd𝑡) = (2nd𝑇) → 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}))))
429 fvex 6730 . . . . . . . . . 10 (1st ‘(1st𝑇)) ∈ V
430429, 79op1std 7771 . . . . . . . . 9 ((1st𝑡) = ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ → (1st ‘(1st𝑡)) = (1st ‘(1st𝑇)))
431429, 79op2ndd 7772 . . . . . . . . 9 ((1st𝑡) = ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ → (2nd ‘(1st𝑡)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))))
432 id 22 . . . . . . . . . 10 ((1st ‘(1st𝑡)) = (1st ‘(1st𝑇)) → (1st ‘(1st𝑡)) = (1st ‘(1st𝑇)))
433 imaeq1 5924 . . . . . . . . . . . 12 ((2nd ‘(1st𝑡)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) → ((2nd ‘(1st𝑡)) “ (1...𝑗)) = (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)))
434433xpeq1d 5580 . . . . . . . . . . 11 ((2nd ‘(1st𝑡)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) → (((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) = ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}))
435 imaeq1 5924 . . . . . . . . . . . 12 ((2nd ‘(1st𝑡)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) → ((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) = (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)))
436435xpeq1d 5580 . . . . . . . . . . 11 ((2nd ‘(1st𝑡)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) → (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))
437434, 436uneq12d 4078 . . . . . . . . . 10 ((2nd ‘(1st𝑡)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) → ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0})))
438432, 437oveqan12d 7232 . . . . . . . . 9 (((1st ‘(1st𝑡)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑡)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))) → ((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))))
439430, 431, 438syl2anc 587 . . . . . . . 8 ((1st𝑡) = ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ → ((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))))
440439csbeq2dv 3818 . . . . . . 7 ((1st𝑡) = ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))))
441428, 440sylan9eqr 2800 . . . . . 6 (((1st𝑡) = ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ ∧ (2nd𝑡) = (2nd𝑇)) → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))))
442424, 425, 441syl2anc 587 . . . . 5 (𝑡 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))))
443442mpteq2dv 5151 . . . 4 (𝑡 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ → (𝑦 ∈ (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𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0})))))
444443eqeq2d 2748 . . 3 (𝑡 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ → (𝐹 = (𝑦 ∈ (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𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))))))
445444, 3elrab2 3605 . 2 (⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ ∈ 𝑆 ↔ (⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + (((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑗)) × {1}) ∪ ((((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑗 + 1)...𝑁)) × {0}))))))
44689, 422, 445sylanbrc 586 1 (𝜑 → ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ ∈ 𝑆)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399   = wceq 1543  wcel 2110  {cab 2714  wne 2940  {crab 3065  Vcvv 3408  csb 3811  cdif 3863  cun 3864  cin 3865  wss 3866  c0 4237  ifcif 4439  {csn 4541  {cpr 4543  cop 4547   class class class wbr 5053  cmpt 5135   I cid 5454   × cxp 5549  ran crn 5552  cres 5553  cima 5554  ccom 5555   Fn wfn 6375  wf 6376  ontowfo 6378  1-1-ontowf1o 6379  cfv 6380  (class class class)co 7213  f cof 7467  1st c1st 7759  2nd c2nd 7760  m cmap 8508  cc 10727  cr 10728  0cc0 10729  1c1 10730   + caddc 10732   < clt 10867  cle 10868  cmin 11062  cn 11830  0cn0 12090  cz 12176  cuz 12438  ...cfz 13095  ..^cfzo 13238
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2708  ax-sep 5192  ax-nul 5199  ax-pow 5258  ax-pr 5322  ax-un 7523  ax-cnex 10785  ax-resscn 10786  ax-1cn 10787  ax-icn 10788  ax-addcl 10789  ax-addrcl 10790  ax-mulcl 10791  ax-mulrcl 10792  ax-mulcom 10793  ax-addass 10794  ax-mulass 10795  ax-distr 10796  ax-i2m1 10797  ax-1ne0 10798  ax-1rid 10799  ax-rnegex 10800  ax-rrecex 10801  ax-cnre 10802  ax-pre-lttri 10803  ax-pre-lttrn 10804  ax-pre-ltadd 10805  ax-pre-mulgt0 10806
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2816  df-nfc 2886  df-ne 2941  df-nel 3047  df-ral 3066  df-rex 3067  df-reu 3068  df-rab 3070  df-v 3410  df-sbc 3695  df-csb 3812  df-dif 3869  df-un 3871  df-in 3873  df-ss 3883  df-pss 3885  df-nul 4238  df-if 4440  df-pw 4515  df-sn 4542  df-pr 4544  df-tp 4546  df-op 4548  df-uni 4820  df-iun 4906  df-br 5054  df-opab 5116  df-mpt 5136  df-tr 5162  df-id 5455  df-eprel 5460  df-po 5468  df-so 5469  df-fr 5509  df-we 5511  df-xp 5557  df-rel 5558  df-cnv 5559  df-co 5560  df-dm 5561  df-rn 5562  df-res 5563  df-ima 5564  df-pred 6160  df-ord 6216  df-on 6217  df-lim 6218  df-suc 6219  df-iota 6338  df-fun 6382  df-fn 6383  df-f 6384  df-f1 6385  df-fo 6386  df-f1o 6387  df-fv 6388  df-riota 7170  df-ov 7216  df-oprab 7217  df-mpo 7218  df-om 7645  df-1st 7761  df-2nd 7762  df-wrecs 8047  df-recs 8108  df-rdg 8146  df-er 8391  df-en 8627  df-dom 8628  df-sdom 8629  df-pnf 10869  df-mnf 10870  df-xr 10871  df-ltxr 10872  df-le 10873  df-sub 11064  df-neg 11065  df-nn 11831  df-n0 12091  df-z 12177  df-uz 12439  df-fz 13096
This theorem is referenced by:  poimirlem22  35536
  Copyright terms: Public domain W3C validator