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

Theorem seq1st 15211
Description: A sequence whose iteration function ignores the second argument is only affected by the first point of the initial value function. (Contributed by Mario Carneiro, 11-Feb-2015.)
Hypotheses
Ref Expression
algrf.1 𝑍 = (ℤ𝑀)
algrf.2 𝑅 = seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))
Assertion
Ref Expression
seq1st ((𝑀 ∈ ℤ ∧ 𝐴𝑉) → 𝑅 = seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩}))

Proof of Theorem seq1st
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 algrf.2 . 2 𝑅 = seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))
2 seqfn 12756 . . . 4 (𝑀 ∈ ℤ → seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴})) Fn (ℤ𝑀))
32adantr 481 . . 3 ((𝑀 ∈ ℤ ∧ 𝐴𝑉) → seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴})) Fn (ℤ𝑀))
4 seqfn 12756 . . . 4 (𝑀 ∈ ℤ → seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩}) Fn (ℤ𝑀))
54adantr 481 . . 3 ((𝑀 ∈ ℤ ∧ 𝐴𝑉) → seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩}) Fn (ℤ𝑀))
6 fveq2 6150 . . . . . . . 8 (𝑦 = 𝑀 → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑦) = (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑀))
7 fveq2 6150 . . . . . . . 8 (𝑦 = 𝑀 → (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑦) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑀))
86, 7eqeq12d 2636 . . . . . . 7 (𝑦 = 𝑀 → ((seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑦) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑦) ↔ (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑀) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑀)))
98imbi2d 330 . . . . . 6 (𝑦 = 𝑀 → ((𝐴𝑉 → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑦) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑦)) ↔ (𝐴𝑉 → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑀) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑀))))
10 fveq2 6150 . . . . . . . 8 (𝑦 = 𝑥 → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑦) = (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥))
11 fveq2 6150 . . . . . . . 8 (𝑦 = 𝑥 → (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑦) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥))
1210, 11eqeq12d 2636 . . . . . . 7 (𝑦 = 𝑥 → ((seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑦) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑦) ↔ (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥)))
1312imbi2d 330 . . . . . 6 (𝑦 = 𝑥 → ((𝐴𝑉 → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑦) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑦)) ↔ (𝐴𝑉 → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥))))
14 fveq2 6150 . . . . . . . 8 (𝑦 = (𝑥 + 1) → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑦) = (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘(𝑥 + 1)))
15 fveq2 6150 . . . . . . . 8 (𝑦 = (𝑥 + 1) → (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑦) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘(𝑥 + 1)))
1614, 15eqeq12d 2636 . . . . . . 7 (𝑦 = (𝑥 + 1) → ((seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑦) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑦) ↔ (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘(𝑥 + 1)) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘(𝑥 + 1))))
1716imbi2d 330 . . . . . 6 (𝑦 = (𝑥 + 1) → ((𝐴𝑉 → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑦) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑦)) ↔ (𝐴𝑉 → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘(𝑥 + 1)) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘(𝑥 + 1)))))
18 seq1 12757 . . . . . . . . 9 (𝑀 ∈ ℤ → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑀) = ((𝑍 × {𝐴})‘𝑀))
1918adantr 481 . . . . . . . 8 ((𝑀 ∈ ℤ ∧ 𝐴𝑉) → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑀) = ((𝑍 × {𝐴})‘𝑀))
20 seq1 12757 . . . . . . . . . 10 (𝑀 ∈ ℤ → (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑀) = ({⟨𝑀, 𝐴⟩}‘𝑀))
2120adantr 481 . . . . . . . . 9 ((𝑀 ∈ ℤ ∧ 𝐴𝑉) → (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑀) = ({⟨𝑀, 𝐴⟩}‘𝑀))
22 id 22 . . . . . . . . . . 11 (𝐴𝑉𝐴𝑉)
23 uzid 11649 . . . . . . . . . . . 12 (𝑀 ∈ ℤ → 𝑀 ∈ (ℤ𝑀))
24 algrf.1 . . . . . . . . . . . 12 𝑍 = (ℤ𝑀)
2523, 24syl6eleqr 2709 . . . . . . . . . . 11 (𝑀 ∈ ℤ → 𝑀𝑍)
26 fvconst2g 6424 . . . . . . . . . . 11 ((𝐴𝑉𝑀𝑍) → ((𝑍 × {𝐴})‘𝑀) = 𝐴)
2722, 25, 26syl2anr 495 . . . . . . . . . 10 ((𝑀 ∈ ℤ ∧ 𝐴𝑉) → ((𝑍 × {𝐴})‘𝑀) = 𝐴)
28 fvsng 6404 . . . . . . . . . 10 ((𝑀 ∈ ℤ ∧ 𝐴𝑉) → ({⟨𝑀, 𝐴⟩}‘𝑀) = 𝐴)
2927, 28eqtr4d 2658 . . . . . . . . 9 ((𝑀 ∈ ℤ ∧ 𝐴𝑉) → ((𝑍 × {𝐴})‘𝑀) = ({⟨𝑀, 𝐴⟩}‘𝑀))
3021, 29eqtr4d 2658 . . . . . . . 8 ((𝑀 ∈ ℤ ∧ 𝐴𝑉) → (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑀) = ((𝑍 × {𝐴})‘𝑀))
3119, 30eqtr4d 2658 . . . . . . 7 ((𝑀 ∈ ℤ ∧ 𝐴𝑉) → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑀) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑀))
3231ex 450 . . . . . 6 (𝑀 ∈ ℤ → (𝐴𝑉 → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑀) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑀)))
33 fveq2 6150 . . . . . . . . 9 ((seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥) → (𝐹‘(seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥)) = (𝐹‘(seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥)))
34 seqp1 12759 . . . . . . . . . . . 12 (𝑥 ∈ (ℤ𝑀) → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘(𝑥 + 1)) = ((seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥)(𝐹 ∘ 1st )((𝑍 × {𝐴})‘(𝑥 + 1))))
35 fvex 6160 . . . . . . . . . . . . 13 (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥) ∈ V
36 fvex 6160 . . . . . . . . . . . . 13 ((𝑍 × {𝐴})‘(𝑥 + 1)) ∈ V
3735, 36algrflem 7234 . . . . . . . . . . . 12 ((seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥)(𝐹 ∘ 1st )((𝑍 × {𝐴})‘(𝑥 + 1))) = (𝐹‘(seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥))
3834, 37syl6eq 2671 . . . . . . . . . . 11 (𝑥 ∈ (ℤ𝑀) → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘(𝑥 + 1)) = (𝐹‘(seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥)))
39 seqp1 12759 . . . . . . . . . . . 12 (𝑥 ∈ (ℤ𝑀) → (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘(𝑥 + 1)) = ((seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥)(𝐹 ∘ 1st )({⟨𝑀, 𝐴⟩}‘(𝑥 + 1))))
40 fvex 6160 . . . . . . . . . . . . 13 (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥) ∈ V
41 fvex 6160 . . . . . . . . . . . . 13 ({⟨𝑀, 𝐴⟩}‘(𝑥 + 1)) ∈ V
4240, 41algrflem 7234 . . . . . . . . . . . 12 ((seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥)(𝐹 ∘ 1st )({⟨𝑀, 𝐴⟩}‘(𝑥 + 1))) = (𝐹‘(seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥))
4339, 42syl6eq 2671 . . . . . . . . . . 11 (𝑥 ∈ (ℤ𝑀) → (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘(𝑥 + 1)) = (𝐹‘(seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥)))
4438, 43eqeq12d 2636 . . . . . . . . . 10 (𝑥 ∈ (ℤ𝑀) → ((seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘(𝑥 + 1)) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘(𝑥 + 1)) ↔ (𝐹‘(seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥)) = (𝐹‘(seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥))))
4544adantl 482 . . . . . . . . 9 ((𝐴𝑉𝑥 ∈ (ℤ𝑀)) → ((seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘(𝑥 + 1)) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘(𝑥 + 1)) ↔ (𝐹‘(seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥)) = (𝐹‘(seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥))))
4633, 45syl5ibr 236 . . . . . . . 8 ((𝐴𝑉𝑥 ∈ (ℤ𝑀)) → ((seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥) → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘(𝑥 + 1)) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘(𝑥 + 1))))
4746expcom 451 . . . . . . 7 (𝑥 ∈ (ℤ𝑀) → (𝐴𝑉 → ((seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥) → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘(𝑥 + 1)) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘(𝑥 + 1)))))
4847a2d 29 . . . . . 6 (𝑥 ∈ (ℤ𝑀) → ((𝐴𝑉 → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥)) → (𝐴𝑉 → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘(𝑥 + 1)) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘(𝑥 + 1)))))
499, 13, 17, 13, 32, 48uzind4 11693 . . . . 5 (𝑥 ∈ (ℤ𝑀) → (𝐴𝑉 → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥)))
5049impcom 446 . . . 4 ((𝐴𝑉𝑥 ∈ (ℤ𝑀)) → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥))
5150adantll 749 . . 3 (((𝑀 ∈ ℤ ∧ 𝐴𝑉) ∧ 𝑥 ∈ (ℤ𝑀)) → (seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴}))‘𝑥) = (seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩})‘𝑥))
523, 5, 51eqfnfvd 6272 . 2 ((𝑀 ∈ ℤ ∧ 𝐴𝑉) → seq𝑀((𝐹 ∘ 1st ), (𝑍 × {𝐴})) = seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩}))
531, 52syl5eq 2667 1 ((𝑀 ∈ ℤ ∧ 𝐴𝑉) → 𝑅 = seq𝑀((𝐹 ∘ 1st ), {⟨𝑀, 𝐴⟩}))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384   = wceq 1480  wcel 1987  {csn 4150  cop 4156   × cxp 5074  ccom 5080   Fn wfn 5844  cfv 5849  (class class class)co 6607  1st c1st 7114  1c1 9884   + caddc 9886  cz 11324  cuz 11634  seqcseq 12744
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4743  ax-nul 4751  ax-pow 4805  ax-pr 4869  ax-un 6905  ax-cnex 9939  ax-resscn 9940  ax-1cn 9941  ax-icn 9942  ax-addcl 9943  ax-addrcl 9944  ax-mulcl 9945  ax-mulrcl 9946  ax-mulcom 9947  ax-addass 9948  ax-mulass 9949  ax-distr 9950  ax-i2m1 9951  ax-1ne0 9952  ax-1rid 9953  ax-rnegex 9954  ax-rrecex 9955  ax-cnre 9956  ax-pre-lttri 9957  ax-pre-lttrn 9958  ax-pre-ltadd 9959  ax-pre-mulgt0 9960
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2912  df-rex 2913  df-reu 2914  df-rab 2916  df-v 3188  df-sbc 3419  df-csb 3516  df-dif 3559  df-un 3561  df-in 3563  df-ss 3570  df-pss 3572  df-nul 3894  df-if 4061  df-pw 4134  df-sn 4151  df-pr 4153  df-tp 4155  df-op 4157  df-uni 4405  df-iun 4489  df-br 4616  df-opab 4676  df-mpt 4677  df-tr 4715  df-eprel 4987  df-id 4991  df-po 4997  df-so 4998  df-fr 5035  df-we 5037  df-xp 5082  df-rel 5083  df-cnv 5084  df-co 5085  df-dm 5086  df-rn 5087  df-res 5088  df-ima 5089  df-pred 5641  df-ord 5687  df-on 5688  df-lim 5689  df-suc 5690  df-iota 5812  df-fun 5851  df-fn 5852  df-f 5853  df-f1 5854  df-fo 5855  df-f1o 5856  df-fv 5857  df-riota 6568  df-ov 6610  df-oprab 6611  df-mpt2 6612  df-om 7016  df-1st 7116  df-2nd 7117  df-wrecs 7355  df-recs 7416  df-rdg 7454  df-er 7690  df-en 7903  df-dom 7904  df-sdom 7905  df-pnf 10023  df-mnf 10024  df-xr 10025  df-ltxr 10026  df-le 10027  df-sub 10215  df-neg 10216  df-nn 10968  df-n0 11240  df-z 11325  df-uz 11635  df-seq 12745
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator