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

Theorem efgtlen 18490
 Description: Value of the free group construction. (Contributed by Mario Carneiro, 27-Sep-2015.)
Hypotheses
Ref Expression
efgval.w 𝑊 = ( I ‘Word (𝐼 × 2o))
efgval.r = ( ~FG𝐼)
efgval2.m 𝑀 = (𝑦𝐼, 𝑧 ∈ 2o ↦ ⟨𝑦, (1o𝑧)⟩)
efgval2.t 𝑇 = (𝑣𝑊 ↦ (𝑛 ∈ (0...(♯‘𝑣)), 𝑤 ∈ (𝐼 × 2o) ↦ (𝑣 splice ⟨𝑛, 𝑛, ⟨“𝑤(𝑀𝑤)”⟩⟩)))
Assertion
Ref Expression
efgtlen ((𝑋𝑊𝐴 ∈ ran (𝑇𝑋)) → (♯‘𝐴) = ((♯‘𝑋) + 2))
Distinct variable groups:   𝑦,𝑧   𝑣,𝑛,𝑤,𝑦,𝑧   𝑛,𝑀,𝑣,𝑤   𝑛,𝑊,𝑣,𝑤,𝑦,𝑧   𝑦, ,𝑧   𝑛,𝐼,𝑣,𝑤,𝑦,𝑧
Allowed substitution hints:   𝐴(𝑦,𝑧,𝑤,𝑣,𝑛)   (𝑤,𝑣,𝑛)   𝑇(𝑦,𝑧,𝑤,𝑣,𝑛)   𝑀(𝑦,𝑧)   𝑋(𝑦,𝑧,𝑤,𝑣,𝑛)

Proof of Theorem efgtlen
Dummy variables 𝑎 𝑏 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 efgval.w . . . . . . . 8 𝑊 = ( I ‘Word (𝐼 × 2o))
2 efgval.r . . . . . . . 8 = ( ~FG𝐼)
3 efgval2.m . . . . . . . 8 𝑀 = (𝑦𝐼, 𝑧 ∈ 2o ↦ ⟨𝑦, (1o𝑧)⟩)
4 efgval2.t . . . . . . . 8 𝑇 = (𝑣𝑊 ↦ (𝑛 ∈ (0...(♯‘𝑣)), 𝑤 ∈ (𝐼 × 2o) ↦ (𝑣 splice ⟨𝑛, 𝑛, ⟨“𝑤(𝑀𝑤)”⟩⟩)))
51, 2, 3, 4efgtf 18486 . . . . . . 7 (𝑋𝑊 → ((𝑇𝑋) = (𝑎 ∈ (0...(♯‘𝑋)), 𝑏 ∈ (𝐼 × 2o) ↦ (𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩)) ∧ (𝑇𝑋):((0...(♯‘𝑋)) × (𝐼 × 2o))⟶𝑊))
65simpld 490 . . . . . 6 (𝑋𝑊 → (𝑇𝑋) = (𝑎 ∈ (0...(♯‘𝑋)), 𝑏 ∈ (𝐼 × 2o) ↦ (𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩)))
76rneqd 5585 . . . . 5 (𝑋𝑊 → ran (𝑇𝑋) = ran (𝑎 ∈ (0...(♯‘𝑋)), 𝑏 ∈ (𝐼 × 2o) ↦ (𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩)))
87eleq2d 2892 . . . 4 (𝑋𝑊 → (𝐴 ∈ ran (𝑇𝑋) ↔ 𝐴 ∈ ran (𝑎 ∈ (0...(♯‘𝑋)), 𝑏 ∈ (𝐼 × 2o) ↦ (𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩))))
9 eqid 2825 . . . . 5 (𝑎 ∈ (0...(♯‘𝑋)), 𝑏 ∈ (𝐼 × 2o) ↦ (𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩)) = (𝑎 ∈ (0...(♯‘𝑋)), 𝑏 ∈ (𝐼 × 2o) ↦ (𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩))
10 ovex 6937 . . . . 5 (𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩) ∈ V
119, 10elrnmpt2 7033 . . . 4 (𝐴 ∈ ran (𝑎 ∈ (0...(♯‘𝑋)), 𝑏 ∈ (𝐼 × 2o) ↦ (𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩)) ↔ ∃𝑎 ∈ (0...(♯‘𝑋))∃𝑏 ∈ (𝐼 × 2o)𝐴 = (𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩))
128, 11syl6bb 279 . . 3 (𝑋𝑊 → (𝐴 ∈ ran (𝑇𝑋) ↔ ∃𝑎 ∈ (0...(♯‘𝑋))∃𝑏 ∈ (𝐼 × 2o)𝐴 = (𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩)))
13 fviss 6503 . . . . . . . . 9 ( I ‘Word (𝐼 × 2o)) ⊆ Word (𝐼 × 2o)
141, 13eqsstri 3860 . . . . . . . 8 𝑊 ⊆ Word (𝐼 × 2o)
15 simpl 476 . . . . . . . 8 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → 𝑋𝑊)
1614, 15sseldi 3825 . . . . . . 7 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → 𝑋 ∈ Word (𝐼 × 2o))
17 elfzuz 12631 . . . . . . . . 9 (𝑎 ∈ (0...(♯‘𝑋)) → 𝑎 ∈ (ℤ‘0))
1817ad2antrl 721 . . . . . . . 8 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → 𝑎 ∈ (ℤ‘0))
19 eluzfz2b 12643 . . . . . . . 8 (𝑎 ∈ (ℤ‘0) ↔ 𝑎 ∈ (0...𝑎))
2018, 19sylib 210 . . . . . . 7 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → 𝑎 ∈ (0...𝑎))
21 simprl 789 . . . . . . 7 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → 𝑎 ∈ (0...(♯‘𝑋)))
22 simprr 791 . . . . . . . 8 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → 𝑏 ∈ (𝐼 × 2o))
233efgmf 18477 . . . . . . . . . 10 𝑀:(𝐼 × 2o)⟶(𝐼 × 2o)
2423ffvelrni 6607 . . . . . . . . 9 (𝑏 ∈ (𝐼 × 2o) → (𝑀𝑏) ∈ (𝐼 × 2o))
2522, 24syl 17 . . . . . . . 8 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → (𝑀𝑏) ∈ (𝐼 × 2o))
2622, 25s2cld 13992 . . . . . . 7 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → ⟨“𝑏(𝑀𝑏)”⟩ ∈ Word (𝐼 × 2o))
2716, 20, 21, 26spllen 13866 . . . . . 6 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → (♯‘(𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩)) = ((♯‘𝑋) + ((♯‘⟨“𝑏(𝑀𝑏)”⟩) − (𝑎𝑎))))
28 s2len 14010 . . . . . . . . . 10 (♯‘⟨“𝑏(𝑀𝑏)”⟩) = 2
2928a1i 11 . . . . . . . . 9 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → (♯‘⟨“𝑏(𝑀𝑏)”⟩) = 2)
30 eluzelcn 11980 . . . . . . . . . . 11 (𝑎 ∈ (ℤ‘0) → 𝑎 ∈ ℂ)
3118, 30syl 17 . . . . . . . . . 10 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → 𝑎 ∈ ℂ)
3231subidd 10701 . . . . . . . . 9 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → (𝑎𝑎) = 0)
3329, 32oveq12d 6923 . . . . . . . 8 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → ((♯‘⟨“𝑏(𝑀𝑏)”⟩) − (𝑎𝑎)) = (2 − 0))
34 2cn 11426 . . . . . . . . 9 2 ∈ ℂ
3534subid1i 10674 . . . . . . . 8 (2 − 0) = 2
3633, 35syl6eq 2877 . . . . . . 7 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → ((♯‘⟨“𝑏(𝑀𝑏)”⟩) − (𝑎𝑎)) = 2)
3736oveq2d 6921 . . . . . 6 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → ((♯‘𝑋) + ((♯‘⟨“𝑏(𝑀𝑏)”⟩) − (𝑎𝑎))) = ((♯‘𝑋) + 2))
3827, 37eqtrd 2861 . . . . 5 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → (♯‘(𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩)) = ((♯‘𝑋) + 2))
39 fveqeq2 6442 . . . . 5 (𝐴 = (𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩) → ((♯‘𝐴) = ((♯‘𝑋) + 2) ↔ (♯‘(𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩)) = ((♯‘𝑋) + 2)))
4038, 39syl5ibrcom 239 . . . 4 ((𝑋𝑊 ∧ (𝑎 ∈ (0...(♯‘𝑋)) ∧ 𝑏 ∈ (𝐼 × 2o))) → (𝐴 = (𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩) → (♯‘𝐴) = ((♯‘𝑋) + 2)))
4140rexlimdvva 3248 . . 3 (𝑋𝑊 → (∃𝑎 ∈ (0...(♯‘𝑋))∃𝑏 ∈ (𝐼 × 2o)𝐴 = (𝑋 splice ⟨𝑎, 𝑎, ⟨“𝑏(𝑀𝑏)”⟩⟩) → (♯‘𝐴) = ((♯‘𝑋) + 2)))
4212, 41sylbid 232 . 2 (𝑋𝑊 → (𝐴 ∈ ran (𝑇𝑋) → (♯‘𝐴) = ((♯‘𝑋) + 2)))
4342imp 397 1 ((𝑋𝑊𝐴 ∈ ran (𝑇𝑋)) → (♯‘𝐴) = ((♯‘𝑋) + 2))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 386   = wceq 1658   ∈ wcel 2166  ∃wrex 3118   ∖ cdif 3795  ⟨cop 4403  ⟨cotp 4405   ↦ cmpt 4952   I cid 5249   × cxp 5340  ran crn 5343  ⟶wf 6119  ‘cfv 6123  (class class class)co 6905   ↦ cmpt2 6907  1oc1o 7819  2oc2o 7820  ℂcc 10250  0cc0 10252   + caddc 10255   − cmin 10585  2c2 11406  ℤ≥cuz 11968  ...cfz 12619  ♯chash 13410  Word cword 13574   splice csplice 13855  ⟨“cs2 13962   ~FG cefg 18470 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1896  ax-4 1910  ax-5 2011  ax-6 2077  ax-7 2114  ax-8 2168  ax-9 2175  ax-10 2194  ax-11 2209  ax-12 2222  ax-13 2391  ax-ext 2803  ax-rep 4994  ax-sep 5005  ax-nul 5013  ax-pow 5065  ax-pr 5127  ax-un 7209  ax-cnex 10308  ax-resscn 10309  ax-1cn 10310  ax-icn 10311  ax-addcl 10312  ax-addrcl 10313  ax-mulcl 10314  ax-mulrcl 10315  ax-mulcom 10316  ax-addass 10317  ax-mulass 10318  ax-distr 10319  ax-i2m1 10320  ax-1ne0 10321  ax-1rid 10322  ax-rnegex 10323  ax-rrecex 10324  ax-cnre 10325  ax-pre-lttri 10326  ax-pre-lttrn 10327  ax-pre-ltadd 10328  ax-pre-mulgt0 10329 This theorem depends on definitions:  df-bi 199  df-an 387  df-or 881  df-3or 1114  df-3an 1115  df-tru 1662  df-ex 1881  df-nf 1885  df-sb 2070  df-mo 2605  df-eu 2640  df-clab 2812  df-cleq 2818  df-clel 2821  df-nfc 2958  df-ne 3000  df-nel 3103  df-ral 3122  df-rex 3123  df-reu 3124  df-rab 3126  df-v 3416  df-sbc 3663  df-csb 3758  df-dif 3801  df-un 3803  df-in 3805  df-ss 3812  df-pss 3814  df-nul 4145  df-if 4307  df-pw 4380  df-sn 4398  df-pr 4400  df-tp 4402  df-op 4404  df-ot 4406  df-uni 4659  df-int 4698  df-iun 4742  df-br 4874  df-opab 4936  df-mpt 4953  df-tr 4976  df-id 5250  df-eprel 5255  df-po 5263  df-so 5264  df-fr 5301  df-we 5303  df-xp 5348  df-rel 5349  df-cnv 5350  df-co 5351  df-dm 5352  df-rn 5353  df-res 5354  df-ima 5355  df-pred 5920  df-ord 5966  df-on 5967  df-lim 5968  df-suc 5969  df-iota 6086  df-fun 6125  df-fn 6126  df-f 6127  df-f1 6128  df-fo 6129  df-f1o 6130  df-fv 6131  df-riota 6866  df-ov 6908  df-oprab 6909  df-mpt2 6910  df-om 7327  df-1st 7428  df-2nd 7429  df-wrecs 7672  df-recs 7734  df-rdg 7772  df-1o 7826  df-2o 7827  df-oadd 7830  df-er 8009  df-map 8124  df-pm 8125  df-en 8223  df-dom 8224  df-sdom 8225  df-fin 8226  df-card 9078  df-pnf 10393  df-mnf 10394  df-xr 10395  df-ltxr 10396  df-le 10397  df-sub 10587  df-neg 10588  df-nn 11351  df-2 11414  df-n0 11619  df-z 11705  df-uz 11969  df-fz 12620  df-fzo 12761  df-hash 13411  df-word 13575  df-concat 13631  df-s1 13656  df-substr 13701  df-pfx 13750  df-splice 13857  df-s2 13969 This theorem is referenced by:  efgsfo  18504  efgredlemg  18507  efgredlemd  18509  efgredlem  18512  efgredlemOLD  18513  frgpnabllem1  18629
 Copyright terms: Public domain W3C validator