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

Theorem poimirlem22 33744
Description: Lemma for poimir 33755, that a given face belongs to exactly two simplices, provided it's not on the boundary of the cube. (Contributed by Brendan Leahy, 21-Aug-2020.)
Hypotheses
Ref Expression
poimir.0 (𝜑𝑁 ∈ ℕ)
poimirlem22.s 𝑆 = {𝑡 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}
poimirlem22.1 (𝜑𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑𝑚 (1...𝑁)))
poimirlem22.2 (𝜑𝑇𝑆)
poimirlem22.3 ((𝜑𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 0)
poimirlem22.4 ((𝜑𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 𝐾)
Assertion
Ref Expression
poimirlem22 (𝜑 → ∃!𝑧𝑆 𝑧𝑇)
Distinct variable groups:   𝑓,𝑗,𝑛,𝑝,𝑡,𝑦,𝑧   𝜑,𝑗,𝑛,𝑦   𝑗,𝐹,𝑛,𝑦   𝑗,𝑁,𝑛,𝑦   𝑇,𝑗,𝑛,𝑦   𝜑,𝑝,𝑡   𝑓,𝐾,𝑗,𝑛,𝑝,𝑡   𝑓,𝑁,𝑝,𝑡   𝑇,𝑓,𝑝   𝜑,𝑧   𝑓,𝐹,𝑝,𝑡,𝑧   𝑧,𝐾   𝑧,𝑁   𝑡,𝑇,𝑧   𝑆,𝑗,𝑛,𝑝,𝑡,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑓)   𝑆(𝑓)   𝐾(𝑦)

Proof of Theorem poimirlem22
StepHypRef Expression
1 poimir.0 . . . . 5 (𝜑𝑁 ∈ ℕ)
21adantr 472 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝑁 ∈ ℕ)
3 poimirlem22.s . . . 4 𝑆 = {𝑡 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}
4 poimirlem22.1 . . . . 5 (𝜑𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑𝑚 (1...𝑁)))
54adantr 472 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑𝑚 (1...𝑁)))
6 poimirlem22.2 . . . . 5 (𝜑𝑇𝑆)
76adantr 472 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝑇𝑆)
8 simpr 479 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd𝑇) ∈ (1...(𝑁 − 1)))
92, 3, 5, 7, 8poimirlem15 33737 . . 3 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ ∈ 𝑆)
10 fveq2 6352 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (2nd𝑡) = (2nd𝑇))
1110breq2d 4816 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑇 → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑇)))
1211ifbid 4252 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑇 → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)))
1312csbeq1d 3681 . . . . . . . . . . . . . . . . . . . . 21 (𝑡 = 𝑇if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))
14 fveq2 6352 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (1st𝑡) = (1st𝑇))
1514fveq2d 6356 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑇 → (1st ‘(1st𝑡)) = (1st ‘(1st𝑇)))
1614fveq2d 6356 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑡 = 𝑇 → (2nd ‘(1st𝑡)) = (2nd ‘(1st𝑇)))
1716imaeq1d 5623 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑇 → ((2nd ‘(1st𝑡)) “ (1...𝑗)) = ((2nd ‘(1st𝑇)) “ (1...𝑗)))
1817xpeq1d 5295 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}))
1916imaeq1d 5623 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑇 → ((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)))
2019xpeq1d 5295 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))
2118, 20uneq12d 3911 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑇 → ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))
2215, 21oveq12d 6831 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑇 → ((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘𝑓 + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
2322csbeq2dv 4135 . . . . . . . . . . . . . . . . . . . . 21 (𝑡 = 𝑇if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘𝑓 + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
2413, 23eqtrd 2794 . . . . . . . . . . . . . . . . . . . 20 (𝑡 = 𝑇if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘𝑓 + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
2524mpteq2dv 4897 . . . . . . . . . . . . . . . . . . 19 (𝑡 = 𝑇 → (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘𝑓 + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
2625eqeq2d 2770 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑇 → (𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ↔ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘𝑓 + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))))
2726, 3elrab2 3507 . . . . . . . . . . . . . . . . 17 (𝑇𝑆 ↔ (𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘𝑓 + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))))
2827simprbi 483 . . . . . . . . . . . . . . . 16 (𝑇𝑆𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘𝑓 + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
296, 28syl 17 . . . . . . . . . . . . . . 15 (𝜑𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘𝑓 + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
3029adantr 472 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘𝑓 + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
31 elrabi 3499 . . . . . . . . . . . . . . . . . . . . 21 (𝑇 ∈ {𝑡 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} → 𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
3231, 3eleq2s 2857 . . . . . . . . . . . . . . . . . . . 20 (𝑇𝑆𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
336, 32syl 17 . . . . . . . . . . . . . . . . . . 19 (𝜑𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
34 xp1st 7365 . . . . . . . . . . . . . . . . . . 19 (𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (1st𝑇) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
3533, 34syl 17 . . . . . . . . . . . . . . . . . 18 (𝜑 → (1st𝑇) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
36 xp1st 7365 . . . . . . . . . . . . . . . . . 18 ((1st𝑇) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (1st ‘(1st𝑇)) ∈ ((0..^𝐾) ↑𝑚 (1...𝑁)))
3735, 36syl 17 . . . . . . . . . . . . . . . . 17 (𝜑 → (1st ‘(1st𝑇)) ∈ ((0..^𝐾) ↑𝑚 (1...𝑁)))
38 elmapi 8045 . . . . . . . . . . . . . . . . 17 ((1st ‘(1st𝑇)) ∈ ((0..^𝐾) ↑𝑚 (1...𝑁)) → (1st ‘(1st𝑇)):(1...𝑁)⟶(0..^𝐾))
3937, 38syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (1st ‘(1st𝑇)):(1...𝑁)⟶(0..^𝐾))
40 elfzoelz 12664 . . . . . . . . . . . . . . . . 17 (𝑛 ∈ (0..^𝐾) → 𝑛 ∈ ℤ)
4140ssriv 3748 . . . . . . . . . . . . . . . 16 (0..^𝐾) ⊆ ℤ
42 fss 6217 . . . . . . . . . . . . . . . 16 (((1st ‘(1st𝑇)):(1...𝑁)⟶(0..^𝐾) ∧ (0..^𝐾) ⊆ ℤ) → (1st ‘(1st𝑇)):(1...𝑁)⟶ℤ)
4339, 41, 42sylancl 697 . . . . . . . . . . . . . . 15 (𝜑 → (1st ‘(1st𝑇)):(1...𝑁)⟶ℤ)
4443adantr 472 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (1st ‘(1st𝑇)):(1...𝑁)⟶ℤ)
45 xp2nd 7366 . . . . . . . . . . . . . . . . 17 ((1st𝑇) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (2nd ‘(1st𝑇)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
4635, 45syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (2nd ‘(1st𝑇)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
47 fvex 6362 . . . . . . . . . . . . . . . . 17 (2nd ‘(1st𝑇)) ∈ V
48 f1oeq1 6288 . . . . . . . . . . . . . . . . 17 (𝑓 = (2nd ‘(1st𝑇)) → (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) ↔ (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁)))
4947, 48elab 3490 . . . . . . . . . . . . . . . 16 ((2nd ‘(1st𝑇)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ↔ (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
5046, 49sylib 208 . . . . . . . . . . . . . . 15 (𝜑 → (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
5150adantr 472 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
522, 30, 44, 51, 8poimirlem1 33723 . . . . . . . . . . . . 13 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ¬ ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛))
5352adantr 472 . . . . . . . . . . . 12 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ¬ ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛))
541ad3antrrr 768 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → 𝑁 ∈ ℕ)
55 fveq2 6352 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (2nd𝑡) = (2nd𝑧))
5655breq2d 4816 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑧 → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑧)))
5756ifbid 4252 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑧 → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)))
5857csbeq1d 3681 . . . . . . . . . . . . . . . . . . . . 21 (𝑡 = 𝑧if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))
59 fveq2 6352 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (1st𝑡) = (1st𝑧))
6059fveq2d 6356 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑧 → (1st ‘(1st𝑡)) = (1st ‘(1st𝑧)))
6159fveq2d 6356 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑡 = 𝑧 → (2nd ‘(1st𝑡)) = (2nd ‘(1st𝑧)))
6261imaeq1d 5623 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑧 → ((2nd ‘(1st𝑡)) “ (1...𝑗)) = ((2nd ‘(1st𝑧)) “ (1...𝑗)))
6362xpeq1d 5295 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}))
6461imaeq1d 5623 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑧 → ((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)))
6564xpeq1d 5295 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))
6663, 65uneq12d 3911 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑧 → ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))
6760, 66oveq12d 6831 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑧 → ((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))
6867csbeq2dv 4135 . . . . . . . . . . . . . . . . . . . . 21 (𝑡 = 𝑧if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))
6958, 68eqtrd 2794 . . . . . . . . . . . . . . . . . . . 20 (𝑡 = 𝑧if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))
7069mpteq2dv 4897 . . . . . . . . . . . . . . . . . . 19 (𝑡 = 𝑧 → (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
7170eqeq2d 2770 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑧 → (𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ↔ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))))
7271, 3elrab2 3507 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 ↔ (𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))))
7372simprbi 483 . . . . . . . . . . . . . . . 16 (𝑧𝑆𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
7473ad2antlr 765 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
75 elrabi 3499 . . . . . . . . . . . . . . . . . . . . 21 (𝑧 ∈ {𝑡 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} → 𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
7675, 3eleq2s 2857 . . . . . . . . . . . . . . . . . . . 20 (𝑧𝑆𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
77 xp1st 7365 . . . . . . . . . . . . . . . . . . . 20 (𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (1st𝑧) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
7876, 77syl 17 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (1st𝑧) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
79 xp1st 7365 . . . . . . . . . . . . . . . . . . 19 ((1st𝑧) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (1st ‘(1st𝑧)) ∈ ((0..^𝐾) ↑𝑚 (1...𝑁)))
8078, 79syl 17 . . . . . . . . . . . . . . . . . 18 (𝑧𝑆 → (1st ‘(1st𝑧)) ∈ ((0..^𝐾) ↑𝑚 (1...𝑁)))
81 elmapi 8045 . . . . . . . . . . . . . . . . . 18 ((1st ‘(1st𝑧)) ∈ ((0..^𝐾) ↑𝑚 (1...𝑁)) → (1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾))
8280, 81syl 17 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 → (1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾))
83 fss 6217 . . . . . . . . . . . . . . . . 17 (((1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾) ∧ (0..^𝐾) ⊆ ℤ) → (1st ‘(1st𝑧)):(1...𝑁)⟶ℤ)
8482, 41, 83sylancl 697 . . . . . . . . . . . . . . . 16 (𝑧𝑆 → (1st ‘(1st𝑧)):(1...𝑁)⟶ℤ)
8584ad2antlr 765 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (1st ‘(1st𝑧)):(1...𝑁)⟶ℤ)
86 xp2nd 7366 . . . . . . . . . . . . . . . . . 18 ((1st𝑧) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (2nd ‘(1st𝑧)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
8778, 86syl 17 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 → (2nd ‘(1st𝑧)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
88 fvex 6362 . . . . . . . . . . . . . . . . . 18 (2nd ‘(1st𝑧)) ∈ V
89 f1oeq1 6288 . . . . . . . . . . . . . . . . . 18 (𝑓 = (2nd ‘(1st𝑧)) → (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) ↔ (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁)))
9088, 89elab 3490 . . . . . . . . . . . . . . . . 17 ((2nd ‘(1st𝑧)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ↔ (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁))
9187, 90sylib 208 . . . . . . . . . . . . . . . 16 (𝑧𝑆 → (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁))
9291ad2antlr 765 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁))
93 simpllr 817 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd𝑇) ∈ (1...(𝑁 − 1)))
94 xp2nd 7366 . . . . . . . . . . . . . . . . . 18 (𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (2nd𝑧) ∈ (0...𝑁))
9576, 94syl 17 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 → (2nd𝑧) ∈ (0...𝑁))
9695adantl 473 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (2nd𝑧) ∈ (0...𝑁))
97 eldifsn 4462 . . . . . . . . . . . . . . . . 17 ((2nd𝑧) ∈ ((0...𝑁) ∖ {(2nd𝑇)}) ↔ ((2nd𝑧) ∈ (0...𝑁) ∧ (2nd𝑧) ≠ (2nd𝑇)))
9897biimpri 218 . . . . . . . . . . . . . . . 16 (((2nd𝑧) ∈ (0...𝑁) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd𝑧) ∈ ((0...𝑁) ∖ {(2nd𝑇)}))
9996, 98sylan 489 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd𝑧) ∈ ((0...𝑁) ∖ {(2nd𝑇)}))
10054, 74, 85, 92, 93, 99poimirlem2 33724 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛))
101100ex 449 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ((2nd𝑧) ≠ (2nd𝑇) → ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛)))
102101necon1bd 2950 . . . . . . . . . . . 12 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (¬ ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛) → (2nd𝑧) = (2nd𝑇)))
10353, 102mpd 15 . . . . . . . . . . 11 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (2nd𝑧) = (2nd𝑇))
104 eleq1 2827 . . . . . . . . . . . . . . . 16 ((2nd𝑧) = (2nd𝑇) → ((2nd𝑧) ∈ (1...(𝑁 − 1)) ↔ (2nd𝑇) ∈ (1...(𝑁 − 1))))
105104biimparc 505 . . . . . . . . . . . . . . 15 (((2nd𝑇) ∈ (1...(𝑁 − 1)) ∧ (2nd𝑧) = (2nd𝑇)) → (2nd𝑧) ∈ (1...(𝑁 − 1)))
106105anim2i 594 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((2nd𝑇) ∈ (1...(𝑁 − 1)) ∧ (2nd𝑧) = (2nd𝑇))) → (𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))))
107106anassrs 683 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ (2nd𝑧) = (2nd𝑇)) → (𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))))
10873adantl 473 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
109 breq1 4807 . . . . . . . . . . . . . . . . . 18 (𝑦 = 0 → (𝑦 < (2nd𝑧) ↔ 0 < (2nd𝑧)))
110 id 22 . . . . . . . . . . . . . . . . . 18 (𝑦 = 0 → 𝑦 = 0)
111109, 110ifbieq1d 4253 . . . . . . . . . . . . . . . . 17 (𝑦 = 0 → if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) = if(0 < (2nd𝑧), 0, (𝑦 + 1)))
112 elfznn 12563 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑧) ∈ (1...(𝑁 − 1)) → (2nd𝑧) ∈ ℕ)
113112nngt0d 11256 . . . . . . . . . . . . . . . . . . 19 ((2nd𝑧) ∈ (1...(𝑁 − 1)) → 0 < (2nd𝑧))
114113iftrued 4238 . . . . . . . . . . . . . . . . . 18 ((2nd𝑧) ∈ (1...(𝑁 − 1)) → if(0 < (2nd𝑧), 0, (𝑦 + 1)) = 0)
115114ad2antlr 765 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → if(0 < (2nd𝑧), 0, (𝑦 + 1)) = 0)
116111, 115sylan9eqr 2816 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑦 = 0) → if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) = 0)
117116csbeq1d 3681 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑦 = 0) → if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = 0 / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))
118 c0ex 10226 . . . . . . . . . . . . . . . . . 18 0 ∈ V
119 oveq2 6821 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑗 = 0 → (1...𝑗) = (1...0))
120 fz10 12555 . . . . . . . . . . . . . . . . . . . . . . . 24 (1...0) = ∅
121119, 120syl6eq 2810 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑗 = 0 → (1...𝑗) = ∅)
122121imaeq2d 5624 . . . . . . . . . . . . . . . . . . . . . 22 (𝑗 = 0 → ((2nd ‘(1st𝑧)) “ (1...𝑗)) = ((2nd ‘(1st𝑧)) “ ∅))
123122xpeq1d 5295 . . . . . . . . . . . . . . . . . . . . 21 (𝑗 = 0 → (((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑧)) “ ∅) × {1}))
124 oveq1 6820 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑗 = 0 → (𝑗 + 1) = (0 + 1))
125 0p1e1 11324 . . . . . . . . . . . . . . . . . . . . . . . . 25 (0 + 1) = 1
126124, 125syl6eq 2810 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑗 = 0 → (𝑗 + 1) = 1)
127126oveq1d 6828 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑗 = 0 → ((𝑗 + 1)...𝑁) = (1...𝑁))
128127imaeq2d 5624 . . . . . . . . . . . . . . . . . . . . . 22 (𝑗 = 0 → ((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑧)) “ (1...𝑁)))
129128xpeq1d 5295 . . . . . . . . . . . . . . . . . . . . 21 (𝑗 = 0 → (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
130123, 129uneq12d 3911 . . . . . . . . . . . . . . . . . . . 20 (𝑗 = 0 → ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑧)) “ ∅) × {1}) ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})))
131 ima0 5639 . . . . . . . . . . . . . . . . . . . . . . . 24 ((2nd ‘(1st𝑧)) “ ∅) = ∅
132131xpeq1i 5292 . . . . . . . . . . . . . . . . . . . . . . 23 (((2nd ‘(1st𝑧)) “ ∅) × {1}) = (∅ × {1})
133 0xp 5356 . . . . . . . . . . . . . . . . . . . . . . 23 (∅ × {1}) = ∅
134132, 133eqtri 2782 . . . . . . . . . . . . . . . . . . . . . 22 (((2nd ‘(1st𝑧)) “ ∅) × {1}) = ∅
135134uneq1i 3906 . . . . . . . . . . . . . . . . . . . . 21 ((((2nd ‘(1st𝑧)) “ ∅) × {1}) ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = (∅ ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
136 uncom 3900 . . . . . . . . . . . . . . . . . . . . 21 (∅ ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = ((((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}) ∪ ∅)
137 un0 4110 . . . . . . . . . . . . . . . . . . . . 21 ((((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}) ∪ ∅) = (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})
138135, 136, 1373eqtri 2786 . . . . . . . . . . . . . . . . . . . 20 ((((2nd ‘(1st𝑧)) “ ∅) × {1}) ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})
139130, 138syl6eq 2810 . . . . . . . . . . . . . . . . . . 19 (𝑗 = 0 → ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})) = (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
140139oveq2d 6829 . . . . . . . . . . . . . . . . . 18 (𝑗 = 0 → ((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑧)) ∘𝑓 + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})))
141118, 140csbie 3700 . . . . . . . . . . . . . . . . 17 0 / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑧)) ∘𝑓 + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
142 f1ofo 6305 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁) → (2nd ‘(1st𝑧)):(1...𝑁)–onto→(1...𝑁))
14391, 142syl 17 . . . . . . . . . . . . . . . . . . . . 21 (𝑧𝑆 → (2nd ‘(1st𝑧)):(1...𝑁)–onto→(1...𝑁))
144 foima 6281 . . . . . . . . . . . . . . . . . . . . 21 ((2nd ‘(1st𝑧)):(1...𝑁)–onto→(1...𝑁) → ((2nd ‘(1st𝑧)) “ (1...𝑁)) = (1...𝑁))
145143, 144syl 17 . . . . . . . . . . . . . . . . . . . 20 (𝑧𝑆 → ((2nd ‘(1st𝑧)) “ (1...𝑁)) = (1...𝑁))
146145xpeq1d 5295 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}) = ((1...𝑁) × {0}))
147146oveq2d 6829 . . . . . . . . . . . . . . . . . 18 (𝑧𝑆 → ((1st ‘(1st𝑧)) ∘𝑓 + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = ((1st ‘(1st𝑧)) ∘𝑓 + ((1...𝑁) × {0})))
148 ovexd 6843 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (1...𝑁) ∈ V)
149 ffn 6206 . . . . . . . . . . . . . . . . . . . 20 ((1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾) → (1st ‘(1st𝑧)) Fn (1...𝑁))
15082, 149syl 17 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (1st ‘(1st𝑧)) Fn (1...𝑁))
151 fnconstg 6254 . . . . . . . . . . . . . . . . . . . 20 (0 ∈ V → ((1...𝑁) × {0}) Fn (1...𝑁))
152118, 151mp1i 13 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → ((1...𝑁) × {0}) Fn (1...𝑁))
153 eqidd 2761 . . . . . . . . . . . . . . . . . . 19 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) = ((1st ‘(1st𝑧))‘𝑛))
154118fvconst2 6633 . . . . . . . . . . . . . . . . . . . 20 (𝑛 ∈ (1...𝑁) → (((1...𝑁) × {0})‘𝑛) = 0)
155154adantl 473 . . . . . . . . . . . . . . . . . . 19 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → (((1...𝑁) × {0})‘𝑛) = 0)
15682ffvelrnda 6522 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) ∈ (0..^𝐾))
157 elfzonn0 12707 . . . . . . . . . . . . . . . . . . . . . 22 (((1st ‘(1st𝑧))‘𝑛) ∈ (0..^𝐾) → ((1st ‘(1st𝑧))‘𝑛) ∈ ℕ0)
158156, 157syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) ∈ ℕ0)
159158nn0cnd 11545 . . . . . . . . . . . . . . . . . . . 20 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) ∈ ℂ)
160159addid1d 10428 . . . . . . . . . . . . . . . . . . 19 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → (((1st ‘(1st𝑧))‘𝑛) + 0) = ((1st ‘(1st𝑧))‘𝑛))
161148, 150, 152, 150, 153, 155, 160offveq 7083 . . . . . . . . . . . . . . . . . 18 (𝑧𝑆 → ((1st ‘(1st𝑧)) ∘𝑓 + ((1...𝑁) × {0})) = (1st ‘(1st𝑧)))
162147, 161eqtrd 2794 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 → ((1st ‘(1st𝑧)) ∘𝑓 + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = (1st ‘(1st𝑧)))
163141, 162syl5eq 2806 . . . . . . . . . . . . . . . 16 (𝑧𝑆0 / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = (1st ‘(1st𝑧)))
164163ad2antlr 765 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑦 = 0) → 0 / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = (1st ‘(1st𝑧)))
165117, 164eqtrd 2794 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑦 = 0) → if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = (1st ‘(1st𝑧)))
166 nnm1nn0 11526 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ ℕ → (𝑁 − 1) ∈ ℕ0)
1671, 166syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (𝑁 − 1) ∈ ℕ0)
168 0elfz 12630 . . . . . . . . . . . . . . . 16 ((𝑁 − 1) ∈ ℕ0 → 0 ∈ (0...(𝑁 − 1)))
169167, 168syl 17 . . . . . . . . . . . . . . 15 (𝜑 → 0 ∈ (0...(𝑁 − 1)))
170169ad2antrr 764 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → 0 ∈ (0...(𝑁 − 1)))
171 fvexd 6364 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (1st ‘(1st𝑧)) ∈ V)
172108, 165, 170, 171fvmptd 6450 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑧)))
173107, 172sylan 489 . . . . . . . . . . . 12 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ (2nd𝑧) = (2nd𝑇)) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑧)))
174173an32s 881 . . . . . . . . . . 11 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) = (2nd𝑇)) → (𝐹‘0) = (1st ‘(1st𝑧)))
175103, 174mpdan 705 . . . . . . . . . 10 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑧)))
176 fveq2 6352 . . . . . . . . . . . . . . . 16 (𝑧 = 𝑇 → (2nd𝑧) = (2nd𝑇))
177176eleq1d 2824 . . . . . . . . . . . . . . 15 (𝑧 = 𝑇 → ((2nd𝑧) ∈ (1...(𝑁 − 1)) ↔ (2nd𝑇) ∈ (1...(𝑁 − 1))))
178177anbi2d 742 . . . . . . . . . . . . . 14 (𝑧 = 𝑇 → ((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ↔ (𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1)))))
179 fveq2 6352 . . . . . . . . . . . . . . . 16 (𝑧 = 𝑇 → (1st𝑧) = (1st𝑇))
180179fveq2d 6356 . . . . . . . . . . . . . . 15 (𝑧 = 𝑇 → (1st ‘(1st𝑧)) = (1st ‘(1st𝑇)))
181180eqeq2d 2770 . . . . . . . . . . . . . 14 (𝑧 = 𝑇 → ((𝐹‘0) = (1st ‘(1st𝑧)) ↔ (𝐹‘0) = (1st ‘(1st𝑇))))
182178, 181imbi12d 333 . . . . . . . . . . . . 13 (𝑧 = 𝑇 → (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑧))) ↔ ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑇)))))
183172expcom 450 . . . . . . . . . . . . 13 (𝑧𝑆 → ((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑧))))
184182, 183vtoclga 3412 . . . . . . . . . . . 12 (𝑇𝑆 → ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑇))))
1857, 184mpcom 38 . . . . . . . . . . 11 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑇)))
186185adantr 472 . . . . . . . . . 10 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑇)))
187175, 186eqtr3d 2796 . . . . . . . . 9 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (1st ‘(1st𝑧)) = (1st ‘(1st𝑇)))
188187adantr 472 . . . . . . . 8 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (1st ‘(1st𝑧)) = (1st ‘(1st𝑇)))
1891ad3antrrr 768 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → 𝑁 ∈ ℕ)
1906ad3antrrr 768 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → 𝑇𝑆)
191 simpllr 817 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd𝑇) ∈ (1...(𝑁 − 1)))
192 simplr 809 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → 𝑧𝑆)
19335adantr 472 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (1st𝑇) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
194 xpopth 7374 . . . . . . . . . . . . . 14 (((1st𝑧) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (1st𝑇) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})) → (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇))) ↔ (1st𝑧) = (1st𝑇)))
19578, 193, 194syl2anr 496 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇))) ↔ (1st𝑧) = (1st𝑇)))
19633adantr 472 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
197 xpopth 7374 . . . . . . . . . . . . . . . 16 ((𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (((1st𝑧) = (1st𝑇) ∧ (2nd𝑧) = (2nd𝑇)) ↔ 𝑧 = 𝑇))
198197biimpd 219 . . . . . . . . . . . . . . 15 ((𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (((1st𝑧) = (1st𝑇) ∧ (2nd𝑧) = (2nd𝑇)) → 𝑧 = 𝑇))
19976, 196, 198syl2anr 496 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (((1st𝑧) = (1st𝑇) ∧ (2nd𝑧) = (2nd𝑇)) → 𝑧 = 𝑇))
200103, 199mpan2d 712 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ((1st𝑧) = (1st𝑇) → 𝑧 = 𝑇))
201195, 200sylbid 230 . . . . . . . . . . . 12 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇))) → 𝑧 = 𝑇))
202187, 201mpand 713 . . . . . . . . . . 11 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ((2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇)) → 𝑧 = 𝑇))
203202necon3d 2953 . . . . . . . . . 10 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝑧𝑇 → (2nd ‘(1st𝑧)) ≠ (2nd ‘(1st𝑇))))
204203imp 444 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd ‘(1st𝑧)) ≠ (2nd ‘(1st𝑇)))
205189, 3, 190, 191, 192, 204poimirlem9 33731 . . . . . . . 8 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))))
206103adantr 472 . . . . . . . 8 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd𝑧) = (2nd𝑇))
207188, 205, 206jca31 558 . . . . . . 7 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))) ∧ (2nd𝑧) = (2nd𝑇)))
208207ex 449 . . . . . 6 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝑧𝑇 → (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))) ∧ (2nd𝑧) = (2nd𝑇))))
209 simplr 809 . . . . . . . 8 ((((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))) ∧ (2nd𝑧) = (2nd𝑇)) → (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))))
210 elfznn 12563 . . . . . . . . . . . . . 14 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ∈ ℕ)
211210nnred 11227 . . . . . . . . . . . . 13 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ∈ ℝ)
212211ltp1d 11146 . . . . . . . . . . . . 13 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) < ((2nd𝑇) + 1))
213211, 212ltned 10365 . . . . . . . . . . . 12 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ≠ ((2nd𝑇) + 1))
214213adantl 473 . . . . . . . . . . 11 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd𝑇) ≠ ((2nd𝑇) + 1))
215 fveq1 6351 . . . . . . . . . . . . 13 ((2nd ‘(1st𝑇)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) → ((2nd ‘(1st𝑇))‘(2nd𝑇)) = (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)))
216 id 22 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd𝑇) ∈ ℝ → (2nd𝑇) ∈ ℝ)
217 ltp1 11053 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd𝑇) ∈ ℝ → (2nd𝑇) < ((2nd𝑇) + 1))
218216, 217ltned 10365 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ∈ ℝ → (2nd𝑇) ≠ ((2nd𝑇) + 1))
219 fvex 6362 . . . . . . . . . . . . . . . . . . . . . 22 (2nd𝑇) ∈ V
220 ovex 6841 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd𝑇) + 1) ∈ V
221219, 220, 220, 219fpr 6584 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ≠ ((2nd𝑇) + 1) → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}⟶{((2nd𝑇) + 1), (2nd𝑇)})
222218, 221syl 17 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ ℝ → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}⟶{((2nd𝑇) + 1), (2nd𝑇)})
223 f1oi 6335 . . . . . . . . . . . . . . . . . . . . 21 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})–1-1-onto→((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
224 f1of 6298 . . . . . . . . . . . . . . . . . . . . 21 (( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})–1-1-onto→((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) → ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})⟶((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
225223, 224ax-mp 5 . . . . . . . . . . . . . . . . . . . 20 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})⟶((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
226 disjdif 4184 . . . . . . . . . . . . . . . . . . . . 21 ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ∅
227 fun 6227 . . . . . . . . . . . . . . . . . . . . 21 ((({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}⟶{((2nd𝑇) + 1), (2nd𝑇)} ∧ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((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)}))⟶({((2nd𝑇) + 1), (2nd𝑇)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
228226, 227mpan2 709 . . . . . . . . . . . . . . . . . . . 20 (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}⟶{((2nd𝑇) + 1), (2nd𝑇)} ∧ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((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)}))⟶({((2nd𝑇) + 1), (2nd𝑇)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
229222, 225, 228sylancl 697 . . . . . . . . . . . . . . . . . . 19 ((2nd𝑇) ∈ ℝ → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))):({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))⟶({((2nd𝑇) + 1), (2nd𝑇)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
230219prid1 4441 . . . . . . . . . . . . . . . . . . . 20 (2nd𝑇) ∈ {(2nd𝑇), ((2nd𝑇) + 1)}
231 elun1 3923 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ {(2nd𝑇), ((2nd𝑇) + 1)} → (2nd𝑇) ∈ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
232230, 231ax-mp 5 . . . . . . . . . . . . . . . . . . 19 (2nd𝑇) ∈ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
233 fvco3 6437 . . . . . . . . . . . . . . . . . . 19 ((({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))):({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))⟶({((2nd𝑇) + 1), (2nd𝑇)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) ∧ (2nd𝑇) ∈ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))) → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘(({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))‘(2nd𝑇))))
234229, 232, 233sylancl 697 . . . . . . . . . . . . . . . . . 18 ((2nd𝑇) ∈ ℝ → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘(({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))‘(2nd𝑇))))
235 ffn 6206 . . . . . . . . . . . . . . . . . . . . . 22 ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}⟶{((2nd𝑇) + 1), (2nd𝑇)} → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)})
236222, 235syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ∈ ℝ → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)})
237 fnresi 6169 . . . . . . . . . . . . . . . . . . . . . 22 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) Fn ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
238226, 230pm3.2i 470 . . . . . . . . . . . . . . . . . . . . . 22 (({(2nd𝑇), ((2nd𝑇) + 1)} ∩ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ∅ ∧ (2nd𝑇) ∈ {(2nd𝑇), ((2nd𝑇) + 1)})
239 fvun1 6431 . . . . . . . . . . . . . . . . . . . . . 22 (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)} ∧ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) Fn ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}) ∧ (({(2nd𝑇), ((2nd𝑇) + 1)} ∩ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ∅ ∧ (2nd𝑇) ∈ {(2nd𝑇), ((2nd𝑇) + 1)})) → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))‘(2nd𝑇)) = ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}‘(2nd𝑇)))
240237, 238, 239mp3an23 1565 . . . . . . . . . . . . . . . . . . . . 21 ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)} → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))‘(2nd𝑇)) = ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}‘(2nd𝑇)))
241236, 240syl 17 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ ℝ → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))‘(2nd𝑇)) = ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}‘(2nd𝑇)))
242219, 220fvpr1 6620 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ≠ ((2nd𝑇) + 1) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}‘(2nd𝑇)) = ((2nd𝑇) + 1))
243218, 242syl 17 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ ℝ → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}‘(2nd𝑇)) = ((2nd𝑇) + 1))
244241, 243eqtrd 2794 . . . . . . . . . . . . . . . . . . 19 ((2nd𝑇) ∈ ℝ → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))‘(2nd𝑇)) = ((2nd𝑇) + 1))
245244fveq2d 6356 . . . . . . . . . . . . . . . . . 18 ((2nd𝑇) ∈ ℝ → ((2nd ‘(1st𝑇))‘(({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))‘(2nd𝑇))) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)))
246234, 245eqtrd 2794 . . . . . . . . . . . . . . . . 17 ((2nd𝑇) ∈ ℝ → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)))
247211, 246syl 17 . . . . . . . . . . . . . . . 16 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)))
248247eqeq2d 2770 . . . . . . . . . . . . . . 15 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (((2nd ‘(1st𝑇))‘(2nd𝑇)) = (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)) ↔ ((2nd ‘(1st𝑇))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1))))
249248adantl 473 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (((2nd ‘(1st𝑇))‘(2nd𝑇)) = (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)) ↔ ((2nd ‘(1st𝑇))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1))))
250 f1of1 6297 . . . . . . . . . . . . . . . . 17 ((2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁) → (2nd ‘(1st𝑇)):(1...𝑁)–1-1→(1...𝑁))
25150, 250syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (2nd ‘(1st𝑇)):(1...𝑁)–1-1→(1...𝑁))
252251adantr 472 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd ‘(1st𝑇)):(1...𝑁)–1-1→(1...𝑁))
2531nncnd 11228 . . . . . . . . . . . . . . . . . . 19 (𝜑𝑁 ∈ ℂ)
254 npcan1 10647 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ ℂ → ((𝑁 − 1) + 1) = 𝑁)
255253, 254syl 17 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((𝑁 − 1) + 1) = 𝑁)
256167nn0zd 11672 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (𝑁 − 1) ∈ ℤ)
257 uzid 11894 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 − 1) ∈ ℤ → (𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)))
258256, 257syl 17 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)))
259 peano2uz 11934 . . . . . . . . . . . . . . . . . . 19 ((𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)) → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
260258, 259syl 17 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
261255, 260eqeltrrd 2840 . . . . . . . . . . . . . . . . 17 (𝜑𝑁 ∈ (ℤ‘(𝑁 − 1)))
262 fzss2 12574 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ (ℤ‘(𝑁 − 1)) → (1...(𝑁 − 1)) ⊆ (1...𝑁))
263261, 262syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (1...(𝑁 − 1)) ⊆ (1...𝑁))
264263sselda 3744 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd𝑇) ∈ (1...𝑁))
265 fzp1elp1 12587 . . . . . . . . . . . . . . . . 17 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → ((2nd𝑇) + 1) ∈ (1...((𝑁 − 1) + 1)))
266265adantl 473 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) + 1) ∈ (1...((𝑁 − 1) + 1)))
267255oveq2d 6829 . . . . . . . . . . . . . . . . 17 (𝜑 → (1...((𝑁 − 1) + 1)) = (1...𝑁))
268267adantr 472 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (1...((𝑁 − 1) + 1)) = (1...𝑁))
269266, 268eleqtrd 2841 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) + 1) ∈ (1...𝑁))
270 f1veqaeq 6677 . . . . . . . . . . . . . . 15 (((2nd ‘(1st𝑇)):(1...𝑁)–1-1→(1...𝑁) ∧ ((2nd𝑇) ∈ (1...𝑁) ∧ ((2nd𝑇) + 1) ∈ (1...𝑁))) → (((2nd ‘(1st𝑇))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)) → (2nd𝑇) = ((2nd𝑇) + 1)))
271252, 264, 269, 270syl12anc 1475 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (((2nd ‘(1st𝑇))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)) → (2nd𝑇) = ((2nd𝑇) + 1)))
272249, 271sylbid 230 . . . . . . . . . . . . 13 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (((2nd ‘(1st𝑇))‘(2nd𝑇)) = (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)) → (2nd𝑇) = ((2nd𝑇) + 1)))
273215, 272syl5 34 . . . . . . . . . . . 12 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd ‘(1st𝑇)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) → (2nd𝑇) = ((2nd𝑇) + 1)))
274273necon3d 2953 . . . . . . . . . . 11 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) ≠ ((2nd𝑇) + 1) → (2nd ‘(1st𝑇)) ≠ ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))))
275214, 274mpd 15 . . . . . . . . . 10 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd ‘(1st𝑇)) ≠ ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))))
276179fveq2d 6356 . . . . . . . . . . 11 (𝑧 = 𝑇 → (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇)))
277276neeq1d 2991 . . . . . . . . . 10 (𝑧 = 𝑇 → ((2nd ‘(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)}))))))
278275, 277syl5ibrcom 237 . . . . . . . . 9 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝑧 = 𝑇 → (2nd ‘(1st𝑧)) ≠ ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))))
279278necon2d 2955 . . . . . . . 8 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) → 𝑧𝑇))
280209, 279syl5 34 . . . . . . 7 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))) ∧ (2nd𝑧) = (2nd𝑇)) → 𝑧𝑇))
281280adantr 472 . . . . . 6 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ((((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))) ∧ (2nd𝑧) = (2nd𝑇)) → 𝑧𝑇))
282208, 281impbid 202 . . . . 5 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝑧𝑇 ↔ (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))) ∧ (2nd𝑧) = (2nd𝑇))))
283 eqop 7375 . . . . . . . 8 (𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (𝑧 = ⟨⟨(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)}))))⟩ ∧ (2nd𝑧) = (2nd𝑇))))
284 eqop 7375 . . . . . . . . . 10 ((1st𝑧) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → ((1st𝑧) = ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ ↔ ((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))))))
28577, 284syl 17 . . . . . . . . 9 (𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → ((1st𝑧) = ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ ↔ ((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))))))
286285anbi1d 743 . . . . . . . 8 (𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (((1st𝑧) = ⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩ ∧ (2nd𝑧) = (2nd𝑇)) ↔ (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))) ∧ (2nd𝑧) = (2nd𝑇))))
287283, 286bitrd 268 . . . . . . 7 (𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (𝑧 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ ↔ (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))) ∧ (2nd𝑧) = (2nd𝑇))))
28876, 287syl 17 . . . . . 6 (𝑧𝑆 → (𝑧 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ ↔ (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))) ∧ (2nd𝑧) = (2nd𝑇))))
289288adantl 473 . . . . 5 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝑧 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ ↔ (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))) ∧ (2nd𝑧) = (2nd𝑇))))
290282, 289bitr4d 271 . . . 4 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝑧𝑇𝑧 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩))
291290ralrimiva 3104 . . 3 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ∀𝑧𝑆 (𝑧𝑇𝑧 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩))
292 reu6i 3538 . . 3 ((⟨⟨(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𝑇)⟩)) → ∃!𝑧𝑆 𝑧𝑇)
2939, 291, 292syl2anc 696 . 2 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ∃!𝑧𝑆 𝑧𝑇)
294 xp2nd 7366 . . . . . . 7 (𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (2nd𝑇) ∈ (0...𝑁))
29533, 294syl 17 . . . . . 6 (𝜑 → (2nd𝑇) ∈ (0...𝑁))
296295biantrurd 530 . . . . 5 (𝜑 → (¬ (2nd𝑇) ∈ (1...(𝑁 − 1)) ↔ ((2nd𝑇) ∈ (0...𝑁) ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1)))))
2971nnnn0d 11543 . . . . . . . . . . . 12 (𝜑𝑁 ∈ ℕ0)
298 nn0uz 11915 . . . . . . . . . . . 12 0 = (ℤ‘0)
299297, 298syl6eleq 2849 . . . . . . . . . . 11 (𝜑𝑁 ∈ (ℤ‘0))
300 fzpred 12582 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘0) → (0...𝑁) = ({0} ∪ ((0 + 1)...𝑁)))
301299, 300syl 17 . . . . . . . . . 10 (𝜑 → (0...𝑁) = ({0} ∪ ((0 + 1)...𝑁)))
302125oveq1i 6823 . . . . . . . . . . 11 ((0 + 1)...𝑁) = (1...𝑁)
303302uneq2i 3907 . . . . . . . . . 10 ({0} ∪ ((0 + 1)...𝑁)) = ({0} ∪ (1...𝑁))
304301, 303syl6eq 2810 . . . . . . . . 9 (𝜑 → (0...𝑁) = ({0} ∪ (1...𝑁)))
305304difeq1d 3870 . . . . . . . 8 (𝜑 → ((0...𝑁) ∖ (1...(𝑁 − 1))) = (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))))
306 difundir 4023 . . . . . . . . . 10 (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))) = (({0} ∖ (1...(𝑁 − 1))) ∪ ((1...𝑁) ∖ (1...(𝑁 − 1))))
307 0lt1 10742 . . . . . . . . . . . . . 14 0 < 1
308 0re 10232 . . . . . . . . . . . . . . 15 0 ∈ ℝ
309 1re 10231 . . . . . . . . . . . . . . 15 1 ∈ ℝ
310308, 309ltnlei 10350 . . . . . . . . . . . . . 14 (0 < 1 ↔ ¬ 1 ≤ 0)
311307, 310mpbi 220 . . . . . . . . . . . . 13 ¬ 1 ≤ 0
312 elfzle1 12537 . . . . . . . . . . . . 13 (0 ∈ (1...(𝑁 − 1)) → 1 ≤ 0)
313311, 312mto 188 . . . . . . . . . . . 12 ¬ 0 ∈ (1...(𝑁 − 1))
314 incom 3948 . . . . . . . . . . . . . 14 ((1...(𝑁 − 1)) ∩ {0}) = ({0} ∩ (1...(𝑁 − 1)))
315314eqeq1i 2765 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {0}) = ∅ ↔ ({0} ∩ (1...(𝑁 − 1))) = ∅)
316 disjsn 4390 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {0}) = ∅ ↔ ¬ 0 ∈ (1...(𝑁 − 1)))
317 disj3 4164 . . . . . . . . . . . . 13 (({0} ∩ (1...(𝑁 − 1))) = ∅ ↔ {0} = ({0} ∖ (1...(𝑁 − 1))))
318315, 316, 3173bitr3i 290 . . . . . . . . . . . 12 (¬ 0 ∈ (1...(𝑁 − 1)) ↔ {0} = ({0} ∖ (1...(𝑁 − 1))))
319313, 318mpbi 220 . . . . . . . . . . 11 {0} = ({0} ∖ (1...(𝑁 − 1)))
320319uneq1i 3906 . . . . . . . . . 10 ({0} ∪ ((1...𝑁) ∖ (1...(𝑁 − 1)))) = (({0} ∖ (1...(𝑁 − 1))) ∪ ((1...𝑁) ∖ (1...(𝑁 − 1))))
321306, 320eqtr4i 2785 . . . . . . . . 9 (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))) = ({0} ∪ ((1...𝑁) ∖ (1...(𝑁 − 1))))
322 difundir 4023 . . . . . . . . . . . 12 (((1...(𝑁 − 1)) ∪ {𝑁}) ∖ (1...(𝑁 − 1))) = (((1...(𝑁 − 1)) ∖ (1...(𝑁 − 1))) ∪ ({𝑁} ∖ (1...(𝑁 − 1))))
323 difid 4091 . . . . . . . . . . . . 13 ((1...(𝑁 − 1)) ∖ (1...(𝑁 − 1))) = ∅
324323uneq1i 3906 . . . . . . . . . . . 12 (((1...(𝑁 − 1)) ∖ (1...(𝑁 − 1))) ∪ ({𝑁} ∖ (1...(𝑁 − 1)))) = (∅ ∪ ({𝑁} ∖ (1...(𝑁 − 1))))
325 uncom 3900 . . . . . . . . . . . . 13 (∅ ∪ ({𝑁} ∖ (1...(𝑁 − 1)))) = (({𝑁} ∖ (1...(𝑁 − 1))) ∪ ∅)
326 un0 4110 . . . . . . . . . . . . 13 (({𝑁} ∖ (1...(𝑁 − 1))) ∪ ∅) = ({𝑁} ∖ (1...(𝑁 − 1)))
327325, 326eqtri 2782 . . . . . . . . . . . 12 (∅ ∪ ({𝑁} ∖ (1...(𝑁 − 1)))) = ({𝑁} ∖ (1...(𝑁 − 1)))
328322, 324, 3273eqtri 2786 . . . . . . . . . . 11 (((1...(𝑁 − 1)) ∪ {𝑁}) ∖ (1...(𝑁 − 1))) = ({𝑁} ∖ (1...(𝑁 − 1)))
329 nnuz 11916 . . . . . . . . . . . . . . . 16 ℕ = (ℤ‘1)
3301, 329syl6eleq 2849 . . . . . . . . . . . . . . 15 (𝜑𝑁 ∈ (ℤ‘1))
331255, 330eqeltrd 2839 . . . . . . . . . . . . . 14 (𝜑 → ((𝑁 − 1) + 1) ∈ (ℤ‘1))
332 fzsplit2 12559 . . . . . . . . . . . . . 14 ((((𝑁 − 1) + 1) ∈ (ℤ‘1) ∧ 𝑁 ∈ (ℤ‘(𝑁 − 1))) → (1...𝑁) = ((1...(𝑁 − 1)) ∪ (((𝑁 − 1) + 1)...𝑁)))
333331, 261, 332syl2anc 696 . . . . . . . . . . . . 13 (𝜑 → (1...𝑁) = ((1...(𝑁 − 1)) ∪ (((𝑁 − 1) + 1)...𝑁)))
334255oveq1d 6828 . . . . . . . . . . . . . . 15 (𝜑 → (((𝑁 − 1) + 1)...𝑁) = (𝑁...𝑁))
3351nnzd 11673 . . . . . . . . . . . . . . . 16 (𝜑𝑁 ∈ ℤ)
336 fzsn 12576 . . . . . . . . . . . . . . . 16 (𝑁 ∈ ℤ → (𝑁...𝑁) = {𝑁})
337335, 336syl 17 . . . . . . . . . . . . . . 15 (𝜑 → (𝑁...𝑁) = {𝑁})
338334, 337eqtrd 2794 . . . . . . . . . . . . . 14 (𝜑 → (((𝑁 − 1) + 1)...𝑁) = {𝑁})
339338uneq2d 3910 . . . . . . . . . . . . 13 (𝜑 → ((1...(𝑁 − 1)) ∪ (((𝑁 − 1) + 1)...𝑁)) = ((1...(𝑁 − 1)) ∪ {𝑁}))
340333, 339eqtrd 2794 . . . . . . . . . . . 12 (𝜑 → (1...𝑁) = ((1...(𝑁 − 1)) ∪ {𝑁}))
341340difeq1d 3870 . . . . . . . . . . 11 (𝜑 → ((1...𝑁) ∖ (1...(𝑁 − 1))) = (((1...(𝑁 − 1)) ∪ {𝑁}) ∖ (1...(𝑁 − 1))))
3421nnred 11227 . . . . . . . . . . . . . . 15 (𝜑𝑁 ∈ ℝ)
343342ltm1d 11148 . . . . . . . . . . . . . 14 (𝜑 → (𝑁 − 1) < 𝑁)
344167nn0red 11544 . . . . . . . . . . . . . . 15 (𝜑 → (𝑁 − 1) ∈ ℝ)
345344, 342ltnled 10376 . . . . . . . . . . . . . 14 (𝜑 → ((𝑁 − 1) < 𝑁 ↔ ¬ 𝑁 ≤ (𝑁 − 1)))
346343, 345mpbid 222 . . . . . . . . . . . . 13 (𝜑 → ¬ 𝑁 ≤ (𝑁 − 1))
347 elfzle2 12538 . . . . . . . . . . . . 13 (𝑁 ∈ (1...(𝑁 − 1)) → 𝑁 ≤ (𝑁 − 1))
348346, 347nsyl 135 . . . . . . . . . . . 12 (𝜑 → ¬ 𝑁 ∈ (1...(𝑁 − 1)))
349 incom 3948 . . . . . . . . . . . . . 14 ((1...(𝑁 − 1)) ∩ {𝑁}) = ({𝑁} ∩ (1...(𝑁 − 1)))
350349eqeq1i 2765 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {𝑁}) = ∅ ↔ ({𝑁} ∩ (1...(𝑁 − 1))) = ∅)
351 disjsn 4390 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {𝑁}) = ∅ ↔ ¬ 𝑁 ∈ (1...(𝑁 − 1)))
352 disj3 4164 . . . . . . . . . . . . 13 (({𝑁} ∩ (1...(𝑁 − 1))) = ∅ ↔ {𝑁} = ({𝑁} ∖ (1...(𝑁 − 1))))
353350, 351, 3523bitr3i 290 . . . . . . . . . . . 12 𝑁 ∈ (1...(𝑁 − 1)) ↔ {𝑁} = ({𝑁} ∖ (1...(𝑁 − 1))))
354348, 353sylib 208 . . . . . . . . . . 11 (𝜑 → {𝑁} = ({𝑁} ∖ (1...(𝑁 − 1))))
355328, 341, 3543eqtr4a 2820 . . . . . . . . . 10 (𝜑 → ((1...𝑁) ∖ (1...(𝑁 − 1))) = {𝑁})
356355uneq2d 3910 . . . . . . . . 9 (𝜑 → ({0} ∪ ((1...𝑁) ∖ (1...(𝑁 − 1)))) = ({0} ∪ {𝑁}))
357321, 356syl5eq 2806 . . . . . . . 8 (𝜑 → (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))) = ({0} ∪ {𝑁}))
358305, 357eqtrd 2794 . . . . . . 7 (𝜑 → ((0...𝑁) ∖ (1...(𝑁 − 1))) = ({0} ∪ {𝑁}))
359358eleq2d 2825 . . . . . 6 (𝜑 → ((2nd𝑇) ∈ ((0...𝑁) ∖ (1...(𝑁 − 1))) ↔ (2nd𝑇) ∈ ({0} ∪ {𝑁})))
360 eldif 3725 . . . . . 6 ((2nd𝑇) ∈ ((0...𝑁) ∖ (1...(𝑁 − 1))) ↔ ((2nd𝑇) ∈ (0...𝑁) ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))))
361 elun 3896 . . . . . . 7 ((2nd𝑇) ∈ ({0} ∪ {𝑁}) ↔ ((2nd𝑇) ∈ {0} ∨ (2nd𝑇) ∈ {𝑁}))
362219elsn 4336 . . . . . . . 8 ((2nd𝑇) ∈ {0} ↔ (2nd𝑇) = 0)
363219elsn 4336 . . . . . . . 8 ((2nd𝑇) ∈ {𝑁} ↔ (2nd𝑇) = 𝑁)
364362, 363orbi12i 544 . . . . . . 7 (((2nd𝑇) ∈ {0} ∨ (2nd𝑇) ∈ {𝑁}) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁))
365361, 364bitri 264 . . . . . 6 ((2nd𝑇) ∈ ({0} ∪ {𝑁}) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁))
366359, 360, 3653bitr3g 302 . . . . 5 (𝜑 → (((2nd𝑇) ∈ (0...𝑁) ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁)))
367296, 366bitrd 268 . . . 4 (𝜑 → (¬ (2nd𝑇) ∈ (1...(𝑁 − 1)) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁)))
368367biimpa 502 . . 3 ((𝜑 ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁))
3691adantr 472 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → 𝑁 ∈ ℕ)
3704adantr 472 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → 𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑𝑚 (1...𝑁)))
3716adantr 472 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → 𝑇𝑆)
372 poimirlem22.4 . . . . . 6 ((𝜑𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 𝐾)
373372adantlr 753 . . . . 5 (((𝜑 ∧ (2nd𝑇) = 0) ∧ 𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 𝐾)
374 simpr 479 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → (2nd𝑇) = 0)
375369, 3, 370, 371, 373, 374poimirlem18 33740 . . . 4 ((𝜑 ∧ (2nd𝑇) = 0) → ∃!𝑧𝑆 𝑧𝑇)
3761adantr 472 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → 𝑁 ∈ ℕ)
3774adantr 472 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → 𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑𝑚 (1...𝑁)))
3786adantr 472 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → 𝑇𝑆)
379 poimirlem22.3 . . . . . 6 ((𝜑𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 0)
380379adantlr 753 . . . . 5 (((𝜑 ∧ (2nd𝑇) = 𝑁) ∧ 𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 0)
381 simpr 479 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → (2nd𝑇) = 𝑁)
382376, 3, 377, 378, 380, 381poimirlem21 33743 . . . 4 ((𝜑 ∧ (2nd𝑇) = 𝑁) → ∃!𝑧𝑆 𝑧𝑇)
383375, 382jaodan 861 . . 3 ((𝜑 ∧ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁)) → ∃!𝑧𝑆 𝑧𝑇)
384368, 383syldan 488 . 2 ((𝜑 ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ∃!𝑧𝑆 𝑧𝑇)
385293, 384pm2.61dan 867 1 (𝜑 → ∃!𝑧𝑆 𝑧𝑇)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wo 382  wa 383   = wceq 1632  wcel 2139  {cab 2746  wne 2932  wral 3050  wrex 3051  ∃!wreu 3052  ∃*wrmo 3053  {crab 3054  Vcvv 3340  csb 3674  cdif 3712  cun 3713  cin 3714  wss 3715  c0 4058  ifcif 4230  {csn 4321  {cpr 4323  cop 4327   class class class wbr 4804  cmpt 4881   I cid 5173   × cxp 5264  ran crn 5267  cres 5268  cima 5269  ccom 5270   Fn wfn 6044  wf 6045  1-1wf1 6046  ontowfo 6047  1-1-ontowf1o 6048  cfv 6049  (class class class)co 6813  𝑓 cof 7060  1st c1st 7331  2nd c2nd 7332  𝑚 cmap 8023  cc 10126  cr 10127  0cc0 10128  1c1 10129   + caddc 10131   < clt 10266  cle 10267  cmin 10458  cn 11212  0cn0 11484  cz 11569  cuz 11879  ...cfz 12519  ..^cfzo 12659
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1871  ax-4 1886  ax-5 1988  ax-6 2054  ax-7 2090  ax-8 2141  ax-9 2148  ax-10 2168  ax-11 2183  ax-12 2196  ax-13 2391  ax-ext 2740  ax-rep 4923  ax-sep 4933  ax-nul 4941  ax-pow 4992  ax-pr 5055  ax-un 7114  ax-cnex 10184  ax-resscn 10185  ax-1cn 10186  ax-icn 10187  ax-addcl 10188  ax-addrcl 10189  ax-mulcl 10190  ax-mulrcl 10191  ax-mulcom 10192  ax-addass 10193  ax-mulass 10194  ax-distr 10195  ax-i2m1 10196  ax-1ne0 10197  ax-1rid 10198  ax-rnegex 10199  ax-rrecex 10200  ax-cnre 10201  ax-pre-lttri 10202  ax-pre-lttrn 10203  ax-pre-ltadd 10204  ax-pre-mulgt0 10205
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1073  df-3an 1074  df-tru 1635  df-fal 1638  df-ex 1854  df-nf 1859  df-sb 2047  df-eu 2611  df-mo 2612  df-clab 2747  df-cleq 2753  df-clel 2756  df-nfc 2891  df-ne 2933  df-nel 3036  df-ral 3055  df-rex 3056  df-reu 3057  df-rmo 3058  df-rab 3059  df-v 3342  df-sbc 3577  df-csb 3675  df-dif 3718  df-un 3720  df-in 3722  df-ss 3729  df-pss 3731  df-nul 4059  df-if 4231  df-pw 4304  df-sn 4322  df-pr 4324  df-tp 4326  df-op 4328  df-uni 4589  df-int 4628  df-iun 4674  df-br 4805  df-opab 4865  df-mpt 4882  df-tr 4905  df-id 5174  df-eprel 5179  df-po 5187  df-so 5188  df-fr 5225  df-we 5227  df-xp 5272  df-rel 5273  df-cnv 5274  df-co 5275  df-dm 5276  df-rn 5277  df-res 5278  df-ima 5279  df-pred 5841  df-ord 5887  df-on 5888  df-lim 5889  df-suc 5890  df-iota 6012  df-fun 6051  df-fn 6052  df-f 6053  df-f1 6054  df-fo 6055  df-f1o 6056  df-fv 6057  df-riota 6774  df-ov 6816  df-oprab 6817  df-mpt2 6818  df-of 7062  df-om 7231  df-1st 7333  df-2nd 7334  df-wrecs 7576  df-recs 7637  df-rdg 7675  df-1o 7729  df-2o 7730  df-oadd 7733  df-er 7911  df-map 8025  df-pm 8026  df-en 8122  df-dom 8123  df-sdom 8124  df-fin 8125  df-card 8955  df-cda 9182  df-pnf 10268  df-mnf 10269  df-xr 10270  df-ltxr 10271  df-le 10272  df-sub 10460  df-neg 10461  df-div 10877  df-nn 11213  df-2 11271  df-3 11272  df-n0 11485  df-xnn0 11556  df-z 11570  df-uz 11880  df-fz 12520  df-fzo 12660  df-seq 12996  df-fac 13255  df-bc 13284  df-hash 13312
This theorem is referenced by:  poimirlem27  33749
  Copyright terms: Public domain W3C validator