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

Theorem hashecclwwlkn1 27862
Description: The size of every equivalence class of the equivalence relation over the set of closed walks (defined as words) with a fixed length which is a prime number is 1 or equals this length. (Contributed by Alexander van der Vekens, 17-Jun-2018.) (Revised by AV, 1-May-2021.)
Hypotheses
Ref Expression
erclwwlkn.w 𝑊 = (𝑁 ClWWalksN 𝐺)
erclwwlkn.r = {⟨𝑡, 𝑢⟩ ∣ (𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛))}
Assertion
Ref Expression
hashecclwwlkn1 ((𝑁 ∈ ℙ ∧ 𝑈 ∈ (𝑊 / )) → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁))
Distinct variable groups:   𝑡,𝑊,𝑢   𝑛,𝑁,𝑢,𝑡   𝑛,𝑊   𝑛,𝐺,𝑢   𝑈,𝑛,𝑢
Allowed substitution hints:   (𝑢,𝑡,𝑛)   𝑈(𝑡)   𝐺(𝑡)

Proof of Theorem hashecclwwlkn1
Dummy variables 𝑥 𝑦 𝑚 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 erclwwlkn.w . . . . 5 𝑊 = (𝑁 ClWWalksN 𝐺)
2 erclwwlkn.r . . . . 5 = {⟨𝑡, 𝑢⟩ ∣ (𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛))}
31, 2eclclwwlkn1 27860 . . . 4 (𝑈 ∈ (𝑊 / ) → (𝑈 ∈ (𝑊 / ) ↔ ∃𝑥𝑊 𝑈 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}))
4 rabeq 3431 . . . . . . . . . 10 (𝑊 = (𝑁 ClWWalksN 𝐺) → {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
51, 4mp1i 13 . . . . . . . . 9 ((𝑁 ∈ ℙ ∧ 𝑥𝑊) → {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
6 prmnn 16008 . . . . . . . . . . 11 (𝑁 ∈ ℙ → 𝑁 ∈ ℕ)
76nnnn0d 11943 . . . . . . . . . 10 (𝑁 ∈ ℙ → 𝑁 ∈ ℕ0)
81eleq2i 2881 . . . . . . . . . . 11 (𝑥𝑊𝑥 ∈ (𝑁 ClWWalksN 𝐺))
98biimpi 219 . . . . . . . . . 10 (𝑥𝑊𝑥 ∈ (𝑁 ClWWalksN 𝐺))
10 clwwlknscsh 27847 . . . . . . . . . 10 ((𝑁 ∈ ℕ0𝑥 ∈ (𝑁 ClWWalksN 𝐺)) → {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
117, 9, 10syl2an 598 . . . . . . . . 9 ((𝑁 ∈ ℙ ∧ 𝑥𝑊) → {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
125, 11eqtrd 2833 . . . . . . . 8 ((𝑁 ∈ ℙ ∧ 𝑥𝑊) → {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
1312eqeq2d 2809 . . . . . . 7 ((𝑁 ∈ ℙ ∧ 𝑥𝑊) → (𝑈 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}))
14 simpll 766 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → 𝑥 ∈ Word (Vtx‘𝐺))
15 elnnne0 11899 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ ℕ ↔ (𝑁 ∈ ℕ0𝑁 ≠ 0))
16 eqeq1 2802 . . . . . . . . . . . . . . . . . . . . . 22 (𝑁 = (♯‘𝑥) → (𝑁 = 0 ↔ (♯‘𝑥) = 0))
1716eqcoms 2806 . . . . . . . . . . . . . . . . . . . . 21 ((♯‘𝑥) = 𝑁 → (𝑁 = 0 ↔ (♯‘𝑥) = 0))
18 hasheq0 13720 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 ∈ Word (Vtx‘𝐺) → ((♯‘𝑥) = 0 ↔ 𝑥 = ∅))
1917, 18sylan9bbr 514 . . . . . . . . . . . . . . . . . . . 20 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁) → (𝑁 = 0 ↔ 𝑥 = ∅))
2019necon3bid 3031 . . . . . . . . . . . . . . . . . . 19 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁) → (𝑁 ≠ 0 ↔ 𝑥 ≠ ∅))
2120biimpcd 252 . . . . . . . . . . . . . . . . . 18 (𝑁 ≠ 0 → ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁) → 𝑥 ≠ ∅))
2215, 21simplbiim 508 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ ℕ → ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁) → 𝑥 ≠ ∅))
2322impcom 411 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → 𝑥 ≠ ∅)
24 simplr 768 . . . . . . . . . . . . . . . . 17 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → (♯‘𝑥) = 𝑁)
2524eqcomd 2804 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → 𝑁 = (♯‘𝑥))
2614, 23, 253jca 1125 . . . . . . . . . . . . . . 15 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (♯‘𝑥)))
2726ex 416 . . . . . . . . . . . . . 14 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁) → (𝑁 ∈ ℕ → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (♯‘𝑥))))
28 eqid 2798 . . . . . . . . . . . . . . 15 (Vtx‘𝐺) = (Vtx‘𝐺)
2928clwwlknbp 27820 . . . . . . . . . . . . . 14 (𝑥 ∈ (𝑁 ClWWalksN 𝐺) → (𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁))
3027, 29syl11 33 . . . . . . . . . . . . 13 (𝑁 ∈ ℕ → (𝑥 ∈ (𝑁 ClWWalksN 𝐺) → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (♯‘𝑥))))
318, 30syl5bi 245 . . . . . . . . . . . 12 (𝑁 ∈ ℕ → (𝑥𝑊 → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (♯‘𝑥))))
326, 31syl 17 . . . . . . . . . . 11 (𝑁 ∈ ℙ → (𝑥𝑊 → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (♯‘𝑥))))
3332imp 410 . . . . . . . . . 10 ((𝑁 ∈ ℙ ∧ 𝑥𝑊) → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (♯‘𝑥)))
34 scshwfzeqfzo 14179 . . . . . . . . . 10 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (♯‘𝑥)) → {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
3533, 34syl 17 . . . . . . . . 9 ((𝑁 ∈ ℙ ∧ 𝑥𝑊) → {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
3635eqeq2d 2809 . . . . . . . 8 ((𝑁 ∈ ℙ ∧ 𝑥𝑊) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)}))
37 oveq2 7143 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑛 = 𝑚 → (𝑥 cyclShift 𝑛) = (𝑥 cyclShift 𝑚))
3837eqeq2d 2809 . . . . . . . . . . . . . . . . . . . . . 22 (𝑛 = 𝑚 → (𝑦 = (𝑥 cyclShift 𝑛) ↔ 𝑦 = (𝑥 cyclShift 𝑚)))
3938cbvrexvw 3397 . . . . . . . . . . . . . . . . . . . . 21 (∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛) ↔ ∃𝑚 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑚))
40 eqeq1 2802 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 = 𝑢 → (𝑦 = (𝑥 cyclShift 𝑚) ↔ 𝑢 = (𝑥 cyclShift 𝑚)))
41 eqcom 2805 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑢 = (𝑥 cyclShift 𝑚) ↔ (𝑥 cyclShift 𝑚) = 𝑢)
4240, 41syl6bb 290 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 = 𝑢 → (𝑦 = (𝑥 cyclShift 𝑚) ↔ (𝑥 cyclShift 𝑚) = 𝑢))
4342rexbidv 3256 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 = 𝑢 → (∃𝑚 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑚) ↔ ∃𝑚 ∈ (0..^(♯‘𝑥))(𝑥 cyclShift 𝑚) = 𝑢))
4439, 43syl5bb 286 . . . . . . . . . . . . . . . . . . . 20 (𝑦 = 𝑢 → (∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛) ↔ ∃𝑚 ∈ (0..^(♯‘𝑥))(𝑥 cyclShift 𝑚) = 𝑢))
4544cbvrabv 3439 . . . . . . . . . . . . . . . . . . 19 {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} = {𝑢 ∈ Word (Vtx‘𝐺) ∣ ∃𝑚 ∈ (0..^(♯‘𝑥))(𝑥 cyclShift 𝑚) = 𝑢}
4645cshwshash 16430 . . . . . . . . . . . . . . . . . 18 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) ∈ ℙ) → ((♯‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = (♯‘𝑥) ∨ (♯‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = 1))
4746adantr 484 . . . . . . . . . . . . . . . . 17 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) ∈ ℙ) ∧ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) → ((♯‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = (♯‘𝑥) ∨ (♯‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = 1))
4847orcomd 868 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) ∈ ℙ) ∧ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) → ((♯‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = 1 ∨ (♯‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = (♯‘𝑥)))
49 fveqeq2 6654 . . . . . . . . . . . . . . . . . 18 (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ↔ (♯‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = 1))
50 fveqeq2 6654 . . . . . . . . . . . . . . . . . 18 (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = (♯‘𝑥) ↔ (♯‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = (♯‘𝑥)))
5149, 50orbi12d 916 . . . . . . . . . . . . . . . . 17 (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (((♯‘𝑈) = 1 ∨ (♯‘𝑈) = (♯‘𝑥)) ↔ ((♯‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = 1 ∨ (♯‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = (♯‘𝑥))))
5251adantl 485 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) ∈ ℙ) ∧ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) → (((♯‘𝑈) = 1 ∨ (♯‘𝑈) = (♯‘𝑥)) ↔ ((♯‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = 1 ∨ (♯‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = (♯‘𝑥))))
5348, 52mpbird 260 . . . . . . . . . . . . . . 15 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) ∈ ℙ) ∧ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = (♯‘𝑥)))
5453ex 416 . . . . . . . . . . . . . 14 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = (♯‘𝑥))))
5554ex 416 . . . . . . . . . . . . 13 (𝑥 ∈ Word (Vtx‘𝐺) → ((♯‘𝑥) ∈ ℙ → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = (♯‘𝑥)))))
5655adantr 484 . . . . . . . . . . . 12 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁) → ((♯‘𝑥) ∈ ℙ → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = (♯‘𝑥)))))
57 eleq1 2877 . . . . . . . . . . . . . . 15 (𝑁 = (♯‘𝑥) → (𝑁 ∈ ℙ ↔ (♯‘𝑥) ∈ ℙ))
58 oveq2 7143 . . . . . . . . . . . . . . . . . . 19 (𝑁 = (♯‘𝑥) → (0..^𝑁) = (0..^(♯‘𝑥)))
5958rexeqdv 3365 . . . . . . . . . . . . . . . . . 18 (𝑁 = (♯‘𝑥) → (∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛) ↔ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)))
6059rabbidv 3427 . . . . . . . . . . . . . . . . 17 (𝑁 = (♯‘𝑥) → {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)})
6160eqeq2d 2809 . . . . . . . . . . . . . . . 16 (𝑁 = (♯‘𝑥) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}))
62 eqeq2 2810 . . . . . . . . . . . . . . . . 17 (𝑁 = (♯‘𝑥) → ((♯‘𝑈) = 𝑁 ↔ (♯‘𝑈) = (♯‘𝑥)))
6362orbi2d 913 . . . . . . . . . . . . . . . 16 (𝑁 = (♯‘𝑥) → (((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁) ↔ ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = (♯‘𝑥))))
6461, 63imbi12d 348 . . . . . . . . . . . . . . 15 (𝑁 = (♯‘𝑥) → ((𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁)) ↔ (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = (♯‘𝑥)))))
6557, 64imbi12d 348 . . . . . . . . . . . . . 14 (𝑁 = (♯‘𝑥) → ((𝑁 ∈ ℙ → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁))) ↔ ((♯‘𝑥) ∈ ℙ → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = (♯‘𝑥))))))
6665eqcoms 2806 . . . . . . . . . . . . 13 ((♯‘𝑥) = 𝑁 → ((𝑁 ∈ ℙ → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁))) ↔ ((♯‘𝑥) ∈ ℙ → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = (♯‘𝑥))))))
6766adantl 485 . . . . . . . . . . . 12 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁) → ((𝑁 ∈ ℙ → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁))) ↔ ((♯‘𝑥) ∈ ℙ → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(♯‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = (♯‘𝑥))))))
6856, 67mpbird 260 . . . . . . . . . . 11 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (♯‘𝑥) = 𝑁) → (𝑁 ∈ ℙ → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁))))
6929, 68syl 17 . . . . . . . . . 10 (𝑥 ∈ (𝑁 ClWWalksN 𝐺) → (𝑁 ∈ ℙ → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁))))
7069, 1eleq2s 2908 . . . . . . . . 9 (𝑥𝑊 → (𝑁 ∈ ℙ → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁))))
7170impcom 411 . . . . . . . 8 ((𝑁 ∈ ℙ ∧ 𝑥𝑊) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁)))
7236, 71sylbid 243 . . . . . . 7 ((𝑁 ∈ ℙ ∧ 𝑥𝑊) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁)))
7313, 72sylbid 243 . . . . . 6 ((𝑁 ∈ ℙ ∧ 𝑥𝑊) → (𝑈 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁)))
7473rexlimdva 3243 . . . . 5 (𝑁 ∈ ℙ → (∃𝑥𝑊 𝑈 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁)))
7574com12 32 . . . 4 (∃𝑥𝑊 𝑈 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (𝑁 ∈ ℙ → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁)))
763, 75syl6bi 256 . . 3 (𝑈 ∈ (𝑊 / ) → (𝑈 ∈ (𝑊 / ) → (𝑁 ∈ ℙ → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁))))
7776pm2.43i 52 . 2 (𝑈 ∈ (𝑊 / ) → (𝑁 ∈ ℙ → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁)))
7877impcom 411 1 ((𝑁 ∈ ℙ ∧ 𝑈 ∈ (𝑊 / )) → ((♯‘𝑈) = 1 ∨ (♯‘𝑈) = 𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  wo 844  w3a 1084   = wceq 1538  wcel 2111  wne 2987  wrex 3107  {crab 3110  c0 4243  {copab 5092  cfv 6324  (class class class)co 7135   / cqs 8271  0cc0 10526  1c1 10527  cn 11625  0cn0 11885  ...cfz 12885  ..^cfzo 13028  chash 13686  Word cword 13857   cyclShift ccsh 14141  cprime 16005  Vtxcvtx 26789   ClWWalksN cclwwlkn 27809
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-rep 5154  ax-sep 5167  ax-nul 5174  ax-pow 5231  ax-pr 5295  ax-un 7441  ax-inf2 9088  ax-cnex 10582  ax-resscn 10583  ax-1cn 10584  ax-icn 10585  ax-addcl 10586  ax-addrcl 10587  ax-mulcl 10588  ax-mulrcl 10589  ax-mulcom 10590  ax-addass 10591  ax-mulass 10592  ax-distr 10593  ax-i2m1 10594  ax-1ne0 10595  ax-1rid 10596  ax-rnegex 10597  ax-rrecex 10598  ax-cnre 10599  ax-pre-lttri 10600  ax-pre-lttrn 10601  ax-pre-ltadd 10602  ax-pre-mulgt0 10603  ax-pre-sup 10604
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rmo 3114  df-rab 3115  df-v 3443  df-sbc 3721  df-csb 3829  df-dif 3884  df-un 3886  df-in 3888  df-ss 3898  df-pss 3900  df-nul 4244  df-if 4426  df-pw 4499  df-sn 4526  df-pr 4528  df-tp 4530  df-op 4532  df-uni 4801  df-int 4839  df-iun 4883  df-disj 4996  df-br 5031  df-opab 5093  df-mpt 5111  df-tr 5137  df-id 5425  df-eprel 5430  df-po 5438  df-so 5439  df-fr 5478  df-se 5479  df-we 5480  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-pred 6116  df-ord 6162  df-on 6163  df-lim 6164  df-suc 6165  df-iota 6283  df-fun 6326  df-fn 6327  df-f 6328  df-f1 6329  df-fo 6330  df-f1o 6331  df-fv 6332  df-isom 6333  df-riota 7093  df-ov 7138  df-oprab 7139  df-mpo 7140  df-om 7561  df-1st 7671  df-2nd 7672  df-wrecs 7930  df-recs 7991  df-rdg 8029  df-1o 8085  df-2o 8086  df-oadd 8089  df-er 8272  df-ec 8274  df-qs 8278  df-map 8391  df-en 8493  df-dom 8494  df-sdom 8495  df-fin 8496  df-sup 8890  df-inf 8891  df-oi 8958  df-dju 9314  df-card 9352  df-pnf 10666  df-mnf 10667  df-xr 10668  df-ltxr 10669  df-le 10670  df-sub 10861  df-neg 10862  df-div 11287  df-nn 11626  df-2 11688  df-3 11689  df-n0 11886  df-xnn0 11956  df-z 11970  df-uz 12232  df-rp 12378  df-ico 12732  df-fz 12886  df-fzo 13029  df-fl 13157  df-mod 13233  df-seq 13365  df-exp 13426  df-hash 13687  df-word 13858  df-lsw 13906  df-concat 13914  df-substr 13994  df-pfx 14024  df-reps 14122  df-csh 14142  df-cj 14450  df-re 14451  df-im 14452  df-sqrt 14586  df-abs 14587  df-clim 14837  df-sum 15035  df-dvds 15600  df-gcd 15834  df-prm 16006  df-phi 16093  df-clwwlk 27767  df-clwwlkn 27810
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator