This is an inofficial mirror of http://metamath.tirix.org for personal testing of a visualizer extension only.
Database
REAL AND COMPLEX NUMBERS
Words over a set
Cyclical shifts of words
cshw1repsw
Metamath Proof Explorer
Description: If cyclically shifting a word by 1 position results in the word itself,
the word is a "repeated symbol word". Remark: also "valid" for an empty
word! (Contributed by AV , 8-Nov-2018) (Proof shortened by AV , 10-Nov-2018)
Ref
Expression
Assertion
cshw1repsw
⊢ W ∈ Word V ∧ W cyclShift 1 = W → W = W ⁡ 0 repeatS W
Proof
Step
Hyp
Ref
Expression
1
cshw1
⊢ W ∈ Word V ∧ W cyclShift 1 = W → ∀ i ∈ 0 ..^ W W ⁡ i = W ⁡ 0
2
repswsymballbi
⊢ W ∈ Word V → W = W ⁡ 0 repeatS W ↔ ∀ i ∈ 0 ..^ W W ⁡ i = W ⁡ 0
3
2
bicomd
⊢ W ∈ Word V → ∀ i ∈ 0 ..^ W W ⁡ i = W ⁡ 0 ↔ W = W ⁡ 0 repeatS W
4
3
adantr
⊢ W ∈ Word V ∧ W cyclShift 1 = W → ∀ i ∈ 0 ..^ W W ⁡ i = W ⁡ 0 ↔ W = W ⁡ 0 repeatS W
5
1 4
mpbid
⊢ W ∈ Word V ∧ W cyclShift 1 = W → W = W ⁡ 0 repeatS W