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 35562
Description: Lemma for poimir 35573, 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..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}
poimirlem22.1 (𝜑𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑m (1...𝑁)))
poimirlem22.2 (𝜑𝑇𝑆)
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 484 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝑁 ∈ ℕ)
3 poimirlem22.s . . . 4 𝑆 = {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))}
4 poimirlem22.1 . . . . 5 (𝜑𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑m (1...𝑁)))
54adantr 484 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑m (1...𝑁)))
6 poimirlem22.2 . . . . 5 (𝜑𝑇𝑆)
76adantr 484 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝑇𝑆)
8 simpr 488 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd𝑇) ∈ (1...(𝑁 − 1)))
92, 3, 5, 7, 8poimirlem15 35555 . . 3 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ ∈ 𝑆)
10 fveq2 6735 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (2nd𝑡) = (2nd𝑇))
1110breq2d 5079 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑇 → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑇)))
1211ifbid 4476 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑇 → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)))
1312csbeq1d 3829 . . . . . . . . . . . . . . . . . . . . 21 (𝑡 = 𝑇if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))
14 2fveq3 6740 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑇 → (1st ‘(1st𝑡)) = (1st ‘(1st𝑇)))
15 2fveq3 6740 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑡 = 𝑇 → (2nd ‘(1st𝑡)) = (2nd ‘(1st𝑇)))
1615imaeq1d 5942 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑇 → ((2nd ‘(1st𝑡)) “ (1...𝑗)) = ((2nd ‘(1st𝑇)) “ (1...𝑗)))
1716xpeq1d 5594 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}))
1815imaeq1d 5942 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑇 → ((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)))
1918xpeq1d 5594 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))
2017, 19uneq12d 4092 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑇 → ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))
2114, 20oveq12d 7249 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑇 → ((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
2221csbeq2dv 3832 . . . . . . . . . . . . . . . . . . . . 21 (𝑡 = 𝑇if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
2313, 22eqtrd 2778 . . . . . . . . . . . . . . . . . . . 20 (𝑡 = 𝑇if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
2423mpteq2dv 5165 . . . . . . . . . . . . . . . . . . 19 (𝑡 = 𝑇 → (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
2524eqeq2d 2749 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑇 → (𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ↔ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))))
2625, 3elrab2 3617 . . . . . . . . . . . . . . . . 17 (𝑇𝑆 ↔ (𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))))
2726simprbi 500 . . . . . . . . . . . . . . . 16 (𝑇𝑆𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
286, 27syl 17 . . . . . . . . . . . . . . 15 (𝜑𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
2928adantr 484 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
30 elrabi 3608 . . . . . . . . . . . . . . . . . . . . 21 (𝑇 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} → 𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
3130, 3eleq2s 2857 . . . . . . . . . . . . . . . . . . . 20 (𝑇𝑆𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
326, 31syl 17 . . . . . . . . . . . . . . . . . . 19 (𝜑𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
33 xp1st 7811 . . . . . . . . . . . . . . . . . . 19 (𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (1st𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
3432, 33syl 17 . . . . . . . . . . . . . . . . . 18 (𝜑 → (1st𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
35 xp1st 7811 . . . . . . . . . . . . . . . . . 18 ((1st𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (1st ‘(1st𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)))
3634, 35syl 17 . . . . . . . . . . . . . . . . 17 (𝜑 → (1st ‘(1st𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)))
37 elmapi 8550 . . . . . . . . . . . . . . . . 17 ((1st ‘(1st𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)) → (1st ‘(1st𝑇)):(1...𝑁)⟶(0..^𝐾))
3836, 37syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (1st ‘(1st𝑇)):(1...𝑁)⟶(0..^𝐾))
39 elfzoelz 13267 . . . . . . . . . . . . . . . . 17 (𝑛 ∈ (0..^𝐾) → 𝑛 ∈ ℤ)
4039ssriv 3919 . . . . . . . . . . . . . . . 16 (0..^𝐾) ⊆ ℤ
41 fss 6580 . . . . . . . . . . . . . . . 16 (((1st ‘(1st𝑇)):(1...𝑁)⟶(0..^𝐾) ∧ (0..^𝐾) ⊆ ℤ) → (1st ‘(1st𝑇)):(1...𝑁)⟶ℤ)
4238, 40, 41sylancl 589 . . . . . . . . . . . . . . 15 (𝜑 → (1st ‘(1st𝑇)):(1...𝑁)⟶ℤ)
4342adantr 484 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (1st ‘(1st𝑇)):(1...𝑁)⟶ℤ)
44 xp2nd 7812 . . . . . . . . . . . . . . . . 17 ((1st𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (2nd ‘(1st𝑇)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
4534, 44syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (2nd ‘(1st𝑇)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
46 fvex 6748 . . . . . . . . . . . . . . . . 17 (2nd ‘(1st𝑇)) ∈ V
47 f1oeq1 6667 . . . . . . . . . . . . . . . . 17 (𝑓 = (2nd ‘(1st𝑇)) → (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) ↔ (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁)))
4846, 47elab 3599 . . . . . . . . . . . . . . . 16 ((2nd ‘(1st𝑇)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ↔ (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
4945, 48sylib 221 . . . . . . . . . . . . . . 15 (𝜑 → (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
5049adantr 484 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
512, 29, 43, 50, 8poimirlem1 35541 . . . . . . . . . . . . 13 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ¬ ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛))
5251adantr 484 . . . . . . . . . . . 12 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ¬ ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛))
531ad3antrrr 730 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → 𝑁 ∈ ℕ)
54 fveq2 6735 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (2nd𝑡) = (2nd𝑧))
5554breq2d 5079 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑧 → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑧)))
5655ifbid 4476 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑧 → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)))
5756csbeq1d 3829 . . . . . . . . . . . . . . . . . . . . 21 (𝑡 = 𝑧if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))
58 2fveq3 6740 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑧 → (1st ‘(1st𝑡)) = (1st ‘(1st𝑧)))
59 2fveq3 6740 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑡 = 𝑧 → (2nd ‘(1st𝑡)) = (2nd ‘(1st𝑧)))
6059imaeq1d 5942 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑧 → ((2nd ‘(1st𝑡)) “ (1...𝑗)) = ((2nd ‘(1st𝑧)) “ (1...𝑗)))
6160xpeq1d 5594 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}))
6259imaeq1d 5942 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑧 → ((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)))
6362xpeq1d 5594 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))
6461, 63uneq12d 4092 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑧 → ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))
6558, 64oveq12d 7249 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑧 → ((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))
6665csbeq2dv 3832 . . . . . . . . . . . . . . . . . . . . 21 (𝑡 = 𝑧if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))
6757, 66eqtrd 2778 . . . . . . . . . . . . . . . . . . . 20 (𝑡 = 𝑧if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))
6867mpteq2dv 5165 . . . . . . . . . . . . . . . . . . 19 (𝑡 = 𝑧 → (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
6968eqeq2d 2749 . . . . . . . . . . . . . . . . . 18 (𝑡 = 𝑧 → (𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})))) ↔ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))))
7069, 3elrab2 3617 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 ↔ (𝑧 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))))
7170simprbi 500 . . . . . . . . . . . . . . . 16 (𝑧𝑆𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
7271ad2antlr 727 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
73 elrabi 3608 . . . . . . . . . . . . . . . . . . . . 21 (𝑧 ∈ {𝑡 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∣ 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))))} → 𝑧 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
7473, 3eleq2s 2857 . . . . . . . . . . . . . . . . . . . 20 (𝑧𝑆𝑧 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
75 xp1st 7811 . . . . . . . . . . . . . . . . . . . 20 (𝑧 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (1st𝑧) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
7674, 75syl 17 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (1st𝑧) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
77 xp1st 7811 . . . . . . . . . . . . . . . . . . 19 ((1st𝑧) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (1st ‘(1st𝑧)) ∈ ((0..^𝐾) ↑m (1...𝑁)))
7876, 77syl 17 . . . . . . . . . . . . . . . . . 18 (𝑧𝑆 → (1st ‘(1st𝑧)) ∈ ((0..^𝐾) ↑m (1...𝑁)))
79 elmapi 8550 . . . . . . . . . . . . . . . . . 18 ((1st ‘(1st𝑧)) ∈ ((0..^𝐾) ↑m (1...𝑁)) → (1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾))
8078, 79syl 17 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 → (1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾))
81 fss 6580 . . . . . . . . . . . . . . . . 17 (((1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾) ∧ (0..^𝐾) ⊆ ℤ) → (1st ‘(1st𝑧)):(1...𝑁)⟶ℤ)
8280, 40, 81sylancl 589 . . . . . . . . . . . . . . . 16 (𝑧𝑆 → (1st ‘(1st𝑧)):(1...𝑁)⟶ℤ)
8382ad2antlr 727 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (1st ‘(1st𝑧)):(1...𝑁)⟶ℤ)
84 xp2nd 7812 . . . . . . . . . . . . . . . . . 18 ((1st𝑧) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) → (2nd ‘(1st𝑧)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
8576, 84syl 17 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 → (2nd ‘(1st𝑧)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})
86 fvex 6748 . . . . . . . . . . . . . . . . . 18 (2nd ‘(1st𝑧)) ∈ V
87 f1oeq1 6667 . . . . . . . . . . . . . . . . . 18 (𝑓 = (2nd ‘(1st𝑧)) → (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) ↔ (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁)))
8886, 87elab 3599 . . . . . . . . . . . . . . . . 17 ((2nd ‘(1st𝑧)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ↔ (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁))
8985, 88sylib 221 . . . . . . . . . . . . . . . 16 (𝑧𝑆 → (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁))
9089ad2antlr 727 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁))
91 simpllr 776 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd𝑇) ∈ (1...(𝑁 − 1)))
92 xp2nd 7812 . . . . . . . . . . . . . . . . . 18 (𝑧 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (2nd𝑧) ∈ (0...𝑁))
9374, 92syl 17 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 → (2nd𝑧) ∈ (0...𝑁))
9493adantl 485 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (2nd𝑧) ∈ (0...𝑁))
95 eldifsn 4714 . . . . . . . . . . . . . . . . 17 ((2nd𝑧) ∈ ((0...𝑁) ∖ {(2nd𝑇)}) ↔ ((2nd𝑧) ∈ (0...𝑁) ∧ (2nd𝑧) ≠ (2nd𝑇)))
9695biimpri 231 . . . . . . . . . . . . . . . 16 (((2nd𝑧) ∈ (0...𝑁) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd𝑧) ∈ ((0...𝑁) ∖ {(2nd𝑇)}))
9794, 96sylan 583 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd𝑧) ∈ ((0...𝑁) ∖ {(2nd𝑇)}))
9853, 72, 83, 90, 91, 97poimirlem2 35542 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛))
9998ex 416 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ((2nd𝑧) ≠ (2nd𝑇) → ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛)))
10099necon1bd 2959 . . . . . . . . . . . 12 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (¬ ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛) → (2nd𝑧) = (2nd𝑇)))
10152, 100mpd 15 . . . . . . . . . . 11 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (2nd𝑧) = (2nd𝑇))
102 eleq1 2826 . . . . . . . . . . . . . . . 16 ((2nd𝑧) = (2nd𝑇) → ((2nd𝑧) ∈ (1...(𝑁 − 1)) ↔ (2nd𝑇) ∈ (1...(𝑁 − 1))))
103102biimparc 483 . . . . . . . . . . . . . . 15 (((2nd𝑇) ∈ (1...(𝑁 − 1)) ∧ (2nd𝑧) = (2nd𝑇)) → (2nd𝑧) ∈ (1...(𝑁 − 1)))
104103anim2i 620 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((2nd𝑇) ∈ (1...(𝑁 − 1)) ∧ (2nd𝑧) = (2nd𝑇))) → (𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))))
105104anassrs 471 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ (2nd𝑧) = (2nd𝑇)) → (𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))))
10671adantl 485 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
107 breq1 5070 . . . . . . . . . . . . . . . . . 18 (𝑦 = 0 → (𝑦 < (2nd𝑧) ↔ 0 < (2nd𝑧)))
108 id 22 . . . . . . . . . . . . . . . . . 18 (𝑦 = 0 → 𝑦 = 0)
109107, 108ifbieq1d 4477 . . . . . . . . . . . . . . . . 17 (𝑦 = 0 → if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) = if(0 < (2nd𝑧), 0, (𝑦 + 1)))
110 elfznn 13165 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑧) ∈ (1...(𝑁 − 1)) → (2nd𝑧) ∈ ℕ)
111110nngt0d 11903 . . . . . . . . . . . . . . . . . . 19 ((2nd𝑧) ∈ (1...(𝑁 − 1)) → 0 < (2nd𝑧))
112111iftrued 4461 . . . . . . . . . . . . . . . . . 18 ((2nd𝑧) ∈ (1...(𝑁 − 1)) → if(0 < (2nd𝑧), 0, (𝑦 + 1)) = 0)
113112ad2antlr 727 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → if(0 < (2nd𝑧), 0, (𝑦 + 1)) = 0)
114109, 113sylan9eqr 2801 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑦 = 0) → if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) = 0)
115114csbeq1d 3829 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑦 = 0) → if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = 0 / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))
116 c0ex 10851 . . . . . . . . . . . . . . . . . 18 0 ∈ V
117 oveq2 7239 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑗 = 0 → (1...𝑗) = (1...0))
118 fz10 13157 . . . . . . . . . . . . . . . . . . . . . . . 24 (1...0) = ∅
119117, 118eqtrdi 2795 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑗 = 0 → (1...𝑗) = ∅)
120119imaeq2d 5943 . . . . . . . . . . . . . . . . . . . . . 22 (𝑗 = 0 → ((2nd ‘(1st𝑧)) “ (1...𝑗)) = ((2nd ‘(1st𝑧)) “ ∅))
121120xpeq1d 5594 . . . . . . . . . . . . . . . . . . . . 21 (𝑗 = 0 → (((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑧)) “ ∅) × {1}))
122 oveq1 7238 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑗 = 0 → (𝑗 + 1) = (0 + 1))
123 0p1e1 11976 . . . . . . . . . . . . . . . . . . . . . . . . 25 (0 + 1) = 1
124122, 123eqtrdi 2795 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑗 = 0 → (𝑗 + 1) = 1)
125124oveq1d 7246 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑗 = 0 → ((𝑗 + 1)...𝑁) = (1...𝑁))
126125imaeq2d 5943 . . . . . . . . . . . . . . . . . . . . . 22 (𝑗 = 0 → ((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑧)) “ (1...𝑁)))
127126xpeq1d 5594 . . . . . . . . . . . . . . . . . . . . 21 (𝑗 = 0 → (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
128121, 127uneq12d 4092 . . . . . . . . . . . . . . . . . . . 20 (𝑗 = 0 → ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑧)) “ ∅) × {1}) ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})))
129 ima0 5959 . . . . . . . . . . . . . . . . . . . . . . . 24 ((2nd ‘(1st𝑧)) “ ∅) = ∅
130129xpeq1i 5591 . . . . . . . . . . . . . . . . . . . . . . 23 (((2nd ‘(1st𝑧)) “ ∅) × {1}) = (∅ × {1})
131 0xp 5660 . . . . . . . . . . . . . . . . . . . . . . 23 (∅ × {1}) = ∅
132130, 131eqtri 2766 . . . . . . . . . . . . . . . . . . . . . 22 (((2nd ‘(1st𝑧)) “ ∅) × {1}) = ∅
133132uneq1i 4087 . . . . . . . . . . . . . . . . . . . . 21 ((((2nd ‘(1st𝑧)) “ ∅) × {1}) ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = (∅ ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
134 uncom 4081 . . . . . . . . . . . . . . . . . . . . 21 (∅ ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = ((((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}) ∪ ∅)
135 un0 4319 . . . . . . . . . . . . . . . . . . . . 21 ((((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}) ∪ ∅) = (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})
136133, 134, 1353eqtri 2770 . . . . . . . . . . . . . . . . . . . 20 ((((2nd ‘(1st𝑧)) “ ∅) × {1}) ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})
137128, 136eqtrdi 2795 . . . . . . . . . . . . . . . . . . 19 (𝑗 = 0 → ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})) = (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
138137oveq2d 7247 . . . . . . . . . . . . . . . . . 18 (𝑗 = 0 → ((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑧)) ∘f + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})))
139116, 138csbie 3861 . . . . . . . . . . . . . . . . 17 0 / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑧)) ∘f + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
140 f1ofo 6686 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁) → (2nd ‘(1st𝑧)):(1...𝑁)–onto→(1...𝑁))
14189, 140syl 17 . . . . . . . . . . . . . . . . . . . . 21 (𝑧𝑆 → (2nd ‘(1st𝑧)):(1...𝑁)–onto→(1...𝑁))
142 foima 6656 . . . . . . . . . . . . . . . . . . . . 21 ((2nd ‘(1st𝑧)):(1...𝑁)–onto→(1...𝑁) → ((2nd ‘(1st𝑧)) “ (1...𝑁)) = (1...𝑁))
143141, 142syl 17 . . . . . . . . . . . . . . . . . . . 20 (𝑧𝑆 → ((2nd ‘(1st𝑧)) “ (1...𝑁)) = (1...𝑁))
144143xpeq1d 5594 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}) = ((1...𝑁) × {0}))
145144oveq2d 7247 . . . . . . . . . . . . . . . . . 18 (𝑧𝑆 → ((1st ‘(1st𝑧)) ∘f + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = ((1st ‘(1st𝑧)) ∘f + ((1...𝑁) × {0})))
146 ovexd 7266 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (1...𝑁) ∈ V)
14780ffnd 6564 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (1st ‘(1st𝑧)) Fn (1...𝑁))
148 fnconstg 6625 . . . . . . . . . . . . . . . . . . . 20 (0 ∈ V → ((1...𝑁) × {0}) Fn (1...𝑁))
149116, 148mp1i 13 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → ((1...𝑁) × {0}) Fn (1...𝑁))
150 eqidd 2739 . . . . . . . . . . . . . . . . . . 19 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) = ((1st ‘(1st𝑧))‘𝑛))
151116fvconst2 7037 . . . . . . . . . . . . . . . . . . . 20 (𝑛 ∈ (1...𝑁) → (((1...𝑁) × {0})‘𝑛) = 0)
152151adantl 485 . . . . . . . . . . . . . . . . . . 19 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → (((1...𝑁) × {0})‘𝑛) = 0)
15380ffvelrnda 6922 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) ∈ (0..^𝐾))
154 elfzonn0 13311 . . . . . . . . . . . . . . . . . . . . . 22 (((1st ‘(1st𝑧))‘𝑛) ∈ (0..^𝐾) → ((1st ‘(1st𝑧))‘𝑛) ∈ ℕ0)
155153, 154syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) ∈ ℕ0)
156155nn0cnd 12176 . . . . . . . . . . . . . . . . . . . 20 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) ∈ ℂ)
157156addid1d 11056 . . . . . . . . . . . . . . . . . . 19 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → (((1st ‘(1st𝑧))‘𝑛) + 0) = ((1st ‘(1st𝑧))‘𝑛))
158146, 147, 149, 147, 150, 152, 157offveq 7510 . . . . . . . . . . . . . . . . . 18 (𝑧𝑆 → ((1st ‘(1st𝑧)) ∘f + ((1...𝑁) × {0})) = (1st ‘(1st𝑧)))
159145, 158eqtrd 2778 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 → ((1st ‘(1st𝑧)) ∘f + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = (1st ‘(1st𝑧)))
160139, 159syl5eq 2791 . . . . . . . . . . . . . . . 16 (𝑧𝑆0 / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = (1st ‘(1st𝑧)))
161160ad2antlr 727 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑦 = 0) → 0 / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = (1st ‘(1st𝑧)))
162115, 161eqtrd 2778 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑦 = 0) → if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = (1st ‘(1st𝑧)))
163 nnm1nn0 12155 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ ℕ → (𝑁 − 1) ∈ ℕ0)
1641, 163syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (𝑁 − 1) ∈ ℕ0)
165 0elfz 13233 . . . . . . . . . . . . . . . 16 ((𝑁 − 1) ∈ ℕ0 → 0 ∈ (0...(𝑁 − 1)))
166164, 165syl 17 . . . . . . . . . . . . . . 15 (𝜑 → 0 ∈ (0...(𝑁 − 1)))
167166ad2antrr 726 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → 0 ∈ (0...(𝑁 − 1)))
168 fvexd 6750 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (1st ‘(1st𝑧)) ∈ V)
169106, 162, 167, 168fvmptd 6843 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑧)))
170105, 169sylan 583 . . . . . . . . . . . 12 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ (2nd𝑧) = (2nd𝑇)) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑧)))
171170an32s 652 . . . . . . . . . . 11 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) = (2nd𝑇)) → (𝐹‘0) = (1st ‘(1st𝑧)))
172101, 171mpdan 687 . . . . . . . . . 10 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑧)))
173 fveq2 6735 . . . . . . . . . . . . . . . 16 (𝑧 = 𝑇 → (2nd𝑧) = (2nd𝑇))
174173eleq1d 2823 . . . . . . . . . . . . . . 15 (𝑧 = 𝑇 → ((2nd𝑧) ∈ (1...(𝑁 − 1)) ↔ (2nd𝑇) ∈ (1...(𝑁 − 1))))
175174anbi2d 632 . . . . . . . . . . . . . 14 (𝑧 = 𝑇 → ((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ↔ (𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1)))))
176 2fveq3 6740 . . . . . . . . . . . . . . 15 (𝑧 = 𝑇 → (1st ‘(1st𝑧)) = (1st ‘(1st𝑇)))
177176eqeq2d 2749 . . . . . . . . . . . . . 14 (𝑧 = 𝑇 → ((𝐹‘0) = (1st ‘(1st𝑧)) ↔ (𝐹‘0) = (1st ‘(1st𝑇))))
178175, 177imbi12d 348 . . . . . . . . . . . . 13 (𝑧 = 𝑇 → (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑧))) ↔ ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑇)))))
179169expcom 417 . . . . . . . . . . . . 13 (𝑧𝑆 → ((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑧))))
180178, 179vtoclga 3501 . . . . . . . . . . . 12 (𝑇𝑆 → ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑇))))
1817, 180mpcom 38 . . . . . . . . . . 11 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑇)))
182181adantr 484 . . . . . . . . . 10 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑇)))
183172, 182eqtr3d 2780 . . . . . . . . 9 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (1st ‘(1st𝑧)) = (1st ‘(1st𝑇)))
184183adantr 484 . . . . . . . 8 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (1st ‘(1st𝑧)) = (1st ‘(1st𝑇)))
1851ad3antrrr 730 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → 𝑁 ∈ ℕ)
1866ad3antrrr 730 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → 𝑇𝑆)
187 simpllr 776 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd𝑇) ∈ (1...(𝑁 − 1)))
188 simplr 769 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → 𝑧𝑆)
18934adantr 484 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (1st𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
190 xpopth 7820 . . . . . . . . . . . . . 14 (((1st𝑧) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) ∧ (1st𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)})) → (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇))) ↔ (1st𝑧) = (1st𝑇)))
19176, 189, 190syl2anr 600 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇))) ↔ (1st𝑧) = (1st𝑇)))
19232adantr 484 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
193 xpopth 7820 . . . . . . . . . . . . . . . 16 ((𝑧 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (((1st𝑧) = (1st𝑇) ∧ (2nd𝑧) = (2nd𝑇)) ↔ 𝑧 = 𝑇))
194193biimpd 232 . . . . . . . . . . . . . . 15 ((𝑧 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (((1st𝑧) = (1st𝑇) ∧ (2nd𝑧) = (2nd𝑇)) → 𝑧 = 𝑇))
19574, 192, 194syl2anr 600 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (((1st𝑧) = (1st𝑇) ∧ (2nd𝑧) = (2nd𝑇)) → 𝑧 = 𝑇))
196101, 195mpan2d 694 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ((1st𝑧) = (1st𝑇) → 𝑧 = 𝑇))
197191, 196sylbid 243 . . . . . . . . . . . 12 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇))) → 𝑧 = 𝑇))
198183, 197mpand 695 . . . . . . . . . . 11 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ((2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇)) → 𝑧 = 𝑇))
199198necon3d 2962 . . . . . . . . . 10 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝑧𝑇 → (2nd ‘(1st𝑧)) ≠ (2nd ‘(1st𝑇))))
200199imp 410 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd ‘(1st𝑧)) ≠ (2nd ‘(1st𝑇)))
201185, 3, 186, 187, 188, 200poimirlem9 35549 . . . . . . . 8 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))))
202101adantr 484 . . . . . . . 8 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd𝑧) = (2nd𝑇))
203184, 201, 202jca31 518 . . . . . . 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𝑇)))
204203ex 416 . . . . . 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𝑇))))
205 simplr 769 . . . . . . . 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)})))))
206 elfznn 13165 . . . . . . . . . . . . . 14 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ∈ ℕ)
207206nnred 11869 . . . . . . . . . . . . 13 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ∈ ℝ)
208207ltp1d 11786 . . . . . . . . . . . . 13 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) < ((2nd𝑇) + 1))
209207, 208ltned 10992 . . . . . . . . . . . 12 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ≠ ((2nd𝑇) + 1))
210209adantl 485 . . . . . . . . . . 11 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd𝑇) ≠ ((2nd𝑇) + 1))
211 fveq1 6734 . . . . . . . . . . . . 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𝑇)))
212 id 22 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd𝑇) ∈ ℝ → (2nd𝑇) ∈ ℝ)
213 ltp1 11696 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd𝑇) ∈ ℝ → (2nd𝑇) < ((2nd𝑇) + 1))
214212, 213ltned 10992 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ∈ ℝ → (2nd𝑇) ≠ ((2nd𝑇) + 1))
215 fvex 6748 . . . . . . . . . . . . . . . . . . . . . 22 (2nd𝑇) ∈ V
216 ovex 7264 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd𝑇) + 1) ∈ V
217215, 216, 216, 215fpr 6987 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ≠ ((2nd𝑇) + 1) → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}⟶{((2nd𝑇) + 1), (2nd𝑇)})
218214, 217syl 17 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ ℝ → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}:{(2nd𝑇), ((2nd𝑇) + 1)}⟶{((2nd𝑇) + 1), (2nd𝑇)})
219 f1oi 6716 . . . . . . . . . . . . . . . . . . . . 21 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})–1-1-onto→((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
220 f1of 6679 . . . . . . . . . . . . . . . . . . . . 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)}))
221219, 220ax-mp 5 . . . . . . . . . . . . . . . . . . . 20 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})⟶((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
222 disjdif 4400 . . . . . . . . . . . . . . . . . . . . 21 ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ∅
223 fun 6599 . . . . . . . . . . . . . . . . . . . . 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)})))
224222, 223mpan2 691 . . . . . . . . . . . . . . . . . . . 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)})))
225218, 221, 224sylancl 589 . . . . . . . . . . . . . . . . . . 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)})))
226215prid1 4692 . . . . . . . . . . . . . . . . . . . 20 (2nd𝑇) ∈ {(2nd𝑇), ((2nd𝑇) + 1)}
227 elun1 4104 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ {(2nd𝑇), ((2nd𝑇) + 1)} → (2nd𝑇) ∈ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))
228226, 227ax-mp 5 . . . . . . . . . . . . . . . . . . 19 (2nd𝑇) ∈ ({(2nd𝑇), ((2nd𝑇) + 1)} ∪ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))
229 fvco3 6828 . . . . . . . . . . . . . . . . . . 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𝑇))))
230225, 228, 229sylancl 589 . . . . . . . . . . . . . . . . . 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𝑇))))
231218ffnd 6564 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ∈ ℝ → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)})
232 fnresi 6524 . . . . . . . . . . . . . . . . . . . . . 22 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) Fn ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
233222, 226pm3.2i 474 . . . . . . . . . . . . . . . . . . . . . 22 (({(2nd𝑇), ((2nd𝑇) + 1)} ∩ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ∅ ∧ (2nd𝑇) ∈ {(2nd𝑇), ((2nd𝑇) + 1)})
234 fvun1 6820 . . . . . . . . . . . . . . . . . . . . . 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𝑇)))
235232, 233, 234mp3an23 1455 . . . . . . . . . . . . . . . . . . . . 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𝑇)))
236231, 235syl 17 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ ℝ → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))‘(2nd𝑇)) = ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}‘(2nd𝑇)))
237215, 216fvpr1 7023 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ≠ ((2nd𝑇) + 1) → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}‘(2nd𝑇)) = ((2nd𝑇) + 1))
238214, 237syl 17 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑇) ∈ ℝ → ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩}‘(2nd𝑇)) = ((2nd𝑇) + 1))
239236, 238eqtrd 2778 . . . . . . . . . . . . . . . . . . 19 ((2nd𝑇) ∈ ℝ → (({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))‘(2nd𝑇)) = ((2nd𝑇) + 1))
240239fveq2d 6739 . . . . . . . . . . . . . . . . . 18 ((2nd𝑇) ∈ ℝ → ((2nd ‘(1st𝑇))‘(({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))‘(2nd𝑇))) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)))
241230, 240eqtrd 2778 . . . . . . . . . . . . . . . . 17 ((2nd𝑇) ∈ ℝ → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)))
242207, 241syl 17 . . . . . . . . . . . . . . . 16 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)))
243242eqeq2d 2749 . . . . . . . . . . . . . . 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))))
244243adantl 485 . . . . . . . . . . . . . 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))))
245 f1of1 6678 . . . . . . . . . . . . . . . . 17 ((2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁) → (2nd ‘(1st𝑇)):(1...𝑁)–1-1→(1...𝑁))
24649, 245syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (2nd ‘(1st𝑇)):(1...𝑁)–1-1→(1...𝑁))
247246adantr 484 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd ‘(1st𝑇)):(1...𝑁)–1-1→(1...𝑁))
2481nncnd 11870 . . . . . . . . . . . . . . . . . . 19 (𝜑𝑁 ∈ ℂ)
249 npcan1 11281 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ ℂ → ((𝑁 − 1) + 1) = 𝑁)
250248, 249syl 17 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((𝑁 − 1) + 1) = 𝑁)
251164nn0zd 12304 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (𝑁 − 1) ∈ ℤ)
252 uzid 12477 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 − 1) ∈ ℤ → (𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)))
253251, 252syl 17 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)))
254 peano2uz 12521 . . . . . . . . . . . . . . . . . . 19 ((𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)) → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
255253, 254syl 17 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
256250, 255eqeltrrd 2840 . . . . . . . . . . . . . . . . 17 (𝜑𝑁 ∈ (ℤ‘(𝑁 − 1)))
257 fzss2 13176 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ (ℤ‘(𝑁 − 1)) → (1...(𝑁 − 1)) ⊆ (1...𝑁))
258256, 257syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (1...(𝑁 − 1)) ⊆ (1...𝑁))
259258sselda 3915 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd𝑇) ∈ (1...𝑁))
260 fzp1elp1 13189 . . . . . . . . . . . . . . . . 17 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → ((2nd𝑇) + 1) ∈ (1...((𝑁 − 1) + 1)))
261260adantl 485 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) + 1) ∈ (1...((𝑁 − 1) + 1)))
262250oveq2d 7247 . . . . . . . . . . . . . . . . 17 (𝜑 → (1...((𝑁 − 1) + 1)) = (1...𝑁))
263262adantr 484 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (1...((𝑁 − 1) + 1)) = (1...𝑁))
264261, 263eleqtrd 2841 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) + 1) ∈ (1...𝑁))
265 f1veqaeq 7087 . . . . . . . . . . . . . . 15 (((2nd ‘(1st𝑇)):(1...𝑁)–1-1→(1...𝑁) ∧ ((2nd𝑇) ∈ (1...𝑁) ∧ ((2nd𝑇) + 1) ∈ (1...𝑁))) → (((2nd ‘(1st𝑇))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)) → (2nd𝑇) = ((2nd𝑇) + 1)))
266247, 259, 264, 265syl12anc 837 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (((2nd ‘(1st𝑇))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)) → (2nd𝑇) = ((2nd𝑇) + 1)))
267244, 266sylbid 243 . . . . . . . . . . . . 13 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (((2nd ‘(1st𝑇))‘(2nd𝑇)) = (((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))‘(2nd𝑇)) → (2nd𝑇) = ((2nd𝑇) + 1)))
268211, 267syl5 34 . . . . . . . . . . . 12 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd ‘(1st𝑇)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) → (2nd𝑇) = ((2nd𝑇) + 1)))
269268necon3d 2962 . . . . . . . . . . 11 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) ≠ ((2nd𝑇) + 1) → (2nd ‘(1st𝑇)) ≠ ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))))
270210, 269mpd 15 . . . . . . . . . 10 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd ‘(1st𝑇)) ≠ ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))))
271 2fveq3 6740 . . . . . . . . . . 11 (𝑧 = 𝑇 → (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇)))
272271neeq1d 3001 . . . . . . . . . 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)}))))))
273270, 272syl5ibrcom 250 . . . . . . . . 9 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝑧 = 𝑇 → (2nd ‘(1st𝑧)) ≠ ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))))
274273necon2d 2964 . . . . . . . 8 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))) → 𝑧𝑇))
275205, 274syl5 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𝑇)) → 𝑧𝑇))
276275adantr 484 . . . . . 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𝑇)) → 𝑧𝑇))
277204, 276impbid 215 . . . . 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𝑇))))
278 eqop 7821 . . . . . . . 8 (𝑧 ∈ ((((0..^𝐾) ↑m (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𝑇))))
279 eqop 7821 . . . . . . . . . 10 ((1st𝑧) ∈ (((0..^𝐾) ↑m (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)})))))))
28075, 279syl 17 . . . . . . . . 9 (𝑧 ∈ ((((0..^𝐾) ↑m (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)})))))))
281280anbi1d 633 . . . . . . . 8 (𝑧 ∈ ((((0..^𝐾) ↑m (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𝑇))))
282278, 281bitrd 282 . . . . . . 7 (𝑧 ∈ ((((0..^𝐾) ↑m (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𝑇))))
28374, 282syl 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𝑇))))
284283adantl 485 . . . . 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𝑇))))
285277, 284bitr4d 285 . . . 4 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝑧𝑇𝑧 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩))
286285ralrimiva 3106 . . 3 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ∀𝑧𝑆 (𝑧𝑇𝑧 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩))
287 reu6i 3655 . . 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𝑇)⟩)) → ∃!𝑧𝑆 𝑧𝑇)
2889, 286, 287syl2anc 587 . 2 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ∃!𝑧𝑆 𝑧𝑇)
289 xp2nd 7812 . . . . . . 7 (𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (2nd𝑇) ∈ (0...𝑁))
29032, 289syl 17 . . . . . 6 (𝜑 → (2nd𝑇) ∈ (0...𝑁))
291290biantrurd 536 . . . . 5 (𝜑 → (¬ (2nd𝑇) ∈ (1...(𝑁 − 1)) ↔ ((2nd𝑇) ∈ (0...𝑁) ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1)))))
2921nnnn0d 12174 . . . . . . . . . . . 12 (𝜑𝑁 ∈ ℕ0)
293 nn0uz 12500 . . . . . . . . . . . 12 0 = (ℤ‘0)
294292, 293eleqtrdi 2849 . . . . . . . . . . 11 (𝜑𝑁 ∈ (ℤ‘0))
295 fzpred 13184 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘0) → (0...𝑁) = ({0} ∪ ((0 + 1)...𝑁)))
296294, 295syl 17 . . . . . . . . . 10 (𝜑 → (0...𝑁) = ({0} ∪ ((0 + 1)...𝑁)))
297123oveq1i 7241 . . . . . . . . . . 11 ((0 + 1)...𝑁) = (1...𝑁)
298297uneq2i 4088 . . . . . . . . . 10 ({0} ∪ ((0 + 1)...𝑁)) = ({0} ∪ (1...𝑁))
299296, 298eqtrdi 2795 . . . . . . . . 9 (𝜑 → (0...𝑁) = ({0} ∪ (1...𝑁)))
300299difeq1d 4050 . . . . . . . 8 (𝜑 → ((0...𝑁) ∖ (1...(𝑁 − 1))) = (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))))
301 difundir 4209 . . . . . . . . . 10 (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))) = (({0} ∖ (1...(𝑁 − 1))) ∪ ((1...𝑁) ∖ (1...(𝑁 − 1))))
302 0lt1 11378 . . . . . . . . . . . . . 14 0 < 1
303 0re 10859 . . . . . . . . . . . . . . 15 0 ∈ ℝ
304 1re 10857 . . . . . . . . . . . . . . 15 1 ∈ ℝ
305303, 304ltnlei 10977 . . . . . . . . . . . . . 14 (0 < 1 ↔ ¬ 1 ≤ 0)
306302, 305mpbi 233 . . . . . . . . . . . . 13 ¬ 1 ≤ 0
307 elfzle1 13139 . . . . . . . . . . . . 13 (0 ∈ (1...(𝑁 − 1)) → 1 ≤ 0)
308306, 307mto 200 . . . . . . . . . . . 12 ¬ 0 ∈ (1...(𝑁 − 1))
309 incom 4129 . . . . . . . . . . . . . 14 ((1...(𝑁 − 1)) ∩ {0}) = ({0} ∩ (1...(𝑁 − 1)))
310309eqeq1i 2743 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {0}) = ∅ ↔ ({0} ∩ (1...(𝑁 − 1))) = ∅)
311 disjsn 4641 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {0}) = ∅ ↔ ¬ 0 ∈ (1...(𝑁 − 1)))
312 disj3 4382 . . . . . . . . . . . . 13 (({0} ∩ (1...(𝑁 − 1))) = ∅ ↔ {0} = ({0} ∖ (1...(𝑁 − 1))))
313310, 311, 3123bitr3i 304 . . . . . . . . . . . 12 (¬ 0 ∈ (1...(𝑁 − 1)) ↔ {0} = ({0} ∖ (1...(𝑁 − 1))))
314308, 313mpbi 233 . . . . . . . . . . 11 {0} = ({0} ∖ (1...(𝑁 − 1)))
315314uneq1i 4087 . . . . . . . . . 10 ({0} ∪ ((1...𝑁) ∖ (1...(𝑁 − 1)))) = (({0} ∖ (1...(𝑁 − 1))) ∪ ((1...𝑁) ∖ (1...(𝑁 − 1))))
316301, 315eqtr4i 2769 . . . . . . . . 9 (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))) = ({0} ∪ ((1...𝑁) ∖ (1...(𝑁 − 1))))
317 difundir 4209 . . . . . . . . . . . 12 (((1...(𝑁 − 1)) ∪ {𝑁}) ∖ (1...(𝑁 − 1))) = (((1...(𝑁 − 1)) ∖ (1...(𝑁 − 1))) ∪ ({𝑁} ∖ (1...(𝑁 − 1))))
318 difid 4299 . . . . . . . . . . . . 13 ((1...(𝑁 − 1)) ∖ (1...(𝑁 − 1))) = ∅
319318uneq1i 4087 . . . . . . . . . . . 12 (((1...(𝑁 − 1)) ∖ (1...(𝑁 − 1))) ∪ ({𝑁} ∖ (1...(𝑁 − 1)))) = (∅ ∪ ({𝑁} ∖ (1...(𝑁 − 1))))
320 uncom 4081 . . . . . . . . . . . . 13 (∅ ∪ ({𝑁} ∖ (1...(𝑁 − 1)))) = (({𝑁} ∖ (1...(𝑁 − 1))) ∪ ∅)
321 un0 4319 . . . . . . . . . . . . 13 (({𝑁} ∖ (1...(𝑁 − 1))) ∪ ∅) = ({𝑁} ∖ (1...(𝑁 − 1)))
322320, 321eqtri 2766 . . . . . . . . . . . 12 (∅ ∪ ({𝑁} ∖ (1...(𝑁 − 1)))) = ({𝑁} ∖ (1...(𝑁 − 1)))
323317, 319, 3223eqtri 2770 . . . . . . . . . . 11 (((1...(𝑁 − 1)) ∪ {𝑁}) ∖ (1...(𝑁 − 1))) = ({𝑁} ∖ (1...(𝑁 − 1)))
324 nnuz 12501 . . . . . . . . . . . . . . . 16 ℕ = (ℤ‘1)
3251, 324eleqtrdi 2849 . . . . . . . . . . . . . . 15 (𝜑𝑁 ∈ (ℤ‘1))
326250, 325eqeltrd 2839 . . . . . . . . . . . . . 14 (𝜑 → ((𝑁 − 1) + 1) ∈ (ℤ‘1))
327 fzsplit2 13161 . . . . . . . . . . . . . 14 ((((𝑁 − 1) + 1) ∈ (ℤ‘1) ∧ 𝑁 ∈ (ℤ‘(𝑁 − 1))) → (1...𝑁) = ((1...(𝑁 − 1)) ∪ (((𝑁 − 1) + 1)...𝑁)))
328326, 256, 327syl2anc 587 . . . . . . . . . . . . 13 (𝜑 → (1...𝑁) = ((1...(𝑁 − 1)) ∪ (((𝑁 − 1) + 1)...𝑁)))
329250oveq1d 7246 . . . . . . . . . . . . . . 15 (𝜑 → (((𝑁 − 1) + 1)...𝑁) = (𝑁...𝑁))
3301nnzd 12305 . . . . . . . . . . . . . . . 16 (𝜑𝑁 ∈ ℤ)
331 fzsn 13178 . . . . . . . . . . . . . . . 16 (𝑁 ∈ ℤ → (𝑁...𝑁) = {𝑁})
332330, 331syl 17 . . . . . . . . . . . . . . 15 (𝜑 → (𝑁...𝑁) = {𝑁})
333329, 332eqtrd 2778 . . . . . . . . . . . . . 14 (𝜑 → (((𝑁 − 1) + 1)...𝑁) = {𝑁})
334333uneq2d 4091 . . . . . . . . . . . . 13 (𝜑 → ((1...(𝑁 − 1)) ∪ (((𝑁 − 1) + 1)...𝑁)) = ((1...(𝑁 − 1)) ∪ {𝑁}))
335328, 334eqtrd 2778 . . . . . . . . . . . 12 (𝜑 → (1...𝑁) = ((1...(𝑁 − 1)) ∪ {𝑁}))
336335difeq1d 4050 . . . . . . . . . . 11 (𝜑 → ((1...𝑁) ∖ (1...(𝑁 − 1))) = (((1...(𝑁 − 1)) ∪ {𝑁}) ∖ (1...(𝑁 − 1))))
3371nnred 11869 . . . . . . . . . . . . . . 15 (𝜑𝑁 ∈ ℝ)
338337ltm1d 11788 . . . . . . . . . . . . . 14 (𝜑 → (𝑁 − 1) < 𝑁)
339164nn0red 12175 . . . . . . . . . . . . . . 15 (𝜑 → (𝑁 − 1) ∈ ℝ)
340339, 337ltnled 11003 . . . . . . . . . . . . . 14 (𝜑 → ((𝑁 − 1) < 𝑁 ↔ ¬ 𝑁 ≤ (𝑁 − 1)))
341338, 340mpbid 235 . . . . . . . . . . . . 13 (𝜑 → ¬ 𝑁 ≤ (𝑁 − 1))
342 elfzle2 13140 . . . . . . . . . . . . 13 (𝑁 ∈ (1...(𝑁 − 1)) → 𝑁 ≤ (𝑁 − 1))
343341, 342nsyl 142 . . . . . . . . . . . 12 (𝜑 → ¬ 𝑁 ∈ (1...(𝑁 − 1)))
344 incom 4129 . . . . . . . . . . . . . 14 ((1...(𝑁 − 1)) ∩ {𝑁}) = ({𝑁} ∩ (1...(𝑁 − 1)))
345344eqeq1i 2743 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {𝑁}) = ∅ ↔ ({𝑁} ∩ (1...(𝑁 − 1))) = ∅)
346 disjsn 4641 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {𝑁}) = ∅ ↔ ¬ 𝑁 ∈ (1...(𝑁 − 1)))
347 disj3 4382 . . . . . . . . . . . . 13 (({𝑁} ∩ (1...(𝑁 − 1))) = ∅ ↔ {𝑁} = ({𝑁} ∖ (1...(𝑁 − 1))))
348345, 346, 3473bitr3i 304 . . . . . . . . . . . 12 𝑁 ∈ (1...(𝑁 − 1)) ↔ {𝑁} = ({𝑁} ∖ (1...(𝑁 − 1))))
349343, 348sylib 221 . . . . . . . . . . 11 (𝜑 → {𝑁} = ({𝑁} ∖ (1...(𝑁 − 1))))
350323, 336, 3493eqtr4a 2805 . . . . . . . . . 10 (𝜑 → ((1...𝑁) ∖ (1...(𝑁 − 1))) = {𝑁})
351350uneq2d 4091 . . . . . . . . 9 (𝜑 → ({0} ∪ ((1...𝑁) ∖ (1...(𝑁 − 1)))) = ({0} ∪ {𝑁}))
352316, 351syl5eq 2791 . . . . . . . 8 (𝜑 → (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))) = ({0} ∪ {𝑁}))
353300, 352eqtrd 2778 . . . . . . 7 (𝜑 → ((0...𝑁) ∖ (1...(𝑁 − 1))) = ({0} ∪ {𝑁}))
354353eleq2d 2824 . . . . . 6 (𝜑 → ((2nd𝑇) ∈ ((0...𝑁) ∖ (1...(𝑁 − 1))) ↔ (2nd𝑇) ∈ ({0} ∪ {𝑁})))
355 eldif 3890 . . . . . 6 ((2nd𝑇) ∈ ((0...𝑁) ∖ (1...(𝑁 − 1))) ↔ ((2nd𝑇) ∈ (0...𝑁) ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))))
356 elun 4077 . . . . . . 7 ((2nd𝑇) ∈ ({0} ∪ {𝑁}) ↔ ((2nd𝑇) ∈ {0} ∨ (2nd𝑇) ∈ {𝑁}))
357215elsn 4570 . . . . . . . 8 ((2nd𝑇) ∈ {0} ↔ (2nd𝑇) = 0)
358215elsn 4570 . . . . . . . 8 ((2nd𝑇) ∈ {𝑁} ↔ (2nd𝑇) = 𝑁)
359357, 358orbi12i 915 . . . . . . 7 (((2nd𝑇) ∈ {0} ∨ (2nd𝑇) ∈ {𝑁}) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁))
360356, 359bitri 278 . . . . . 6 ((2nd𝑇) ∈ ({0} ∪ {𝑁}) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁))
361354, 355, 3603bitr3g 316 . . . . 5 (𝜑 → (((2nd𝑇) ∈ (0...𝑁) ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁)))
362291, 361bitrd 282 . . . 4 (𝜑 → (¬ (2nd𝑇) ∈ (1...(𝑁 − 1)) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁)))
363362biimpa 480 . . 3 ((𝜑 ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁))
3641adantr 484 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → 𝑁 ∈ ℕ)
3654adantr 484 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → 𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑m (1...𝑁)))
3666adantr 484 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → 𝑇𝑆)
367 poimirlem22.4 . . . . . 6 ((𝜑𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 𝐾)
368367adantlr 715 . . . . 5 (((𝜑 ∧ (2nd𝑇) = 0) ∧ 𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 𝐾)
369 simpr 488 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → (2nd𝑇) = 0)
370364, 3, 365, 366, 368, 369poimirlem18 35558 . . . 4 ((𝜑 ∧ (2nd𝑇) = 0) → ∃!𝑧𝑆 𝑧𝑇)
3711adantr 484 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → 𝑁 ∈ ℕ)
3724adantr 484 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → 𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑m (1...𝑁)))
3736adantr 484 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → 𝑇𝑆)
374 poimirlem22.3 . . . . . 6 ((𝜑𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 0)
375374adantlr 715 . . . . 5 (((𝜑 ∧ (2nd𝑇) = 𝑁) ∧ 𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 0)
376 simpr 488 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → (2nd𝑇) = 𝑁)
377371, 3, 372, 373, 375, 376poimirlem21 35561 . . . 4 ((𝜑 ∧ (2nd𝑇) = 𝑁) → ∃!𝑧𝑆 𝑧𝑇)
378370, 377jaodan 958 . . 3 ((𝜑 ∧ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁)) → ∃!𝑧𝑆 𝑧𝑇)
379363, 378syldan 594 . 2 ((𝜑 ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ∃!𝑧𝑆 𝑧𝑇)
380288, 379pm2.61dan 813 1 (𝜑 → ∃!𝑧𝑆 𝑧𝑇)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 209  wa 399  wo 847   = wceq 1543  wcel 2111  {cab 2715  wne 2941  wral 3062  wrex 3063  ∃!wreu 3064  ∃*wrmo 3065  {crab 3066  Vcvv 3420  csb 3825  cdif 3877  cun 3878  cin 3879  wss 3880  c0 4251  ifcif 4453  {csn 4555  {cpr 4557  cop 4561   class class class wbr 5067  cmpt 5149   I cid 5468   × cxp 5563  ran crn 5566  cres 5567  cima 5568  ccom 5569   Fn wfn 6392  wf 6393  1-1wf1 6394  ontowfo 6395  1-1-ontowf1o 6396  cfv 6397  (class class class)co 7231  f cof 7485  1st c1st 7777  2nd c2nd 7778  m cmap 8528  cc 10751  cr 10752  0cc0 10753  1c1 10754   + caddc 10756   < clt 10891  cle 10892  cmin 11086  cn 11854  0cn0 12114  cz 12200  cuz 12462  ...cfz 13119  ..^cfzo 13262
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2159  ax-12 2176  ax-ext 2709  ax-rep 5193  ax-sep 5206  ax-nul 5213  ax-pow 5272  ax-pr 5336  ax-un 7541  ax-cnex 10809  ax-resscn 10810  ax-1cn 10811  ax-icn 10812  ax-addcl 10813  ax-addrcl 10814  ax-mulcl 10815  ax-mulrcl 10816  ax-mulcom 10817  ax-addass 10818  ax-mulass 10819  ax-distr 10820  ax-i2m1 10821  ax-1ne0 10822  ax-1rid 10823  ax-rnegex 10824  ax-rrecex 10825  ax-cnre 10826  ax-pre-lttri 10827  ax-pre-lttrn 10828  ax-pre-ltadd 10829  ax-pre-mulgt0 10830
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3or 1090  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2072  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2887  df-ne 2942  df-nel 3048  df-ral 3067  df-rex 3068  df-reu 3069  df-rmo 3070  df-rab 3071  df-v 3422  df-sbc 3709  df-csb 3826  df-dif 3883  df-un 3885  df-in 3887  df-ss 3897  df-pss 3899  df-nul 4252  df-if 4454  df-pw 4529  df-sn 4556  df-pr 4558  df-tp 4560  df-op 4562  df-uni 4834  df-int 4874  df-iun 4920  df-br 5068  df-opab 5130  df-mpt 5150  df-tr 5176  df-id 5469  df-eprel 5474  df-po 5482  df-so 5483  df-fr 5523  df-we 5525  df-xp 5571  df-rel 5572  df-cnv 5573  df-co 5574  df-dm 5575  df-rn 5576  df-res 5577  df-ima 5578  df-pred 6175  df-ord 6233  df-on 6234  df-lim 6235  df-suc 6236  df-iota 6355  df-fun 6399  df-fn 6400  df-f 6401  df-f1 6402  df-fo 6403  df-f1o 6404  df-fv 6405  df-riota 7188  df-ov 7234  df-oprab 7235  df-mpo 7236  df-of 7487  df-om 7663  df-1st 7779  df-2nd 7780  df-wrecs 8067  df-recs 8128  df-rdg 8166  df-1o 8222  df-oadd 8226  df-er 8411  df-map 8530  df-pm 8531  df-en 8647  df-dom 8648  df-sdom 8649  df-fin 8650  df-dju 9541  df-card 9579  df-pnf 10893  df-mnf 10894  df-xr 10895  df-ltxr 10896  df-le 10897  df-sub 11088  df-neg 11089  df-div 11514  df-nn 11855  df-2 11917  df-3 11918  df-n0 12115  df-xnn0 12187  df-z 12201  df-uz 12463  df-fz 13120  df-fzo 13263  df-seq 13599  df-fac 13864  df-bc 13893  df-hash 13921
This theorem is referenced by:  poimirlem27  35567
  Copyright terms: Public domain W3C validator