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 35726
Description: Lemma for poimir 35737, 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 480 . . . 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 480 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑m (1...𝑁)))
6 poimirlem22.2 . . . . 5 (𝜑𝑇𝑆)
76adantr 480 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝑇𝑆)
8 simpr 484 . . . 4 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd𝑇) ∈ (1...(𝑁 − 1)))
92, 3, 5, 7, 8poimirlem15 35719 . . 3 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩ ∈ 𝑆)
10 fveq2 6756 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (2nd𝑡) = (2nd𝑇))
1110breq2d 5082 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑇 → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑇)))
1211ifbid 4479 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑇 → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)))
1312csbeq1d 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}))))
14 2fveq3 6761 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑇 → (1st ‘(1st𝑡)) = (1st ‘(1st𝑇)))
15 2fveq3 6761 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑡 = 𝑇 → (2nd ‘(1st𝑡)) = (2nd ‘(1st𝑇)))
1615imaeq1d 5957 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑇 → ((2nd ‘(1st𝑡)) “ (1...𝑗)) = ((2nd ‘(1st𝑇)) “ (1...𝑗)))
1716xpeq1d 5609 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}))
1815imaeq1d 5957 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑇 → ((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)))
1918xpeq1d 5609 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑇 → (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))
2017, 19uneq12d 4094 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑇 → ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))
2114, 20oveq12d 7273 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑇 → ((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0}))))
2221csbeq2dv 3835 . . . . . . . . . . . . . . . . . . . . 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 5172 . . . . . . . . . . . . . . . . . . 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 3620 . . . . . . . . . . . . . . . . 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 496 . . . . . . . . . . . . . . . 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 480 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑇), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑇)) ∘f + ((((2nd ‘(1st𝑇)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑇)) “ ((𝑗 + 1)...𝑁)) × {0})))))
30 elrabi 3611 . . . . . . . . . . . . . . . . . . . . 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 7836 . . . . . . . . . . . . . . . . . . 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 7836 . . . . . . . . . . . . . . . . . 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 8595 . . . . . . . . . . . . . . . . 17 ((1st ‘(1st𝑇)) ∈ ((0..^𝐾) ↑m (1...𝑁)) → (1st ‘(1st𝑇)):(1...𝑁)⟶(0..^𝐾))
3836, 37syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (1st ‘(1st𝑇)):(1...𝑁)⟶(0..^𝐾))
39 elfzoelz 13316 . . . . . . . . . . . . . . . . 17 (𝑛 ∈ (0..^𝐾) → 𝑛 ∈ ℤ)
4039ssriv 3921 . . . . . . . . . . . . . . . 16 (0..^𝐾) ⊆ ℤ
41 fss 6601 . . . . . . . . . . . . . . . 16 (((1st ‘(1st𝑇)):(1...𝑁)⟶(0..^𝐾) ∧ (0..^𝐾) ⊆ ℤ) → (1st ‘(1st𝑇)):(1...𝑁)⟶ℤ)
4238, 40, 41sylancl 585 . . . . . . . . . . . . . . 15 (𝜑 → (1st ‘(1st𝑇)):(1...𝑁)⟶ℤ)
4342adantr 480 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (1st ‘(1st𝑇)):(1...𝑁)⟶ℤ)
44 xp2nd 7837 . . . . . . . . . . . . . . . . 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 6769 . . . . . . . . . . . . . . . . 17 (2nd ‘(1st𝑇)) ∈ V
47 f1oeq1 6688 . . . . . . . . . . . . . . . . 17 (𝑓 = (2nd ‘(1st𝑇)) → (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) ↔ (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁)))
4846, 47elab 3602 . . . . . . . . . . . . . . . 16 ((2nd ‘(1st𝑇)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ↔ (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
4945, 48sylib 217 . . . . . . . . . . . . . . 15 (𝜑 → (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
5049adantr 480 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd ‘(1st𝑇)):(1...𝑁)–1-1-onto→(1...𝑁))
512, 29, 43, 50, 8poimirlem1 35705 . . . . . . . . . . . . 13 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ¬ ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛))
5251adantr 480 . . . . . . . . . . . 12 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ¬ ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛))
531ad3antrrr 726 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → 𝑁 ∈ ℕ)
54 fveq2 6756 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (2nd𝑡) = (2nd𝑧))
5554breq2d 5082 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑧 → (𝑦 < (2nd𝑡) ↔ 𝑦 < (2nd𝑧)))
5655ifbid 4479 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑧 → if(𝑦 < (2nd𝑡), 𝑦, (𝑦 + 1)) = if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)))
5756csbeq1d 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}))))
58 2fveq3 6761 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑧 → (1st ‘(1st𝑡)) = (1st ‘(1st𝑧)))
59 2fveq3 6761 . . . . . . . . . . . . . . . . . . . . . . . . . 26 (𝑡 = 𝑧 → (2nd ‘(1st𝑡)) = (2nd ‘(1st𝑧)))
6059imaeq1d 5957 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑧 → ((2nd ‘(1st𝑡)) “ (1...𝑗)) = ((2nd ‘(1st𝑧)) “ (1...𝑗)))
6160xpeq1d 5609 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}))
6259imaeq1d 5957 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑡 = 𝑧 → ((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)))
6362xpeq1d 5609 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑡 = 𝑧 → (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))
6461, 63uneq12d 4094 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑡 = 𝑧 → ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))
6558, 64oveq12d 7273 . . . . . . . . . . . . . . . . . . . . . 22 (𝑡 = 𝑧 → ((1st ‘(1st𝑡)) ∘f + ((((2nd ‘(1st𝑡)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑡)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))))
6665csbeq2dv 3835 . . . . . . . . . . . . . . . . . . . . 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 5172 . . . . . . . . . . . . . . . . . . 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 3620 . . . . . . . . . . . . . . . . 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 496 . . . . . . . . . . . . . . . 16 (𝑧𝑆𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
7271ad2antlr 723 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
73 elrabi 3611 . . . . . . . . . . . . . . . . . . . . 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 7836 . . . . . . . . . . . . . . . . . . . 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 7836 . . . . . . . . . . . . . . . . . . 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 8595 . . . . . . . . . . . . . . . . . 18 ((1st ‘(1st𝑧)) ∈ ((0..^𝐾) ↑m (1...𝑁)) → (1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾))
8078, 79syl 17 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 → (1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾))
81 fss 6601 . . . . . . . . . . . . . . . . 17 (((1st ‘(1st𝑧)):(1...𝑁)⟶(0..^𝐾) ∧ (0..^𝐾) ⊆ ℤ) → (1st ‘(1st𝑧)):(1...𝑁)⟶ℤ)
8280, 40, 81sylancl 585 . . . . . . . . . . . . . . . 16 (𝑧𝑆 → (1st ‘(1st𝑧)):(1...𝑁)⟶ℤ)
8382ad2antlr 723 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (1st ‘(1st𝑧)):(1...𝑁)⟶ℤ)
84 xp2nd 7837 . . . . . . . . . . . . . . . . . 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 6769 . . . . . . . . . . . . . . . . . 18 (2nd ‘(1st𝑧)) ∈ V
87 f1oeq1 6688 . . . . . . . . . . . . . . . . . 18 (𝑓 = (2nd ‘(1st𝑧)) → (𝑓:(1...𝑁)–1-1-onto→(1...𝑁) ↔ (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁)))
8886, 87elab 3602 . . . . . . . . . . . . . . . . 17 ((2nd ‘(1st𝑧)) ∈ {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)} ↔ (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁))
8985, 88sylib 217 . . . . . . . . . . . . . . . 16 (𝑧𝑆 → (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁))
9089ad2antlr 723 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁))
91 simpllr 772 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd𝑇) ∈ (1...(𝑁 − 1)))
92 xp2nd 7837 . . . . . . . . . . . . . . . . . 18 (𝑧 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (2nd𝑧) ∈ (0...𝑁))
9374, 92syl 17 . . . . . . . . . . . . . . . . 17 (𝑧𝑆 → (2nd𝑧) ∈ (0...𝑁))
9493adantl 481 . . . . . . . . . . . . . . . 16 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (2nd𝑧) ∈ (0...𝑁))
95 eldifsn 4717 . . . . . . . . . . . . . . . . 17 ((2nd𝑧) ∈ ((0...𝑁) ∖ {(2nd𝑇)}) ↔ ((2nd𝑧) ∈ (0...𝑁) ∧ (2nd𝑧) ≠ (2nd𝑇)))
9695biimpri 227 . . . . . . . . . . . . . . . 16 (((2nd𝑧) ∈ (0...𝑁) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd𝑧) ∈ ((0...𝑁) ∖ {(2nd𝑇)}))
9794, 96sylan 579 . . . . . . . . . . . . . . 15 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → (2nd𝑧) ∈ ((0...𝑁) ∖ {(2nd𝑇)}))
9853, 72, 83, 90, 91, 97poimirlem2 35706 . . . . . . . . . . . . . 14 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) ≠ (2nd𝑇)) → ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛))
9998ex 412 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ((2nd𝑧) ≠ (2nd𝑇) → ∃*𝑛 ∈ (1...𝑁)((𝐹‘((2nd𝑇) − 1))‘𝑛) ≠ ((𝐹‘(2nd𝑇))‘𝑛)))
10099necon1bd 2960 . . . . . . . . . . . 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 479 . . . . . . . . . . . . . . 15 (((2nd𝑇) ∈ (1...(𝑁 − 1)) ∧ (2nd𝑧) = (2nd𝑇)) → (2nd𝑧) ∈ (1...(𝑁 − 1)))
104103anim2i 616 . . . . . . . . . . . . . 14 ((𝜑 ∧ ((2nd𝑇) ∈ (1...(𝑁 − 1)) ∧ (2nd𝑧) = (2nd𝑇))) → (𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))))
105104anassrs 467 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ (2nd𝑧) = (2nd𝑇)) → (𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))))
10671adantl 481 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → 𝐹 = (𝑦 ∈ (0...(𝑁 − 1)) ↦ if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})))))
107 breq1 5073 . . . . . . . . . . . . . . . . . 18 (𝑦 = 0 → (𝑦 < (2nd𝑧) ↔ 0 < (2nd𝑧)))
108 id 22 . . . . . . . . . . . . . . . . . 18 (𝑦 = 0 → 𝑦 = 0)
109107, 108ifbieq1d 4480 . . . . . . . . . . . . . . . . 17 (𝑦 = 0 → if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) = if(0 < (2nd𝑧), 0, (𝑦 + 1)))
110 elfznn 13214 . . . . . . . . . . . . . . . . . . . 20 ((2nd𝑧) ∈ (1...(𝑁 − 1)) → (2nd𝑧) ∈ ℕ)
111110nngt0d 11952 . . . . . . . . . . . . . . . . . . 19 ((2nd𝑧) ∈ (1...(𝑁 − 1)) → 0 < (2nd𝑧))
112111iftrued 4464 . . . . . . . . . . . . . . . . . 18 ((2nd𝑧) ∈ (1...(𝑁 − 1)) → if(0 < (2nd𝑧), 0, (𝑦 + 1)) = 0)
113112ad2antlr 723 . . . . . . . . . . . . . . . . 17 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → if(0 < (2nd𝑧), 0, (𝑦 + 1)) = 0)
114109, 113sylan9eqr 2801 . . . . . . . . . . . . . . . 16 ((((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑦 = 0) → if(𝑦 < (2nd𝑧), 𝑦, (𝑦 + 1)) = 0)
115114csbeq1d 3832 . . . . . . . . . . . . . . 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 10900 . . . . . . . . . . . . . . . . . 18 0 ∈ V
117 oveq2 7263 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑗 = 0 → (1...𝑗) = (1...0))
118 fz10 13206 . . . . . . . . . . . . . . . . . . . . . . . 24 (1...0) = ∅
119117, 118eqtrdi 2795 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑗 = 0 → (1...𝑗) = ∅)
120119imaeq2d 5958 . . . . . . . . . . . . . . . . . . . . . 22 (𝑗 = 0 → ((2nd ‘(1st𝑧)) “ (1...𝑗)) = ((2nd ‘(1st𝑧)) “ ∅))
121120xpeq1d 5609 . . . . . . . . . . . . . . . . . . . . 21 (𝑗 = 0 → (((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) = (((2nd ‘(1st𝑧)) “ ∅) × {1}))
122 oveq1 7262 . . . . . . . . . . . . . . . . . . . . . . . . 25 (𝑗 = 0 → (𝑗 + 1) = (0 + 1))
123 0p1e1 12025 . . . . . . . . . . . . . . . . . . . . . . . . 25 (0 + 1) = 1
124122, 123eqtrdi 2795 . . . . . . . . . . . . . . . . . . . . . . . 24 (𝑗 = 0 → (𝑗 + 1) = 1)
125124oveq1d 7270 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑗 = 0 → ((𝑗 + 1)...𝑁) = (1...𝑁))
126125imaeq2d 5958 . . . . . . . . . . . . . . . . . . . . . 22 (𝑗 = 0 → ((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) = ((2nd ‘(1st𝑧)) “ (1...𝑁)))
127126xpeq1d 5609 . . . . . . . . . . . . . . . . . . . . 21 (𝑗 = 0 → (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}) = (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
128121, 127uneq12d 4094 . . . . . . . . . . . . . . . . . . . 20 (𝑗 = 0 → ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0})) = ((((2nd ‘(1st𝑧)) “ ∅) × {1}) ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})))
129 ima0 5974 . . . . . . . . . . . . . . . . . . . . . . . 24 ((2nd ‘(1st𝑧)) “ ∅) = ∅
130129xpeq1i 5606 . . . . . . . . . . . . . . . . . . . . . . 23 (((2nd ‘(1st𝑧)) “ ∅) × {1}) = (∅ × {1})
131 0xp 5675 . . . . . . . . . . . . . . . . . . . . . . 23 (∅ × {1}) = ∅
132130, 131eqtri 2766 . . . . . . . . . . . . . . . . . . . . . 22 (((2nd ‘(1st𝑧)) “ ∅) × {1}) = ∅
133132uneq1i 4089 . . . . . . . . . . . . . . . . . . . . 21 ((((2nd ‘(1st𝑧)) “ ∅) × {1}) ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = (∅ ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
134 uncom 4083 . . . . . . . . . . . . . . . . . . . . 21 (∅ ∪ (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = ((((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}) ∪ ∅)
135 un0 4321 . . . . . . . . . . . . . . . . . . . . 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 7271 . . . . . . . . . . . . . . . . . 18 (𝑗 = 0 → ((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑧)) ∘f + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})))
139116, 138csbie 3864 . . . . . . . . . . . . . . . . 17 0 / 𝑗((1st ‘(1st𝑧)) ∘f + ((((2nd ‘(1st𝑧)) “ (1...𝑗)) × {1}) ∪ (((2nd ‘(1st𝑧)) “ ((𝑗 + 1)...𝑁)) × {0}))) = ((1st ‘(1st𝑧)) ∘f + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}))
140 f1ofo 6707 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd ‘(1st𝑧)):(1...𝑁)–1-1-onto→(1...𝑁) → (2nd ‘(1st𝑧)):(1...𝑁)–onto→(1...𝑁))
14189, 140syl 17 . . . . . . . . . . . . . . . . . . . . 21 (𝑧𝑆 → (2nd ‘(1st𝑧)):(1...𝑁)–onto→(1...𝑁))
142 foima 6677 . . . . . . . . . . . . . . . . . . . . 21 ((2nd ‘(1st𝑧)):(1...𝑁)–onto→(1...𝑁) → ((2nd ‘(1st𝑧)) “ (1...𝑁)) = (1...𝑁))
143141, 142syl 17 . . . . . . . . . . . . . . . . . . . 20 (𝑧𝑆 → ((2nd ‘(1st𝑧)) “ (1...𝑁)) = (1...𝑁))
144143xpeq1d 5609 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0}) = ((1...𝑁) × {0}))
145144oveq2d 7271 . . . . . . . . . . . . . . . . . 18 (𝑧𝑆 → ((1st ‘(1st𝑧)) ∘f + (((2nd ‘(1st𝑧)) “ (1...𝑁)) × {0})) = ((1st ‘(1st𝑧)) ∘f + ((1...𝑁) × {0})))
146 ovexd 7290 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (1...𝑁) ∈ V)
14780ffnd 6585 . . . . . . . . . . . . . . . . . . 19 (𝑧𝑆 → (1st ‘(1st𝑧)) Fn (1...𝑁))
148 fnconstg 6646 . . . . . . . . . . . . . . . . . . . 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 7061 . . . . . . . . . . . . . . . . . . . 20 (𝑛 ∈ (1...𝑁) → (((1...𝑁) × {0})‘𝑛) = 0)
152151adantl 481 . . . . . . . . . . . . . . . . . . 19 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → (((1...𝑁) × {0})‘𝑛) = 0)
15380ffvelrnda 6943 . . . . . . . . . . . . . . . . . . . . . 22 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) ∈ (0..^𝐾))
154 elfzonn0 13360 . . . . . . . . . . . . . . . . . . . . . 22 (((1st ‘(1st𝑧))‘𝑛) ∈ (0..^𝐾) → ((1st ‘(1st𝑧))‘𝑛) ∈ ℕ0)
155153, 154syl 17 . . . . . . . . . . . . . . . . . . . . 21 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) ∈ ℕ0)
156155nn0cnd 12225 . . . . . . . . . . . . . . . . . . . 20 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → ((1st ‘(1st𝑧))‘𝑛) ∈ ℂ)
157156addid1d 11105 . . . . . . . . . . . . . . . . . . 19 ((𝑧𝑆𝑛 ∈ (1...𝑁)) → (((1st ‘(1st𝑧))‘𝑛) + 0) = ((1st ‘(1st𝑧))‘𝑛))
158146, 147, 149, 147, 150, 152, 157offveq 7535 . . . . . . . . . . . . . . . . . 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 723 . . . . . . . . . . . . . . 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 12204 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ ℕ → (𝑁 − 1) ∈ ℕ0)
1641, 163syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (𝑁 − 1) ∈ ℕ0)
165 0elfz 13282 . . . . . . . . . . . . . . . 16 ((𝑁 − 1) ∈ ℕ0 → 0 ∈ (0...(𝑁 − 1)))
166164, 165syl 17 . . . . . . . . . . . . . . 15 (𝜑 → 0 ∈ (0...(𝑁 − 1)))
167166ad2antrr 722 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → 0 ∈ (0...(𝑁 − 1)))
168 fvexd 6771 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (1st ‘(1st𝑧)) ∈ V)
169106, 162, 167, 168fvmptd 6864 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑧)))
170105, 169sylan 579 . . . . . . . . . . . 12 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ (2nd𝑧) = (2nd𝑇)) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑧)))
171170an32s 648 . . . . . . . . . . 11 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ (2nd𝑧) = (2nd𝑇)) → (𝐹‘0) = (1st ‘(1st𝑧)))
172101, 171mpdan 683 . . . . . . . . . 10 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑧)))
173 fveq2 6756 . . . . . . . . . . . . . . . 16 (𝑧 = 𝑇 → (2nd𝑧) = (2nd𝑇))
174173eleq1d 2823 . . . . . . . . . . . . . . 15 (𝑧 = 𝑇 → ((2nd𝑧) ∈ (1...(𝑁 − 1)) ↔ (2nd𝑇) ∈ (1...(𝑁 − 1))))
175174anbi2d 628 . . . . . . . . . . . . . 14 (𝑧 = 𝑇 → ((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) ↔ (𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1)))))
176 2fveq3 6761 . . . . . . . . . . . . . . 15 (𝑧 = 𝑇 → (1st ‘(1st𝑧)) = (1st ‘(1st𝑇)))
177176eqeq2d 2749 . . . . . . . . . . . . . 14 (𝑧 = 𝑇 → ((𝐹‘0) = (1st ‘(1st𝑧)) ↔ (𝐹‘0) = (1st ‘(1st𝑇))))
178175, 177imbi12d 344 . . . . . . . . . . . . 13 (𝑧 = 𝑇 → (((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑧))) ↔ ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑇)))))
179169expcom 413 . . . . . . . . . . . . 13 (𝑧𝑆 → ((𝜑 ∧ (2nd𝑧) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑧))))
180178, 179vtoclga 3503 . . . . . . . . . . . 12 (𝑇𝑆 → ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑇))))
1817, 180mpcom 38 . . . . . . . . . . 11 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝐹‘0) = (1st ‘(1st𝑇)))
182181adantr 480 . . . . . . . . . 10 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝐹‘0) = (1st ‘(1st𝑇)))
183172, 182eqtr3d 2780 . . . . . . . . 9 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (1st ‘(1st𝑧)) = (1st ‘(1st𝑇)))
184183adantr 480 . . . . . . . 8 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (1st ‘(1st𝑧)) = (1st ‘(1st𝑇)))
1851ad3antrrr 726 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → 𝑁 ∈ ℕ)
1866ad3antrrr 726 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → 𝑇𝑆)
187 simpllr 772 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd𝑇) ∈ (1...(𝑁 − 1)))
188 simplr 765 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → 𝑧𝑆)
18934adantr 480 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (1st𝑇) ∈ (((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}))
190 xpopth 7845 . . . . . . . . . . . . . 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 596 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇))) ↔ (1st𝑧) = (1st𝑇)))
19232adantr 480 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → 𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)))
193 xpopth 7845 . . . . . . . . . . . . . . . 16 ((𝑧 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) ∧ 𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁))) → (((1st𝑧) = (1st𝑇) ∧ (2nd𝑧) = (2nd𝑇)) ↔ 𝑧 = 𝑇))
194193biimpd 228 . . . . . . . . . . . . . . 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 596 . . . . . . . . . . . . . 14 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (((1st𝑧) = (1st𝑇) ∧ (2nd𝑧) = (2nd𝑇)) → 𝑧 = 𝑇))
196101, 195mpan2d 690 . . . . . . . . . . . . 13 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ((1st𝑧) = (1st𝑇) → 𝑧 = 𝑇))
197191, 196sylbid 239 . . . . . . . . . . . 12 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (((1st ‘(1st𝑧)) = (1st ‘(1st𝑇)) ∧ (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇))) → 𝑧 = 𝑇))
198183, 197mpand 691 . . . . . . . . . . 11 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → ((2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇)) → 𝑧 = 𝑇))
199198necon3d 2963 . . . . . . . . . 10 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝑧𝑇 → (2nd ‘(1st𝑧)) ≠ (2nd ‘(1st𝑇))))
200199imp 406 . . . . . . . . 9 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd ‘(1st𝑧)) ≠ (2nd ‘(1st𝑇)))
201185, 3, 186, 187, 188, 200poimirlem9 35713 . . . . . . . 8 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd ‘(1st𝑧)) = ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})))))
202101adantr 480 . . . . . . . 8 ((((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) ∧ 𝑧𝑇) → (2nd𝑧) = (2nd𝑇))
203184, 201, 202jca31 514 . . . . . . 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 412 . . . . . 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 765 . . . . . . . 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 13214 . . . . . . . . . . . . . 14 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ∈ ℕ)
207206nnred 11918 . . . . . . . . . . . . 13 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ∈ ℝ)
208207ltp1d 11835 . . . . . . . . . . . . 13 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) < ((2nd𝑇) + 1))
209207, 208ltned 11041 . . . . . . . . . . . 12 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → (2nd𝑇) ≠ ((2nd𝑇) + 1))
210209adantl 481 . . . . . . . . . . 11 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd𝑇) ≠ ((2nd𝑇) + 1))
211 fveq1 6755 . . . . . . . . . . . . 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 11745 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd𝑇) ∈ ℝ → (2nd𝑇) < ((2nd𝑇) + 1))
214212, 213ltned 11041 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ∈ ℝ → (2nd𝑇) ≠ ((2nd𝑇) + 1))
215 fvex 6769 . . . . . . . . . . . . . . . . . . . . . 22 (2nd𝑇) ∈ V
216 ovex 7288 . . . . . . . . . . . . . . . . . . . . . 22 ((2nd𝑇) + 1) ∈ V
217215, 216, 216, 215fpr 7008 . . . . . . . . . . . . . . . . . . . . 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 6737 . . . . . . . . . . . . . . . . . . . . 21 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})):((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})–1-1-onto→((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
220 f1of 6700 . . . . . . . . . . . . . . . . . . . . 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 4402 . . . . . . . . . . . . . . . . . . . . 21 ({(2nd𝑇), ((2nd𝑇) + 1)} ∩ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ∅
223 fun 6620 . . . . . . . . . . . . . . . . . . . . 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 687 . . . . . . . . . . . . . . . . . . . 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 585 . . . . . . . . . . . . . . . . . . 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 4695 . . . . . . . . . . . . . . . . . . . 20 (2nd𝑇) ∈ {(2nd𝑇), ((2nd𝑇) + 1)}
227 elun1 4106 . . . . . . . . . . . . . . . . . . . 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 6849 . . . . . . . . . . . . . . . . . . 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 585 . . . . . . . . . . . . . . . . . 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 6585 . . . . . . . . . . . . . . . . . . . . 21 ((2nd𝑇) ∈ ℝ → {⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} Fn {(2nd𝑇), ((2nd𝑇) + 1)})
232 fnresi 6545 . . . . . . . . . . . . . . . . . . . . . 22 ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) Fn ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})
233222, 226pm3.2i 470 . . . . . . . . . . . . . . . . . . . . . 22 (({(2nd𝑇), ((2nd𝑇) + 1)} ∩ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)})) = ∅ ∧ (2nd𝑇) ∈ {(2nd𝑇), ((2nd𝑇) + 1)})
234 fvun1 6841 . . . . . . . . . . . . . . . . . . . . . 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 1451 . . . . . . . . . . . . . . . . . . . . 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 7047 . . . . . . . . . . . . . . . . . . . . 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 6760 . . . . . . . . . . . . . . . . . 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 481 . . . . . . . . . . . . . 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 6699 . . . . . . . . . . . . . . . . 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 480 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd ‘(1st𝑇)):(1...𝑁)–1-1→(1...𝑁))
2481nncnd 11919 . . . . . . . . . . . . . . . . . . 19 (𝜑𝑁 ∈ ℂ)
249 npcan1 11330 . . . . . . . . . . . . . . . . . . 19 (𝑁 ∈ ℂ → ((𝑁 − 1) + 1) = 𝑁)
250248, 249syl 17 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((𝑁 − 1) + 1) = 𝑁)
251164nn0zd 12353 . . . . . . . . . . . . . . . . . . . 20 (𝜑 → (𝑁 − 1) ∈ ℤ)
252 uzid 12526 . . . . . . . . . . . . . . . . . . . 20 ((𝑁 − 1) ∈ ℤ → (𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)))
253251, 252syl 17 . . . . . . . . . . . . . . . . . . 19 (𝜑 → (𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)))
254 peano2uz 12570 . . . . . . . . . . . . . . . . . . 19 ((𝑁 − 1) ∈ (ℤ‘(𝑁 − 1)) → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
255253, 254syl 17 . . . . . . . . . . . . . . . . . 18 (𝜑 → ((𝑁 − 1) + 1) ∈ (ℤ‘(𝑁 − 1)))
256250, 255eqeltrrd 2840 . . . . . . . . . . . . . . . . 17 (𝜑𝑁 ∈ (ℤ‘(𝑁 − 1)))
257 fzss2 13225 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ (ℤ‘(𝑁 − 1)) → (1...(𝑁 − 1)) ⊆ (1...𝑁))
258256, 257syl 17 . . . . . . . . . . . . . . . 16 (𝜑 → (1...(𝑁 − 1)) ⊆ (1...𝑁))
259258sselda 3917 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (2nd𝑇) ∈ (1...𝑁))
260 fzp1elp1 13238 . . . . . . . . . . . . . . . . 17 ((2nd𝑇) ∈ (1...(𝑁 − 1)) → ((2nd𝑇) + 1) ∈ (1...((𝑁 − 1) + 1)))
261260adantl 481 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) + 1) ∈ (1...((𝑁 − 1) + 1)))
262250oveq2d 7271 . . . . . . . . . . . . . . . . 17 (𝜑 → (1...((𝑁 − 1) + 1)) = (1...𝑁))
263262adantr 480 . . . . . . . . . . . . . . . 16 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (1...((𝑁 − 1) + 1)) = (1...𝑁))
264261, 263eleqtrd 2841 . . . . . . . . . . . . . . 15 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) + 1) ∈ (1...𝑁))
265 f1veqaeq 7111 . . . . . . . . . . . . . . 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 833 . . . . . . . . . . . . . 14 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (((2nd ‘(1st𝑇))‘(2nd𝑇)) = ((2nd ‘(1st𝑇))‘((2nd𝑇) + 1)) → (2nd𝑇) = ((2nd𝑇) + 1)))
267244, 266sylbid 239 . . . . . . . . . . . . 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 2963 . . . . . . . . . . 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 6761 . . . . . . . . . . 11 (𝑧 = 𝑇 → (2nd ‘(1st𝑧)) = (2nd ‘(1st𝑇)))
272271neeq1d 3002 . . . . . . . . . 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 246 . . . . . . . . 9 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → (𝑧 = 𝑇 → (2nd ‘(1st𝑧)) ≠ ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))))
274273necon2d 2965 . . . . . . . 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 480 . . . . . 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 211 . . . . 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 7846 . . . . . . . 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 7846 . . . . . . . . . 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 629 . . . . . . . 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 278 . . . . . . 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 481 . . . . 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 281 . . . 4 (((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) ∧ 𝑧𝑆) → (𝑧𝑇𝑧 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩))
286285ralrimiva 3107 . . 3 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ∀𝑧𝑆 (𝑧𝑇𝑧 = ⟨⟨(1st ‘(1st𝑇)), ((2nd ‘(1st𝑇)) ∘ ({⟨(2nd𝑇), ((2nd𝑇) + 1)⟩, ⟨((2nd𝑇) + 1), (2nd𝑇)⟩} ∪ ( I ↾ ((1...𝑁) ∖ {(2nd𝑇), ((2nd𝑇) + 1)}))))⟩, (2nd𝑇)⟩))
287 reu6i 3658 . . 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 583 . 2 ((𝜑 ∧ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ∃!𝑧𝑆 𝑧𝑇)
289 xp2nd 7837 . . . . . . 7 (𝑇 ∈ ((((0..^𝐾) ↑m (1...𝑁)) × {𝑓𝑓:(1...𝑁)–1-1-onto→(1...𝑁)}) × (0...𝑁)) → (2nd𝑇) ∈ (0...𝑁))
29032, 289syl 17 . . . . . 6 (𝜑 → (2nd𝑇) ∈ (0...𝑁))
291290biantrurd 532 . . . . 5 (𝜑 → (¬ (2nd𝑇) ∈ (1...(𝑁 − 1)) ↔ ((2nd𝑇) ∈ (0...𝑁) ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1)))))
2921nnnn0d 12223 . . . . . . . . . . . 12 (𝜑𝑁 ∈ ℕ0)
293 nn0uz 12549 . . . . . . . . . . . 12 0 = (ℤ‘0)
294292, 293eleqtrdi 2849 . . . . . . . . . . 11 (𝜑𝑁 ∈ (ℤ‘0))
295 fzpred 13233 . . . . . . . . . . 11 (𝑁 ∈ (ℤ‘0) → (0...𝑁) = ({0} ∪ ((0 + 1)...𝑁)))
296294, 295syl 17 . . . . . . . . . 10 (𝜑 → (0...𝑁) = ({0} ∪ ((0 + 1)...𝑁)))
297123oveq1i 7265 . . . . . . . . . . 11 ((0 + 1)...𝑁) = (1...𝑁)
298297uneq2i 4090 . . . . . . . . . 10 ({0} ∪ ((0 + 1)...𝑁)) = ({0} ∪ (1...𝑁))
299296, 298eqtrdi 2795 . . . . . . . . 9 (𝜑 → (0...𝑁) = ({0} ∪ (1...𝑁)))
300299difeq1d 4052 . . . . . . . 8 (𝜑 → ((0...𝑁) ∖ (1...(𝑁 − 1))) = (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))))
301 difundir 4211 . . . . . . . . . 10 (({0} ∪ (1...𝑁)) ∖ (1...(𝑁 − 1))) = (({0} ∖ (1...(𝑁 − 1))) ∪ ((1...𝑁) ∖ (1...(𝑁 − 1))))
302 0lt1 11427 . . . . . . . . . . . . . 14 0 < 1
303 0re 10908 . . . . . . . . . . . . . . 15 0 ∈ ℝ
304 1re 10906 . . . . . . . . . . . . . . 15 1 ∈ ℝ
305303, 304ltnlei 11026 . . . . . . . . . . . . . 14 (0 < 1 ↔ ¬ 1 ≤ 0)
306302, 305mpbi 229 . . . . . . . . . . . . 13 ¬ 1 ≤ 0
307 elfzle1 13188 . . . . . . . . . . . . 13 (0 ∈ (1...(𝑁 − 1)) → 1 ≤ 0)
308306, 307mto 196 . . . . . . . . . . . 12 ¬ 0 ∈ (1...(𝑁 − 1))
309 incom 4131 . . . . . . . . . . . . . 14 ((1...(𝑁 − 1)) ∩ {0}) = ({0} ∩ (1...(𝑁 − 1)))
310309eqeq1i 2743 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {0}) = ∅ ↔ ({0} ∩ (1...(𝑁 − 1))) = ∅)
311 disjsn 4644 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {0}) = ∅ ↔ ¬ 0 ∈ (1...(𝑁 − 1)))
312 disj3 4384 . . . . . . . . . . . . 13 (({0} ∩ (1...(𝑁 − 1))) = ∅ ↔ {0} = ({0} ∖ (1...(𝑁 − 1))))
313310, 311, 3123bitr3i 300 . . . . . . . . . . . 12 (¬ 0 ∈ (1...(𝑁 − 1)) ↔ {0} = ({0} ∖ (1...(𝑁 − 1))))
314308, 313mpbi 229 . . . . . . . . . . 11 {0} = ({0} ∖ (1...(𝑁 − 1)))
315314uneq1i 4089 . . . . . . . . . 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 4211 . . . . . . . . . . . 12 (((1...(𝑁 − 1)) ∪ {𝑁}) ∖ (1...(𝑁 − 1))) = (((1...(𝑁 − 1)) ∖ (1...(𝑁 − 1))) ∪ ({𝑁} ∖ (1...(𝑁 − 1))))
318 difid 4301 . . . . . . . . . . . . 13 ((1...(𝑁 − 1)) ∖ (1...(𝑁 − 1))) = ∅
319318uneq1i 4089 . . . . . . . . . . . 12 (((1...(𝑁 − 1)) ∖ (1...(𝑁 − 1))) ∪ ({𝑁} ∖ (1...(𝑁 − 1)))) = (∅ ∪ ({𝑁} ∖ (1...(𝑁 − 1))))
320 uncom 4083 . . . . . . . . . . . . 13 (∅ ∪ ({𝑁} ∖ (1...(𝑁 − 1)))) = (({𝑁} ∖ (1...(𝑁 − 1))) ∪ ∅)
321 un0 4321 . . . . . . . . . . . . 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 12550 . . . . . . . . . . . . . . . 16 ℕ = (ℤ‘1)
3251, 324eleqtrdi 2849 . . . . . . . . . . . . . . 15 (𝜑𝑁 ∈ (ℤ‘1))
326250, 325eqeltrd 2839 . . . . . . . . . . . . . 14 (𝜑 → ((𝑁 − 1) + 1) ∈ (ℤ‘1))
327 fzsplit2 13210 . . . . . . . . . . . . . 14 ((((𝑁 − 1) + 1) ∈ (ℤ‘1) ∧ 𝑁 ∈ (ℤ‘(𝑁 − 1))) → (1...𝑁) = ((1...(𝑁 − 1)) ∪ (((𝑁 − 1) + 1)...𝑁)))
328326, 256, 327syl2anc 583 . . . . . . . . . . . . 13 (𝜑 → (1...𝑁) = ((1...(𝑁 − 1)) ∪ (((𝑁 − 1) + 1)...𝑁)))
329250oveq1d 7270 . . . . . . . . . . . . . . 15 (𝜑 → (((𝑁 − 1) + 1)...𝑁) = (𝑁...𝑁))
3301nnzd 12354 . . . . . . . . . . . . . . . 16 (𝜑𝑁 ∈ ℤ)
331 fzsn 13227 . . . . . . . . . . . . . . . 16 (𝑁 ∈ ℤ → (𝑁...𝑁) = {𝑁})
332330, 331syl 17 . . . . . . . . . . . . . . 15 (𝜑 → (𝑁...𝑁) = {𝑁})
333329, 332eqtrd 2778 . . . . . . . . . . . . . 14 (𝜑 → (((𝑁 − 1) + 1)...𝑁) = {𝑁})
334333uneq2d 4093 . . . . . . . . . . . . 13 (𝜑 → ((1...(𝑁 − 1)) ∪ (((𝑁 − 1) + 1)...𝑁)) = ((1...(𝑁 − 1)) ∪ {𝑁}))
335328, 334eqtrd 2778 . . . . . . . . . . . 12 (𝜑 → (1...𝑁) = ((1...(𝑁 − 1)) ∪ {𝑁}))
336335difeq1d 4052 . . . . . . . . . . 11 (𝜑 → ((1...𝑁) ∖ (1...(𝑁 − 1))) = (((1...(𝑁 − 1)) ∪ {𝑁}) ∖ (1...(𝑁 − 1))))
3371nnred 11918 . . . . . . . . . . . . . . 15 (𝜑𝑁 ∈ ℝ)
338337ltm1d 11837 . . . . . . . . . . . . . 14 (𝜑 → (𝑁 − 1) < 𝑁)
339164nn0red 12224 . . . . . . . . . . . . . . 15 (𝜑 → (𝑁 − 1) ∈ ℝ)
340339, 337ltnled 11052 . . . . . . . . . . . . . 14 (𝜑 → ((𝑁 − 1) < 𝑁 ↔ ¬ 𝑁 ≤ (𝑁 − 1)))
341338, 340mpbid 231 . . . . . . . . . . . . 13 (𝜑 → ¬ 𝑁 ≤ (𝑁 − 1))
342 elfzle2 13189 . . . . . . . . . . . . 13 (𝑁 ∈ (1...(𝑁 − 1)) → 𝑁 ≤ (𝑁 − 1))
343341, 342nsyl 140 . . . . . . . . . . . 12 (𝜑 → ¬ 𝑁 ∈ (1...(𝑁 − 1)))
344 incom 4131 . . . . . . . . . . . . . 14 ((1...(𝑁 − 1)) ∩ {𝑁}) = ({𝑁} ∩ (1...(𝑁 − 1)))
345344eqeq1i 2743 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {𝑁}) = ∅ ↔ ({𝑁} ∩ (1...(𝑁 − 1))) = ∅)
346 disjsn 4644 . . . . . . . . . . . . 13 (((1...(𝑁 − 1)) ∩ {𝑁}) = ∅ ↔ ¬ 𝑁 ∈ (1...(𝑁 − 1)))
347 disj3 4384 . . . . . . . . . . . . 13 (({𝑁} ∩ (1...(𝑁 − 1))) = ∅ ↔ {𝑁} = ({𝑁} ∖ (1...(𝑁 − 1))))
348345, 346, 3473bitr3i 300 . . . . . . . . . . . 12 𝑁 ∈ (1...(𝑁 − 1)) ↔ {𝑁} = ({𝑁} ∖ (1...(𝑁 − 1))))
349343, 348sylib 217 . . . . . . . . . . 11 (𝜑 → {𝑁} = ({𝑁} ∖ (1...(𝑁 − 1))))
350323, 336, 3493eqtr4a 2805 . . . . . . . . . 10 (𝜑 → ((1...𝑁) ∖ (1...(𝑁 − 1))) = {𝑁})
351350uneq2d 4093 . . . . . . . . 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 3893 . . . . . 6 ((2nd𝑇) ∈ ((0...𝑁) ∖ (1...(𝑁 − 1))) ↔ ((2nd𝑇) ∈ (0...𝑁) ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))))
356 elun 4079 . . . . . . 7 ((2nd𝑇) ∈ ({0} ∪ {𝑁}) ↔ ((2nd𝑇) ∈ {0} ∨ (2nd𝑇) ∈ {𝑁}))
357215elsn 4573 . . . . . . . 8 ((2nd𝑇) ∈ {0} ↔ (2nd𝑇) = 0)
358215elsn 4573 . . . . . . . 8 ((2nd𝑇) ∈ {𝑁} ↔ (2nd𝑇) = 𝑁)
359357, 358orbi12i 911 . . . . . . 7 (((2nd𝑇) ∈ {0} ∨ (2nd𝑇) ∈ {𝑁}) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁))
360356, 359bitri 274 . . . . . 6 ((2nd𝑇) ∈ ({0} ∪ {𝑁}) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁))
361354, 355, 3603bitr3g 312 . . . . 5 (𝜑 → (((2nd𝑇) ∈ (0...𝑁) ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁)))
362291, 361bitrd 278 . . . 4 (𝜑 → (¬ (2nd𝑇) ∈ (1...(𝑁 − 1)) ↔ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁)))
363362biimpa 476 . . 3 ((𝜑 ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁))
3641adantr 480 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → 𝑁 ∈ ℕ)
3654adantr 480 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → 𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑m (1...𝑁)))
3666adantr 480 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → 𝑇𝑆)
367 poimirlem22.4 . . . . . 6 ((𝜑𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 𝐾)
368367adantlr 711 . . . . 5 (((𝜑 ∧ (2nd𝑇) = 0) ∧ 𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 𝐾)
369 simpr 484 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 0) → (2nd𝑇) = 0)
370364, 3, 365, 366, 368, 369poimirlem18 35722 . . . 4 ((𝜑 ∧ (2nd𝑇) = 0) → ∃!𝑧𝑆 𝑧𝑇)
3711adantr 480 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → 𝑁 ∈ ℕ)
3724adantr 480 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → 𝐹:(0...(𝑁 − 1))⟶((0...𝐾) ↑m (1...𝑁)))
3736adantr 480 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → 𝑇𝑆)
374 poimirlem22.3 . . . . . 6 ((𝜑𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 0)
375374adantlr 711 . . . . 5 (((𝜑 ∧ (2nd𝑇) = 𝑁) ∧ 𝑛 ∈ (1...𝑁)) → ∃𝑝 ∈ ran 𝐹(𝑝𝑛) ≠ 0)
376 simpr 484 . . . . 5 ((𝜑 ∧ (2nd𝑇) = 𝑁) → (2nd𝑇) = 𝑁)
377371, 3, 372, 373, 375, 376poimirlem21 35725 . . . 4 ((𝜑 ∧ (2nd𝑇) = 𝑁) → ∃!𝑧𝑆 𝑧𝑇)
378370, 377jaodan 954 . . 3 ((𝜑 ∧ ((2nd𝑇) = 0 ∨ (2nd𝑇) = 𝑁)) → ∃!𝑧𝑆 𝑧𝑇)
379363, 378syldan 590 . 2 ((𝜑 ∧ ¬ (2nd𝑇) ∈ (1...(𝑁 − 1))) → ∃!𝑧𝑆 𝑧𝑇)
380288, 379pm2.61dan 809 1 (𝜑 → ∃!𝑧𝑆 𝑧𝑇)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 395  wo 843   = wceq 1539  wcel 2108  {cab 2715  wne 2942  wral 3063  wrex 3064  ∃!wreu 3065  ∃*wrmo 3066  {crab 3067  Vcvv 3422  csb 3828  cdif 3880  cun 3881  cin 3882  wss 3883  c0 4253  ifcif 4456  {csn 4558  {cpr 4560  cop 4564   class class class wbr 5070  cmpt 5153   I cid 5479   × cxp 5578  ran crn 5581  cres 5582  cima 5583  ccom 5584   Fn wfn 6413  wf 6414  1-1wf1 6415  ontowfo 6416  1-1-ontowf1o 6417  cfv 6418  (class class class)co 7255  f cof 7509  1st c1st 7802  2nd c2nd 7803  m cmap 8573  cc 10800  cr 10801  0cc0 10802  1c1 10803   + caddc 10805   < clt 10940  cle 10941  cmin 11135  cn 11903  0cn0 12163  cz 12249  cuz 12511  ...cfz 13168  ..^cfzo 13311
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566  ax-cnex 10858  ax-resscn 10859  ax-1cn 10860  ax-icn 10861  ax-addcl 10862  ax-addrcl 10863  ax-mulcl 10864  ax-mulrcl 10865  ax-mulcom 10866  ax-addass 10867  ax-mulass 10868  ax-distr 10869  ax-i2m1 10870  ax-1ne0 10871  ax-1rid 10872  ax-rnegex 10873  ax-rrecex 10874  ax-cnre 10875  ax-pre-lttri 10876  ax-pre-lttrn 10877  ax-pre-ltadd 10878  ax-pre-mulgt0 10879
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3or 1086  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3068  df-rex 3069  df-reu 3070  df-rmo 3071  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-tp 4563  df-op 4565  df-uni 4837  df-int 4877  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-tr 5188  df-id 5480  df-eprel 5486  df-po 5494  df-so 5495  df-fr 5535  df-we 5537  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-ord 6254  df-on 6255  df-lim 6256  df-suc 6257  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-riota 7212  df-ov 7258  df-oprab 7259  df-mpo 7260  df-of 7511  df-om 7688  df-1st 7804  df-2nd 7805  df-frecs 8068  df-wrecs 8099  df-recs 8173  df-rdg 8212  df-1o 8267  df-oadd 8271  df-er 8456  df-map 8575  df-pm 8576  df-en 8692  df-dom 8693  df-sdom 8694  df-fin 8695  df-dju 9590  df-card 9628  df-pnf 10942  df-mnf 10943  df-xr 10944  df-ltxr 10945  df-le 10946  df-sub 11137  df-neg 11138  df-div 11563  df-nn 11904  df-2 11966  df-3 11967  df-n0 12164  df-xnn0 12236  df-z 12250  df-uz 12512  df-fz 13169  df-fzo 13312  df-seq 13650  df-fac 13916  df-bc 13945  df-hash 13973
This theorem is referenced by:  poimirlem27  35731
  Copyright terms: Public domain W3C validator