MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  seqfveq2 Structured version   Visualization version   GIF version

Theorem seqfveq2 13392
Description: Equality of sequences. (Contributed by NM, 17-Mar-2005.) (Revised by Mario Carneiro, 27-May-2014.)
Hypotheses
Ref Expression
seqfveq2.1 (𝜑𝐾 ∈ (ℤ𝑀))
seqfveq2.2 (𝜑 → (seq𝑀( + , 𝐹)‘𝐾) = (𝐺𝐾))
seqfveq2.3 (𝜑𝑁 ∈ (ℤ𝐾))
seqfveq2.4 ((𝜑𝑘 ∈ ((𝐾 + 1)...𝑁)) → (𝐹𝑘) = (𝐺𝑘))
Assertion
Ref Expression
seqfveq2 (𝜑 → (seq𝑀( + , 𝐹)‘𝑁) = (seq𝐾( + , 𝐺)‘𝑁))
Distinct variable groups:   𝑘,𝐹   𝑘,𝐺   𝑘,𝐾   𝑘,𝑁   𝜑,𝑘
Allowed substitution hints:   + (𝑘)   𝑀(𝑘)

Proof of Theorem seqfveq2
Dummy variables 𝑛 𝑥 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 seqfveq2.3 . . 3 (𝜑𝑁 ∈ (ℤ𝐾))
2 eluzfz2 12914 . . 3 (𝑁 ∈ (ℤ𝐾) → 𝑁 ∈ (𝐾...𝑁))
31, 2syl 17 . 2 (𝜑𝑁 ∈ (𝐾...𝑁))
4 eleq1 2880 . . . . . 6 (𝑥 = 𝐾 → (𝑥 ∈ (𝐾...𝑁) ↔ 𝐾 ∈ (𝐾...𝑁)))
5 fveq2 6649 . . . . . . 7 (𝑥 = 𝐾 → (seq𝑀( + , 𝐹)‘𝑥) = (seq𝑀( + , 𝐹)‘𝐾))
6 fveq2 6649 . . . . . . 7 (𝑥 = 𝐾 → (seq𝐾( + , 𝐺)‘𝑥) = (seq𝐾( + , 𝐺)‘𝐾))
75, 6eqeq12d 2817 . . . . . 6 (𝑥 = 𝐾 → ((seq𝑀( + , 𝐹)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑥) ↔ (seq𝑀( + , 𝐹)‘𝐾) = (seq𝐾( + , 𝐺)‘𝐾)))
84, 7imbi12d 348 . . . . 5 (𝑥 = 𝐾 → ((𝑥 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑥)) ↔ (𝐾 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝐾) = (seq𝐾( + , 𝐺)‘𝐾))))
98imbi2d 344 . . . 4 (𝑥 = 𝐾 → ((𝜑 → (𝑥 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑥))) ↔ (𝜑 → (𝐾 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝐾) = (seq𝐾( + , 𝐺)‘𝐾)))))
10 eleq1 2880 . . . . . 6 (𝑥 = 𝑛 → (𝑥 ∈ (𝐾...𝑁) ↔ 𝑛 ∈ (𝐾...𝑁)))
11 fveq2 6649 . . . . . . 7 (𝑥 = 𝑛 → (seq𝑀( + , 𝐹)‘𝑥) = (seq𝑀( + , 𝐹)‘𝑛))
12 fveq2 6649 . . . . . . 7 (𝑥 = 𝑛 → (seq𝐾( + , 𝐺)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑛))
1311, 12eqeq12d 2817 . . . . . 6 (𝑥 = 𝑛 → ((seq𝑀( + , 𝐹)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑥) ↔ (seq𝑀( + , 𝐹)‘𝑛) = (seq𝐾( + , 𝐺)‘𝑛)))
1410, 13imbi12d 348 . . . . 5 (𝑥 = 𝑛 → ((𝑥 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑥)) ↔ (𝑛 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑛) = (seq𝐾( + , 𝐺)‘𝑛))))
1514imbi2d 344 . . . 4 (𝑥 = 𝑛 → ((𝜑 → (𝑥 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑥))) ↔ (𝜑 → (𝑛 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑛) = (seq𝐾( + , 𝐺)‘𝑛)))))
16 eleq1 2880 . . . . . 6 (𝑥 = (𝑛 + 1) → (𝑥 ∈ (𝐾...𝑁) ↔ (𝑛 + 1) ∈ (𝐾...𝑁)))
17 fveq2 6649 . . . . . . 7 (𝑥 = (𝑛 + 1) → (seq𝑀( + , 𝐹)‘𝑥) = (seq𝑀( + , 𝐹)‘(𝑛 + 1)))
18 fveq2 6649 . . . . . . 7 (𝑥 = (𝑛 + 1) → (seq𝐾( + , 𝐺)‘𝑥) = (seq𝐾( + , 𝐺)‘(𝑛 + 1)))
1917, 18eqeq12d 2817 . . . . . 6 (𝑥 = (𝑛 + 1) → ((seq𝑀( + , 𝐹)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑥) ↔ (seq𝑀( + , 𝐹)‘(𝑛 + 1)) = (seq𝐾( + , 𝐺)‘(𝑛 + 1))))
2016, 19imbi12d 348 . . . . 5 (𝑥 = (𝑛 + 1) → ((𝑥 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑥)) ↔ ((𝑛 + 1) ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘(𝑛 + 1)) = (seq𝐾( + , 𝐺)‘(𝑛 + 1)))))
2120imbi2d 344 . . . 4 (𝑥 = (𝑛 + 1) → ((𝜑 → (𝑥 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑥))) ↔ (𝜑 → ((𝑛 + 1) ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘(𝑛 + 1)) = (seq𝐾( + , 𝐺)‘(𝑛 + 1))))))
22 eleq1 2880 . . . . . 6 (𝑥 = 𝑁 → (𝑥 ∈ (𝐾...𝑁) ↔ 𝑁 ∈ (𝐾...𝑁)))
23 fveq2 6649 . . . . . . 7 (𝑥 = 𝑁 → (seq𝑀( + , 𝐹)‘𝑥) = (seq𝑀( + , 𝐹)‘𝑁))
24 fveq2 6649 . . . . . . 7 (𝑥 = 𝑁 → (seq𝐾( + , 𝐺)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑁))
2523, 24eqeq12d 2817 . . . . . 6 (𝑥 = 𝑁 → ((seq𝑀( + , 𝐹)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑥) ↔ (seq𝑀( + , 𝐹)‘𝑁) = (seq𝐾( + , 𝐺)‘𝑁)))
2622, 25imbi12d 348 . . . . 5 (𝑥 = 𝑁 → ((𝑥 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑥)) ↔ (𝑁 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑁) = (seq𝐾( + , 𝐺)‘𝑁))))
2726imbi2d 344 . . . 4 (𝑥 = 𝑁 → ((𝜑 → (𝑥 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑥) = (seq𝐾( + , 𝐺)‘𝑥))) ↔ (𝜑 → (𝑁 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑁) = (seq𝐾( + , 𝐺)‘𝑁)))))
28 seqfveq2.2 . . . . . 6 (𝜑 → (seq𝑀( + , 𝐹)‘𝐾) = (𝐺𝐾))
29 seqfveq2.1 . . . . . . 7 (𝜑𝐾 ∈ (ℤ𝑀))
30 eluzelz 12245 . . . . . . 7 (𝐾 ∈ (ℤ𝑀) → 𝐾 ∈ ℤ)
31 seq1 13381 . . . . . . 7 (𝐾 ∈ ℤ → (seq𝐾( + , 𝐺)‘𝐾) = (𝐺𝐾))
3229, 30, 313syl 18 . . . . . 6 (𝜑 → (seq𝐾( + , 𝐺)‘𝐾) = (𝐺𝐾))
3328, 32eqtr4d 2839 . . . . 5 (𝜑 → (seq𝑀( + , 𝐹)‘𝐾) = (seq𝐾( + , 𝐺)‘𝐾))
3433a1d 25 . . . 4 (𝜑 → (𝐾 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝐾) = (seq𝐾( + , 𝐺)‘𝐾)))
35 peano2fzr 12919 . . . . . . . 8 ((𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁)) → 𝑛 ∈ (𝐾...𝑁))
3635adantl 485 . . . . . . 7 ((𝜑 ∧ (𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁))) → 𝑛 ∈ (𝐾...𝑁))
3736expr 460 . . . . . 6 ((𝜑𝑛 ∈ (ℤ𝐾)) → ((𝑛 + 1) ∈ (𝐾...𝑁) → 𝑛 ∈ (𝐾...𝑁)))
3837imim1d 82 . . . . 5 ((𝜑𝑛 ∈ (ℤ𝐾)) → ((𝑛 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑛) = (seq𝐾( + , 𝐺)‘𝑛)) → ((𝑛 + 1) ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑛) = (seq𝐾( + , 𝐺)‘𝑛))))
39 oveq1 7146 . . . . . 6 ((seq𝑀( + , 𝐹)‘𝑛) = (seq𝐾( + , 𝐺)‘𝑛) → ((seq𝑀( + , 𝐹)‘𝑛) + (𝐹‘(𝑛 + 1))) = ((seq𝐾( + , 𝐺)‘𝑛) + (𝐹‘(𝑛 + 1))))
40 simpl 486 . . . . . . . . 9 ((𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁)) → 𝑛 ∈ (ℤ𝐾))
41 uztrn 12253 . . . . . . . . 9 ((𝑛 ∈ (ℤ𝐾) ∧ 𝐾 ∈ (ℤ𝑀)) → 𝑛 ∈ (ℤ𝑀))
4240, 29, 41syl2anr 599 . . . . . . . 8 ((𝜑 ∧ (𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁))) → 𝑛 ∈ (ℤ𝑀))
43 seqp1 13383 . . . . . . . 8 (𝑛 ∈ (ℤ𝑀) → (seq𝑀( + , 𝐹)‘(𝑛 + 1)) = ((seq𝑀( + , 𝐹)‘𝑛) + (𝐹‘(𝑛 + 1))))
4442, 43syl 17 . . . . . . 7 ((𝜑 ∧ (𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁))) → (seq𝑀( + , 𝐹)‘(𝑛 + 1)) = ((seq𝑀( + , 𝐹)‘𝑛) + (𝐹‘(𝑛 + 1))))
45 seqp1 13383 . . . . . . . . 9 (𝑛 ∈ (ℤ𝐾) → (seq𝐾( + , 𝐺)‘(𝑛 + 1)) = ((seq𝐾( + , 𝐺)‘𝑛) + (𝐺‘(𝑛 + 1))))
4645ad2antrl 727 . . . . . . . 8 ((𝜑 ∧ (𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁))) → (seq𝐾( + , 𝐺)‘(𝑛 + 1)) = ((seq𝐾( + , 𝐺)‘𝑛) + (𝐺‘(𝑛 + 1))))
47 fveq2 6649 . . . . . . . . . . 11 (𝑘 = (𝑛 + 1) → (𝐹𝑘) = (𝐹‘(𝑛 + 1)))
48 fveq2 6649 . . . . . . . . . . 11 (𝑘 = (𝑛 + 1) → (𝐺𝑘) = (𝐺‘(𝑛 + 1)))
4947, 48eqeq12d 2817 . . . . . . . . . 10 (𝑘 = (𝑛 + 1) → ((𝐹𝑘) = (𝐺𝑘) ↔ (𝐹‘(𝑛 + 1)) = (𝐺‘(𝑛 + 1))))
50 seqfveq2.4 . . . . . . . . . . . 12 ((𝜑𝑘 ∈ ((𝐾 + 1)...𝑁)) → (𝐹𝑘) = (𝐺𝑘))
5150ralrimiva 3152 . . . . . . . . . . 11 (𝜑 → ∀𝑘 ∈ ((𝐾 + 1)...𝑁)(𝐹𝑘) = (𝐺𝑘))
5251adantr 484 . . . . . . . . . 10 ((𝜑 ∧ (𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁))) → ∀𝑘 ∈ ((𝐾 + 1)...𝑁)(𝐹𝑘) = (𝐺𝑘))
53 eluzp1p1 12262 . . . . . . . . . . . 12 (𝑛 ∈ (ℤ𝐾) → (𝑛 + 1) ∈ (ℤ‘(𝐾 + 1)))
5453ad2antrl 727 . . . . . . . . . . 11 ((𝜑 ∧ (𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁))) → (𝑛 + 1) ∈ (ℤ‘(𝐾 + 1)))
55 elfzuz3 12903 . . . . . . . . . . . 12 ((𝑛 + 1) ∈ (𝐾...𝑁) → 𝑁 ∈ (ℤ‘(𝑛 + 1)))
5655ad2antll 728 . . . . . . . . . . 11 ((𝜑 ∧ (𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁))) → 𝑁 ∈ (ℤ‘(𝑛 + 1)))
57 elfzuzb 12900 . . . . . . . . . . 11 ((𝑛 + 1) ∈ ((𝐾 + 1)...𝑁) ↔ ((𝑛 + 1) ∈ (ℤ‘(𝐾 + 1)) ∧ 𝑁 ∈ (ℤ‘(𝑛 + 1))))
5854, 56, 57sylanbrc 586 . . . . . . . . . 10 ((𝜑 ∧ (𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁))) → (𝑛 + 1) ∈ ((𝐾 + 1)...𝑁))
5949, 52, 58rspcdva 3576 . . . . . . . . 9 ((𝜑 ∧ (𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁))) → (𝐹‘(𝑛 + 1)) = (𝐺‘(𝑛 + 1)))
6059oveq2d 7155 . . . . . . . 8 ((𝜑 ∧ (𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁))) → ((seq𝐾( + , 𝐺)‘𝑛) + (𝐹‘(𝑛 + 1))) = ((seq𝐾( + , 𝐺)‘𝑛) + (𝐺‘(𝑛 + 1))))
6146, 60eqtr4d 2839 . . . . . . 7 ((𝜑 ∧ (𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁))) → (seq𝐾( + , 𝐺)‘(𝑛 + 1)) = ((seq𝐾( + , 𝐺)‘𝑛) + (𝐹‘(𝑛 + 1))))
6244, 61eqeq12d 2817 . . . . . 6 ((𝜑 ∧ (𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁))) → ((seq𝑀( + , 𝐹)‘(𝑛 + 1)) = (seq𝐾( + , 𝐺)‘(𝑛 + 1)) ↔ ((seq𝑀( + , 𝐹)‘𝑛) + (𝐹‘(𝑛 + 1))) = ((seq𝐾( + , 𝐺)‘𝑛) + (𝐹‘(𝑛 + 1)))))
6339, 62syl5ibr 249 . . . . 5 ((𝜑 ∧ (𝑛 ∈ (ℤ𝐾) ∧ (𝑛 + 1) ∈ (𝐾...𝑁))) → ((seq𝑀( + , 𝐹)‘𝑛) = (seq𝐾( + , 𝐺)‘𝑛) → (seq𝑀( + , 𝐹)‘(𝑛 + 1)) = (seq𝐾( + , 𝐺)‘(𝑛 + 1))))
6438, 63animpimp2impd 843 . . . 4 (𝑛 ∈ (ℤ𝐾) → ((𝜑 → (𝑛 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑛) = (seq𝐾( + , 𝐺)‘𝑛))) → (𝜑 → ((𝑛 + 1) ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘(𝑛 + 1)) = (seq𝐾( + , 𝐺)‘(𝑛 + 1))))))
659, 15, 21, 27, 34, 64uzind4i 12302 . . 3 (𝑁 ∈ (ℤ𝐾) → (𝜑 → (𝑁 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑁) = (seq𝐾( + , 𝐺)‘𝑁))))
661, 65mpcom 38 . 2 (𝜑 → (𝑁 ∈ (𝐾...𝑁) → (seq𝑀( + , 𝐹)‘𝑁) = (seq𝐾( + , 𝐺)‘𝑁)))
673, 66mpd 15 1 (𝜑 → (seq𝑀( + , 𝐹)‘𝑁) = (seq𝐾( + , 𝐺)‘𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399   = wceq 1538  wcel 2112  wral 3109  cfv 6328  (class class class)co 7139  1c1 10531   + caddc 10533  cz 11973  cuz 12235  ...cfz 12889  seqcseq 13368
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2159  ax-12 2176  ax-ext 2773  ax-sep 5170  ax-nul 5177  ax-pow 5234  ax-pr 5298  ax-un 7445  ax-cnex 10586  ax-resscn 10587  ax-1cn 10588  ax-icn 10589  ax-addcl 10590  ax-addrcl 10591  ax-mulcl 10592  ax-mulrcl 10593  ax-mulcom 10594  ax-addass 10595  ax-mulass 10596  ax-distr 10597  ax-i2m1 10598  ax-1ne0 10599  ax-1rid 10600  ax-rnegex 10601  ax-rrecex 10602  ax-cnre 10603  ax-pre-lttri 10604  ax-pre-lttrn 10605  ax-pre-ltadd 10606  ax-pre-mulgt0 10607
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2601  df-eu 2632  df-clab 2780  df-cleq 2794  df-clel 2873  df-nfc 2941  df-ne 2991  df-nel 3095  df-ral 3114  df-rex 3115  df-reu 3116  df-rab 3118  df-v 3446  df-sbc 3724  df-csb 3832  df-dif 3887  df-un 3889  df-in 3891  df-ss 3901  df-pss 3903  df-nul 4247  df-if 4429  df-pw 4502  df-sn 4529  df-pr 4531  df-tp 4533  df-op 4535  df-uni 4804  df-iun 4886  df-br 5034  df-opab 5096  df-mpt 5114  df-tr 5140  df-id 5428  df-eprel 5433  df-po 5442  df-so 5443  df-fr 5482  df-we 5484  df-xp 5529  df-rel 5530  df-cnv 5531  df-co 5532  df-dm 5533  df-rn 5534  df-res 5535  df-ima 5536  df-pred 6120  df-ord 6166  df-on 6167  df-lim 6168  df-suc 6169  df-iota 6287  df-fun 6330  df-fn 6331  df-f 6332  df-f1 6333  df-fo 6334  df-f1o 6335  df-fv 6336  df-riota 7097  df-ov 7142  df-oprab 7143  df-mpo 7144  df-om 7565  df-1st 7675  df-2nd 7676  df-wrecs 7934  df-recs 7995  df-rdg 8033  df-er 8276  df-en 8497  df-dom 8498  df-sdom 8499  df-pnf 10670  df-mnf 10671  df-xr 10672  df-ltxr 10673  df-le 10674  df-sub 10865  df-neg 10866  df-nn 11630  df-n0 11890  df-z 11974  df-uz 12236  df-fz 12890  df-seq 13369
This theorem is referenced by:  seqfeq2  13393  seqfveq  13394  seqz  13418  gsumsplit1r  17892
  Copyright terms: Public domain W3C validator