Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  s2rn Structured version   Visualization version   GIF version

Theorem s2rn 31601
Description: Range of a length 2 string. (Contributed by Thierry Arnoux, 19-Sep-2023.)
Hypotheses
Ref Expression
s2rn.i (𝜑𝐼𝐷)
s2rn.j (𝜑𝐽𝐷)
Assertion
Ref Expression
s2rn (𝜑 → ran ⟨“𝐼𝐽”⟩ = {𝐼, 𝐽})

Proof of Theorem s2rn
StepHypRef Expression
1 imadmrn 6020 . 2 (⟨“𝐼𝐽”⟩ “ dom ⟨“𝐼𝐽”⟩) = ran ⟨“𝐼𝐽”⟩
2 s2rn.i . . . . . . 7 (𝜑𝐼𝐷)
3 s2rn.j . . . . . . 7 (𝜑𝐽𝐷)
42, 3s2cld 14693 . . . . . 6 (𝜑 → ⟨“𝐼𝐽”⟩ ∈ Word 𝐷)
5 wrdfn 14345 . . . . . 6 (⟨“𝐼𝐽”⟩ ∈ Word 𝐷 → ⟨“𝐼𝐽”⟩ Fn (0..^(♯‘⟨“𝐼𝐽”⟩)))
6 s2len 14711 . . . . . . . . . 10 (♯‘⟨“𝐼𝐽”⟩) = 2
76oveq2i 7361 . . . . . . . . 9 (0..^(♯‘⟨“𝐼𝐽”⟩)) = (0..^2)
8 fzo0to2pr 13587 . . . . . . . . 9 (0..^2) = {0, 1}
97, 8eqtri 2766 . . . . . . . 8 (0..^(♯‘⟨“𝐼𝐽”⟩)) = {0, 1}
109fneq2i 6596 . . . . . . 7 (⟨“𝐼𝐽”⟩ Fn (0..^(♯‘⟨“𝐼𝐽”⟩)) ↔ ⟨“𝐼𝐽”⟩ Fn {0, 1})
1110biimpi 215 . . . . . 6 (⟨“𝐼𝐽”⟩ Fn (0..^(♯‘⟨“𝐼𝐽”⟩)) → ⟨“𝐼𝐽”⟩ Fn {0, 1})
124, 5, 113syl 18 . . . . 5 (𝜑 → ⟨“𝐼𝐽”⟩ Fn {0, 1})
1312fndmd 6603 . . . 4 (𝜑 → dom ⟨“𝐼𝐽”⟩ = {0, 1})
1413imaeq2d 6010 . . 3 (𝜑 → (⟨“𝐼𝐽”⟩ “ dom ⟨“𝐼𝐽”⟩) = (⟨“𝐼𝐽”⟩ “ {0, 1}))
15 c0ex 11083 . . . . . 6 0 ∈ V
1615prid1 4722 . . . . 5 0 ∈ {0, 1}
1716a1i 11 . . . 4 (𝜑 → 0 ∈ {0, 1})
18 1ex 11085 . . . . . 6 1 ∈ V
1918prid2 4723 . . . . 5 1 ∈ {0, 1}
2019a1i 11 . . . 4 (𝜑 → 1 ∈ {0, 1})
21 fnimapr 6921 . . . 4 ((⟨“𝐼𝐽”⟩ Fn {0, 1} ∧ 0 ∈ {0, 1} ∧ 1 ∈ {0, 1}) → (⟨“𝐼𝐽”⟩ “ {0, 1}) = {(⟨“𝐼𝐽”⟩‘0), (⟨“𝐼𝐽”⟩‘1)})
2212, 17, 20, 21syl3anc 1372 . . 3 (𝜑 → (⟨“𝐼𝐽”⟩ “ {0, 1}) = {(⟨“𝐼𝐽”⟩‘0), (⟨“𝐼𝐽”⟩‘1)})
23 s2fv0 14709 . . . . 5 (𝐼𝐷 → (⟨“𝐼𝐽”⟩‘0) = 𝐼)
242, 23syl 17 . . . 4 (𝜑 → (⟨“𝐼𝐽”⟩‘0) = 𝐼)
25 s2fv1 14710 . . . . 5 (𝐽𝐷 → (⟨“𝐼𝐽”⟩‘1) = 𝐽)
263, 25syl 17 . . . 4 (𝜑 → (⟨“𝐼𝐽”⟩‘1) = 𝐽)
2724, 26preq12d 4701 . . 3 (𝜑 → {(⟨“𝐼𝐽”⟩‘0), (⟨“𝐼𝐽”⟩‘1)} = {𝐼, 𝐽})
2814, 22, 273eqtrd 2782 . 2 (𝜑 → (⟨“𝐼𝐽”⟩ “ dom ⟨“𝐼𝐽”⟩) = {𝐼, 𝐽})
291, 28eqtr3id 2792 1 (𝜑 → ran ⟨“𝐼𝐽”⟩ = {𝐼, 𝐽})
Colors of variables: wff setvar class
Syntax hints:  wi 4   = wceq 1542  wcel 2107  {cpr 4587  dom cdm 5631  ran crn 5632  cima 5634   Fn wfn 6487  cfv 6492  (class class class)co 7350  0cc0 10985  1c1 10986  2c2 12142  ..^cfzo 13497  chash 14159  Word cword 14331  ⟨“cs2 14663
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2155  ax-12 2172  ax-ext 2709  ax-rep 5241  ax-sep 5255  ax-nul 5262  ax-pow 5319  ax-pr 5383  ax-un 7663  ax-cnex 11041  ax-resscn 11042  ax-1cn 11043  ax-icn 11044  ax-addcl 11045  ax-addrcl 11046  ax-mulcl 11047  ax-mulrcl 11048  ax-mulcom 11049  ax-addass 11050  ax-mulass 11051  ax-distr 11052  ax-i2m1 11053  ax-1ne0 11054  ax-1rid 11055  ax-rnegex 11056  ax-rrecex 11057  ax-cnre 11058  ax-pre-lttri 11059  ax-pre-lttrn 11060  ax-pre-ltadd 11061  ax-pre-mulgt0 11062
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3or 1089  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-nf 1787  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2888  df-ne 2943  df-nel 3049  df-ral 3064  df-rex 3073  df-reu 3353  df-rab 3407  df-v 3446  df-sbc 3739  df-csb 3855  df-dif 3912  df-un 3914  df-in 3916  df-ss 3926  df-pss 3928  df-nul 4282  df-if 4486  df-pw 4561  df-sn 4586  df-pr 4588  df-op 4592  df-uni 4865  df-int 4907  df-iun 4955  df-br 5105  df-opab 5167  df-mpt 5188  df-tr 5222  df-id 5529  df-eprel 5535  df-po 5543  df-so 5544  df-fr 5586  df-we 5588  df-xp 5637  df-rel 5638  df-cnv 5639  df-co 5640  df-dm 5641  df-rn 5642  df-res 5643  df-ima 5644  df-pred 6250  df-ord 6317  df-on 6318  df-lim 6319  df-suc 6320  df-iota 6444  df-fun 6494  df-fn 6495  df-f 6496  df-f1 6497  df-fo 6498  df-f1o 6499  df-fv 6500  df-riota 7306  df-ov 7353  df-oprab 7354  df-mpo 7355  df-om 7794  df-1st 7912  df-2nd 7913  df-frecs 8180  df-wrecs 8211  df-recs 8285  df-rdg 8324  df-1o 8380  df-er 8582  df-en 8818  df-dom 8819  df-sdom 8820  df-fin 8821  df-card 9809  df-pnf 11125  df-mnf 11126  df-xr 11127  df-ltxr 11128  df-le 11129  df-sub 11321  df-neg 11322  df-nn 12088  df-2 12150  df-n0 12348  df-z 12434  df-uz 12698  df-fz 13355  df-fzo 13498  df-hash 14160  df-word 14332  df-concat 14388  df-s1 14413  df-s2 14670
This theorem is referenced by:  cycpm2tr  31769  cycpmco2  31783  cyc2fvx  31784  cyc3co2  31790  cyc3conja  31807
  Copyright terms: Public domain W3C validator