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

Theorem seq3f1oleml 10438
Description: Lemma for seq3f1o 10439. 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 3985 . . . . 5 (𝑎 = 𝑥 → (𝑎𝑁𝑥𝑁))
9 2fveq3 5491 . . . . 5 (𝑎 = 𝑥 → (𝐺‘(𝑓𝑎)) = (𝐺‘(𝑓𝑥)))
108, 9ifbieq1d 3542 . . . 4 (𝑎 = 𝑥 → if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)) = if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)))
1110cbvmptv 4078 . . 3 (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))) = (𝑥 ∈ (ℤ𝑀) ↦ if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)))
121, 2, 3, 4, 5, 6, 7, 11seq3f1olemp 10437 . 2 (𝜑 → ∃𝑓(𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝑁)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)))
13 fveq2 5486 . . . . . 6 (𝑏 = 𝑥 → (𝑓𝑏) = (𝑓𝑥))
14 id 19 . . . . . 6 (𝑏 = 𝑥𝑏 = 𝑥)
1513, 14eqeq12d 2180 . . . . 5 (𝑏 = 𝑥 → ((𝑓𝑏) = 𝑏 ↔ (𝑓𝑥) = 𝑥))
1615cbvralv 2692 . . . 4 (∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ↔ ∀𝑥 ∈ (𝑀...𝑁)(𝑓𝑥) = 𝑥)
17163anbi2i 1181 . . 3 ((𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)) ↔ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝑁)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁)))
18 simpr3 995 . . . 4 ((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) → (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))
194adantr 274 . . . . 5 ((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) → 𝑁 ∈ (ℤ𝑀))
20 elfzuz 9956 . . . . . . . 8 (𝑘 ∈ (𝑀...𝑁) → 𝑘 ∈ (ℤ𝑀))
2120adantl 275 . . . . . . 7 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → 𝑘 ∈ (ℤ𝑀))
22 elfzle2 9963 . . . . . . . . . 10 (𝑘 ∈ (𝑀...𝑁) → 𝑘𝑁)
2322adantl 275 . . . . . . . . 9 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → 𝑘𝑁)
2423iftrued 3527 . . . . . . . 8 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → if(𝑘𝑁, (𝐺‘(𝑓𝑘)), (𝐺𝑀)) = (𝐺‘(𝑓𝑘)))
25 fveq2 5486 . . . . . . . . . . . 12 (𝑏 = 𝑘 → (𝑓𝑏) = (𝑓𝑘))
26 id 19 . . . . . . . . . . . 12 (𝑏 = 𝑘𝑏 = 𝑘)
2725, 26eqeq12d 2180 . . . . . . . . . . 11 (𝑏 = 𝑘 → ((𝑓𝑏) = 𝑏 ↔ (𝑓𝑘) = 𝑘))
28 simplr2 1030 . . . . . . . . . . 11 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏)
29 simpr 109 . . . . . . . . . . 11 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → 𝑘 ∈ (𝑀...𝑁))
3027, 28, 29rspcdva 2835 . . . . . . . . . 10 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → (𝑓𝑘) = 𝑘)
3130fveq2d 5490 . . . . . . . . 9 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → (𝐺‘(𝑓𝑘)) = (𝐺𝑘))
32 fveq2 5486 . . . . . . . . . . 11 (𝑥 = 𝑘 → (𝐺𝑥) = (𝐺𝑘))
3332eleq1d 2235 . . . . . . . . . 10 (𝑥 = 𝑘 → ((𝐺𝑥) ∈ 𝑆 ↔ (𝐺𝑘) ∈ 𝑆))
346ralrimiva 2539 . . . . . . . . . . 11 (𝜑 → ∀𝑥 ∈ (ℤ𝑀)(𝐺𝑥) ∈ 𝑆)
3534ad2antrr 480 . . . . . . . . . 10 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → ∀𝑥 ∈ (ℤ𝑀)(𝐺𝑥) ∈ 𝑆)
3633, 35, 21rspcdva 2835 . . . . . . . . 9 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → (𝐺𝑘) ∈ 𝑆)
3731, 36eqeltrd 2243 . . . . . . . 8 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → (𝐺‘(𝑓𝑘)) ∈ 𝑆)
3824, 37eqeltrd 2243 . . . . . . 7 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → if(𝑘𝑁, (𝐺‘(𝑓𝑘)), (𝐺𝑀)) ∈ 𝑆)
39 breq1 3985 . . . . . . . . 9 (𝑎 = 𝑘 → (𝑎𝑁𝑘𝑁))
40 2fveq3 5491 . . . . . . . . 9 (𝑎 = 𝑘 → (𝐺‘(𝑓𝑎)) = (𝐺‘(𝑓𝑘)))
4139, 40ifbieq1d 3542 . . . . . . . 8 (𝑎 = 𝑘 → if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)) = if(𝑘𝑁, (𝐺‘(𝑓𝑘)), (𝐺𝑀)))
42 eqid 2165 . . . . . . . 8 (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))) = (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))
4341, 42fvmptg 5562 . . . . . . 7 ((𝑘 ∈ (ℤ𝑀) ∧ if(𝑘𝑁, (𝐺‘(𝑓𝑘)), (𝐺𝑀)) ∈ 𝑆) → ((𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))‘𝑘) = if(𝑘𝑁, (𝐺‘(𝑓𝑘)), (𝐺𝑀)))
4421, 38, 43syl2anc 409 . . . . . 6 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → ((𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))‘𝑘) = if(𝑘𝑁, (𝐺‘(𝑓𝑘)), (𝐺𝑀)))
4544, 24, 313eqtrd 2202 . . . . 5 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑘 ∈ (𝑀...𝑁)) → ((𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))‘𝑘) = (𝐺𝑘))
46 simpr 109 . . . . . . 7 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → 𝑥 ∈ (ℤ𝑀))
47 fveq2 5486 . . . . . . . . . 10 (𝑎 = (𝑓𝑥) → (𝐺𝑎) = (𝐺‘(𝑓𝑥)))
4847eleq1d 2235 . . . . . . . . 9 (𝑎 = (𝑓𝑥) → ((𝐺𝑎) ∈ 𝑆 ↔ (𝐺‘(𝑓𝑥)) ∈ 𝑆))
4934ad3antrrr 484 . . . . . . . . . 10 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → ∀𝑥 ∈ (ℤ𝑀)(𝐺𝑥) ∈ 𝑆)
50 fveq2 5486 . . . . . . . . . . . 12 (𝑎 = 𝑥 → (𝐺𝑎) = (𝐺𝑥))
5150eleq1d 2235 . . . . . . . . . . 11 (𝑎 = 𝑥 → ((𝐺𝑎) ∈ 𝑆 ↔ (𝐺𝑥) ∈ 𝑆))
5251cbvralv 2692 . . . . . . . . . 10 (∀𝑎 ∈ (ℤ𝑀)(𝐺𝑎) ∈ 𝑆 ↔ ∀𝑥 ∈ (ℤ𝑀)(𝐺𝑥) ∈ 𝑆)
5349, 52sylibr 133 . . . . . . . . 9 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → ∀𝑎 ∈ (ℤ𝑀)(𝐺𝑎) ∈ 𝑆)
54 simpr1 993 . . . . . . . . . . . . 13 ((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) → 𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
5554ad2antrr 480 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → 𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁))
56 f1of 5432 . . . . . . . . . . . 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 9475 . . . . . . . . . . . . . . 15 (𝑁 ∈ (ℤ𝑀) → 𝑁 ∈ ℤ)
614, 60syl 14 . . . . . . . . . . . . . 14 (𝜑𝑁 ∈ ℤ)
6261ad3antrrr 484 . . . . . . . . . . . . 13 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → 𝑁 ∈ ℤ)
63 elfz5 9952 . . . . . . . . . . . . 13 ((𝑥 ∈ (ℤ𝑀) ∧ 𝑁 ∈ ℤ) → (𝑥 ∈ (𝑀...𝑁) ↔ 𝑥𝑁))
6459, 62, 63syl2anc 409 . . . . . . . . . . . 12 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → (𝑥 ∈ (𝑀...𝑁) ↔ 𝑥𝑁))
6558, 64mpbird 166 . . . . . . . . . . 11 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → 𝑥 ∈ (𝑀...𝑁))
6657, 65ffvelrnd 5621 . . . . . . . . . 10 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → (𝑓𝑥) ∈ (𝑀...𝑁))
67 elfzuz 9956 . . . . . . . . . 10 ((𝑓𝑥) ∈ (𝑀...𝑁) → (𝑓𝑥) ∈ (ℤ𝑀))
6866, 67syl 14 . . . . . . . . 9 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → (𝑓𝑥) ∈ (ℤ𝑀))
6948, 53, 68rspcdva 2835 . . . . . . . 8 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ 𝑥𝑁) → (𝐺‘(𝑓𝑥)) ∈ 𝑆)
70 fveq2 5486 . . . . . . . . . 10 (𝑎 = 𝑀 → (𝐺𝑎) = (𝐺𝑀))
7170eleq1d 2235 . . . . . . . . 9 (𝑎 = 𝑀 → ((𝐺𝑎) ∈ 𝑆 ↔ (𝐺𝑀) ∈ 𝑆))
7234, 52sylibr 133 . . . . . . . . . 10 (𝜑 → ∀𝑎 ∈ (ℤ𝑀)(𝐺𝑎) ∈ 𝑆)
7372ad3antrrr 484 . . . . . . . . 9 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ ¬ 𝑥𝑁) → ∀𝑎 ∈ (ℤ𝑀)(𝐺𝑎) ∈ 𝑆)
74 eluzel2 9471 . . . . . . . . . . . 12 (𝑁 ∈ (ℤ𝑀) → 𝑀 ∈ ℤ)
754, 74syl 14 . . . . . . . . . . 11 (𝜑𝑀 ∈ ℤ)
7675ad3antrrr 484 . . . . . . . . . 10 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ ¬ 𝑥𝑁) → 𝑀 ∈ ℤ)
77 uzid 9480 . . . . . . . . . 10 (𝑀 ∈ ℤ → 𝑀 ∈ (ℤ𝑀))
7876, 77syl 14 . . . . . . . . 9 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ ¬ 𝑥𝑁) → 𝑀 ∈ (ℤ𝑀))
7971, 73, 78rspcdva 2835 . . . . . . . 8 ((((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) ∧ ¬ 𝑥𝑁) → (𝐺𝑀) ∈ 𝑆)
80 eluzelz 9475 . . . . . . . . . 10 (𝑥 ∈ (ℤ𝑀) → 𝑥 ∈ ℤ)
8180adantl 275 . . . . . . . . 9 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → 𝑥 ∈ ℤ)
8261ad2antrr 480 . . . . . . . . 9 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → 𝑁 ∈ ℤ)
83 zdcle 9267 . . . . . . . . 9 ((𝑥 ∈ ℤ ∧ 𝑁 ∈ ℤ) → DECID 𝑥𝑁)
8481, 82, 83syl2anc 409 . . . . . . . 8 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → DECID 𝑥𝑁)
8569, 79, 84ifcldadc 3549 . . . . . . 7 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)) ∈ 𝑆)
8610, 42fvmptg 5562 . . . . . . 7 ((𝑥 ∈ (ℤ𝑀) ∧ if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)) ∈ 𝑆) → ((𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))‘𝑥) = if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)))
8746, 85, 86syl2anc 409 . . . . . 6 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → ((𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))‘𝑥) = if(𝑥𝑁, (𝐺‘(𝑓𝑥)), (𝐺𝑀)))
8887, 85eqeltrd 2243 . . . . 5 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → ((𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀)))‘𝑥) ∈ 𝑆)
896adantlr 469 . . . . 5 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ 𝑥 ∈ (ℤ𝑀)) → (𝐺𝑥) ∈ 𝑆)
901adantlr 469 . . . . 5 (((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) ∈ 𝑆)
9119, 45, 88, 89, 90seq3fveq 10406 . . . 4 ((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) → (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐺)‘𝑁))
9218, 91eqtr3d 2200 . . 3 ((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑏 ∈ (𝑀...𝑁)(𝑓𝑏) = 𝑏 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) → (seq𝑀( + , 𝐿)‘𝑁) = (seq𝑀( + , 𝐺)‘𝑁))
9317, 92sylan2br 286 . 2 ((𝜑 ∧ (𝑓:(𝑀...𝑁)–1-1-onto→(𝑀...𝑁) ∧ ∀𝑥 ∈ (𝑀...𝑁)(𝑓𝑥) = 𝑥 ∧ (seq𝑀( + , (𝑎 ∈ (ℤ𝑀) ↦ if(𝑎𝑁, (𝐺‘(𝑓𝑎)), (𝐺𝑀))))‘𝑁) = (seq𝑀( + , 𝐿)‘𝑁))) → (seq𝑀( + , 𝐿)‘𝑁) = (seq𝑀( + , 𝐺)‘𝑁))
9412, 93exlimddv 1886 1 (𝜑 → (seq𝑀( + , 𝐿)‘𝑁) = (seq𝑀( + , 𝐺)‘𝑁))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 103  wb 104  DECID wdc 824  w3a 968   = wceq 1343  wcel 2136  wral 2444  ifcif 3520   class class class wbr 3982  cmpt 4043  wf 5184  1-1-ontowf1o 5187  cfv 5188  (class class class)co 5842  cle 7934  cz 9191  cuz 9466  ...cfz 9944  seqcseq 10380
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 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-coll 4097  ax-sep 4100  ax-nul 4108  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514  ax-iinf 4565  ax-cnex 7844  ax-resscn 7845  ax-1cn 7846  ax-1re 7847  ax-icn 7848  ax-addcl 7849  ax-addrcl 7850  ax-mulcl 7851  ax-addcom 7853  ax-addass 7855  ax-distr 7857  ax-i2m1 7858  ax-0lt1 7859  ax-0id 7861  ax-rnegex 7862  ax-cnre 7864  ax-pre-ltirr 7865  ax-pre-ltwlin 7866  ax-pre-lttrn 7867  ax-pre-apti 7868  ax-pre-ltadd 7869
This theorem depends on definitions:  df-bi 116  df-dc 825  df-3or 969  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-nel 2432  df-ral 2449  df-rex 2450  df-reu 2451  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-if 3521  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-int 3825  df-iun 3868  df-br 3983  df-opab 4044  df-mpt 4045  df-tr 4081  df-id 4271  df-iord 4344  df-on 4346  df-ilim 4347  df-suc 4349  df-iom 4568  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fo 5194  df-f1o 5195  df-fv 5196  df-riota 5798  df-ov 5845  df-oprab 5846  df-mpo 5847  df-1st 6108  df-2nd 6109  df-recs 6273  df-frec 6359  df-1o 6384  df-er 6501  df-en 6707  df-fin 6709  df-pnf 7935  df-mnf 7936  df-xr 7937  df-ltxr 7938  df-le 7939  df-sub 8071  df-neg 8072  df-inn 8858  df-n0 9115  df-z 9192  df-uz 9467  df-fz 9945  df-fzo 10078  df-seqfrec 10381
This theorem is referenced by:  seq3f1o  10439
  Copyright terms: Public domain W3C validator