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

Theorem iseqid 9467
Description: Discard the first few terms of a sequence that starts with all zeroes (or whatever the identity 𝑍 is for operation +). (Contributed by Mario Carneiro, 13-Jul-2013.) (Revised by Mario Carneiro, 27-May-2014.)
Hypotheses
Ref Expression
iseqid.1 ((𝜑𝑥𝑆) → (𝑍 + 𝑥) = 𝑥)
iseqid.2 (𝜑𝑍𝑆)
iseqid.3 (𝜑𝑁 ∈ (ℤ𝑀))
iseqid.4 (𝜑 → (𝐹𝑁) ∈ 𝑆)
iseqid.5 ((𝜑𝑥 ∈ (𝑀...(𝑁 − 1))) → (𝐹𝑥) = 𝑍)
iseqid.s (𝜑𝑆𝑉)
iseqid.f ((𝜑𝑥 ∈ (ℤ𝑀)) → (𝐹𝑥) ∈ 𝑆)
iseqid.cl ((𝜑 ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) ∈ 𝑆)
Assertion
Ref Expression
iseqid (𝜑 → (seq𝑀( + , 𝐹, 𝑆) ↾ (ℤ𝑁)) = seq𝑁( + , 𝐹, 𝑆))
Distinct variable groups:   𝑥, + ,𝑦   𝑥,𝐹,𝑦   𝑥,𝑀,𝑦   𝑥,𝑁,𝑦   𝑥,𝑆,𝑦   𝑥,𝑍,𝑦   𝜑,𝑥,𝑦
Allowed substitution hints:   𝑉(𝑥,𝑦)

