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 35792
Description: Lemma for poimir 35810, that the face in poimirlem22 35799 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 3618 . . . . . . 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 2857 . . . . . 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 7863 . . . . 5 (𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (1st𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
7 xp1st 7863 . . . . 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 7864 . . . . . . . 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 6787 . . . . . . . 8 (2nd ‘(1st𝑇)) ∈ V
12 f1oeq1 6704 . . . . . . . 8 (𝑓 = (2nd ‘(1st𝑇)) → (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) ↔ (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁)))
1311, 12elab 3609 . . . . . . 7 ((2nd ‘(1st𝑇)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ↔ (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
1410, 13sylib 217 . . . . . 6 (𝜑 → (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
15 poimirlem15.3 . . . . . . . . . . . . 13 (𝜑 → (2nd𝑇) ∈ (1...(𝑁 − 1)))
16 elfznn 13285 . . . . . . . . . . . . 13 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ∈ ℕ)
1715, 16syl 17 . . . . . . . . . . . 12 (𝜑 → (2nd𝑇) ∈ ℕ)
1817nnred 11988 . . . . . . . . . . 11 (𝜑 → (2nd𝑇) ∈ ℝ)
1918ltp1d 11905 . . . . . . . . . . 11 (𝜑 → (2nd𝑇) < ((2nd𝑇) + 1))
2018, 19ltned 11111 . . . . . . . . . 10 (𝜑 → (2nd𝑇) ≠ ((2nd𝑇) + 1))
2120necomd 2999 . . . . . . . . . 10 (𝜑 → ((2nd𝑇) + 1) ≠ (2nd𝑇))
22 fvex 6787 . . . . . . . . . . 11 (2nd𝑇) ∈ V
23 ovex 7308 . . . . . . . . . . 11 ((2nd𝑇) + 1) ∈ V
24 f1oprg 6761 . . . . . . . . . . 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 690 . . . . . . . . . 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 584 . . . . . . . . 9 (𝜑 → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{((2nd𝑇) + 1), (2nd𝑇)})
27 prcom 4668 . . . . . . . . . 10 {((2nd𝑇) + 1), (2nd𝑇)} = {(2nd𝑇), ((2nd𝑇) + 1)}
28 f1oeq3 6706 . . . . . . . . . 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 217 . . . . . . . 8 (𝜑 → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}–1-1-onto→{(2nd𝑇), ((2nd𝑇) + 1)})
31 f1oi 6754 . . . . . . . 8 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})–1-1-onto→((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
32 disjdif 4405 . . . . . . . . 9 ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ∅
33 f1oun 6735 . . . . . . . . 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 702 . . . . . . . 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 586 . . . . . . 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 11989 . . . . . . . . . . . . . 14 (𝜑𝑁 ∈ ℂ)
38 npcan1 11400 . . . . . . . . . . . . . 14 (𝑁 ∈ ℂ → ((𝑁 − 1) + 1) = 𝑁)
3937, 38syl 17 . . . . . . . . . . . . 13 (𝜑 → ((𝑁 − 1) + 1) = 𝑁)
4036nnzd 12425 . . . . . . . . . . . . . . 15 (𝜑𝑁 ∈ ℤ)
41 peano2zm 12363 . . . . . . . . . . . . . . 15 (𝑁 ∈ ℤ → (𝑁 − 1) ∈ ℤ)
4240, 41syl 17 . . . . . . . . . . . . . 14 (𝜑 → (𝑁 − 1) ∈ ℤ)
43 uzid 12597 . . . . . . . . . . . . . 14 ((𝑁 − 1) ∈ ℤ → (𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)))
44 peano2uz 12641 . . . . . . . . . . . . . 14 ((𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)) → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
4542, 43, 443syl 18 . . . . . . . . . . . . 13 (𝜑 → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
4639, 45eqeltrrd 2840 . . . . . . . . . . . 12 (𝜑𝑁 ∈ (ℤ‘(𝑁 − 1)))
47 fzss2 13296 . . . . . . . . . . . 12 (𝑁 ∈ (ℤ‘(𝑁 − 1)) → (1...(𝑁 − 1)) ⊆ (1...𝑁))
4846, 47syl 17 . . . . . . . . . . 11 (𝜑 → (1...(𝑁 − 1)) ⊆ (1...𝑁))
4948, 15sseldd 3922 . . . . . . . . . 10 (𝜑 → (2nd𝑇) ∈ (1...𝑁))
5017peano2nnd 11990 . . . . . . . . . . 11 (𝜑 → ((2nd𝑇) + 1) ∈ ℕ)
5142zred 12426 . . . . . . . . . . . . 13 (𝜑 → (𝑁 − 1) ∈ ℝ)
5236nnred 11988 . . . . . . . . . . . . 13 (𝜑𝑁 ∈ ℝ)
53 elfzle2 13260 . . . . . . . . . . . . . 14 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ≤ (𝑁 − 1))
5415, 53syl 17 . . . . . . . . . . . . 13 (𝜑 → (2nd𝑇) ≤ (𝑁 − 1))
5552ltm1d 11907 . . . . . . . . . . . . 13 (𝜑 → (𝑁 − 1) < 𝑁)
5618, 51, 52, 54, 55lelttrd 11133 . . . . . . . . . . . 12 (𝜑 → (2nd𝑇) < 𝑁)
5717nnzd 12425 . . . . . . . . . . . . 13 (𝜑 → (2nd𝑇) ∈ ℤ)
58 zltp1le 12370 . . . . . . . . . . . . 13 (((2nd𝑇) ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((2nd𝑇) < 𝑁 ↔ ((2nd𝑇) + 1) ≤ 𝑁))
5957, 40, 58syl2anc 584 . . . . . . . . . . . 12 (𝜑 → ((2nd𝑇) < 𝑁 ↔ ((2nd𝑇) + 1) ≤ 𝑁))
6056, 59mpbid 231 . . . . . . . . . . 11 (𝜑 → ((2nd𝑇) + 1) ≤ 𝑁)
61 fznn 13324 . . . . . . . . . . . 12 (𝑁 ∈ ℤ → (((2nd𝑇) + 1) ∈ (1...𝑁) ↔ (((2nd𝑇) + 1) ∈ ℕ ∧ ((2nd𝑇) + 1) ≤ 𝑁)))
6240, 61syl 17 . . . . . . . . . . 11 (𝜑 → (((2nd𝑇) + 1) ∈ (1...𝑁) ↔ (((2nd𝑇) + 1) ∈ ℕ ∧ ((2nd𝑇) + 1) ≤ 𝑁)))
6350, 60, 62mpbir2and 710 . . . . . . . . . 10 (𝜑 → ((2nd𝑇) + 1) ∈ (1...𝑁))
64 prssi 4754 . . . . . . . . . 10 (((2nd𝑇) ∈ (1...𝑁) ∧ ((2nd𝑇) + 1) ∈ (1...𝑁)) → {(2nd𝑇), ((2nd𝑇) + 1)} ⊆ (1...𝑁))
6549, 63, 64syl2anc 584 . . . . . . . . 9 (𝜑 → {(2nd𝑇), ((2nd𝑇) + 1)} ⊆ (1...𝑁))
66 undif 4415 . . . . . . . . 9 ({(2nd𝑇), ((2nd𝑇) + 1)} ⊆ (1...𝑁) ↔ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (1...𝑁))
6765, 66sylib 217 . . . . . . . 8 (𝜑 → ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (1...𝑁))
68 f1oeq23 6707 . . . . . . . 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 584 . . . . . . 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 231 . . . . . 6 (𝜑 → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))):(1...𝑁)–1-1-onto→(1...𝑁))
71 f1oco 6739 . . . . . 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 584 . . . . 5 (𝜑 → ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))):(1...𝑁)–1-1-onto→(1...𝑁))
73 prex 5355 . . . . . . . 8 {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∈ V
74 ovex 7308 . . . . . . . . 9 (1...𝑁) ∈ V
75 difexg 5251 . . . . . . . . 9 ((1...𝑁) ∈ V → ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∈ V)
76 resiexg 7761 . . . . . . . . 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 7596 . . . . . . 7 ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) ∈ V
7911, 78coex 7777 . . . . . 6 ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) ∈ V
80 f1oeq1 6704 . . . . . 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 3609 . . . . 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 233 . . . 4 (𝜑 → ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
83 opelxpi 5626 . . . 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 584 . . 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 13352 . . . . 5 (1...𝑁) ⊆ (0...𝑁)
8648, 85sstrdi 3933 . . . 4 (𝜑 → (1...(𝑁 − 1)) ⊆ (0...𝑁))
8786, 15sseldd 3922 . . 3 (𝜑 → (2nd𝑇) ∈ (0...𝑁))
88 opelxpi 5626 . . 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 584 . 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 6774 . . . . . . . . . . . 12 (𝑡 = 𝑇 → (2nd𝑡) = (2nd𝑇))
9190breq2d 5086 . . . . . . . . . . 11 (𝑡 = 𝑇 → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑇)))
9291ifbid 4482 . . . . . . . . . 10 (𝑡 = 𝑇 → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)))
9392csbeq1d 3836 . . . . . . . . 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 6779 . . . . . . . . . . 11 (𝑡 = 𝑇 → (1st ‘(1st𝑡)) = (1st ‘(1st𝑇)))
95 2fveq3 6779 . . . . . . . . . . . . . 14 (𝑡 = 𝑇 → (2nd ‘(1st𝑡)) = (2nd ‘(1st𝑇)))
9695imaeq1d 5968 . . . . . . . . . . . . 13 (𝑡 = 𝑇 → ((2nd ‘(1st𝑡)) “ (1...𝑗)) = ((2nd ‘(1st𝑇)) “ (1...𝑗)))
9796xpeq1d 5618 . . . . . . . . . . . 12 (𝑡 = 𝑇 → (((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}))
9895imaeq1d 5968 . . . . . . . . . . . . 13 (𝑡 = 𝑇 → ((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)))
9998xpeq1d 5618 . . . . . . . . . . . 12 (𝑡 = 𝑇 → (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))
10097, 99uneq12d 4098 . . . . . . . . . . 11 (𝑡 = 𝑇 → ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))
10194, 100oveq12d 7293 . . . . . . . . . 10 (𝑡 = 𝑇 → ((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
102101csbeq2dv 3839 . . . . . . . . 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 2778 . . . . . . . 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 5176 . . . . . . 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 2749 . . . . . 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 3627 . . . . 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 497 . . . 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 6155 . . . . . . . . . 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 6717 . . . . . . . . . . . . . . . 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 723 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)})
113 incom 4135 . . . . . . . . . . . . . . 15 ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ (1...𝑦)) = ((1...𝑦) ∩ {(2nd𝑇), ((2nd𝑇) + 1)})
114 elfznn0 13349 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 ∈ (0...(𝑁 − 1)) → 𝑦 ∈ ℕ0)
115114nn0red 12294 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 ∈ (0...(𝑁 − 1)) → 𝑦 ∈ ℝ)
116 ltnle 11054 . . . . . . . . . . . . . . . . . . . . 21 ((𝑦 ∈ ℝ ∧ (2nd𝑇) ∈ ℝ) → (𝑦 < (2nd𝑇) ↔ ¬ (2nd𝑇) ≤ 𝑦))
117115, 18, 116syl2anr 597 . . . . . . . . . . . . . . . . . . . 20 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (𝑦 < (2nd𝑇) ↔ ¬ (2nd𝑇) ≤ 𝑦))
118117biimpa 477 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ¬ (2nd𝑇) ≤ 𝑦)
119 elfzle2 13260 . . . . . . . . . . . . . . . . . . 19 ((2nd𝑇) ∈ (1...𝑦) → (2nd𝑇) ≤ 𝑦)
120118, 119nsyl 140 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ¬ (2nd𝑇) ∈ (1...𝑦))
121 disjsn 4647 . . . . . . . . . . . . . . . . . 18 (((1...𝑦) ∩ {(2nd𝑇)}) = ∅ ↔ ¬ (2nd𝑇) ∈ (1...𝑦))
122120, 121sylibr 233 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((1...𝑦) ∩ {(2nd𝑇)}) = ∅)
123115ad2antlr 724 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → 𝑦 ∈ ℝ)
12418ad2antrr 723 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (2nd𝑇) ∈ ℝ)
12550nnred 11988 . . . . . . . . . . . . . . . . . . . . . 22 (𝜑 → ((2nd𝑇) + 1) ∈ ℝ)
126125ad2antrr 723 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((2nd𝑇) + 1) ∈ ℝ)
127 simpr 485 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → 𝑦 < (2nd𝑇))
12819ad2antrr 723 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (2nd𝑇) < ((2nd𝑇) + 1))
129123, 124, 126, 127, 128lttrd 11136 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → 𝑦 < ((2nd𝑇) + 1))
130 ltnle 11054 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑦 ∈ ℝ ∧ ((2nd𝑇) + 1) ∈ ℝ) → (𝑦 < ((2nd𝑇) + 1) ↔ ¬ ((2nd𝑇) + 1) ≤ 𝑦))
131115, 125, 130syl2anr 597 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (𝑦 < ((2nd𝑇) + 1) ↔ ¬ ((2nd𝑇) + 1) ≤ 𝑦))
132131adantr 481 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (𝑦 < ((2nd𝑇) + 1) ↔ ¬ ((2nd𝑇) + 1) ≤ 𝑦))
133129, 132mpbid 231 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ¬ ((2nd𝑇) + 1) ≤ 𝑦)
134 elfzle2 13260 . . . . . . . . . . . . . . . . . . 19 (((2nd𝑇) + 1) ∈ (1...𝑦) → ((2nd𝑇) + 1) ≤ 𝑦)
135133, 134nsyl 140 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ¬ ((2nd𝑇) + 1) ∈ (1...𝑦))
136 disjsn 4647 . . . . . . . . . . . . . . . . . 18 (((1...𝑦) ∩ {((2nd𝑇) + 1)}) = ∅ ↔ ¬ ((2nd𝑇) + 1) ∈ (1...𝑦))
137135, 136sylibr 233 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((1...𝑦) ∩ {((2nd𝑇) + 1)}) = ∅)
138122, 137uneq12d 4098 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (((1...𝑦) ∩ {(2nd𝑇)}) ∪ ((1...𝑦) ∩ {((2nd𝑇) + 1)})) = (∅ ∪ ∅))
139 df-pr 4564 . . . . . . . . . . . . . . . . . 18 {(2nd𝑇), ((2nd𝑇) + 1)} = ({(2nd𝑇)} ∪ {((2nd𝑇) + 1)})
140139ineq2i 4143 . . . . . . . . . . . . . . . . 17 ((1...𝑦) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ((1...𝑦) ∩ ({(2nd𝑇)} ∪ {((2nd𝑇) + 1)}))
141 indi 4207 . . . . . . . . . . . . . . . . 17 ((1...𝑦) ∩ ({(2nd𝑇)} ∪ {((2nd𝑇) + 1)})) = (((1...𝑦) ∩ {(2nd𝑇)}) ∪ ((1...𝑦) ∩ {((2nd𝑇) + 1)}))
142140, 141eqtr2i 2767 . . . . . . . . . . . . . . . 16 (((1...𝑦) ∩ {(2nd𝑇)}) ∪ ((1...𝑦) ∩ {((2nd𝑇) + 1)})) = ((1...𝑦) ∩ {(2nd𝑇), ((2nd𝑇) + 1)})
143 un0 4324 . . . . . . . . . . . . . . . 16 (∅ ∪ ∅) = ∅
144138, 142, 1433eqtr3g 2801 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((1...𝑦) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅)
145113, 144eqtrid 2790 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ (1...𝑦)) = ∅)
146 fnimadisj 6565 . . . . . . . . . . . . . 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 584 . . . . . . . . . . . . 13 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...𝑦)) = ∅)
14839adantr 481 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((𝑁 − 1) + 1) = 𝑁)
149 elfzuz3 13253 . . . . . . . . . . . . . . . . . . . 20 (𝑦 ∈ (0...(𝑁 − 1)) → (𝑁 − 1) ∈ (ℤ𝑦))
150 peano2uz 12641 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 − 1) ∈ (ℤ𝑦) → ((𝑁 − 1) + 1) ∈ (ℤ𝑦))
151149, 150syl 17 . . . . . . . . . . . . . . . . . . 19 (𝑦 ∈ (0...(𝑁 − 1)) → ((𝑁 − 1) + 1) ∈ (ℤ𝑦))
152151adantl 482 . . . . . . . . . . . . . . . . . 18 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((𝑁 − 1) + 1) ∈ (ℤ𝑦))
153148, 152eqeltrrd 2840 . . . . . . . . . . . . . . . . 17 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → 𝑁 ∈ (ℤ𝑦))
154 fzss2 13296 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ (ℤ𝑦) → (1...𝑦) ⊆ (1...𝑁))
155 reldisj 4385 . . . . . . . . . . . . . . . . 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 481 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (((1...𝑦) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅ ↔ (1...𝑦) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
158144, 157mpbid 231 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (1...𝑦) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
159 resiima 5984 . . . . . . . . . . . . . 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 4098 . . . . . . . . . . . 12 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...𝑦)) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (1...𝑦))) = (∅ ∪ (1...𝑦)))
162 imaundir 6054 . . . . . . . . . . . 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 4087 . . . . . . . . . . . . 13 (∅ ∪ (1...𝑦)) = ((1...𝑦) ∪ ∅)
164 un0 4324 . . . . . . . . . . . . 13 ((1...𝑦) ∪ ∅) = (1...𝑦)
165163, 164eqtr2i 2767 . . . . . . . . . . . 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 5969 . . . . . . . . . 10 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((2nd ‘(1st𝑇)) “ (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (1...𝑦))) = ((2nd ‘(1st𝑇)) “ (1...𝑦)))
168109, 167eqtrid 2790 . . . . . . . . 9 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ (1...𝑦)) = ((2nd ‘(1st𝑇)) “ (1...𝑦)))
169168xpeq1d 5618 . . . . . . . 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 6155 . . . . . . . . . 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 6054 . . . . . . . . . . . . 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 5980 . . . . . . . . . . . . . . . . 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 6563 . . . . . . . . . . . . . . . . . . 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 723 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ {(2nd𝑇), ((2nd𝑇) + 1)}) = ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩})
177 elfzelz 13256 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 ∈ (0...(𝑁 − 1)) → 𝑦 ∈ ℤ)
178 zltp1le 12370 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑦 ∈ ℤ ∧ (2nd𝑇) ∈ ℤ) → (𝑦 < (2nd𝑇) ↔ (𝑦 + 1) ≤ (2nd𝑇)))
179177, 57, 178syl2anr 597 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (𝑦 < (2nd𝑇) ↔ (𝑦 + 1) ≤ (2nd𝑇)))
180179biimpa 477 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (𝑦 + 1) ≤ (2nd𝑇))
18118, 52, 56ltled 11123 . . . . . . . . . . . . . . . . . . . . 21 (𝜑 → (2nd𝑇) ≤ 𝑁)
182181ad2antrr 723 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (2nd𝑇) ≤ 𝑁)
18357adantr 481 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (2nd𝑇) ∈ ℤ)
184 nn0p1nn 12272 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑦 ∈ ℕ0 → (𝑦 + 1) ∈ ℕ)
185114, 184syl 17 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 ∈ (0...(𝑁 − 1)) → (𝑦 + 1) ∈ ℕ)
186185nnzd 12425 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 ∈ (0...(𝑁 − 1)) → (𝑦 + 1) ∈ ℤ)
187186adantl 482 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (𝑦 + 1) ∈ ℤ)
18840adantr 481 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → 𝑁 ∈ ℤ)
189 elfz 13245 . . . . . . . . . . . . . . . . . . . . . 22 (((2nd𝑇) ∈ ℤ ∧ (𝑦 + 1) ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((2nd𝑇) ∈ ((𝑦 + 1)...𝑁) ↔ ((𝑦 + 1) ≤ (2nd𝑇) ∧ (2nd𝑇) ≤ 𝑁)))
190183, 187, 188, 189syl3anc 1370 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((2nd𝑇) ∈ ((𝑦 + 1)...𝑁) ↔ ((𝑦 + 1) ≤ (2nd𝑇) ∧ (2nd𝑇) ≤ 𝑁)))
191190adantr 481 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((2nd𝑇) ∈ ((𝑦 + 1)...𝑁) ↔ ((𝑦 + 1) ≤ (2nd𝑇) ∧ (2nd𝑇) ≤ 𝑁)))
192180, 182, 191mpbir2and 710 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (2nd𝑇) ∈ ((𝑦 + 1)...𝑁))
193 1red 10976 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → 1 ∈ ℝ)
194 ltle 11063 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑦 ∈ ℝ ∧ (2nd𝑇) ∈ ℝ) → (𝑦 < (2nd𝑇) → 𝑦 ≤ (2nd𝑇)))
195115, 18, 194syl2anr 597 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (𝑦 < (2nd𝑇) → 𝑦 ≤ (2nd𝑇)))
196195imp 407 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → 𝑦 ≤ (2nd𝑇))
197123, 124, 193, 196leadd1dd 11589 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (𝑦 + 1) ≤ ((2nd𝑇) + 1))
19860ad2antrr 723 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((2nd𝑇) + 1) ≤ 𝑁)
19957peano2zd 12429 . . . . . . . . . . . . . . . . . . . . . . 23 (𝜑 → ((2nd𝑇) + 1) ∈ ℤ)
200199adantr 481 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((2nd𝑇) + 1) ∈ ℤ)
201 elfz 13245 . . . . . . . . . . . . . . . . . . . . . 22 ((((2nd𝑇) + 1) ∈ ℤ ∧ (𝑦 + 1) ∈ ℤ ∧ 𝑁 ∈ ℤ) → (((2nd𝑇) + 1) ∈ ((𝑦 + 1)...𝑁) ↔ ((𝑦 + 1) ≤ ((2nd𝑇) + 1) ∧ ((2nd𝑇) + 1) ≤ 𝑁)))
202200, 187, 188, 201syl3anc 1370 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (((2nd𝑇) + 1) ∈ ((𝑦 + 1)...𝑁) ↔ ((𝑦 + 1) ≤ ((2nd𝑇) + 1) ∧ ((2nd𝑇) + 1) ≤ 𝑁)))
203202adantr 481 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (((2nd𝑇) + 1) ∈ ((𝑦 + 1)...𝑁) ↔ ((𝑦 + 1) ≤ ((2nd𝑇) + 1) ∧ ((2nd𝑇) + 1) ≤ 𝑁)))
204197, 198, 203mpbir2and 710 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((2nd𝑇) + 1) ∈ ((𝑦 + 1)...𝑁))
205 prssi 4754 . . . . . . . . . . . . . . . . . . 19 (((2nd𝑇) ∈ ((𝑦 + 1)...𝑁) ∧ ((2nd𝑇) + 1) ∈ ((𝑦 + 1)...𝑁)) → {(2nd𝑇), ((2nd𝑇) + 1)} ⊆ ((𝑦 + 1)...𝑁))
206192, 204, 205syl2anc 584 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → {(2nd𝑇), ((2nd𝑇) + 1)} ⊆ ((𝑦 + 1)...𝑁))
207 imass2 6010 . . . . . . . . . . . . . . . . . 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 3960 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ⊆ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ ((𝑦 + 1)...𝑁)))
210173, 209eqssd 3938 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ ((𝑦 + 1)...𝑁)) = ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩})
211 f1ofo 6723 . . . . . . . . . . . . . . . . . 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 6691 . . . . . . . . . . . . . . . . . 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 723 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} = {(2nd𝑇), ((2nd𝑇) + 1)})
216210, 215eqtrd 2778 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ ((𝑦 + 1)...𝑁)) = {(2nd𝑇), ((2nd𝑇) + 1)})
217 undif 4415 . . . . . . . . . . . . . . . . 17 ({(2nd𝑇), ((2nd𝑇) + 1)} ⊆ ((𝑦 + 1)...𝑁) ↔ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ((𝑦 + 1)...𝑁))
218206, 217sylib 217 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ((𝑦 + 1)...𝑁))
219218imaeq2d 5969 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) = (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ((𝑦 + 1)...𝑁)))
220 fnresi 6561 . . . . . . . . . . . . . . . . . . 19 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) Fn ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
221 disjdifr 4406 . . . . . . . . . . . . . . . . . . 19 (((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅
222 fnimadisj 6565 . . . . . . . . . . . . . . . . . . 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 689 . . . . . . . . . . . . . . . . . 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 12621 . . . . . . . . . . . . . . . . . . . . . 22 ℕ = (ℤ‘1)
226185, 225eleqtrdi 2849 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 ∈ (0...(𝑁 − 1)) → (𝑦 + 1) ∈ (ℤ‘1))
227 fzss1 13295 . . . . . . . . . . . . . . . . . . . . 21 ((𝑦 + 1) ∈ (ℤ‘1) → ((𝑦 + 1)...𝑁) ⊆ (1...𝑁))
228226, 227syl 17 . . . . . . . . . . . . . . . . . . . 20 (𝑦 ∈ (0...(𝑁 − 1)) → ((𝑦 + 1)...𝑁) ⊆ (1...𝑁))
229228ssdifd 4075 . . . . . . . . . . . . . . . . . . 19 (𝑦 ∈ (0...(𝑁 − 1)) → (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
230 resiima 5984 . . . . . . . . . . . . . . . . . . 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 724 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
233224, 232uneq12d 4098 . . . . . . . . . . . . . . . 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 6053 . . . . . . . . . . . . . . . 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 4087 . . . . . . . . . . . . . . . . 17 (∅ ∪ (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ((((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∪ ∅)
236 un0 4324 . . . . . . . . . . . . . . . . 17 ((((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∪ ∅) = (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
237235, 236eqtr2i 2767 . . . . . . . . . . . . . . . 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 2780 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ ((𝑦 + 1)...𝑁)) = (((𝑦 + 1)...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
240216, 239uneq12d 4098 . . . . . . . . . . . . 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, 240eqtrid 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 2778 . . . . . . . . . . 11 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ ((𝑦 + 1)...𝑁)) = ((𝑦 + 1)...𝑁))
243242imaeq2d 5969 . . . . . . . . . 10 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → ((2nd ‘(1st𝑇)) “ (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ ((𝑦 + 1)...𝑁))) = ((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)))
244170, 243eqtrid 2790 . . . . . . . . 9 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ 𝑦 < (2nd𝑇)) → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) “ ((𝑦 + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)))
245244xpeq1d 5618 . . . . . . . 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 4098 . . . . . . 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 7291 . . . . . 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 4465 . . . . . . . . 9 (𝑦 < (2nd𝑇) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) = 𝑦)
249248csbeq1d 3836 . . . . . . . 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 3436 . . . . . . . . 9 𝑦 ∈ V
251 oveq2 7283 . . . . . . . . . . . . 13 (𝑗 = 𝑦 → (1...𝑗) = (1...𝑦))
252251imaeq2d 5969 . . . . . . . . . . . 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 5618 . . . . . . . . . . 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 7282 . . . . . . . . . . . . . 14 (𝑗 = 𝑦 → (𝑗 + 1) = (𝑦 + 1))
255254oveq1d 7290 . . . . . . . . . . . . 13 (𝑗 = 𝑦 → ((𝑗 + 1)...𝑁) = ((𝑦 + 1)...𝑁))
256255imaeq2d 5969 . . . . . . . . . . . 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 5618 . . . . . . . . . . 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 4098 . . . . . . . . . 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 7291 . . . . . . . . 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 3868 . . . . . . . 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 482 . . . . . 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 3836 . . . . . . . 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 5969 . . . . . . . . . . . 12 (𝑗 = 𝑦 → ((2nd ‘(1st𝑇)) “ (1...𝑗)) = ((2nd ‘(1st𝑇)) “ (1...𝑦)))
265264xpeq1d 5618 . . . . . . . . . . 11 (𝑗 = 𝑦 → (((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑇)) “ (1...𝑦)) × {1}))
266255imaeq2d 5969 . . . . . . . . . . . 12 (𝑗 = 𝑦 → ((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)))
267266xpeq1d 5618 . . . . . . . . . . 11 (𝑗 = 𝑦 → (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)) × {0}))
268265, 267uneq12d 4098 . . . . . . . . . 10 (𝑗 = 𝑦 → ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑇)) “ (1...𝑦)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑦 + 1)...𝑁)) × {0})))
269268oveq2d 7291 . . . . . . . . 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 3868 . . . . . . . 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 482 . . . . . 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 2788 . . . . 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 11053 . . . . . . . . . 10 (((2nd𝑇) ∈ ℝ ∧ 𝑦 ∈ ℝ) → ((2nd𝑇) ≤ 𝑦 ↔ ¬ 𝑦 < (2nd𝑇)))
27518, 115, 274syl2an 596 . . . . . . . . 9 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((2nd𝑇) ≤ 𝑦 ↔ ¬ 𝑦 < (2nd𝑇)))
276275biimpar 478 . . . . . . . 8 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ ¬ 𝑦 < (2nd𝑇)) → (2nd𝑇) ≤ 𝑦)
277 imaco 6155 . . . . . . . . . . 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 6054 . . . . . . . . . . . . . 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 5980 . . . . . . . . . . . . . . . . . 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 723 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ {(2nd𝑇), ((2nd𝑇) + 1)}) = ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩})
28217ad2antrr 723 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) ∈ ℕ)
28318ad2antrr 723 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) ∈ ℝ)
284115ad2antlr 724 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → 𝑦 ∈ ℝ)
285185nnred 11988 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 ∈ (0...(𝑁 − 1)) → (𝑦 + 1) ∈ ℝ)
286285ad2antlr 724 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (𝑦 + 1) ∈ ℝ)
287 simpr 485 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) ≤ 𝑦)
288115lep1d 11906 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 ∈ (0...(𝑁 − 1)) → 𝑦 ≤ (𝑦 + 1))
289288ad2antlr 724 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → 𝑦 ≤ (𝑦 + 1))
290283, 284, 286, 287, 289letrd 11132 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) ≤ (𝑦 + 1))
291 fznn 13324 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝑦 + 1) ∈ ℤ → ((2nd𝑇) ∈ (1...(𝑦 + 1)) ↔ ((2nd𝑇) ∈ ℕ ∧ (2nd𝑇) ≤ (𝑦 + 1))))
292186, 291syl 17 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 ∈ (0...(𝑁 − 1)) → ((2nd𝑇) ∈ (1...(𝑦 + 1)) ↔ ((2nd𝑇) ∈ ℕ ∧ (2nd𝑇) ≤ (𝑦 + 1))))
293292ad2antlr 724 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) ∈ (1...(𝑦 + 1)) ↔ ((2nd𝑇) ∈ ℕ ∧ (2nd𝑇) ≤ (𝑦 + 1))))
294282, 290, 293mpbir2and 710 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) ∈ (1...(𝑦 + 1)))
29550ad2antrr 723 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) + 1) ∈ ℕ)
296 1red 10976 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → 1 ∈ ℝ)
297283, 284, 296, 287leadd1dd 11589 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) + 1) ≤ (𝑦 + 1))
298 fznn 13324 . . . . . . . . . . . . . . . . . . . . . . 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 724 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (((2nd𝑇) + 1) ∈ (1...(𝑦 + 1)) ↔ (((2nd𝑇) + 1) ∈ ℕ ∧ ((2nd𝑇) + 1) ≤ (𝑦 + 1))))
301295, 297, 300mpbir2and 710 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) + 1) ∈ (1...(𝑦 + 1)))
302 prssi 4754 . . . . . . . . . . . . . . . . . . . 20 (((2nd𝑇) ∈ (1...(𝑦 + 1)) ∧ ((2nd𝑇) + 1) ∈ (1...(𝑦 + 1))) → {(2nd𝑇), ((2nd𝑇) + 1)} ⊆ (1...(𝑦 + 1)))
303294, 301, 302syl2anc 584 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → {(2nd𝑇), ((2nd𝑇) + 1)} ⊆ (1...(𝑦 + 1)))
304 imass2 6010 . . . . . . . . . . . . . . . . . . 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 3960 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ⊆ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...(𝑦 + 1))))
307280, 306eqssd 3938 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...(𝑦 + 1))) = ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩})
308214ad2antrr 723 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ran {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} = {(2nd𝑇), ((2nd𝑇) + 1)})
309307, 308eqtrd 2778 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (1...(𝑦 + 1))) = {(2nd𝑇), ((2nd𝑇) + 1)})
310 undif 4415 . . . . . . . . . . . . . . . . . 18 ({(2nd𝑇), ((2nd𝑇) + 1)} ⊆ (1...(𝑦 + 1)) ↔ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (1...(𝑦 + 1)))
311303, 310sylib 217 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (1...(𝑦 + 1)))
312311imaeq2d 5969 . . . . . . . . . . . . . . . 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 12610 . . . . . . . . . . . . . . . . . . . . . . . . 25 ((𝑁 − 1) ∈ (ℤ𝑦) → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑦 + 1)))
315149, 314syl 17 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 ∈ (0...(𝑁 − 1)) → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑦 + 1)))
316315adantl 482 . . . . . . . . . . . . . . . . . . . . . . 23 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑦 + 1)))
317148, 316eqeltrrd 2840 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → 𝑁 ∈ (ℤ‘(𝑦 + 1)))
318 fzss2 13296 . . . . . . . . . . . . . . . . . . . . . 22 (𝑁 ∈ (ℤ‘(𝑦 + 1)) → (1...(𝑦 + 1)) ⊆ (1...𝑁))
319317, 318syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (1...(𝑦 + 1)) ⊆ (1...𝑁))
320319ssdifd 4075 . . . . . . . . . . . . . . . . . . . 20 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
321320adantr 481 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
322 resiima 5984 . . . . . . . . . . . . . . . . . . 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 4098 . . . . . . . . . . . . . . . . 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 6053 . . . . . . . . . . . . . . . . 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 4087 . . . . . . . . . . . . . . . . . 18 (∅ ∪ ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = (((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∪ ∅)
327 un0 4324 . . . . . . . . . . . . . . . . . 18 (((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∪ ∅) = ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
328326, 327eqtr2i 2767 . . . . . . . . . . . . . . . . 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 2780 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (1...(𝑦 + 1))) = ((1...(𝑦 + 1)) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
331309, 330uneq12d 4098 . . . . . . . . . . . . . 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, 331eqtrid 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 2778 . . . . . . . . . . . 12 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (1...(𝑦 + 1))) = (1...(𝑦 + 1)))
334333imaeq2d 5969 . . . . . . . . . . 11 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd ‘(1st𝑇)) “ (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (1...(𝑦 + 1)))) = ((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))))
335277, 334eqtrid 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 5618 . . . . . . . . 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 6155 . . . . . . . . . . 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 723 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)})
339 incom 4135 . . . . . . . . . . . . . . . 16 ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ (((𝑦 + 1) + 1)...𝑁)) = ((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇), ((2nd𝑇) + 1)})
340125ad2antrr 723 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) + 1) ∈ ℝ)
341185peano2nnd 11990 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑦 ∈ (0...(𝑁 − 1)) → ((𝑦 + 1) + 1) ∈ ℕ)
342341nnred 11988 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 ∈ (0...(𝑁 − 1)) → ((𝑦 + 1) + 1) ∈ ℝ)
343342ad2antlr 724 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((𝑦 + 1) + 1) ∈ ℝ)
34419ad2antrr 723 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) < ((2nd𝑇) + 1))
345115ltp1d 11905 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑦 ∈ (0...(𝑁 − 1)) → 𝑦 < (𝑦 + 1))
346345ad2antlr 724 . . . . . . . . . . . . . . . . . . . . . . . 24 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → 𝑦 < (𝑦 + 1))
347283, 284, 286, 287, 346lelttrd 11133 . . . . . . . . . . . . . . . . . . . . . . 23 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) < (𝑦 + 1))
348283, 286, 296, 347ltadd1dd 11586 . . . . . . . . . . . . . . . . . . . . . 22 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) + 1) < ((𝑦 + 1) + 1))
349283, 340, 343, 344, 348lttrd 11136 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (2nd𝑇) < ((𝑦 + 1) + 1))
350 ltnle 11054 . . . . . . . . . . . . . . . . . . . . . . 23 (((2nd𝑇) ∈ ℝ ∧ ((𝑦 + 1) + 1) ∈ ℝ) → ((2nd𝑇) < ((𝑦 + 1) + 1) ↔ ¬ ((𝑦 + 1) + 1) ≤ (2nd𝑇)))
35118, 342, 350syl2an 596 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → ((2nd𝑇) < ((𝑦 + 1) + 1) ↔ ¬ ((𝑦 + 1) + 1) ≤ (2nd𝑇)))
352351adantr 481 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd𝑇) < ((𝑦 + 1) + 1) ↔ ¬ ((𝑦 + 1) + 1) ≤ (2nd𝑇)))
353349, 352mpbid 231 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ¬ ((𝑦 + 1) + 1) ≤ (2nd𝑇))
354 elfzle1 13259 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ (((𝑦 + 1) + 1)...𝑁) → ((𝑦 + 1) + 1) ≤ (2nd𝑇))
355353, 354nsyl 140 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ¬ (2nd𝑇) ∈ (((𝑦 + 1) + 1)...𝑁))
356 disjsn 4647 . . . . . . . . . . . . . . . . . . 19 (((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇)}) = ∅ ↔ ¬ (2nd𝑇) ∈ (((𝑦 + 1) + 1)...𝑁))
357355, 356sylibr 233 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇)}) = ∅)
358 ltnle 11054 . . . . . . . . . . . . . . . . . . . . . . 23 ((((2nd𝑇) + 1) ∈ ℝ ∧ ((𝑦 + 1) + 1) ∈ ℝ) → (((2nd𝑇) + 1) < ((𝑦 + 1) + 1) ↔ ¬ ((𝑦 + 1) + 1) ≤ ((2nd𝑇) + 1)))
359125, 342, 358syl2an 596 . . . . . . . . . . . . . . . . . . . . . 22 ((𝜑𝑦 ∈ (0...(𝑁 − 1))) → (((2nd𝑇) + 1) < ((𝑦 + 1) + 1) ↔ ¬ ((𝑦 + 1) + 1) ≤ ((2nd𝑇) + 1)))
360359adantr 481 . . . . . . . . . . . . . . . . . . . . 21 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (((2nd𝑇) + 1) < ((𝑦 + 1) + 1) ↔ ¬ ((𝑦 + 1) + 1) ≤ ((2nd𝑇) + 1)))
361348, 360mpbid 231 . . . . . . . . . . . . . . . . . . . 20 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ¬ ((𝑦 + 1) + 1) ≤ ((2nd𝑇) + 1))
362 elfzle1 13259 . . . . . . . . . . . . . . . . . . . 20 (((2nd𝑇) + 1) ∈ (((𝑦 + 1) + 1)...𝑁) → ((𝑦 + 1) + 1) ≤ ((2nd𝑇) + 1))
363361, 362nsyl 140 . . . . . . . . . . . . . . . . . . 19 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ¬ ((2nd𝑇) + 1) ∈ (((𝑦 + 1) + 1)...𝑁))
364 disjsn 4647 . . . . . . . . . . . . . . . . . . 19 (((((𝑦 + 1) + 1)...𝑁) ∩ {((2nd𝑇) + 1)}) = ∅ ↔ ¬ ((2nd𝑇) + 1) ∈ (((𝑦 + 1) + 1)...𝑁))
365363, 364sylibr 233 . . . . . . . . . . . . . . . . . 18 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((((𝑦 + 1) + 1)...𝑁) ∩ {((2nd𝑇) + 1)}) = ∅)
366357, 365uneq12d 4098 . . . . . . . . . . . . . . . . 17 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇)}) ∪ ((((𝑦 + 1) + 1)...𝑁) ∩ {((2nd𝑇) + 1)})) = (∅ ∪ ∅))
367139ineq2i 4143 . . . . . . . . . . . . . . . . . 18 ((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ((((𝑦 + 1) + 1)...𝑁) ∩ ({(2nd𝑇)} ∪ {((2nd𝑇) + 1)}))
368 indi 4207 . . . . . . . . . . . . . . . . . 18 ((((𝑦 + 1) + 1)...𝑁) ∩ ({(2nd𝑇)} ∪ {((2nd𝑇) + 1)})) = (((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇)}) ∪ ((((𝑦 + 1) + 1)...𝑁) ∩ {((2nd𝑇) + 1)}))
369367, 368eqtr2i 2767 . . . . . . . . . . . . . . . . 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, 370eqtrid 2790 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ (((𝑦 + 1) + 1)...𝑁)) = ∅)
372 fnimadisj 6565 . . . . . . . . . . . . . . 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 584 . . . . . . . . . . . . . 14 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (((𝑦 + 1) + 1)...𝑁)) = ∅)
374341, 225eleqtrdi 2849 . . . . . . . . . . . . . . . . . 18 (𝑦 ∈ (0...(𝑁 − 1)) → ((𝑦 + 1) + 1) ∈ (ℤ‘1))
375 fzss1 13295 . . . . . . . . . . . . . . . . . 18 (((𝑦 + 1) + 1) ∈ (ℤ‘1) → (((𝑦 + 1) + 1)...𝑁) ⊆ (1...𝑁))
376 reldisj 4385 . . . . . . . . . . . . . . . . . 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 724 . . . . . . . . . . . . . . . 16 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (((((𝑦 + 1) + 1)...𝑁) ∩ {(2nd𝑇), ((2nd𝑇) + 1)}) = ∅ ↔ (((𝑦 + 1) + 1)...𝑁) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
379370, 378mpbid 231 . . . . . . . . . . . . . . 15 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (((𝑦 + 1) + 1)...𝑁) ⊆ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
380 resiima 5984 . . . . . . . . . . . . . . 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 4098 . . . . . . . . . . . . 13 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} “ (((𝑦 + 1) + 1)...𝑁)) ∪ (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) “ (((𝑦 + 1) + 1)...𝑁))) = (∅ ∪ (((𝑦 + 1) + 1)...𝑁)))
383 imaundir 6054 . . . . . . . . . . . . 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 4087 . . . . . . . . . . . . . 14 (∅ ∪ (((𝑦 + 1) + 1)...𝑁)) = ((((𝑦 + 1) + 1)...𝑁) ∪ ∅)
385 un0 4324 . . . . . . . . . . . . . 14 ((((𝑦 + 1) + 1)...𝑁) ∪ ∅) = (((𝑦 + 1) + 1)...𝑁)
386384, 385eqtr2i 2767 . . . . . . . . . . . . 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 5969 . . . . . . . . . . 11 (((𝜑𝑦 ∈ (0...(𝑁 − 1))) ∧ (2nd𝑇) ≤ 𝑦) → ((2nd ‘(1st𝑇)) “ (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) “ (((𝑦 + 1) + 1)...𝑁))) = ((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)))
389337, 388eqtrid 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 5618 . . . . . . . . 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 4098 . . . . . . . 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 591 . . . . . . 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 7291 . . . . . 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 4468 . . . . . . . . 9 𝑦 < (2nd𝑇) → if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) = (𝑦 + 1))
395394csbeq1d 3836 . . . . . . . 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 7308 . . . . . . . . 9 (𝑦 + 1) ∈ V
397 oveq2 7283 . . . . . . . . . . . . 13 (𝑗 = (𝑦 + 1) → (1...𝑗) = (1...(𝑦 + 1)))
398397imaeq2d 5969 . . . . . . . . . . . 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 5618 . . . . . . . . . . 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 7282 . . . . . . . . . . . . . 14 (𝑗 = (𝑦 + 1) → (𝑗 + 1) = ((𝑦 + 1) + 1))
401400oveq1d 7290 . . . . . . . . . . . . 13 (𝑗 = (𝑦 + 1) → ((𝑗 + 1)...𝑁) = (((𝑦 + 1) + 1)...𝑁))
402401imaeq2d 5969 . . . . . . . . . . . 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 5618 . . . . . . . . . . 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 4098 . . . . . . . . . 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 7291 . . . . . . . . 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 3868 . . . . . . . 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 482 . . . . . 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 3836 . . . . . . . 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 5969 . . . . . . . . . . . 12 (𝑗 = (𝑦 + 1) → ((2nd ‘(1st𝑇)) “ (1...𝑗)) = ((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))))
411410xpeq1d 5618 . . . . . . . . . . 11 (𝑗 = (𝑦 + 1) → (((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))) × {1}))
412401imaeq2d 5969 . . . . . . . . . . . 12 (𝑗 = (𝑦 + 1) → ((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)))
413412xpeq1d 5618 . . . . . . . . . . 11 (𝑗 = (𝑦 + 1) → (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)) × {0}))
414411, 413uneq12d 4098 . . . . . . . . . 10 (𝑗 = (𝑦 + 1) → ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑇)) “ (1...(𝑦 + 1))) × {1}) ∪ (((2nd ‘(1st𝑇)) “ (((𝑦 + 1) + 1)...𝑁)) × {0})))
415414oveq2d 7291 . . . . . . . . 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 3868 . . . . . . . 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 482 . . . . . 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 2788 . . . . 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 810 . . . 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 5174 . . 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 2781 . 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 5379 . . . . . . 7 ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ ∈ V
424423, 22op1std 7841 . . . . . 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 7842 . . . . . 6 (𝑡 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ → (2nd𝑡) = (2nd𝑇))
426 breq2 5078 . . . . . . . . 9 ((2nd𝑡) = (2nd𝑇) → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑇)))
427426ifbid 4482 . . . . . . . 8 ((2nd𝑡) = (2nd𝑇) → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)))
428427csbeq1d 3836 . . . . . . 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 6787 . . . . . . . . . 10 (1st ‘(1st𝑇)) ∈ V
430429, 79op1std 7841 . . . . . . . . 9 ((1st𝑡) = ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ → (1st ‘(1st𝑡)) = (1st ‘(1st𝑇)))
431429, 79op2ndd 7842 . . . . . . . . 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 5964 . . . . . . . . . . . 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 5618 . . . . . . . . . . 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 5964 . . . . . . . . . . . 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 5618 . . . . . . . . . . 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 4098 . . . . . . . . . 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 7294 . . . . . . . . 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 584 . . . . . . . 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 3839 . . . . . . 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 584 . . . . 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 5176 . . . 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 2749 . . 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 3627 . 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 583 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 205  wa 396   = wceq 1539  wcel 2106  {cab 2715  wne 2943  {crab 3068  Vcvv 3432  csb 3832  cdif 3884  cun 3885  cin 3886  wss 3887  c0 4256  ifcif 4459  {csn 4561  {cpr 4563  cop 4567   class class class wbr 5074  cmpt 5157   I cid 5488   × cxp 5587  ran crn 5590  cres 5591  cima 5592  ccom 5593   Fn wfn 6428  wf 6429  ontowfo 6431  1-1-ontowf1o 6432  cfv 6433  (class class class)co 7275  f cof 7531  1st c1st 7829  2nd c2nd 7830  m cmap 8615  cc 10869  cr 10870  0cc0 10871  1c1 10872   + caddc 10874   < clt 11009  cle 11010  cmin 11205  cn 11973  0cn0 12233  cz 12319  cuz 12582  ...cfz 13239  ..^cfzo 13382
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588  ax-cnex 10927  ax-resscn 10928  ax-1cn 10929  ax-icn 10930  ax-addcl 10931  ax-addrcl 10932  ax-mulcl 10933  ax-mulrcl 10934  ax-mulcom 10935  ax-addass 10936  ax-mulass 10937  ax-distr 10938  ax-i2m1 10939  ax-1ne0 10940  ax-1rid 10941  ax-rnegex 10942  ax-rrecex 10943  ax-cnre 10944  ax-pre-lttri 10945  ax-pre-lttrn 10946  ax-pre-ltadd 10947  ax-pre-mulgt0 10948
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3or 1087  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-nel 3050  df-ral 3069  df-rex 3070  df-reu 3072  df-rab 3073  df-v 3434  df-sbc 3717  df-csb 3833  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-pss 3906  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-iun 4926  df-br 5075  df-opab 5137  df-mpt 5158  df-tr 5192  df-id 5489  df-eprel 5495  df-po 5503  df-so 5504  df-fr 5544  df-we 5546  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-ord 6269  df-on 6270  df-lim 6271  df-suc 6272  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-riota 7232  df-ov 7278  df-oprab 7279  df-mpo 7280  df-om 7713  df-1st 7831  df-2nd 7832  df-frecs 8097  df-wrecs 8128  df-recs 8202  df-rdg 8241  df-er 8498  df-en 8734  df-dom 8735  df-sdom 8736  df-pnf 11011  df-mnf 11012  df-xr 11013  df-ltxr 11014  df-le 11015  df-sub 11207  df-neg 11208  df-nn 11974  df-n0 12234  df-z 12320  df-uz 12583  df-fz 13240
This theorem is referenced by:  poimirlem22  35799
  Copyright terms: Public domain W3C validator