ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  seq3f1oleml GIF version

Theorem seq3f1oleml 10459
Description: Lemma for seq3f1o 10460. This is more or less the result, but stated in terms of 𝐹 and 𝐺 without 𝐻. 𝐿 and 𝐻 may differ in terms of what happens to terms after 𝑁. The terms after 𝑁 don't matter for the value at 𝑁 but we need some definition given the way our theorems concerning seq work. (Contributed by Jim Kingdon, 17-Aug-2022.)
Hypotheses
Ref Expression
iseqf1o.1 ((𝜑 ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) ∈ 𝑆)
iseqf1o.2 ((𝜑 ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) = (𝑦 + 𝑥))
iseqf1o.3 ((𝜑 ∧ (𝑥𝑆𝑦𝑆𝑧𝑆)) → ((𝑥 + 𝑦) + 𝑧) = (𝑥 + (𝑦 + 𝑧)))
iseqf1o.4 (𝜑𝑁 ∈ (ℤ𝑀))
iseqf1o.6 (𝜑𝐹:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
iseqf1o.7 ((𝜑𝑥 ∈ (ℤ𝑀)) → (𝐺𝑥) ∈ 𝑆)
iseqf1o.l 𝐿 = (𝑥 ∈ (ℤ𝑀) ↦ if(𝑥𝑁, (𝐺‘(𝐹𝑥)), (𝐺𝑀)))
Assertion
Ref Expression
seq3f1oleml (𝜑 → (seq𝑀( + , 𝐿)‘𝑁) = (seq𝑀( + , 𝐺)‘𝑁))
Distinct variable groups:   𝑥, + ,𝑦,𝑧   𝑥,𝐹,𝑦,𝑧   𝑥,𝐺,𝑦,𝑧   𝑥,𝐿,𝑦,𝑧   𝑥,𝑀,𝑦,𝑧   𝑥,𝑁,𝑦,𝑧   𝑥,𝑆,𝑦,𝑧   𝜑,𝑥,𝑦,𝑧

Proof of Theorem seq3f1oleml
Dummy variables 𝑓 𝑘 𝑎 𝑏 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 iseqf1o.1 . . 3 ((𝜑 ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) ∈ 𝑆)
2 iseqf1o.2 . . 3 ((𝜑 ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) = (𝑦 + 𝑥))
3 iseqf1o.3 . . 3 ((𝜑 ∧ (𝑥𝑆𝑦𝑆𝑧𝑆)) → ((𝑥 + 𝑦) + 𝑧) = (𝑥 + (𝑦 + 𝑧)))
4 iseqf1o.4 . . 3 (𝜑𝑁 ∈ (ℤ𝑀))
5 iseqf1o.6 . . 3 (𝜑𝐹:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
6 iseqf1o.7 . . 3 ((𝜑𝑥 ∈ (ℤ𝑀)) → (𝐺𝑥) ∈ 𝑆)
7 iseqf1o.l . . 3 𝐿 = (𝑥 ∈ (ℤ𝑀) ↦ if(𝑥𝑁, (𝐺‘(𝐹𝑥)), (𝐺𝑀)))
8 breq1 3992 . . . . 5 (𝑎 = 𝑥 → (𝑎𝑁𝑥𝑁))
9 2fveq3 5501 . . . . 5 (𝑎 = 𝑥 → (𝐺‘(𝑓𝑎)) = (𝐺‘(𝑓𝑥)))
108, 9ifbieq1d 3548 . . . 4 (𝑎 = 𝑥 → if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)) = if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)))
1110cbvmptv 4085 . . 3 (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))) = (𝑥 ∈ (ℤ𝑀) ↦ if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)))
121, 2, 3, 4, 5, 6, 7, 11seq3f1olemp 10458 . 2 (𝜑 → ∃𝑓(𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝑁)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)))
13 fveq2 5496 . . . . . 6 (𝑏 = 𝑥 → (𝑓𝑏) = (𝑓𝑥))
14 id 19 . . . . . 6 (𝑏 = 𝑥𝑏 = 𝑥)
1513, 14eqeq12d 2185 . . . . 5 (𝑏 = 𝑥 → ((𝑓𝑏) = 𝑏 ↔ (𝑓𝑥) = 𝑥))
1615cbvralv 2696 . . . 4 (∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ↔ ∀𝑥 ∈ (𝑀...𝑁)(𝑓𝑥) = 𝑥)
17163anbi2i 1186 . . 3 ((𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)) ↔ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝑁)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)))
18 simpr3 1000 . . . 4 ((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) → (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))
194adantr 274 . . . . 5 ((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) → 𝑁 ∈ (ℤ𝑀))
20 elfzuz 9977 . . . . . . . 8 (𝑘 ∈ (𝑀...𝑁) → 𝑘 ∈ (ℤ𝑀))
2120adantl 275 . . . . . . 7 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → 𝑘 ∈ (ℤ𝑀))
22 elfzle2 9984 . . . . . . . . . 10 (𝑘 ∈ (𝑀...𝑁) → 𝑘𝑁)
2322adantl 275 . . . . . . . . 9 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → 𝑘𝑁)
2423iftrued 3533 . . . . . . . 8 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → if(𝑘𝑁, (𝐺‘(𝑓𝑘)), (𝐺𝑀)) = (𝐺‘(𝑓𝑘)))
25 fveq2 5496 . . . . . . . . . . . 12 (𝑏 = 𝑘 → (𝑓𝑏) = (𝑓𝑘))
26 id 19 . . . . . . . . . . . 12 (𝑏 = 𝑘𝑏 = 𝑘)
2725, 26eqeq12d 2185 . . . . . . . . . . 11 (𝑏 = 𝑘 → ((𝑓𝑏) = 𝑏 ↔ (𝑓𝑘) = 𝑘))
28 simplr2 1035 . . . . . . . . . . 11 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏)
29 simpr 109 . . . . . . . . . . 11 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → 𝑘 ∈ (𝑀...𝑁))
3027, 28, 29rspcdva 2839 . . . . . . . . . 10 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → (𝑓𝑘) = 𝑘)
3130fveq2d 5500 . . . . . . . . 9 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → (𝐺‘(𝑓𝑘)) = (𝐺𝑘))
32 fveq2 5496 . . . . . . . . . . 11 (𝑥 = 𝑘 → (𝐺𝑥) = (𝐺𝑘))
3332eleq1d 2239 . . . . . . . . . 10 (𝑥 = 𝑘 → ((𝐺𝑥) ∈ 𝑆 ↔ (𝐺𝑘) ∈ 𝑆))
346ralrimiva 2543 . . . . . . . . . . 11 (𝜑 → ∀𝑥 ∈ (ℤ𝑀)(𝐺𝑥) ∈ 𝑆)
3534ad2antrr 485 . . . . . . . . . 10 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → ∀𝑥 ∈ (ℤ𝑀)(𝐺𝑥) ∈ 𝑆)
3633, 35, 21rspcdva 2839 . . . . . . . . 9 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → (𝐺𝑘) ∈ 𝑆)
3731, 36eqeltrd 2247 . . . . . . . 8 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → (𝐺‘(𝑓𝑘)) ∈ 𝑆)
3824, 37eqeltrd 2247 . . . . . . 7 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → if(𝑘𝑁, (𝐺‘(𝑓𝑘)), (𝐺𝑀)) ∈ 𝑆)
39 breq1 3992 . . . . . . . . 9 (𝑎 = 𝑘 → (𝑎𝑁𝑘𝑁))
40 2fveq3 5501 . . . . . . . . 9 (𝑎 = 𝑘 → (𝐺‘(𝑓𝑎)) = (𝐺‘(𝑓𝑘)))
4139, 40ifbieq1d 3548 . . . . . . . 8 (𝑎 = 𝑘 → if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)) = if(𝑘𝑁, (𝐺‘(𝑓𝑘)), (𝐺𝑀)))
42 eqid 2170 . . . . . . . 8 (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))) = (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))
4341, 42fvmptg 5572 . . . . . . 7 ((𝑘 ∈ (ℤ𝑀) ∧ if(𝑘𝑁, (𝐺‘(𝑓𝑘)), (𝐺𝑀)) ∈ 𝑆) → ((𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))‘𝑘) = if(𝑘𝑁, (𝐺‘(𝑓𝑘)), (𝐺𝑀)))
4421, 38, 43syl2anc 409 . . . . . 6 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → ((𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))‘𝑘) = if(𝑘𝑁, (𝐺‘(𝑓𝑘)), (𝐺𝑀)))
4544, 24, 313eqtrd 2207 . . . . 5 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → ((𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))‘𝑘) = (𝐺𝑘))
46 simpr 109 . . . . . . 7 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → 𝑥 ∈ (ℤ𝑀))
47 fveq2 5496 . . . . . . . . . 10 (𝑎 = (𝑓𝑥) → (𝐺𝑎) = (𝐺‘(𝑓𝑥)))
4847eleq1d 2239 . . . . . . . . 9 (𝑎 = (𝑓𝑥) → ((𝐺𝑎) ∈ 𝑆 ↔ (𝐺‘(𝑓𝑥)) ∈ 𝑆))
4934ad3antrrr 489 . . . . . . . . . 10 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → ∀𝑥 ∈ (ℤ𝑀)(𝐺𝑥) ∈ 𝑆)
50 fveq2 5496 . . . . . . . . . . . 12 (𝑎 = 𝑥 → (𝐺𝑎) = (𝐺𝑥))
5150eleq1d 2239 . . . . . . . . . . 11 (𝑎 = 𝑥 → ((𝐺𝑎) ∈ 𝑆 ↔ (𝐺𝑥) ∈ 𝑆))
5251cbvralv 2696 . . . . . . . . . 10 (∀𝑎 ∈ (ℤ𝑀)(𝐺𝑎) ∈ 𝑆 ↔ ∀𝑥 ∈ (ℤ𝑀)(𝐺𝑥) ∈ 𝑆)
5349, 52sylibr 133 . . . . . . . . 9 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → ∀𝑎 ∈ (ℤ𝑀)(𝐺𝑎) ∈ 𝑆)
54 simpr1 998 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) → 𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
5554ad2antrr 485 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → 𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
56 f1of 5442 . . . . . . . . . . . 12 (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) → 𝑓:(𝑀...𝑁)⟶(𝑀...𝑁))
5755, 56syl 14 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → 𝑓:(𝑀...𝑁)⟶(𝑀...𝑁))
58 simpr 109 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → 𝑥𝑁)
5946adantr 274 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → 𝑥 ∈ (ℤ𝑀))
60 eluzelz 9496 . . . . . . . . . . . . . . 15 (𝑁 ∈ (ℤ𝑀) → 𝑁 ∈ ℤ)
614, 60syl 14 . . . . . . . . . . . . . 14 (𝜑𝑁 ∈ ℤ)
6261ad3antrrr 489 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → 𝑁 ∈ ℤ)
63 elfz5 9973 . . . . . . . . . . . . 13 ((𝑥 ∈ (ℤ𝑀) ∧ 𝑁 ∈ ℤ) → (𝑥 ∈ (𝑀...𝑁) ↔ 𝑥𝑁))
6459, 62, 63syl2anc 409 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → (𝑥 ∈ (𝑀...𝑁) ↔ 𝑥𝑁))
6558, 64mpbird 166 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → 𝑥 ∈ (𝑀...𝑁))
6657, 65ffvelrnd 5632 . . . . . . . . . 10 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → (𝑓𝑥) ∈ (𝑀...𝑁))
67 elfzuz 9977 . . . . . . . . . 10 ((𝑓𝑥) ∈ (𝑀...𝑁) → (𝑓𝑥) ∈ (ℤ𝑀))
6866, 67syl 14 . . . . . . . . 9 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → (𝑓𝑥) ∈ (ℤ𝑀))
6948, 53, 68rspcdva 2839 . . . . . . . 8 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → (𝐺‘(𝑓𝑥)) ∈ 𝑆)
70 fveq2 5496 . . . . . . . . . 10 (𝑎 = 𝑀 → (𝐺𝑎) = (𝐺𝑀))
7170eleq1d 2239 . . . . . . . . 9 (𝑎 = 𝑀 → ((𝐺𝑎) ∈ 𝑆 ↔ (𝐺𝑀) ∈ 𝑆))
7234, 52sylibr 133 . . . . . . . . . 10 (𝜑 → ∀𝑎 ∈ (ℤ𝑀)(𝐺𝑎) ∈ 𝑆)
7372ad3antrrr 489 . . . . . . . . 9 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ ¬ 𝑥𝑁) → ∀𝑎 ∈ (ℤ𝑀)(𝐺𝑎) ∈ 𝑆)
74 eluzel2 9492 . . . . . . . . . . . 12 (𝑁 ∈ (ℤ𝑀) → 𝑀 ∈ ℤ)
754, 74syl 14 . . . . . . . . . . 11 (𝜑𝑀 ∈ ℤ)
7675ad3antrrr 489 . . . . . . . . . 10 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ ¬ 𝑥𝑁) → 𝑀 ∈ ℤ)
77 uzid 9501 . . . . . . . . . 10 (𝑀 ∈ ℤ → 𝑀 ∈ (ℤ𝑀))
7876, 77syl 14 . . . . . . . . 9 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ ¬ 𝑥𝑁) → 𝑀 ∈ (ℤ𝑀))
7971, 73, 78rspcdva 2839 . . . . . . . 8 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ ¬ 𝑥𝑁) → (𝐺𝑀) ∈ 𝑆)
80 eluzelz 9496 . . . . . . . . . 10 (𝑥 ∈ (ℤ𝑀) → 𝑥 ∈ ℤ)
8180adantl 275 . . . . . . . . 9 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → 𝑥 ∈ ℤ)
8261ad2antrr 485 . . . . . . . . 9 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → 𝑁 ∈ ℤ)
83 zdcle 9288 . . . . . . . . 9 ((𝑥 ∈ ℤ ∧ 𝑁 ∈ ℤ) → DECID 𝑥𝑁)
8481, 82, 83syl2anc 409 . . . . . . . 8 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → DECID 𝑥𝑁)
8569, 79, 84ifcldadc 3555 . . . . . . 7 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)) ∈ 𝑆)
8610, 42fvmptg 5572 . . . . . . 7 ((𝑥 ∈ (ℤ𝑀) ∧ if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)) ∈ 𝑆) → ((𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))‘𝑥) = if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)))
8746, 85, 86syl2anc 409 . . . . . 6 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → ((𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))‘𝑥) = if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)))
8887, 85eqeltrd 2247 . . . . 5 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → ((𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))‘𝑥) ∈ 𝑆)
896adantlr 474 . . . . 5 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → (𝐺𝑥) ∈ 𝑆)
901adantlr 474 . . . . 5 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) ∈ 𝑆)
9119, 45, 88, 89, 90seq3fveq 10427 . . . 4 ((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) → (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐺)‘𝑁))
9218, 91eqtr3d 2205 . . 3 ((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) → (seq𝑀( + , 𝐿)‘𝑁) = (seq𝑀( + , 𝐺)‘𝑁))
9317, 92sylan2br 286 . 2 ((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝑁)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) → (seq𝑀( + , 𝐿)‘𝑁) = (seq𝑀( + , 𝐺)‘𝑁))
9412, 93exlimddv 1891 1 (𝜑 → (seq𝑀( + , 𝐿)‘𝑁) = (seq𝑀( + , 𝐺)‘𝑁))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wb 104  DECID wdc 829  w3a 973   = wceq 1348  wcel 2141  wral 2448  ifcif 3526   class class class wbr 3989  cmpt 4050  wf 5194  1-1-ontowf1o 5197  cfv 5198  (class class class)co 5853  cle 7955  cz 9212  cuz 9487  ...cfz 9965  seqcseq 10401
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 609  ax-in2 610  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-coll 4104  ax-sep 4107  ax-nul 4115  ax-pow 4160  ax-pr 4194  ax-un 4418  ax-setind 4521  ax-iinf 4572  ax-cnex 7865  ax-resscn 7866  ax-1cn 7867  ax-1re 7868  ax-icn 7869  ax-addcl 7870  ax-addrcl 7871  ax-mulcl 7872  ax-addcom 7874  ax-addass 7876  ax-distr 7878  ax-i2m1 7879  ax-0lt1 7880  ax-0id 7882  ax-rnegex 7883  ax-cnre 7885  ax-pre-ltirr 7886  ax-pre-ltwlin 7887  ax-pre-lttrn 7888  ax-pre-apti 7889  ax-pre-ltadd 7890
This theorem depends on definitions:  df-bi 116  df-dc 830  df-3or 974  df-3an 975  df-tru 1351  df-fal 1354  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ne 2341  df-nel 2436  df-ral 2453  df-rex 2454  df-reu 2455  df-rab 2457  df-v 2732  df-sbc 2956  df-csb 3050  df-dif 3123  df-un 3125  df-in 3127  df-ss 3134  df-nul 3415  df-if 3527  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-int 3832  df-iun 3875  df-br 3990  df-opab 4051  df-mpt 4052  df-tr 4088  df-id 4278  df-iord 4351  df-on 4353  df-ilim 4354  df-suc 4356  df-iom 4575  df-xp 4617  df-rel 4618  df-cnv 4619  df-co 4620  df-dm 4621  df-rn 4622  df-res 4623  df-ima 4624  df-iota 5160  df-fun 5200  df-fn 5201  df-f 5202  df-f1 5203  df-fo 5204  df-f1o 5205  df-fv 5206  df-riota 5809  df-ov 5856  df-oprab 5857  df-mpo 5858  df-1st 6119  df-2nd 6120  df-recs 6284  df-frec 6370  df-1o 6395  df-er 6513  df-en 6719  df-fin 6721  df-pnf 7956  df-mnf 7957  df-xr 7958  df-ltxr 7959  df-le 7960  df-sub 8092  df-neg 8093  df-inn 8879  df-n0 9136  df-z 9213  df-uz 9488  df-fz 9966  df-fzo 10099  df-seqfrec 10402
This theorem is referenced by:  seq3f1o  10460
  Copyright terms: Public domain W3C validator