Proof of Theorem iseqid
Dummy variable 𝑘 is distinct from all other variables.
StepHypRef Expression
1 iseqid.3 . 2 (𝜑𝑁 ∈ (ℤ𝑀))
2 eluzelz 8628 . . . . . 6 (𝑁 ∈ (ℤ𝑀) → 𝑁 ∈ ℤ)
31, 2syl 14 . . . . 5 (𝜑𝑁 ∈ ℤ)
4 iseqid.s . . . . 5 (𝜑𝑆𝑉)
5 simpr 108 . . . . . . 7 ((𝜑𝑥 ∈ (ℤ𝑁)) → 𝑥 ∈ (ℤ𝑁))
61adantr 270 . . . . . . 7 ((𝜑𝑥 ∈ (ℤ𝑁)) → 𝑁 ∈ (ℤ𝑀))
7 uztrn 8635 . . . . . . 7 ((𝑥 ∈ (ℤ𝑁) ∧ 𝑁 ∈ (ℤ𝑀)) → 𝑥 ∈ (ℤ𝑀))
85, 6, 7syl2anc 403 . . . . . 6 ((𝜑𝑥 ∈ (ℤ𝑁)) → 𝑥 ∈ (ℤ𝑀))
9 iseqid.f . . . . . 6 ((𝜑𝑥 ∈ (ℤ𝑀)) → (𝐹𝑥) ∈ 𝑆)
108, 9syldan 276 . . . . 5 ((𝜑𝑥 ∈ (ℤ𝑁)) → (𝐹𝑥) ∈ 𝑆)
11 iseqid.cl . . . . 5 ((𝜑 ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) ∈ 𝑆)
123, 4, 10, 11iseq1 9442 . . . 4 (𝜑 → (seq𝑁( + , 𝐹, 𝑆)‘𝑁) = (𝐹𝑁))
13 iseqeq1 9434 . . . . . 6 (𝑁 = 𝑀 → seq𝑁( + , 𝐹, 𝑆) = seq𝑀( + , 𝐹, 𝑆))
1413fveq1d 5200 . . . . 5 (𝑁 = 𝑀 → (seq𝑁( + , 𝐹, 𝑆)‘𝑁) = (seq𝑀( + , 𝐹, 𝑆)‘𝑁))
1514eqeq1d 2089 . . . 4 (𝑁 = 𝑀 → ((seq𝑁( + , 𝐹, 𝑆)‘𝑁) = (𝐹𝑁) ↔ (seq𝑀( + , 𝐹, 𝑆)‘𝑁) = (𝐹𝑁)))
1612, 15syl5ibcom 153 . . 3 (𝜑 → (𝑁 = 𝑀 → (seq𝑀( + , 𝐹, 𝑆)‘𝑁) = (𝐹𝑁)))
17 eluzel2 8624 . . . . . . . 8 (𝑁 ∈ (ℤ𝑀) → 𝑀 ∈ ℤ)
181, 17syl 14 . . . . . . 7 (𝜑𝑀 ∈ ℤ)
1918adantr 270 . . . . . 6 ((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) → 𝑀 ∈ ℤ)
20 simpr 108 . . . . . 6 ((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) → 𝑁 ∈ (ℤ‘(𝑀 + 1)))
214adantr 270 . . . . . 6 ((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) → 𝑆𝑉)
229adantlr 460 . . . . . 6 (((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) ∧ 𝑥 ∈ (ℤ𝑀)) → (𝐹𝑥) ∈ 𝑆)
2311adantlr 460 . . . . . 6 (((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) ∧ (𝑥𝑆𝑦𝑆)) → (𝑥 + 𝑦) ∈ 𝑆)
2419, 20, 21, 22, 23iseqm1 9447 . . . . 5 ((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) → (seq𝑀( + , 𝐹, 𝑆)‘𝑁) = ((seq𝑀( + , 𝐹, 𝑆)‘(𝑁 − 1)) + (𝐹𝑁)))
25 iseqid.2 . . . . . . . . 9 (𝜑𝑍𝑆)
26 iseqid.1 . . . . . . . . . 10 ((𝜑𝑥𝑆) → (𝑍 + 𝑥) = 𝑥)
2726ralrimiva 2434 . . . . . . . . 9 (𝜑 → ∀𝑥𝑆 (𝑍 + 𝑥) = 𝑥)
28 oveq2 5540 . . . . . . . . . . 11 (𝑥 = 𝑍 → (𝑍 + 𝑥) = (𝑍 + 𝑍))
29 id 19 . . . . . . . . . . 11 (𝑥 = 𝑍𝑥 = 𝑍)
3028, 29eqeq12d 2095 . . . . . . . . . 10 (𝑥 = 𝑍 → ((𝑍 + 𝑥) = 𝑥 ↔ (𝑍 + 𝑍) = 𝑍))
3130rspcv 2697 . . . . . . . . 9 (𝑍𝑆 → (∀𝑥𝑆 (𝑍 + 𝑥) = 𝑥 → (𝑍 + 𝑍) = 𝑍))
3225, 27, 31sylc 61 . . . . . . . 8 (𝜑 → (𝑍 + 𝑍) = 𝑍)
3332adantr 270 . . . . . . 7 ((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) → (𝑍 + 𝑍) = 𝑍)
34 eluzp1m1 8642 . . . . . . . 8 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ (ℤ‘(𝑀 + 1))) → (𝑁 − 1) ∈ (ℤ𝑀))
3518, 34sylan 277 . . . . . . 7 ((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) → (𝑁 − 1) ∈ (ℤ𝑀))
36 iseqid.5 . . . . . . . 8 ((𝜑𝑥 ∈ (𝑀...(𝑁 − 1))) → (𝐹𝑥) = 𝑍)
3736adantlr 460 . . . . . . 7 (((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) ∧ 𝑥 ∈ (𝑀...(𝑁 − 1))) → (𝐹𝑥) = 𝑍)
3825adantr 270 . . . . . . 7 ((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) → 𝑍𝑆)
3933, 35, 37, 38, 21, 22, 23iseqid3s 9466 . . . . . 6 ((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) → (seq𝑀( + , 𝐹, 𝑆)‘(𝑁 − 1)) = 𝑍)
4039oveq1d 5547 . . . . 5 ((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) → ((seq𝑀( + , 𝐹, 𝑆)‘(𝑁 − 1)) + (𝐹𝑁)) = (𝑍 + (𝐹𝑁)))
41 iseqid.4 . . . . . . 7 (𝜑 → (𝐹𝑁) ∈ 𝑆)
4241adantr 270 . . . . . 6 ((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) → (𝐹𝑁) ∈ 𝑆)
4327adantr 270 . . . . . 6 ((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) → ∀𝑥𝑆 (𝑍 + 𝑥) = 𝑥)
44 oveq2 5540 . . . . . . . 8 (𝑥 = (𝐹𝑁) → (𝑍 + 𝑥) = (𝑍 + (𝐹𝑁)))
45 id 19 . . . . . . . 8 (𝑥 = (𝐹𝑁) → 𝑥 = (𝐹𝑁))
4644, 45eqeq12d 2095 . . . . . . 7 (𝑥 = (𝐹𝑁) → ((𝑍 + 𝑥) = 𝑥 ↔ (𝑍 + (𝐹𝑁)) = (𝐹𝑁)))
4746rspcv 2697 . . . . . 6 ((𝐹𝑁) ∈ 𝑆 → (∀𝑥𝑆 (𝑍 + 𝑥) = 𝑥 → (𝑍 + (𝐹𝑁)) = (𝐹𝑁)))
4842, 43, 47sylc 61 . . . . 5 ((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) → (𝑍 + (𝐹𝑁)) = (𝐹𝑁))
4924, 40, 483eqtrd 2117 . . . 4 ((𝜑𝑁 ∈ (ℤ‘(𝑀 + 1))) → (seq𝑀( + , 𝐹, 𝑆)‘𝑁) = (𝐹𝑁))
5049ex 113 . . 3 (𝜑 → (𝑁 ∈ (ℤ‘(𝑀 + 1)) → (seq𝑀( + , 𝐹, 𝑆)‘𝑁) = (𝐹𝑁)))
51 uzp1 8652 . . . 4 (𝑁 ∈ (ℤ𝑀) → (𝑁 = 𝑀𝑁 ∈ (ℤ‘(𝑀 + 1))))
521, 51syl 14 . . 3 (𝜑 → (𝑁 = 𝑀𝑁 ∈ (ℤ‘(𝑀 + 1))))
5316, 50, 52mpjaod 670 . 2 (𝜑 → (seq𝑀( + , 𝐹, 𝑆)‘𝑁) = (𝐹𝑁))
54 eqidd 2082 . 2 ((𝜑𝑘 ∈ (ℤ‘(𝑁 + 1))) → (𝐹𝑘) = (𝐹𝑘))
551, 53, 4, 9, 10, 11, 54iseqfeq2 9449 1 (𝜑 → (seq𝑀( + , 𝐹, 𝑆) ↾ (ℤ𝑁)) = seq𝑁( + , 𝐹, 𝑆))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 102  wo 661   = wceq 1284  wcel 1433  wral 2348  cres 4365  cfv 4922  (class class class)co 5532  1c1 6982   + caddc 6984  cmin 7279  cz 8351  cuz 8619  ...cfz 9029  seqcseq 9431
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 104  ax-ia2 105  ax-ia3 106  ax-in1 576  ax-in2 577  ax-io 662  ax-5 1376  ax-7 1377  ax-gen 1378  ax-ie1 1422  ax-ie2 1423  ax-8 1435  ax-10 1436  ax-11 1437  ax-i12 1438  ax-bndl 1439  ax-4 1440  ax-13 1444  ax-14 1445  ax-17 1459  ax-i9 1463  ax-ial 1467  ax-i5r 1468  ax-ext 2063  ax-coll 3893  ax-sep 3896  ax-nul 3904  ax-pow 3948  ax-pr 3964  ax-un 4188  ax-setind 4280  ax-iinf 4329  ax-cnex 7067  ax-resscn 7068  ax-1cn 7069  ax-1re 7070  ax-icn 7071  ax-addcl 7072  ax-addrcl 7073  ax-mulcl 7074  ax-addcom 7076  ax-addass 7078  ax-distr 7080  ax-i2m1 7081  ax-0lt1 7082  ax-0id 7084  ax-rnegex 7085  ax-cnre 7087  ax-pre-ltirr 7088  ax-pre-ltwlin 7089  ax-pre-lttrn 7090  ax-pre-ltadd 7092
This theorem depends on definitions:  df-bi 115  df-3or 920  df-3an 921  df-tru 1287  df-fal 1290  df-nf 1390  df-sb 1686  df-eu 1944  df-mo 1945  df-clab 2068  df-cleq 2074  df-clel 2077  df-nfc 2208  df-ne 2246  df-nel 2340  df-ral 2353  df-rex 2354  df-reu 2355  df-rab 2357  df-v 2603  df-sbc 2816  df-csb 2909  df-dif 2975  df-un 2977  df-in 2979  df-ss 2986  df-nul 3252  df-pw 3384  df-sn 3404  df-pr 3405  df-op 3407  df-uni 3602  df-int 3637  df-iun 3680  df-br 3786  df-opab 3840  df-mpt 3841  df-tr 3876  df-id 4048  df-iord 4121  df-on 4123  df-suc 4126  df-iom 4332  df-xp 4369  df-rel 4370  df-cnv 4371  df-co 4372  df-dm 4373  df-rn 4374  df-res 4375  df-ima 4376  df-iota 4887  df-fun 4924  df-fn 4925  df-f 4926  df-f1 4927  df-fo 4928  df-f1o 4929  df-fv 4930  df-riota 5488  df-ov 5535  df-oprab 5536  df-mpt2 5537  df-1st 5787  df-2nd 5788  df-recs 5943  df-frec 6001  df-pnf 7155  df-mnf 7156  df-xr 7157  df-ltxr 7158  df-le 7159  df-sub 7281  df-neg 7282  df-inn 8040  df-n0 8289  df-z 8352  df-uz 8620  df-fz 9030  df-fzo 9153  df-iseq 9432
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator