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

Theorem algfx 11740
Description: If 𝐹 reaches a fixed point when the countdown function 𝐶 reaches 0, 𝐹 remains fixed after 𝑁 steps. (Contributed by Paul Chapman, 22-Jun-2011.)
Hypotheses
Ref Expression
algcvga.1 𝐹:𝑆𝑆
algcvga.2 𝑅 = seq0((𝐹 ∘ 1st ), (ℕ0 × {𝐴}))
algcvga.3 𝐶:𝑆⟶ℕ0
algcvga.4 (𝑧𝑆 → ((𝐶‘(𝐹𝑧)) ≠ 0 → (𝐶‘(𝐹𝑧)) < (𝐶𝑧)))
algcvga.5 𝑁 = (𝐶𝐴)
algfx.6 (𝑧𝑆 → ((𝐶𝑧) = 0 → (𝐹𝑧) = 𝑧))
Assertion
Ref Expression
algfx (𝐴𝑆 → (𝐾 ∈ (ℤ𝑁) → (𝑅𝐾) = (𝑅𝑁)))
Distinct variable groups:   𝑧,𝐶   𝑧,𝐹   𝑧,𝑅   𝑧,𝑆   𝑧,𝐾   𝑧,𝑁
Allowed substitution hint:   𝐴(𝑧)

Proof of Theorem algfx
Dummy variables 𝑘 𝑚 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 algcvga.5 . . . 4 𝑁 = (𝐶𝐴)
2 algcvga.3 . . . . 5 𝐶:𝑆⟶ℕ0
32ffvelrni 5554 . . . 4 (𝐴𝑆 → (𝐶𝐴) ∈ ℕ0)
41, 3eqeltrid 2226 . . 3 (𝐴𝑆𝑁 ∈ ℕ0)
54nn0zd 9178 . 2 (𝐴𝑆𝑁 ∈ ℤ)
6 uzval 9335 . . . . . . 7 (𝑁 ∈ ℤ → (ℤ𝑁) = {𝑧 ∈ ℤ ∣ 𝑁𝑧})
76eleq2d 2209 . . . . . 6 (𝑁 ∈ ℤ → (𝐾 ∈ (ℤ𝑁) ↔ 𝐾 ∈ {𝑧 ∈ ℤ ∣ 𝑁𝑧}))
87pm5.32i 449 . . . . 5 ((𝑁 ∈ ℤ ∧ 𝐾 ∈ (ℤ𝑁)) ↔ (𝑁 ∈ ℤ ∧ 𝐾 ∈ {𝑧 ∈ ℤ ∣ 𝑁𝑧}))
9 fveqeq2 5430 . . . . . . 7 (𝑚 = 𝑁 → ((𝑅𝑚) = (𝑅𝑁) ↔ (𝑅𝑁) = (𝑅𝑁)))
109imbi2d 229 . . . . . 6 (𝑚 = 𝑁 → ((𝐴𝑆 → (𝑅𝑚) = (𝑅𝑁)) ↔ (𝐴𝑆 → (𝑅𝑁) = (𝑅𝑁))))
11 fveqeq2 5430 . . . . . . 7 (𝑚 = 𝑘 → ((𝑅𝑚) = (𝑅𝑁) ↔ (𝑅𝑘) = (𝑅𝑁)))
1211imbi2d 229 . . . . . 6 (𝑚 = 𝑘 → ((𝐴𝑆 → (𝑅𝑚) = (𝑅𝑁)) ↔ (𝐴𝑆 → (𝑅𝑘) = (𝑅𝑁))))
13 fveqeq2 5430 . . . . . . 7 (𝑚 = (𝑘 + 1) → ((𝑅𝑚) = (𝑅𝑁) ↔ (𝑅‘(𝑘 + 1)) = (𝑅𝑁)))
1413imbi2d 229 . . . . . 6 (𝑚 = (𝑘 + 1) → ((𝐴𝑆 → (𝑅𝑚) = (𝑅𝑁)) ↔ (𝐴𝑆 → (𝑅‘(𝑘 + 1)) = (𝑅𝑁))))
15 fveqeq2 5430 . . . . . . 7 (𝑚 = 𝐾 → ((𝑅𝑚) = (𝑅𝑁) ↔ (𝑅𝐾) = (𝑅𝑁)))
1615imbi2d 229 . . . . . 6 (𝑚 = 𝐾 → ((𝐴𝑆 → (𝑅𝑚) = (𝑅𝑁)) ↔ (𝐴𝑆 → (𝑅𝐾) = (𝑅𝑁))))
17 eqidd 2140 . . . . . . 7 (𝐴𝑆 → (𝑅𝑁) = (𝑅𝑁))
1817a1i 9 . . . . . 6 (𝑁 ∈ ℤ → (𝐴𝑆 → (𝑅𝑁) = (𝑅𝑁)))
196eleq2d 2209 . . . . . . . . 9 (𝑁 ∈ ℤ → (𝑘 ∈ (ℤ𝑁) ↔ 𝑘 ∈ {𝑧 ∈ ℤ ∣ 𝑁𝑧}))
2019pm5.32i 449 . . . . . . . 8 ((𝑁 ∈ ℤ ∧ 𝑘 ∈ (ℤ𝑁)) ↔ (𝑁 ∈ ℤ ∧ 𝑘 ∈ {𝑧 ∈ ℤ ∣ 𝑁𝑧}))
21 eluznn0 9400 . . . . . . . . . . . . . . 15 ((𝑁 ∈ ℕ0𝑘 ∈ (ℤ𝑁)) → 𝑘 ∈ ℕ0)
224, 21sylan 281 . . . . . . . . . . . . . 14 ((𝐴𝑆𝑘 ∈ (ℤ𝑁)) → 𝑘 ∈ ℕ0)
23 nn0uz 9367 . . . . . . . . . . . . . . 15 0 = (ℤ‘0)
24 algcvga.2 . . . . . . . . . . . . . . 15 𝑅 = seq0((𝐹 ∘ 1st ), (ℕ0 × {𝐴}))
25 0zd 9073 . . . . . . . . . . . . . . 15 (𝐴𝑆 → 0 ∈ ℤ)
26 id 19 . . . . . . . . . . . . . . 15 (𝐴𝑆𝐴𝑆)
27 algcvga.1 . . . . . . . . . . . . . . . 16 𝐹:𝑆𝑆
2827a1i 9 . . . . . . . . . . . . . . 15 (𝐴𝑆𝐹:𝑆𝑆)
2923, 24, 25, 26, 28algrp1 11734 . . . . . . . . . . . . . 14 ((𝐴𝑆𝑘 ∈ ℕ0) → (𝑅‘(𝑘 + 1)) = (𝐹‘(𝑅𝑘)))
3022, 29syldan 280 . . . . . . . . . . . . 13 ((𝐴𝑆𝑘 ∈ (ℤ𝑁)) → (𝑅‘(𝑘 + 1)) = (𝐹‘(𝑅𝑘)))
3123, 24, 25, 26, 28algrf 11733 . . . . . . . . . . . . . . . 16 (𝐴𝑆𝑅:ℕ0𝑆)
3231ffvelrnda 5555 . . . . . . . . . . . . . . 15 ((𝐴𝑆𝑘 ∈ ℕ0) → (𝑅𝑘) ∈ 𝑆)
3322, 32syldan 280 . . . . . . . . . . . . . 14 ((𝐴𝑆𝑘 ∈ (ℤ𝑁)) → (𝑅𝑘) ∈ 𝑆)
34 algcvga.4 . . . . . . . . . . . . . . . 16 (𝑧𝑆 → ((𝐶‘(𝐹𝑧)) ≠ 0 → (𝐶‘(𝐹𝑧)) < (𝐶𝑧)))
3527, 24, 2, 34, 1algcvga 11739 . . . . . . . . . . . . . . 15 (𝐴𝑆 → (𝑘 ∈ (ℤ𝑁) → (𝐶‘(𝑅𝑘)) = 0))
3635imp 123 . . . . . . . . . . . . . 14 ((𝐴𝑆𝑘 ∈ (ℤ𝑁)) → (𝐶‘(𝑅𝑘)) = 0)
37 fveqeq2 5430 . . . . . . . . . . . . . . . 16 (𝑧 = (𝑅𝑘) → ((𝐶𝑧) = 0 ↔ (𝐶‘(𝑅𝑘)) = 0))
38 fveq2 5421 . . . . . . . . . . . . . . . . 17 (𝑧 = (𝑅𝑘) → (𝐹𝑧) = (𝐹‘(𝑅𝑘)))
39 id 19 . . . . . . . . . . . . . . . . 17 (𝑧 = (𝑅𝑘) → 𝑧 = (𝑅𝑘))
4038, 39eqeq12d 2154 . . . . . . . . . . . . . . . 16 (𝑧 = (𝑅𝑘) → ((𝐹𝑧) = 𝑧 ↔ (𝐹‘(𝑅𝑘)) = (𝑅𝑘)))
4137, 40imbi12d 233 . . . . . . . . . . . . . . 15 (𝑧 = (𝑅𝑘) → (((𝐶𝑧) = 0 → (𝐹𝑧) = 𝑧) ↔ ((𝐶‘(𝑅𝑘)) = 0 → (𝐹‘(𝑅𝑘)) = (𝑅𝑘))))
42 algfx.6 . . . . . . . . . . . . . . 15 (𝑧𝑆 → ((𝐶𝑧) = 0 → (𝐹𝑧) = 𝑧))
4341, 42vtoclga 2752 . . . . . . . . . . . . . 14 ((𝑅𝑘) ∈ 𝑆 → ((𝐶‘(𝑅𝑘)) = 0 → (𝐹‘(𝑅𝑘)) = (𝑅𝑘)))
4433, 36, 43sylc 62 . . . . . . . . . . . . 13 ((𝐴𝑆𝑘 ∈ (ℤ𝑁)) → (𝐹‘(𝑅𝑘)) = (𝑅𝑘))
4530, 44eqtrd 2172 . . . . . . . . . . . 12 ((𝐴𝑆𝑘 ∈ (ℤ𝑁)) → (𝑅‘(𝑘 + 1)) = (𝑅𝑘))
4645eqeq1d 2148 . . . . . . . . . . 11 ((𝐴𝑆𝑘 ∈ (ℤ𝑁)) → ((𝑅‘(𝑘 + 1)) = (𝑅𝑁) ↔ (𝑅𝑘) = (𝑅𝑁)))
4746biimprd 157 . . . . . . . . . 10 ((𝐴𝑆𝑘 ∈ (ℤ𝑁)) → ((𝑅𝑘) = (𝑅𝑁) → (𝑅‘(𝑘 + 1)) = (𝑅𝑁)))
4847expcom 115 . . . . . . . . 9 (𝑘 ∈ (ℤ𝑁) → (𝐴𝑆 → ((𝑅𝑘) = (𝑅𝑁) → (𝑅‘(𝑘 + 1)) = (𝑅𝑁))))
4948adantl 275 . . . . . . . 8 ((𝑁 ∈ ℤ ∧ 𝑘 ∈ (ℤ𝑁)) → (𝐴𝑆 → ((𝑅𝑘) = (𝑅𝑁) → (𝑅‘(𝑘 + 1)) = (𝑅𝑁))))
5020, 49sylbir 134 . . . . . . 7 ((𝑁 ∈ ℤ ∧ 𝑘 ∈ {𝑧 ∈ ℤ ∣ 𝑁𝑧}) → (𝐴𝑆 → ((𝑅𝑘) = (𝑅𝑁) → (𝑅‘(𝑘 + 1)) = (𝑅𝑁))))
5150a2d 26 . . . . . 6 ((𝑁 ∈ ℤ ∧ 𝑘 ∈ {𝑧 ∈ ℤ ∣ 𝑁𝑧}) → ((𝐴𝑆 → (𝑅𝑘) = (𝑅𝑁)) → (𝐴𝑆 → (𝑅‘(𝑘 + 1)) = (𝑅𝑁))))
5210, 12, 14, 16, 18, 51uzind3 9171 . . . . 5 ((𝑁 ∈ ℤ ∧ 𝐾 ∈ {𝑧 ∈ ℤ ∣ 𝑁𝑧}) → (𝐴𝑆 → (𝑅𝐾) = (𝑅𝑁)))
538, 52sylbi 120 . . . 4 ((𝑁 ∈ ℤ ∧ 𝐾 ∈ (ℤ𝑁)) → (𝐴𝑆 → (𝑅𝐾) = (𝑅𝑁)))
5453ex 114 . . 3 (𝑁 ∈ ℤ → (𝐾 ∈ (ℤ𝑁) → (𝐴𝑆 → (𝑅𝐾) = (𝑅𝑁))))
5554com3r 79 . 2 (𝐴𝑆 → (𝑁 ∈ ℤ → (𝐾 ∈ (ℤ𝑁) → (𝑅𝐾) = (𝑅𝑁))))
565, 55mpd 13 1 (𝐴𝑆 → (𝐾 ∈ (ℤ𝑁) → (𝑅𝐾) = (𝑅𝑁)))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103   = wceq 1331  wcel 1480  wne 2308  {crab 2420  {csn 3527   class class class wbr 3929   × cxp 4537  ccom 4543  wf 5119  cfv 5123  (class class class)co 5774  1st c1st 6036  0cc0 7627  1c1 7628   + caddc 7630   < clt 7807  cle 7808  0cn0 8984  cz 9061  cuz 9333  seqcseq 10225
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 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-13 1491  ax-14 1492  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2121  ax-coll 4043  ax-sep 4046  ax-nul 4054  ax-pow 4098  ax-pr 4131  ax-un 4355  ax-setind 4452  ax-iinf 4502  ax-cnex 7718  ax-resscn 7719  ax-1cn 7720  ax-1re 7721  ax-icn 7722  ax-addcl 7723  ax-addrcl 7724  ax-mulcl 7725  ax-addcom 7727  ax-addass 7729  ax-distr 7731  ax-i2m1 7732  ax-0lt1 7733  ax-0id 7735  ax-rnegex 7736  ax-cnre 7738  ax-pre-ltirr 7739  ax-pre-ltwlin 7740  ax-pre-lttrn 7741  ax-pre-apti 7742  ax-pre-ltadd 7743
This theorem depends on definitions:  df-bi 116  df-stab 816  df-dc 820  df-3or 963  df-3an 964  df-tru 1334  df-fal 1337  df-nf 1437  df-sb 1736  df-eu 2002  df-mo 2003  df-clab 2126  df-cleq 2132  df-clel 2135  df-nfc 2270  df-ne 2309  df-nel 2404  df-ral 2421  df-rex 2422  df-reu 2423  df-rab 2425  df-v 2688  df-sbc 2910  df-csb 3004  df-dif 3073  df-un 3075  df-in 3077  df-ss 3084  df-nul 3364  df-pw 3512  df-sn 3533  df-pr 3534  df-op 3536  df-uni 3737  df-int 3772  df-iun 3815  df-br 3930  df-opab 3990  df-mpt 3991  df-tr 4027  df-id 4215  df-iord 4288  df-on 4290  df-ilim 4291  df-suc 4293  df-iom 4505  df-xp 4545  df-rel 4546  df-cnv 4547  df-co 4548  df-dm 4549  df-rn 4550  df-res 4551  df-ima 4552  df-iota 5088  df-fun 5125  df-fn 5126  df-f 5127  df-f1 5128  df-fo 5129  df-f1o 5130  df-fv 5131  df-riota 5730  df-ov 5777  df-oprab 5778  df-mpo 5779  df-1st 6038  df-2nd 6039  df-recs 6202  df-frec 6288  df-pnf 7809  df-mnf 7810  df-xr 7811  df-ltxr 7812  df-le 7813  df-sub 7942  df-neg 7943  df-inn 8728  df-n0 8985  df-z 9062  df-uz 9334  df-seqfrec 10226
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator