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

Theorem gsumwrev 17712
Description: A sum in an opposite monoid is the regular sum of a reversed word. (Contributed by Stefan O'Rear, 27-Aug-2015.) (Proof shortened by Mario Carneiro, 28-Feb-2016.)
Hypotheses
Ref Expression
gsumwrev.b 𝐵 = (Base‘𝑀)
gsumwrev.o 𝑂 = (oppg𝑀)
Assertion
Ref Expression
gsumwrev ((𝑀 ∈ Mnd ∧ 𝑊 ∈ Word 𝐵) → (𝑂 Σg 𝑊) = (𝑀 Σg (reverse‘𝑊)))

Proof of Theorem gsumwrev
Dummy variables 𝑥 𝑦 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 6613 . . . . 5 (𝑥 = ∅ → (𝑂 Σg 𝑥) = (𝑂 Σg ∅))
2 fveq2 6150 . . . . . . 7 (𝑥 = ∅ → (reverse‘𝑥) = (reverse‘∅))
3 rev0 13445 . . . . . . 7 (reverse‘∅) = ∅
42, 3syl6eq 2676 . . . . . 6 (𝑥 = ∅ → (reverse‘𝑥) = ∅)
54oveq2d 6621 . . . . 5 (𝑥 = ∅ → (𝑀 Σg (reverse‘𝑥)) = (𝑀 Σg ∅))
61, 5eqeq12d 2641 . . . 4 (𝑥 = ∅ → ((𝑂 Σg 𝑥) = (𝑀 Σg (reverse‘𝑥)) ↔ (𝑂 Σg ∅) = (𝑀 Σg ∅)))
76imbi2d 330 . . 3 (𝑥 = ∅ → ((𝑀 ∈ Mnd → (𝑂 Σg 𝑥) = (𝑀 Σg (reverse‘𝑥))) ↔ (𝑀 ∈ Mnd → (𝑂 Σg ∅) = (𝑀 Σg ∅))))
8 oveq2 6613 . . . . 5 (𝑥 = 𝑦 → (𝑂 Σg 𝑥) = (𝑂 Σg 𝑦))
9 fveq2 6150 . . . . . 6 (𝑥 = 𝑦 → (reverse‘𝑥) = (reverse‘𝑦))
109oveq2d 6621 . . . . 5 (𝑥 = 𝑦 → (𝑀 Σg (reverse‘𝑥)) = (𝑀 Σg (reverse‘𝑦)))
118, 10eqeq12d 2641 . . . 4 (𝑥 = 𝑦 → ((𝑂 Σg 𝑥) = (𝑀 Σg (reverse‘𝑥)) ↔ (𝑂 Σg 𝑦) = (𝑀 Σg (reverse‘𝑦))))
1211imbi2d 330 . . 3 (𝑥 = 𝑦 → ((𝑀 ∈ Mnd → (𝑂 Σg 𝑥) = (𝑀 Σg (reverse‘𝑥))) ↔ (𝑀 ∈ Mnd → (𝑂 Σg 𝑦) = (𝑀 Σg (reverse‘𝑦)))))
13 oveq2 6613 . . . . 5 (𝑥 = (𝑦 ++ ⟨“𝑧”⟩) → (𝑂 Σg 𝑥) = (𝑂 Σg (𝑦 ++ ⟨“𝑧”⟩)))
14 fveq2 6150 . . . . . 6 (𝑥 = (𝑦 ++ ⟨“𝑧”⟩) → (reverse‘𝑥) = (reverse‘(𝑦 ++ ⟨“𝑧”⟩)))
1514oveq2d 6621 . . . . 5 (𝑥 = (𝑦 ++ ⟨“𝑧”⟩) → (𝑀 Σg (reverse‘𝑥)) = (𝑀 Σg (reverse‘(𝑦 ++ ⟨“𝑧”⟩))))
1613, 15eqeq12d 2641 . . . 4 (𝑥 = (𝑦 ++ ⟨“𝑧”⟩) → ((𝑂 Σg 𝑥) = (𝑀 Σg (reverse‘𝑥)) ↔ (𝑂 Σg (𝑦 ++ ⟨“𝑧”⟩)) = (𝑀 Σg (reverse‘(𝑦 ++ ⟨“𝑧”⟩)))))
1716imbi2d 330 . . 3 (𝑥 = (𝑦 ++ ⟨“𝑧”⟩) → ((𝑀 ∈ Mnd → (𝑂 Σg 𝑥) = (𝑀 Σg (reverse‘𝑥))) ↔ (𝑀 ∈ Mnd → (𝑂 Σg (𝑦 ++ ⟨“𝑧”⟩)) = (𝑀 Σg (reverse‘(𝑦 ++ ⟨“𝑧”⟩))))))
18 oveq2 6613 . . . . 5 (𝑥 = 𝑊 → (𝑂 Σg 𝑥) = (𝑂 Σg 𝑊))
19 fveq2 6150 . . . . . 6 (𝑥 = 𝑊 → (reverse‘𝑥) = (reverse‘𝑊))
2019oveq2d 6621 . . . . 5 (𝑥 = 𝑊 → (𝑀 Σg (reverse‘𝑥)) = (𝑀 Σg (reverse‘𝑊)))
2118, 20eqeq12d 2641 . . . 4 (𝑥 = 𝑊 → ((𝑂 Σg 𝑥) = (𝑀 Σg (reverse‘𝑥)) ↔ (𝑂 Σg 𝑊) = (𝑀 Σg (reverse‘𝑊))))
2221imbi2d 330 . . 3 (𝑥 = 𝑊 → ((𝑀 ∈ Mnd → (𝑂 Σg 𝑥) = (𝑀 Σg (reverse‘𝑥))) ↔ (𝑀 ∈ Mnd → (𝑂 Σg 𝑊) = (𝑀 Σg (reverse‘𝑊)))))
23 gsumwrev.o . . . . . . 7 𝑂 = (oppg𝑀)
24 eqid 2626 . . . . . . 7 (0g𝑀) = (0g𝑀)
2523, 24oppgid 17702 . . . . . 6 (0g𝑀) = (0g𝑂)
2625gsum0 17194 . . . . 5 (𝑂 Σg ∅) = (0g𝑀)
2724gsum0 17194 . . . . 5 (𝑀 Σg ∅) = (0g𝑀)
2826, 27eqtr4i 2651 . . . 4 (𝑂 Σg ∅) = (𝑀 Σg ∅)
2928a1i 11 . . 3 (𝑀 ∈ Mnd → (𝑂 Σg ∅) = (𝑀 Σg ∅))
30 oveq2 6613 . . . . . 6 ((𝑂 Σg 𝑦) = (𝑀 Σg (reverse‘𝑦)) → (𝑧(+g𝑀)(𝑂 Σg 𝑦)) = (𝑧(+g𝑀)(𝑀 Σg (reverse‘𝑦))))
3123oppgmnd 17700 . . . . . . . . . 10 (𝑀 ∈ Mnd → 𝑂 ∈ Mnd)
3231adantr 481 . . . . . . . . 9 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → 𝑂 ∈ Mnd)
33 simprl 793 . . . . . . . . 9 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → 𝑦 ∈ Word 𝐵)
34 simprr 795 . . . . . . . . . 10 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → 𝑧𝐵)
3534s1cld 13317 . . . . . . . . 9 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → ⟨“𝑧”⟩ ∈ Word 𝐵)
36 gsumwrev.b . . . . . . . . . . 11 𝐵 = (Base‘𝑀)
3723, 36oppgbas 17697 . . . . . . . . . 10 𝐵 = (Base‘𝑂)
38 eqid 2626 . . . . . . . . . 10 (+g𝑂) = (+g𝑂)
3937, 38gsumccat 17294 . . . . . . . . 9 ((𝑂 ∈ Mnd ∧ 𝑦 ∈ Word 𝐵 ∧ ⟨“𝑧”⟩ ∈ Word 𝐵) → (𝑂 Σg (𝑦 ++ ⟨“𝑧”⟩)) = ((𝑂 Σg 𝑦)(+g𝑂)(𝑂 Σg ⟨“𝑧”⟩)))
4032, 33, 35, 39syl3anc 1323 . . . . . . . 8 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → (𝑂 Σg (𝑦 ++ ⟨“𝑧”⟩)) = ((𝑂 Σg 𝑦)(+g𝑂)(𝑂 Σg ⟨“𝑧”⟩)))
4137gsumws1 17292 . . . . . . . . . . 11 (𝑧𝐵 → (𝑂 Σg ⟨“𝑧”⟩) = 𝑧)
4241ad2antll 764 . . . . . . . . . 10 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → (𝑂 Σg ⟨“𝑧”⟩) = 𝑧)
4342oveq2d 6621 . . . . . . . . 9 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → ((𝑂 Σg 𝑦)(+g𝑂)(𝑂 Σg ⟨“𝑧”⟩)) = ((𝑂 Σg 𝑦)(+g𝑂)𝑧))
44 eqid 2626 . . . . . . . . . 10 (+g𝑀) = (+g𝑀)
4544, 23, 38oppgplus 17695 . . . . . . . . 9 ((𝑂 Σg 𝑦)(+g𝑂)𝑧) = (𝑧(+g𝑀)(𝑂 Σg 𝑦))
4643, 45syl6eq 2676 . . . . . . . 8 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → ((𝑂 Σg 𝑦)(+g𝑂)(𝑂 Σg ⟨“𝑧”⟩)) = (𝑧(+g𝑀)(𝑂 Σg 𝑦)))
4740, 46eqtrd 2660 . . . . . . 7 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → (𝑂 Σg (𝑦 ++ ⟨“𝑧”⟩)) = (𝑧(+g𝑀)(𝑂 Σg 𝑦)))
48 revccat 13447 . . . . . . . . . . 11 ((𝑦 ∈ Word 𝐵 ∧ ⟨“𝑧”⟩ ∈ Word 𝐵) → (reverse‘(𝑦 ++ ⟨“𝑧”⟩)) = ((reverse‘⟨“𝑧”⟩) ++ (reverse‘𝑦)))
4933, 35, 48syl2anc 692 . . . . . . . . . 10 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → (reverse‘(𝑦 ++ ⟨“𝑧”⟩)) = ((reverse‘⟨“𝑧”⟩) ++ (reverse‘𝑦)))
50 revs1 13446 . . . . . . . . . . 11 (reverse‘⟨“𝑧”⟩) = ⟨“𝑧”⟩
5150oveq1i 6615 . . . . . . . . . 10 ((reverse‘⟨“𝑧”⟩) ++ (reverse‘𝑦)) = (⟨“𝑧”⟩ ++ (reverse‘𝑦))
5249, 51syl6eq 2676 . . . . . . . . 9 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → (reverse‘(𝑦 ++ ⟨“𝑧”⟩)) = (⟨“𝑧”⟩ ++ (reverse‘𝑦)))
5352oveq2d 6621 . . . . . . . 8 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → (𝑀 Σg (reverse‘(𝑦 ++ ⟨“𝑧”⟩))) = (𝑀 Σg (⟨“𝑧”⟩ ++ (reverse‘𝑦))))
54 simpl 473 . . . . . . . . 9 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → 𝑀 ∈ Mnd)
55 revcl 13442 . . . . . . . . . 10 (𝑦 ∈ Word 𝐵 → (reverse‘𝑦) ∈ Word 𝐵)
5655ad2antrl 763 . . . . . . . . 9 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → (reverse‘𝑦) ∈ Word 𝐵)
5736, 44gsumccat 17294 . . . . . . . . 9 ((𝑀 ∈ Mnd ∧ ⟨“𝑧”⟩ ∈ Word 𝐵 ∧ (reverse‘𝑦) ∈ Word 𝐵) → (𝑀 Σg (⟨“𝑧”⟩ ++ (reverse‘𝑦))) = ((𝑀 Σg ⟨“𝑧”⟩)(+g𝑀)(𝑀 Σg (reverse‘𝑦))))
5854, 35, 56, 57syl3anc 1323 . . . . . . . 8 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → (𝑀 Σg (⟨“𝑧”⟩ ++ (reverse‘𝑦))) = ((𝑀 Σg ⟨“𝑧”⟩)(+g𝑀)(𝑀 Σg (reverse‘𝑦))))
5936gsumws1 17292 . . . . . . . . . 10 (𝑧𝐵 → (𝑀 Σg ⟨“𝑧”⟩) = 𝑧)
6059ad2antll 764 . . . . . . . . 9 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → (𝑀 Σg ⟨“𝑧”⟩) = 𝑧)
6160oveq1d 6620 . . . . . . . 8 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → ((𝑀 Σg ⟨“𝑧”⟩)(+g𝑀)(𝑀 Σg (reverse‘𝑦))) = (𝑧(+g𝑀)(𝑀 Σg (reverse‘𝑦))))
6253, 58, 613eqtrd 2664 . . . . . . 7 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → (𝑀 Σg (reverse‘(𝑦 ++ ⟨“𝑧”⟩))) = (𝑧(+g𝑀)(𝑀 Σg (reverse‘𝑦))))
6347, 62eqeq12d 2641 . . . . . 6 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → ((𝑂 Σg (𝑦 ++ ⟨“𝑧”⟩)) = (𝑀 Σg (reverse‘(𝑦 ++ ⟨“𝑧”⟩))) ↔ (𝑧(+g𝑀)(𝑂 Σg 𝑦)) = (𝑧(+g𝑀)(𝑀 Σg (reverse‘𝑦)))))
6430, 63syl5ibr 236 . . . . 5 ((𝑀 ∈ Mnd ∧ (𝑦 ∈ Word 𝐵𝑧𝐵)) → ((𝑂 Σg 𝑦) = (𝑀 Σg (reverse‘𝑦)) → (𝑂 Σg (𝑦 ++ ⟨“𝑧”⟩)) = (𝑀 Σg (reverse‘(𝑦 ++ ⟨“𝑧”⟩)))))
6564expcom 451 . . . 4 ((𝑦 ∈ Word 𝐵𝑧𝐵) → (𝑀 ∈ Mnd → ((𝑂 Σg 𝑦) = (𝑀 Σg (reverse‘𝑦)) → (𝑂 Σg (𝑦 ++ ⟨“𝑧”⟩)) = (𝑀 Σg (reverse‘(𝑦 ++ ⟨“𝑧”⟩))))))
6665a2d 29 . . 3 ((𝑦 ∈ Word 𝐵𝑧𝐵) → ((𝑀 ∈ Mnd → (𝑂 Σg 𝑦) = (𝑀 Σg (reverse‘𝑦))) → (𝑀 ∈ Mnd → (𝑂 Σg (𝑦 ++ ⟨“𝑧”⟩)) = (𝑀 Σg (reverse‘(𝑦 ++ ⟨“𝑧”⟩))))))
677, 12, 17, 22, 29, 66wrdind 13409 . 2 (𝑊 ∈ Word 𝐵 → (𝑀 ∈ Mnd → (𝑂 Σg 𝑊) = (𝑀 Σg (reverse‘𝑊))))
6867impcom 446 1 ((𝑀 ∈ Mnd ∧ 𝑊 ∈ Word 𝐵) → (𝑂 Σg 𝑊) = (𝑀 Σg (reverse‘𝑊)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384   = wceq 1480  wcel 1992  c0 3896  cfv 5850  (class class class)co 6605  Word cword 13225   ++ cconcat 13227  ⟨“cs1 13228  reversecreverse 13231  Basecbs 15776  +gcplusg 15857  0gc0g 16016   Σg cgsu 16017  Mndcmnd 17210  oppgcoppg 17691
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 1841  ax-6 1890  ax-7 1937  ax-8 1994  ax-9 2001  ax-10 2021  ax-11 2036  ax-12 2049  ax-13 2250  ax-ext 2606  ax-rep 4736  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872  ax-un 6903  ax-cnex 9937  ax-resscn 9938  ax-1cn 9939  ax-icn 9940  ax-addcl 9941  ax-addrcl 9942  ax-mulcl 9943  ax-mulrcl 9944  ax-mulcom 9945  ax-addass 9946  ax-mulass 9947  ax-distr 9948  ax-i2m1 9949  ax-1ne0 9950  ax-1rid 9951  ax-rnegex 9952  ax-rrecex 9953  ax-cnre 9954  ax-pre-lttri 9955  ax-pre-lttrn 9956  ax-pre-ltadd 9957  ax-pre-mulgt0 9958
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 1883  df-eu 2478  df-mo 2479  df-clab 2613  df-cleq 2619  df-clel 2622  df-nfc 2756  df-ne 2797  df-nel 2900  df-ral 2917  df-rex 2918  df-reu 2919  df-rmo 2920  df-rab 2921  df-v 3193  df-sbc 3423  df-csb 3520  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-pss 3576  df-nul 3897  df-if 4064  df-pw 4137  df-sn 4154  df-pr 4156  df-tp 4158  df-op 4160  df-uni 4408  df-int 4446  df-iun 4492  df-br 4619  df-opab 4679  df-mpt 4680  df-tr 4718  df-eprel 4990  df-id 4994  df-po 5000  df-so 5001  df-fr 5038  df-we 5040  df-xp 5085  df-rel 5086  df-cnv 5087  df-co 5088  df-dm 5089  df-rn 5090  df-res 5091  df-ima 5092  df-pred 5642  df-ord 5688  df-on 5689  df-lim 5690  df-suc 5691  df-iota 5813  df-fun 5852  df-fn 5853  df-f 5854  df-f1 5855  df-fo 5856  df-f1o 5857  df-fv 5858  df-riota 6566  df-ov 6608  df-oprab 6609  df-mpt2 6610  df-om 7014  df-1st 7116  df-2nd 7117  df-tpos 7298  df-wrecs 7353  df-recs 7414  df-rdg 7452  df-1o 7506  df-oadd 7510  df-er 7688  df-en 7901  df-dom 7902  df-sdom 7903  df-fin 7904  df-card 8710  df-pnf 10021  df-mnf 10022  df-xr 10023  df-ltxr 10024  df-le 10025  df-sub 10213  df-neg 10214  df-nn 10966  df-2 11024  df-n0 11238  df-xnn0 11309  df-z 11323  df-uz 11632  df-fz 12266  df-fzo 12404  df-seq 12739  df-hash 13055  df-word 13233  df-lsw 13234  df-concat 13235  df-s1 13236  df-substr 13237  df-reverse 13239  df-ndx 15779  df-slot 15780  df-base 15781  df-sets 15782  df-ress 15783  df-plusg 15870  df-0g 16018  df-gsum 16019  df-mgm 17158  df-sgrp 17200  df-mnd 17211  df-submnd 17252  df-oppg 17692
This theorem is referenced by:  symgtrinv  17808
  Copyright terms: Public domain W3C validator