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 32397
Description: Lemma for poimir 32408, 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 479 . . . 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 479 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑𝑚 (1...𝑁)))
6 poimirlem22.2 . . . . 5 (𝜑𝑇𝑆)
76adantr 479 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝑇𝑆)
8 simpr 475 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd𝑇) ∈ (1...(𝑁 − 1)))
92, 3, 5, 7, 8poimirlem15 32390 . . 3 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ ∈ 𝑆)
10 fveq2 6088 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (2nd𝑡) = (2nd𝑇))
1110breq2d 4589 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑇 → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑇)))
1211ifbid 4057 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑇 → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)))
1312csbeq1d 3505 . . . . . . . . . . . . . . . . . . . . 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 6088 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (1st𝑡) = (1st𝑇))
1514fveq2d 6092 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑇 → (1st ‘(1st𝑡)) = (1st ‘(1st𝑇)))
1614fveq2d 6092 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑡 = 𝑇 → (2nd ‘(1st𝑡)) = (2nd ‘(1st𝑇)))
1716imaeq1d 5371 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑇 → ((2nd ‘(1st𝑡)) “ (1...𝑗)) = ((2nd ‘(1st𝑇)) “ (1...𝑗)))
1817xpeq1d 5052 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}))
1916imaeq1d 5371 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑇 → ((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)))
2019xpeq1d 5052 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))
2118, 20uneq12d 3729 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑇 → ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))
2215, 21oveq12d 6545 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑇 → ((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘𝑓 + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
2322csbeq2dv 3943 . . . . . . . . . . . . . . . . . . . . 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 2643 . . . . . . . . . . . . . . . . . . . 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 4667 . . . . . . . . . . . . . . . . . . 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 2619 . . . . . . . . . . . . . . . . . 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 3332 . . . . . . . . . . . . . . . . 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 478 . . . . . . . . . . . . . . . 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 479 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘𝑓 + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
31 elrabi 3327 . . . . . . . . . . . . . . . . . . . . 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 2705 . . . . . . . . . . . . . . . . . . . 20 (𝑇𝑆𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
336, 32syl 17 . . . . . . . . . . . . . . . . . . 19 (𝜑𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
34 xp1st 7066 . . . . . . . . . . . . . . . . . . 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 7066 . . . . . . . . . . . . . . . . . 18 ((1st𝑇) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (1st ‘(1st𝑇)) ∈ ((0..^𝐾) ↑𝑚 (1...𝑁)))
3735, 36syl 17 . . . . . . . . . . . . . . . . 17 (𝜑 → (1st ‘(1st𝑇)) ∈ ((0..^𝐾) ↑𝑚 (1...𝑁)))
38 elmapi 7742 . . . . . . . . . . . . . . . . 17 ((1st ‘(1st𝑇)) ∈ ((0..^𝐾) ↑𝑚 (1...𝑁)) → (1st ‘(1st𝑇)):(1...𝑁)⟶(0..^𝐾))
3937, 38syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (1st ‘(1st𝑇)):(1...𝑁)⟶(0..^𝐾))
40 elfzoelz 12294 . . . . . . . . . . . . . . . . 17 (𝑛 ∈ (0..^𝐾) → 𝑛 ∈ ℤ)
4140ssriv 3571 . . . . . . . . . . . . . . . 16 (0..^𝐾) ⊆ ℤ
42 fss 5955 . . . . . . . . . . . . . . . 16 (((1st ‘(1st𝑇)):(1...𝑁)⟶(0..^𝐾) ∧ (0..^𝐾) ⊆ ℤ) → (1st ‘(1st𝑇)):(1...𝑁)⟶ℤ)
4339, 41, 42sylancl 692 . . . . . . . . . . . . . . 15 (𝜑 → (1st ‘(1st𝑇)):(1...𝑁)⟶ℤ)
4443adantr 479 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (1st ‘(1st𝑇)):(1...𝑁)⟶ℤ)
45 xp2nd 7067 . . . . . . . . . . . . . . . . 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 6098 . . . . . . . . . . . . . . . . 17 (2nd ‘(1st𝑇)) ∈ V
48 f1oeq1 6025 . . . . . . . . . . . . . . . . 17 (𝑓 = (2nd ‘(1st𝑇)) → (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) ↔ (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁)))
4947, 48elab 3318 . . . . . . . . . . . . . . . 16 ((2nd ‘(1st𝑇)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ↔ (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
5046, 49sylib 206 . . . . . . . . . . . . . . 15 (𝜑 → (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
5150adantr 479 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
522, 30, 44, 51, 8poimirlem1 32376 . . . . . . . . . . . . 13 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ¬ ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛))
5352adantr 479 . . . . . . . . . . . 12 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ¬ ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛))
541ad3antrrr 761 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → 𝑁 ∈ ℕ)
55 fveq2 6088 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (2nd𝑡) = (2nd𝑧))
5655breq2d 4589 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑧 → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑧)))
5756ifbid 4057 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑧 → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)))
5857csbeq1d 3505 . . . . . . . . . . . . . . . . . . . . 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 6088 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (1st𝑡) = (1st𝑧))
6059fveq2d 6092 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑧 → (1st ‘(1st𝑡)) = (1st ‘(1st𝑧)))
6159fveq2d 6092 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑡 = 𝑧 → (2nd ‘(1st𝑡)) = (2nd ‘(1st𝑧)))
6261imaeq1d 5371 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑧 → ((2nd ‘(1st𝑡)) “ (1...𝑗)) = ((2nd ‘(1st𝑧)) “ (1...𝑗)))
6362xpeq1d 5052 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}))
6461imaeq1d 5371 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑧 → ((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)))
6564xpeq1d 5052 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))
6663, 65uneq12d 3729 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑧 → ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))
6760, 66oveq12d 6545 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑧 → ((1st ‘(1st𝑡)) ∘𝑓 + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))
6867csbeq2dv 3943 . . . . . . . . . . . . . . . . . . . . 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 2643 . . . . . . . . . . . . . . . . . . . 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 4667 . . . . . . . . . . . . . . . . . . 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 2619 . . . . . . . . . . . . . . . . . 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 3332 . . . . . . . . . . . . . . . . 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 478 . . . . . . . . . . . . . . . 16 (𝑧𝑆𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
7473ad2antlr 758 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
75 elrabi 3327 . . . . . . . . . . . . . . . . . . . . 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 2705 . . . . . . . . . . . . . . . . . . . 20 (𝑧𝑆𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
77 xp1st 7066 . . . . . . . . . . . . . . . . . . . 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 7066 . . . . . . . . . . . . . . . . . . 19 ((1st𝑧) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (1st ‘(1st𝑧)) ∈ ((0..^𝐾) ↑𝑚 (1...𝑁)))
8078, 79syl 17 . . . . . . . . . . . . . . . . . 18 (𝑧𝑆 → (1st ‘(1st𝑧)) ∈ ((0..^𝐾) ↑𝑚 (1...𝑁)))
81 elmapi 7742 . . . . . . . . . . . . . . . . . 18 ((1st ‘(1st𝑧)) ∈ ((0..^𝐾) ↑𝑚 (1...𝑁)) → (1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾))
8280, 81syl 17 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 → (1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾))
83 fss 5955 . . . . . . . . . . . . . . . . 17 (((1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾) ∧ (0..^𝐾) ⊆ ℤ) → (1st ‘(1st𝑧)):(1...𝑁)⟶ℤ)
8482, 41, 83sylancl 692 . . . . . . . . . . . . . . . 16 (𝑧𝑆 → (1st ‘(1st𝑧)):(1...𝑁)⟶ℤ)
8584ad2antlr 758 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (1st ‘(1st𝑧)):(1...𝑁)⟶ℤ)
86 xp2nd 7067 . . . . . . . . . . . . . . . . . 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 6098 . . . . . . . . . . . . . . . . . 18 (2nd ‘(1st𝑧)) ∈ V
89 f1oeq1 6025 . . . . . . . . . . . . . . . . . 18 (𝑓 = (2nd ‘(1st𝑧)) → (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) ↔ (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁)))
9088, 89elab 3318 . . . . . . . . . . . . . . . . 17 ((2nd ‘(1st𝑧)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ↔ (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁))
9187, 90sylib 206 . . . . . . . . . . . . . . . 16 (𝑧𝑆 → (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁))
9291ad2antlr 758 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁))
93 simpllr 794 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd𝑇) ∈ (1...(𝑁 − 1)))
94 xp2nd 7067 . . . . . . . . . . . . . . . . . 18 (𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (2nd𝑧) ∈ (0...𝑁))
9576, 94syl 17 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 → (2nd𝑧) ∈ (0...𝑁))
9695adantl 480 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (2nd𝑧) ∈ (0...𝑁))
97 eldifsn 4259 . . . . . . . . . . . . . . . . 17 ((2nd𝑧) ∈ ((0...𝑁) ∖ {(2nd𝑇)}) ↔ ((2nd𝑧) ∈ (0...𝑁) ∧ (2nd𝑧) ≠ (2nd𝑇)))
9897biimpri 216 . . . . . . . . . . . . . . . 16 (((2nd𝑧) ∈ (0...𝑁) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd𝑧) ∈ ((0...𝑁) ∖ {(2nd𝑇)}))
9996, 98sylan 486 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd𝑧) ∈ ((0...𝑁) ∖ {(2nd𝑇)}))
10054, 74, 85, 92, 93, 99poimirlem2 32377 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛))
101100ex 448 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ((2nd𝑧) ≠ (2nd𝑇) → ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛)))
102101necon1bd 2799 . . . . . . . . . . . 12 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (¬ ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛) → (2nd𝑧) = (2nd𝑇)))
10353, 102mpd 15 . . . . . . . . . . 11 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (2nd𝑧) = (2nd𝑇))
104 eleq1 2675 . . . . . . . . . . . . . . . 16 ((2nd𝑧) = (2nd𝑇) → ((2nd𝑧) ∈ (1...(𝑁 − 1)) ↔ (2nd𝑇) ∈ (1...(𝑁 − 1))))
105104biimparc 502 . . . . . . . . . . . . . . 15 (((2nd𝑇) ∈ (1...(𝑁 − 1)) ∧ (2nd𝑧) = (2nd𝑇)) → (2nd𝑧) ∈ (1...(𝑁 − 1)))
106105anim2i 590 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((2nd𝑇) ∈ (1...(𝑁 − 1)) ∧ (2nd𝑧) = (2nd𝑇))) → (𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))))
107106anassrs 677 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ (2nd𝑧) = (2nd𝑇)) → (𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))))
10873adantl 480 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
109 breq1 4580 . . . . . . . . . . . . . . . . . 18 (𝑦 = 0 → (𝑦 < (2nd𝑧) ↔ 0 < (2nd𝑧)))
110 id 22 . . . . . . . . . . . . . . . . . 18 (𝑦 = 0 → 𝑦 = 0)
111109, 110ifbieq1d 4058 . . . . . . . . . . . . . . . . 17 (𝑦 = 0 → if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) = if(0 < (2nd𝑧), 0, (𝑦 + 1)))
112 elfznn 12196 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑧) ∈ (1...(𝑁 − 1)) → (2nd𝑧) ∈ ℕ)
113112nngt0d 10911 . . . . . . . . . . . . . . . . . . 19 ((2nd𝑧) ∈ (1...(𝑁 − 1)) → 0 < (2nd𝑧))
114113iftrued 4043 . . . . . . . . . . . . . . . . . 18 ((2nd𝑧) ∈ (1...(𝑁 − 1)) → if(0 < (2nd𝑧), 0, (𝑦 + 1)) = 0)
115114ad2antlr 758 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → if(0 < (2nd𝑧), 0, (𝑦 + 1)) = 0)
116111, 115sylan9eqr 2665 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑦 = 0) → if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) = 0)
117116csbeq1d 3505 . . . . . . . . . . . . . . 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 9890 . . . . . . . . . . . . . . . . . 18 0 ∈ V
119 oveq2 6535 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑗 = 0 → (1...𝑗) = (1...0))
120 fz10 12188 . . . . . . . . . . . . . . . . . . . . . . . 24 (1...0) = ∅
121119, 120syl6eq 2659 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑗 = 0 → (1...𝑗) = ∅)
122121imaeq2d 5372 . . . . . . . . . . . . . . . . . . . . . 22 (𝑗 = 0 → ((2nd ‘(1st𝑧)) “ (1...𝑗)) = ((2nd ‘(1st𝑧)) “ ∅))
123122xpeq1d 5052 . . . . . . . . . . . . . . . . . . . . 21 (𝑗 = 0 → (((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑧)) “ ∅) × {1}))
124 oveq1 6534 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑗 = 0 → (𝑗 + 1) = (0 + 1))
125 0p1e1 10979 . . . . . . . . . . . . . . . . . . . . . . . . 25 (0 + 1) = 1
126124, 125syl6eq 2659 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑗 = 0 → (𝑗 + 1) = 1)
127126oveq1d 6542 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑗 = 0 → ((𝑗 + 1)...𝑁) = (1...𝑁))
128127imaeq2d 5372 . . . . . . . . . . . . . . . . . . . . . 22 (𝑗 = 0 → ((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑧)) “ (1...𝑁)))
129128xpeq1d 5052 . . . . . . . . . . . . . . . . . . . . 21 (𝑗 = 0 → (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
130123, 129uneq12d 3729 . . . . . . . . . . . . . . . . . . . 20 (𝑗 = 0 → ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑧)) “ ∅) × {1}) ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})))
131 ima0 5387 . . . . . . . . . . . . . . . . . . . . . . . 24 ((2nd ‘(1st𝑧)) “ ∅) = ∅
132131xpeq1i 5049 . . . . . . . . . . . . . . . . . . . . . . 23 (((2nd ‘(1st𝑧)) “ ∅) × {1}) = (∅ × {1})
133 0xp 5112 . . . . . . . . . . . . . . . . . . . . . . 23 (∅ × {1}) = ∅
134132, 133eqtri 2631 . . . . . . . . . . . . . . . . . . . . . 22 (((2nd ‘(1st𝑧)) “ ∅) × {1}) = ∅
135134uneq1i 3724 . . . . . . . . . . . . . . . . . . . . 21 ((((2nd ‘(1st𝑧)) “ ∅) × {1}) ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = (∅ ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
136 uncom 3718 . . . . . . . . . . . . . . . . . . . . 21 (∅ ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = ((((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}) ∪ ∅)
137 un0 3918 . . . . . . . . . . . . . . . . . . . . 21 ((((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}) ∪ ∅) = (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})
138135, 136, 1373eqtri 2635 . . . . . . . . . . . . . . . . . . . 20 ((((2nd ‘(1st𝑧)) “ ∅) × {1}) ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})
139130, 138syl6eq 2659 . . . . . . . . . . . . . . . . . . 19 (𝑗 = 0 → ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})) = (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
140139oveq2d 6543 . . . . . . . . . . . . . . . . . 18 (𝑗 = 0 → ((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑧)) ∘𝑓 + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})))
141118, 140csbie 3524 . . . . . . . . . . . . . . . . 17 0 / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑧)) ∘𝑓 + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
142 f1ofo 6042 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁) → (2nd ‘(1st𝑧)):(1...𝑁)–onto→(1...𝑁))
14391, 142syl 17 . . . . . . . . . . . . . . . . . . . . 21 (𝑧𝑆 → (2nd ‘(1st𝑧)):(1...𝑁)–onto→(1...𝑁))
144 foima 6018 . . . . . . . . . . . . . . . . . . . . 21 ((2nd ‘(1st𝑧)):(1...𝑁)–onto→(1...𝑁) → ((2nd ‘(1st𝑧)) “ (1...𝑁)) = (1...𝑁))
145143, 144syl 17 . . . . . . . . . . . . . . . . . . . 20 (𝑧𝑆 → ((2nd ‘(1st𝑧)) “ (1...𝑁)) = (1...𝑁))
146145xpeq1d 5052 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}) = ((1...𝑁) × {0}))
147146oveq2d 6543 . . . . . . . . . . . . . . . . . 18 (𝑧𝑆 → ((1st ‘(1st𝑧)) ∘𝑓 + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = ((1st ‘(1st𝑧)) ∘𝑓 + ((1...𝑁) × {0})))
148 ovex 6555 . . . . . . . . . . . . . . . . . . . 20 (1...𝑁) ∈ V
149148a1i 11 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (1...𝑁) ∈ V)
150 ffn 5944 . . . . . . . . . . . . . . . . . . . 20 ((1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾) → (1st ‘(1st𝑧)) Fn (1...𝑁))
15182, 150syl 17 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (1st ‘(1st𝑧)) Fn (1...𝑁))
152 fnconstg 5991 . . . . . . . . . . . . . . . . . . . 20 (0 ∈ V → ((1...𝑁) × {0}) Fn (1...𝑁))
153118, 152mp1i 13 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → ((1...𝑁) × {0}) Fn (1...𝑁))
154 eqidd 2610 . . . . . . . . . . . . . . . . . . 19 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) = ((1st ‘(1st𝑧))‘𝑛))
155118fvconst2 6352 . . . . . . . . . . . . . . . . . . . 20 (𝑛 ∈ (1...𝑁) → (((1...𝑁) × {0})‘𝑛) = 0)
156155adantl 480 . . . . . . . . . . . . . . . . . . 19 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → (((1...𝑁) × {0})‘𝑛) = 0)
15782ffvelrnda 6252 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) ∈ (0..^𝐾))
158 elfzonn0 12335 . . . . . . . . . . . . . . . . . . . . . 22 (((1st ‘(1st𝑧))‘𝑛) ∈ (0..^𝐾) → ((1st ‘(1st𝑧))‘𝑛) ∈ ℕ0)
159157, 158syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) ∈ ℕ0)
160159nn0cnd 11200 . . . . . . . . . . . . . . . . . . . 20 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) ∈ ℂ)
161160addid1d 10087 . . . . . . . . . . . . . . . . . . 19 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → (((1st ‘(1st𝑧))‘𝑛) + 0) = ((1st ‘(1st𝑧))‘𝑛))
162149, 151, 153, 151, 154, 156, 161offveq 6793 . . . . . . . . . . . . . . . . . 18 (𝑧𝑆 → ((1st ‘(1st𝑧)) ∘𝑓 + ((1...𝑁) × {0})) = (1st ‘(1st𝑧)))
163147, 162eqtrd 2643 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 → ((1st ‘(1st𝑧)) ∘𝑓 + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = (1st ‘(1st𝑧)))
164141, 163syl5eq 2655 . . . . . . . . . . . . . . . 16 (𝑧𝑆0 / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = (1st ‘(1st𝑧)))
165164ad2antlr 758 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑦 = 0) → 0 / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = (1st ‘(1st𝑧)))
166117, 165eqtrd 2643 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑦 = 0) → if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘𝑓 + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = (1st ‘(1st𝑧)))
167 nnm1nn0 11181 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ ℕ → (𝑁 − 1) ∈ ℕ0)
1681, 167syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (𝑁 − 1) ∈ ℕ0)
169 0elfz 12260 . . . . . . . . . . . . . . . 16 ((𝑁 − 1) ∈ ℕ0 → 0 ∈ (0...(𝑁 − 1)))
170168, 169syl 17 . . . . . . . . . . . . . . 15 (𝜑 → 0 ∈ (0...(𝑁 − 1)))
171170ad2antrr 757 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → 0 ∈ (0...(𝑁 − 1)))
172 fvex 6098 . . . . . . . . . . . . . . 15 (1st ‘(1st𝑧)) ∈ V
173172a1i 11 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (1st ‘(1st𝑧)) ∈ V)
174108, 166, 171, 173fvmptd 6182 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑧)))
175107, 174sylan 486 . . . . . . . . . . . 12 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ (2nd𝑧) = (2nd𝑇)) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑧)))
176175an32s 841 . . . . . . . . . . 11 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) = (2nd𝑇)) → (𝐹‘0) = (1st ‘(1st𝑧)))
177103, 176mpdan 698 . . . . . . . . . 10 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑧)))
178 fveq2 6088 . . . . . . . . . . . . . . . 16 (𝑧 = 𝑇 → (2nd𝑧) = (2nd𝑇))
179178eleq1d 2671 . . . . . . . . . . . . . . 15 (𝑧 = 𝑇 → ((2nd𝑧) ∈ (1...(𝑁 − 1)) ↔ (2nd𝑇) ∈ (1...(𝑁 − 1))))
180179anbi2d 735 . . . . . . . . . . . . . 14 (𝑧 = 𝑇 → ((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ↔ (𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1)))))
181 fveq2 6088 . . . . . . . . . . . . . . . 16 (𝑧 = 𝑇 → (1st𝑧) = (1st𝑇))
182181fveq2d 6092 . . . . . . . . . . . . . . 15 (𝑧 = 𝑇 → (1st ‘(1st𝑧)) = (1st ‘(1st𝑇)))
183182eqeq2d 2619 . . . . . . . . . . . . . 14 (𝑧 = 𝑇 → ((𝐹‘0) = (1st ‘(1st𝑧)) ↔ (𝐹‘0) = (1st ‘(1st𝑇))))
184180, 183imbi12d 332 . . . . . . . . . . . . 13 (𝑧 = 𝑇 → (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑧))) ↔ ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑇)))))
185174expcom 449 . . . . . . . . . . . . 13 (𝑧𝑆 → ((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑧))))
186184, 185vtoclga 3244 . . . . . . . . . . . 12 (𝑇𝑆 → ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑇))))
1877, 186mpcom 37 . . . . . . . . . . 11 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑇)))
188187adantr 479 . . . . . . . . . 10 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑇)))
189177, 188eqtr3d 2645 . . . . . . . . 9 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (1st ‘(1st𝑧)) = (1st ‘(1st𝑇)))
190189adantr 479 . . . . . . . 8 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (1st ‘(1st𝑧)) = (1st ‘(1st𝑇)))
1911ad3antrrr 761 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → 𝑁 ∈ ℕ)
1926ad3antrrr 761 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → 𝑇𝑆)
193 simpllr 794 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd𝑇) ∈ (1...(𝑁 − 1)))
194 simplr 787 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → 𝑧𝑆)
19535adantr 479 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (1st𝑇) ∈ (((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
196 xpopth 7075 . . . . . . . . . . . . . 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𝑇)))
19778, 195, 196syl2anr 493 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇))) ↔ (1st𝑧) = (1st𝑇)))
19833adantr 479 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
199 xpopth 7075 . . . . . . . . . . . . . . . 16 ((𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (((1st𝑧) = (1st𝑇) ∧ (2nd𝑧) = (2nd𝑇)) ↔ 𝑧 = 𝑇))
200199biimpd 217 . . . . . . . . . . . . . . 15 ((𝑧 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (((1st𝑧) = (1st𝑇) ∧ (2nd𝑧) = (2nd𝑇)) → 𝑧 = 𝑇))
20176, 198, 200syl2anr 493 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (((1st𝑧) = (1st𝑇) ∧ (2nd𝑧) = (2nd𝑇)) → 𝑧 = 𝑇))
202103, 201mpan2d 705 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ((1st𝑧) = (1st𝑇) → 𝑧 = 𝑇))
203197, 202sylbid 228 . . . . . . . . . . . 12 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇))) → 𝑧 = 𝑇))
204189, 203mpand 706 . . . . . . . . . . 11 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ((2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇)) → 𝑧 = 𝑇))
205204necon3d 2802 . . . . . . . . . 10 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝑧𝑇 → (2nd ‘(1st𝑧)) ≠ (2nd ‘(1st𝑇))))
206205imp 443 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd ‘(1st𝑧)) ≠ (2nd ‘(1st𝑇)))
207191, 3, 192, 193, 194, 206poimirlem9 32384 . . . . . . . 8 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))))
208103adantr 479 . . . . . . . 8 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd𝑧) = (2nd𝑇))
209190, 207, 208jca31 554 . . . . . . 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𝑇)))
210209ex 448 . . . . . 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𝑇))))
211 simplr 787 . . . . . . . 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)})))))
212 elfznn 12196 . . . . . . . . . . . . . 14 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ∈ ℕ)
213212nnred 10882 . . . . . . . . . . . . 13 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ∈ ℝ)
214213ltp1d 10803 . . . . . . . . . . . . 13 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) < ((2nd𝑇) + 1))
215213, 214ltned 10024 . . . . . . . . . . . 12 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ≠ ((2nd𝑇) + 1))
216215adantl 480 . . . . . . . . . . 11 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd𝑇) ≠ ((2nd𝑇) + 1))
217 fveq1 6087 . . . . . . . . . . . . 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𝑇)))
218 id 22 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd𝑇) ∈ ℝ → (2nd𝑇) ∈ ℝ)
219 ltp1 10710 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd𝑇) ∈ ℝ → (2nd𝑇) < ((2nd𝑇) + 1))
220218, 219ltned 10024 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ∈ ℝ → (2nd𝑇) ≠ ((2nd𝑇) + 1))
221 fvex 6098 . . . . . . . . . . . . . . . . . . . . . 22 (2nd𝑇) ∈ V
222 ovex 6555 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd𝑇) + 1) ∈ V
223221, 222, 222, 221fpr 6304 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ≠ ((2nd𝑇) + 1) → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}⟶{((2nd𝑇) + 1), (2nd𝑇)})
224220, 223syl 17 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ ℝ → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}⟶{((2nd𝑇) + 1), (2nd𝑇)})
225 f1oi 6071 . . . . . . . . . . . . . . . . . . . . 21 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})–1-1-onto→((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
226 f1of 6035 . . . . . . . . . . . . . . . . . . . . 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)}))
227225, 226ax-mp 5 . . . . . . . . . . . . . . . . . . . 20 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})⟶((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
228 disjdif 3991 . . . . . . . . . . . . . . . . . . . . 21 ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ∅
229 fun 5965 . . . . . . . . . . . . . . . . . . . . 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)})))
230228, 229mpan2 702 . . . . . . . . . . . . . . . . . . . 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)})))
231224, 227, 230sylancl 692 . . . . . . . . . . . . . . . . . . 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)})))
232221prid1 4240 . . . . . . . . . . . . . . . . . . . 20 (2nd𝑇) ∈ {(2nd𝑇), ((2nd𝑇) + 1)}
233 elun1 3741 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ {(2nd𝑇), ((2nd𝑇) + 1)} → (2nd𝑇) ∈ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
234232, 233ax-mp 5 . . . . . . . . . . . . . . . . . . 19 (2nd𝑇) ∈ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
235 fvco3 6170 . . . . . . . . . . . . . . . . . . 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𝑇))))
236231, 234, 235sylancl 692 . . . . . . . . . . . . . . . . . 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𝑇))))
237 ffn 5944 . . . . . . . . . . . . . . . . . . . . . 22 ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}⟶{((2nd𝑇) + 1), (2nd𝑇)} → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)})
238224, 237syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ∈ ℝ → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)})
239 fnresi 5908 . . . . . . . . . . . . . . . . . . . . . 22 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) Fn ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
240228, 232pm3.2i 469 . . . . . . . . . . . . . . . . . . . . . 22 (({(2nd𝑇), ((2nd𝑇) + 1)} ∩ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ∅ ∧ (2nd𝑇) ∈ {(2nd𝑇), ((2nd𝑇) + 1)})
241 fvun1 6164 . . . . . . . . . . . . . . . . . . . . . 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𝑇)))
242239, 240, 241mp3an23 1407 . . . . . . . . . . . . . . . . . . . . 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𝑇)))
243238, 242syl 17 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ ℝ → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))‘(2nd𝑇)) = ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}‘(2nd𝑇)))
244221, 222fvpr1 6339 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ≠ ((2nd𝑇) + 1) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}‘(2nd𝑇)) = ((2nd𝑇) + 1))
245220, 244syl 17 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ ℝ → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}‘(2nd𝑇)) = ((2nd𝑇) + 1))
246243, 245eqtrd 2643 . . . . . . . . . . . . . . . . . . 19 ((2nd𝑇) ∈ ℝ → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))‘(2nd𝑇)) = ((2nd𝑇) + 1))
247246fveq2d 6092 . . . . . . . . . . . . . . . . . 18 ((2nd𝑇) ∈ ℝ → ((2nd ‘(1st𝑇))‘(({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))‘(2nd𝑇))) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)))
248236, 247eqtrd 2643 . . . . . . . . . . . . . . . . 17 ((2nd𝑇) ∈ ℝ → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)))
249213, 248syl 17 . . . . . . . . . . . . . . . 16 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)))
250249eqeq2d 2619 . . . . . . . . . . . . . . 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))))
251250adantl 480 . . . . . . . . . . . . . 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))))
252 f1of1 6034 . . . . . . . . . . . . . . . . 17 ((2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁) → (2nd ‘(1st𝑇)):(1...𝑁)–1-1→(1...𝑁))
25350, 252syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (2nd ‘(1st𝑇)):(1...𝑁)–1-1→(1...𝑁))
254253adantr 479 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd ‘(1st𝑇)):(1...𝑁)–1-1→(1...𝑁))
2551nncnd 10883 . . . . . . . . . . . . . . . . . . 19 (𝜑𝑁 ∈ ℂ)
256 npcan1 10306 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ ℂ → ((𝑁 − 1) + 1) = 𝑁)
257255, 256syl 17 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((𝑁 − 1) + 1) = 𝑁)
258168nn0zd 11312 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (𝑁 − 1) ∈ ℤ)
259 uzid 11534 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 − 1) ∈ ℤ → (𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)))
260258, 259syl 17 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)))
261 peano2uz 11573 . . . . . . . . . . . . . . . . . . 19 ((𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)) → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
262260, 261syl 17 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
263257, 262eqeltrrd 2688 . . . . . . . . . . . . . . . . 17 (𝜑𝑁 ∈ (ℤ‘(𝑁 − 1)))
264 fzss2 12207 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ (ℤ‘(𝑁 − 1)) → (1...(𝑁 − 1)) ⊆ (1...𝑁))
265263, 264syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (1...(𝑁 − 1)) ⊆ (1...𝑁))
266265sselda 3567 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd𝑇) ∈ (1...𝑁))
267 fzp1elp1 12219 . . . . . . . . . . . . . . . . 17 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → ((2nd𝑇) + 1) ∈ (1...((𝑁 − 1) + 1)))
268267adantl 480 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) + 1) ∈ (1...((𝑁 − 1) + 1)))
269257oveq2d 6543 . . . . . . . . . . . . . . . . 17 (𝜑 → (1...((𝑁 − 1) + 1)) = (1...𝑁))
270269adantr 479 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (1...((𝑁 − 1) + 1)) = (1...𝑁))
271268, 270eleqtrd 2689 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) + 1) ∈ (1...𝑁))
272 f1veqaeq 6396 . . . . . . . . . . . . . . 15 (((2nd ‘(1st𝑇)):(1...𝑁)–1-1→(1...𝑁) ∧ ((2nd𝑇) ∈ (1...𝑁) ∧ ((2nd𝑇) + 1) ∈ (1...𝑁))) → (((2nd ‘(1st𝑇))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)) → (2nd𝑇) = ((2nd𝑇) + 1)))
273254, 266, 271, 272syl12anc 1315 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (((2nd ‘(1st𝑇))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)) → (2nd𝑇) = ((2nd𝑇) + 1)))
274251, 273sylbid 228 . . . . . . . . . . . . 13 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (((2nd ‘(1st𝑇))‘(2nd𝑇)) = (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)) → (2nd𝑇) = ((2nd𝑇) + 1)))
275217, 274syl5 33 . . . . . . . . . . . 12 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd ‘(1st𝑇)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) → (2nd𝑇) = ((2nd𝑇) + 1)))
276275necon3d 2802 . . . . . . . . . . 11 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) ≠ ((2nd𝑇) + 1) → (2nd ‘(1st𝑇)) ≠ ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))))
277216, 276mpd 15 . . . . . . . . . 10 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd ‘(1st𝑇)) ≠ ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))))
278181fveq2d 6092 . . . . . . . . . . 11 (𝑧 = 𝑇 → (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇)))
279278neeq1d 2840 . . . . . . . . . 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)}))))))
280277, 279syl5ibrcom 235 . . . . . . . . 9 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝑧 = 𝑇 → (2nd ‘(1st𝑧)) ≠ ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))))
281280necon2d 2804 . . . . . . . 8 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) → 𝑧𝑇))
282211, 281syl5 33 . . . . . . 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𝑇)) → 𝑧𝑇))
283282adantr 479 . . . . . 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𝑇)) → 𝑧𝑇))
284210, 283impbid 200 . . . . 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𝑇))))
285 eqop 7076 . . . . . . . 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𝑇))))
286 eqop 7076 . . . . . . . . . 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)})))))))
28777, 286syl 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)})))))))
288287anbi1d 736 . . . . . . . 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𝑇))))
289285, 288bitrd 266 . . . . . . 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𝑇))))
29076, 289syl 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𝑇))))
291290adantl 480 . . . . 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𝑇))))
292284, 291bitr4d 269 . . . 4 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝑧𝑇𝑧 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩))
293292ralrimiva 2948 . . 3 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ∀𝑧𝑆 (𝑧𝑇𝑧 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩))
294 reu6i 3363 . . 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𝑇)⟩)) → ∃!𝑧𝑆 𝑧𝑇)
2959, 293, 294syl2anc 690 . 2 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ∃!𝑧𝑆 𝑧𝑇)
296 xp2nd 7067 . . . . . . 7 (𝑇 ∈ ((((0..^𝐾) ↑𝑚 (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (2nd𝑇) ∈ (0...𝑁))
29733, 296syl 17 . . . . . 6 (𝜑 → (2nd𝑇) ∈ (0...𝑁))
298297biantrurd 527 . . . . 5 (𝜑 → (¬ (2nd𝑇) ∈ (1...(𝑁 − 1)) ↔ ((2nd𝑇) ∈ (0...𝑁) ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1)))))
2991nnnn0d 11198 . . . . . . . . . . . 12 (𝜑𝑁 ∈ ℕ0)
300 nn0uz 11554 . . . . . . . . . . . 12 0 = (ℤ‘0)
301299, 300syl6eleq 2697 . . . . . . . . . . 11 (𝜑𝑁 ∈ (ℤ‘0))
302 fzpred 12214 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘0) → (0...𝑁) = ({0} ∪ ((0 + 1)...𝑁)))
303301, 302syl 17 . . . . . . . . . 10 (𝜑 → (0...𝑁) = ({0} ∪ ((0 + 1)...𝑁)))
304125oveq1i 6537 . . . . . . . . . . 11 ((0 + 1)...𝑁) = (1...𝑁)
305304uneq2i 3725 . . . . . . . . . 10 ({0} ∪ ((0 + 1)...𝑁)) = ({0} ∪ (1...𝑁))
306303, 305syl6eq 2659 . . . . . . . . 9 (𝜑 → (0...𝑁) = ({0} ∪ (1...𝑁)))
307306difeq1d 3688 . . . . . . . 8 (𝜑 → ((0...𝑁) ∖ (1...(𝑁 − 1))) = (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))))
308 difundir 3838 . . . . . . . . . 10 (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))) = (({0} ∖ (1...(𝑁 − 1))) ∪ ((1...𝑁) ∖ (1...(𝑁 − 1))))
309 0lt1 10399 . . . . . . . . . . . . . 14 0 < 1
310 0re 9896 . . . . . . . . . . . . . . 15 0 ∈ ℝ
311 1re 9895 . . . . . . . . . . . . . . 15 1 ∈ ℝ
312310, 311ltnlei 10009 . . . . . . . . . . . . . 14 (0 < 1 ↔ ¬ 1 ≤ 0)
313309, 312mpbi 218 . . . . . . . . . . . . 13 ¬ 1 ≤ 0
314 elfzle1 12170 . . . . . . . . . . . . 13 (0 ∈ (1...(𝑁 − 1)) → 1 ≤ 0)
315313, 314mto 186 . . . . . . . . . . . 12 ¬ 0 ∈ (1...(𝑁 − 1))
316 incom 3766 . . . . . . . . . . . . . 14 ((1...(𝑁 − 1)) ∩ {0}) = ({0} ∩ (1...(𝑁 − 1)))
317316eqeq1i 2614 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {0}) = ∅ ↔ ({0} ∩ (1...(𝑁 − 1))) = ∅)
318 disjsn 4191 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {0}) = ∅ ↔ ¬ 0 ∈ (1...(𝑁 − 1)))
319 disj3 3972 . . . . . . . . . . . . 13 (({0} ∩ (1...(𝑁 − 1))) = ∅ ↔ {0} = ({0} ∖ (1...(𝑁 − 1))))
320317, 318, 3193bitr3i 288 . . . . . . . . . . . 12 (¬ 0 ∈ (1...(𝑁 − 1)) ↔ {0} = ({0} ∖ (1...(𝑁 − 1))))
321315, 320mpbi 218 . . . . . . . . . . 11 {0} = ({0} ∖ (1...(𝑁 − 1)))
322321uneq1i 3724 . . . . . . . . . 10 ({0} ∪ ((1...𝑁) ∖ (1...(𝑁 − 1)))) = (({0} ∖ (1...(𝑁 − 1))) ∪ ((1...𝑁) ∖ (1...(𝑁 − 1))))
323308, 322eqtr4i 2634 . . . . . . . . 9 (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))) = ({0} ∪ ((1...𝑁) ∖ (1...(𝑁 − 1))))
324 difundir 3838 . . . . . . . . . . . 12 (((1...(𝑁 − 1)) ∪ {𝑁}) ∖ (1...(𝑁 − 1))) = (((1...(𝑁 − 1)) ∖ (1...(𝑁 − 1))) ∪ ({𝑁} ∖ (1...(𝑁 − 1))))
325 difid 3901 . . . . . . . . . . . . 13 ((1...(𝑁 − 1)) ∖ (1...(𝑁 − 1))) = ∅
326325uneq1i 3724 . . . . . . . . . . . 12 (((1...(𝑁 − 1)) ∖ (1...(𝑁 − 1))) ∪ ({𝑁} ∖ (1...(𝑁 − 1)))) = (∅ ∪ ({𝑁} ∖ (1...(𝑁 − 1))))
327 uncom 3718 . . . . . . . . . . . . 13 (∅ ∪ ({𝑁} ∖ (1...(𝑁 − 1)))) = (({𝑁} ∖ (1...(𝑁 − 1))) ∪ ∅)
328 un0 3918 . . . . . . . . . . . . 13 (({𝑁} ∖ (1...(𝑁 − 1))) ∪ ∅) = ({𝑁} ∖ (1...(𝑁 − 1)))
329327, 328eqtri 2631 . . . . . . . . . . . 12 (∅ ∪ ({𝑁} ∖ (1...(𝑁 − 1)))) = ({𝑁} ∖ (1...(𝑁 − 1)))
330324, 326, 3293eqtri 2635 . . . . . . . . . . 11 (((1...(𝑁 − 1)) ∪ {𝑁}) ∖ (1...(𝑁 − 1))) = ({𝑁} ∖ (1...(𝑁 − 1)))
331 nnuz 11555 . . . . . . . . . . . . . . . 16 ℕ = (ℤ‘1)
3321, 331syl6eleq 2697 . . . . . . . . . . . . . . 15 (𝜑𝑁 ∈ (ℤ‘1))
333257, 332eqeltrd 2687 . . . . . . . . . . . . . 14 (𝜑 → ((𝑁 − 1) + 1) ∈ (ℤ‘1))
334 fzsplit2 12192 . . . . . . . . . . . . . 14 ((((𝑁 − 1) + 1) ∈ (ℤ‘1) ∧ 𝑁 ∈ (ℤ‘(𝑁 − 1))) → (1...𝑁) = ((1...(𝑁 − 1)) ∪ (((𝑁 − 1) + 1)...𝑁)))
335333, 263, 334syl2anc 690 . . . . . . . . . . . . 13 (𝜑 → (1...𝑁) = ((1...(𝑁 − 1)) ∪ (((𝑁 − 1) + 1)...𝑁)))
336257oveq1d 6542 . . . . . . . . . . . . . . 15 (𝜑 → (((𝑁 − 1) + 1)...𝑁) = (𝑁...𝑁))
3371nnzd 11313 . . . . . . . . . . . . . . . 16 (𝜑𝑁 ∈ ℤ)
338 fzsn 12209 . . . . . . . . . . . . . . . 16 (𝑁 ∈ ℤ → (𝑁...𝑁) = {𝑁})
339337, 338syl 17 . . . . . . . . . . . . . . 15 (𝜑 → (𝑁...𝑁) = {𝑁})
340336, 339eqtrd 2643 . . . . . . . . . . . . . 14 (𝜑 → (((𝑁 − 1) + 1)...𝑁) = {𝑁})
341340uneq2d 3728 . . . . . . . . . . . . 13 (𝜑 → ((1...(𝑁 − 1)) ∪ (((𝑁 − 1) + 1)...𝑁)) = ((1...(𝑁 − 1)) ∪ {𝑁}))
342335, 341eqtrd 2643 . . . . . . . . . . . 12 (𝜑 → (1...𝑁) = ((1...(𝑁 − 1)) ∪ {𝑁}))
343342difeq1d 3688 . . . . . . . . . . 11 (𝜑 → ((1...𝑁) ∖ (1...(𝑁 − 1))) = (((1...(𝑁 − 1)) ∪ {𝑁}) ∖ (1...(𝑁 − 1))))
3441nnred 10882 . . . . . . . . . . . . . . 15 (𝜑𝑁 ∈ ℝ)
345344ltm1d 10805 . . . . . . . . . . . . . 14 (𝜑 → (𝑁 − 1) < 𝑁)
346168nn0red 11199 . . . . . . . . . . . . . . 15 (𝜑 → (𝑁 − 1) ∈ ℝ)
347346, 344ltnled 10035 . . . . . . . . . . . . . 14 (𝜑 → ((𝑁 − 1) < 𝑁 ↔ ¬ 𝑁 ≤ (𝑁 − 1)))
348345, 347mpbid 220 . . . . . . . . . . . . 13 (𝜑 → ¬ 𝑁 ≤ (𝑁 − 1))
349 elfzle2 12171 . . . . . . . . . . . . 13 (𝑁 ∈ (1...(𝑁 − 1)) → 𝑁 ≤ (𝑁 − 1))
350348, 349nsyl 133 . . . . . . . . . . . 12 (𝜑 → ¬ 𝑁 ∈ (1...(𝑁 − 1)))
351 incom 3766 . . . . . . . . . . . . . 14 ((1...(𝑁 − 1)) ∩ {𝑁}) = ({𝑁} ∩ (1...(𝑁 − 1)))
352351eqeq1i 2614 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {𝑁}) = ∅ ↔ ({𝑁} ∩ (1...(𝑁 − 1))) = ∅)
353 disjsn 4191 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {𝑁}) = ∅ ↔ ¬ 𝑁 ∈ (1...(𝑁 − 1)))
354 disj3 3972 . . . . . . . . . . . . 13 (({𝑁} ∩ (1...(𝑁 − 1))) = ∅ ↔ {𝑁} = ({𝑁} ∖ (1...(𝑁 − 1))))
355352, 353, 3543bitr3i 288 . . . . . . . . . . . 12 𝑁 ∈ (1...(𝑁 − 1)) ↔ {𝑁} = ({𝑁} ∖ (1...(𝑁 − 1))))
356350, 355sylib 206 . . . . . . . . . . 11 (𝜑 → {𝑁} = ({𝑁} ∖ (1...(𝑁 − 1))))
357330, 343, 3563eqtr4a 2669 . . . . . . . . . 10 (𝜑 → ((1...𝑁) ∖ (1...(𝑁 − 1))) = {𝑁})
358357uneq2d 3728 . . . . . . . . 9 (𝜑 → ({0} ∪ ((1...𝑁) ∖ (1...(𝑁 − 1)))) = ({0} ∪ {𝑁}))
359323, 358syl5eq 2655 . . . . . . . 8 (𝜑 → (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))) = ({0} ∪ {𝑁}))
360307, 359eqtrd 2643 . . . . . . 7 (𝜑 → ((0...𝑁) ∖ (1...(𝑁 − 1))) = ({0} ∪ {𝑁}))
361360eleq2d 2672 . . . . . 6 (𝜑 → ((2nd𝑇) ∈ ((0...𝑁) ∖ (1...(𝑁 − 1))) ↔ (2nd𝑇) ∈ ({0} ∪ {𝑁})))
362 eldif 3549 . . . . . 6 ((2nd𝑇) ∈ ((0...𝑁) ∖ (1...(𝑁 − 1))) ↔ ((2nd𝑇) ∈ (0...𝑁) ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))))
363 elun 3714 . . . . . . 7 ((2nd𝑇) ∈ ({0} ∪ {𝑁}) ↔ ((2nd𝑇) ∈ {0} ∨ (2nd𝑇) ∈ {𝑁}))
364221elsn 4139 . . . . . . . 8 ((2nd𝑇) ∈ {0} ↔ (2nd𝑇) = 0)
365221elsn 4139 . . . . . . . 8 ((2nd𝑇) ∈ {𝑁} ↔ (2nd𝑇) = 𝑁)
366364, 365orbi12i 541 . . . . . . 7 (((2nd𝑇) ∈ {0} ∨ (2nd𝑇) ∈ {𝑁}) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁))
367363, 366bitri 262 . . . . . 6 ((2nd𝑇) ∈ ({0} ∪ {𝑁}) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁))
368361, 362, 3673bitr3g 300 . . . . 5 (𝜑 → (((2nd𝑇) ∈ (0...𝑁) ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁)))
369298, 368bitrd 266 . . . 4 (𝜑 → (¬ (2nd𝑇) ∈ (1...(𝑁 − 1)) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁)))
370369biimpa 499 . . 3 ((𝜑 ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁))
3711adantr 479 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → 𝑁 ∈ ℕ)
3724adantr 479 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → 𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑𝑚 (1...𝑁)))
3736adantr 479 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → 𝑇𝑆)
374 poimirlem22.4 . . . . . 6 ((𝜑𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 𝐾)
375374adantlr 746 . . . . 5 (((𝜑 ∧ (2nd𝑇) = 0) ∧ 𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 𝐾)
376 simpr 475 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → (2nd𝑇) = 0)
377371, 3, 372, 373, 375, 376poimirlem18 32393 . . . 4 ((𝜑 ∧ (2nd𝑇) = 0) → ∃!𝑧𝑆 𝑧𝑇)
3781adantr 479 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → 𝑁 ∈ ℕ)
3794adantr 479 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → 𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑𝑚 (1...𝑁)))
3806adantr 479 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → 𝑇𝑆)
381 poimirlem22.3 . . . . . 6 ((𝜑𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 0)
382381adantlr 746 . . . . 5 (((𝜑 ∧ (2nd𝑇) = 𝑁) ∧ 𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 0)
383 simpr 475 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → (2nd𝑇) = 𝑁)
384378, 3, 379, 380, 382, 383poimirlem21 32396 . . . 4 ((𝜑 ∧ (2nd𝑇) = 𝑁) → ∃!𝑧𝑆 𝑧𝑇)
385377, 384jaodan 821 . . 3 ((𝜑 ∧ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁)) → ∃!𝑧𝑆 𝑧𝑇)
386370, 385syldan 485 . 2 ((𝜑 ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ∃!𝑧𝑆 𝑧𝑇)
387295, 386pm2.61dan 827 1 (𝜑 → ∃!𝑧𝑆 𝑧𝑇)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 194  wo 381  wa 382   = wceq 1474  wcel 1976  {cab 2595  wne 2779  wral 2895  wrex 2896  ∃!wreu 2897  ∃*wrmo 2898  {crab 2899  Vcvv 3172  csb 3498  cdif 3536  cun 3537  cin 3538  wss 3539  c0 3873  ifcif 4035  {csn 4124  {cpr 4126  cop 4130   class class class wbr 4577  cmpt 4637   I cid 4938   × cxp 5026  ran crn 5029  cres 5030  cima 5031  ccom 5032   Fn wfn 5785  wf 5786  1-1wf1 5787  ontowfo 5788  1-1-ontowf1o 5789  cfv 5790  (class class class)co 6527  𝑓 cof 6770  1st c1st 7034  2nd c2nd 7035  𝑚 cmap 7721  cc 9790  cr 9791  0cc0 9792  1c1 9793   + caddc 9795   < clt 9930  cle 9931  cmin 10117  cn 10867  0cn0 11139  cz 11210  cuz 11519  ...cfz 12152  ..^cfzo 12289
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1712  ax-4 1727  ax-5 1826  ax-6 1874  ax-7 1921  ax-8 1978  ax-9 1985  ax-10 2005  ax-11 2020  ax-12 2033  ax-13 2233  ax-ext 2589  ax-rep 4693  ax-sep 4703  ax-nul 4712  ax-pow 4764  ax-pr 4828  ax-un 6824  ax-cnex 9848  ax-resscn 9849  ax-1cn 9850  ax-icn 9851  ax-addcl 9852  ax-addrcl 9853  ax-mulcl 9854  ax-mulrcl 9855  ax-mulcom 9856  ax-addass 9857  ax-mulass 9858  ax-distr 9859  ax-i2m1 9860  ax-1ne0 9861  ax-1rid 9862  ax-rnegex 9863  ax-rrecex 9864  ax-cnre 9865  ax-pre-lttri 9866  ax-pre-lttrn 9867  ax-pre-ltadd 9868  ax-pre-mulgt0 9869
This theorem depends on definitions:  df-bi 195  df-or 383  df-an 384  df-3or 1031  df-3an 1032  df-tru 1477  df-fal 1480  df-ex 1695  df-nf 1700  df-sb 1867  df-eu 2461  df-mo 2462  df-clab 2596  df-cleq 2602  df-clel 2605  df-nfc 2739  df-ne 2781  df-nel 2782  df-ral 2900  df-rex 2901  df-reu 2902  df-rmo 2903  df-rab 2904  df-v 3174  df-sbc 3402  df-csb 3499  df-dif 3542  df-un 3544  df-in 3546  df-ss 3553  df-pss 3555  df-nul 3874  df-if 4036  df-pw 4109  df-sn 4125  df-pr 4127  df-tp 4129  df-op 4131  df-uni 4367  df-int 4405  df-iun 4451  df-br 4578  df-opab 4638  df-mpt 4639  df-tr 4675  df-eprel 4939  df-id 4943  df-po 4949  df-so 4950  df-fr 4987  df-we 4989  df-xp 5034  df-rel 5035  df-cnv 5036  df-co 5037  df-dm 5038  df-rn 5039  df-res 5040  df-ima 5041  df-pred 5583  df-ord 5629  df-on 5630  df-lim 5631  df-suc 5632  df-iota 5754  df-fun 5792  df-fn 5793  df-f 5794  df-f1 5795  df-fo 5796  df-f1o 5797  df-fv 5798  df-riota 6489  df-ov 6530  df-oprab 6531  df-mpt2 6532  df-of 6772  df-om 6935  df-1st 7036  df-2nd 7037  df-wrecs 7271  df-recs 7332  df-rdg 7370  df-1o 7424  df-2o 7425  df-oadd 7428  df-er 7606  df-map 7723  df-pm 7724  df-en 7819  df-dom 7820  df-sdom 7821  df-fin 7822  df-card 8625  df-cda 8850  df-pnf 9932  df-mnf 9933  df-xr 9934  df-ltxr 9935  df-le 9936  df-sub 10119  df-neg 10120  df-div 10534  df-nn 10868  df-2 10926  df-3 10927  df-n0 11140  df-z 11211  df-uz 11520  df-fz 12153  df-fzo 12290  df-seq 12619  df-fac 12878  df-bc 12907  df-hash 12935
This theorem is referenced by:  poimirlem27  32402
  Copyright terms: Public domain W3C validator