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

Theorem umgrhashecclwwlk 26838
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 equals this length (in an undirected simple graph). (Contributed by Alexander van der Vekens, 17-Jun-2018.) (Revised by AV, 1-May-2021.)
Hypotheses
Ref Expression
erclwwlksn.w 𝑊 = (𝑁 ClWWalksN 𝐺)
erclwwlksn.r = {⟨𝑡, 𝑢⟩ ∣ (𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛))}
Assertion
Ref Expression
umgrhashecclwwlk ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑈 ∈ (𝑊 / ) → (#‘𝑈) = 𝑁))
Distinct variable groups:   𝑡,𝑊,𝑢   𝑛,𝑁,𝑢,𝑡   𝑛,𝑊   𝑛,𝐺,𝑢   𝑈,𝑛,𝑢
Allowed substitution hints:   (𝑢,𝑡,𝑛)   𝑈(𝑡)   𝐺(𝑡)

Proof of Theorem umgrhashecclwwlk
Dummy variables 𝑥 𝑦 𝑚 𝑖 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 erclwwlksn.w . . . . 5 𝑊 = (𝑁 ClWWalksN 𝐺)
2 erclwwlksn.r . . . . 5 = {⟨𝑡, 𝑢⟩ ∣ (𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛))}
31, 2eclclwwlksn1 26835 . . . 4 (𝑈 ∈ (𝑊 / ) → (𝑈 ∈ (𝑊 / ) ↔ ∃𝑥𝑊 𝑈 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}))
4 rabeq 3182 . . . . . . . . . 10 (𝑊 = (𝑁 ClWWalksN 𝐺) → {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
51, 4mp1i 13 . . . . . . . . 9 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
6 prmnn 15323 . . . . . . . . . . . 12 (𝑁 ∈ ℙ → 𝑁 ∈ ℕ)
76nnnn0d 11303 . . . . . . . . . . 11 (𝑁 ∈ ℙ → 𝑁 ∈ ℕ0)
87adantl 482 . . . . . . . . . 10 ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → 𝑁 ∈ ℕ0)
91eleq2i 2690 . . . . . . . . . . 11 (𝑥𝑊𝑥 ∈ (𝑁 ClWWalksN 𝐺))
109biimpi 206 . . . . . . . . . 10 (𝑥𝑊𝑥 ∈ (𝑁 ClWWalksN 𝐺))
11 clwwlksnscsh 26823 . . . . . . . . . 10 ((𝑁 ∈ ℕ0𝑥 ∈ (𝑁 ClWWalksN 𝐺)) → {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
128, 10, 11syl2an 494 . . . . . . . . 9 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
135, 12eqtrd 2655 . . . . . . . 8 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
1413eqeq2d 2631 . . . . . . 7 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → (𝑈 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}))
156adantl 482 . . . . . . . . . . . 12 ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → 𝑁 ∈ ℕ)
16 simpll 789 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → 𝑥 ∈ Word (Vtx‘𝐺))
17 elnnne0 11258 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ ℕ ↔ (𝑁 ∈ ℕ0𝑁 ≠ 0))
18 eqeq1 2625 . . . . . . . . . . . . . . . . . . . . . 22 (𝑁 = (#‘𝑥) → (𝑁 = 0 ↔ (#‘𝑥) = 0))
1918eqcoms 2629 . . . . . . . . . . . . . . . . . . . . 21 ((#‘𝑥) = 𝑁 → (𝑁 = 0 ↔ (#‘𝑥) = 0))
20 hasheq0 13102 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 ∈ Word (Vtx‘𝐺) → ((#‘𝑥) = 0 ↔ 𝑥 = ∅))
2119, 20sylan9bbr 736 . . . . . . . . . . . . . . . . . . . 20 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → (𝑁 = 0 ↔ 𝑥 = ∅))
2221necon3bid 2834 . . . . . . . . . . . . . . . . . . 19 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → (𝑁 ≠ 0 ↔ 𝑥 ≠ ∅))
2322biimpcd 239 . . . . . . . . . . . . . . . . . 18 (𝑁 ≠ 0 → ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → 𝑥 ≠ ∅))
2417, 23simplbiim 658 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ ℕ → ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → 𝑥 ≠ ∅))
2524impcom 446 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → 𝑥 ≠ ∅)
26 simplr 791 . . . . . . . . . . . . . . . . 17 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → (#‘𝑥) = 𝑁)
2726eqcomd 2627 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → 𝑁 = (#‘𝑥))
2816, 25, 273jca 1240 . . . . . . . . . . . . . . 15 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (#‘𝑥)))
2928ex 450 . . . . . . . . . . . . . 14 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → (𝑁 ∈ ℕ → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (#‘𝑥))))
30 eqid 2621 . . . . . . . . . . . . . . 15 (Vtx‘𝐺) = (Vtx‘𝐺)
3130clwwlknbp 26769 . . . . . . . . . . . . . 14 (𝑥 ∈ (𝑁 ClWWalksN 𝐺) → (𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁))
3229, 31syl11 33 . . . . . . . . . . . . 13 (𝑁 ∈ ℕ → (𝑥 ∈ (𝑁 ClWWalksN 𝐺) → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (#‘𝑥))))
339, 32syl5bi 232 . . . . . . . . . . . 12 (𝑁 ∈ ℕ → (𝑥𝑊 → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (#‘𝑥))))
3415, 33syl 17 . . . . . . . . . . 11 ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑥𝑊 → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (#‘𝑥))))
3534imp 445 . . . . . . . . . 10 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (#‘𝑥)))
36 scshwfzeqfzo 13517 . . . . . . . . . 10 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (#‘𝑥)) → {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
3735, 36syl 17 . . . . . . . . 9 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
3837eqeq2d 2631 . . . . . . . 8 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)}))
39 fveq2 6153 . . . . . . . . . . . . . . 15 (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}))
40 simprl 793 . . . . . . . . . . . . . . . . 17 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) ∧ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)) → 𝐺 ∈ UMGraph )
41 prmuz2 15343 . . . . . . . . . . . . . . . . . . 19 ((#‘𝑥) ∈ ℙ → (#‘𝑥) ∈ (ℤ‘2))
4241adantl 482 . . . . . . . . . . . . . . . . . 18 ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ) → (#‘𝑥) ∈ (ℤ‘2))
4342adantl 482 . . . . . . . . . . . . . . . . 17 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) ∧ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)) → (#‘𝑥) ∈ (ℤ‘2))
44 simplr 791 . . . . . . . . . . . . . . . . 17 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) ∧ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)) → 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺))
45 umgr2cwwkdifex 26825 . . . . . . . . . . . . . . . . 17 ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ (ℤ‘2) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) → ∃𝑖 ∈ (0..^(#‘𝑥))(𝑥𝑖) ≠ (𝑥‘0))
4640, 43, 44, 45syl3anc 1323 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) ∧ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)) → ∃𝑖 ∈ (0..^(#‘𝑥))(𝑥𝑖) ≠ (𝑥‘0))
47 oveq2 6618 . . . . . . . . . . . . . . . . . . . . . 22 (𝑛 = 𝑚 → (𝑥 cyclShift 𝑛) = (𝑥 cyclShift 𝑚))
4847eqeq2d 2631 . . . . . . . . . . . . . . . . . . . . 21 (𝑛 = 𝑚 → (𝑦 = (𝑥 cyclShift 𝑛) ↔ 𝑦 = (𝑥 cyclShift 𝑚)))
4948cbvrexv 3163 . . . . . . . . . . . . . . . . . . . 20 (∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛) ↔ ∃𝑚 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑚))
50 eqeq1 2625 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 = 𝑢 → (𝑦 = (𝑥 cyclShift 𝑚) ↔ 𝑢 = (𝑥 cyclShift 𝑚)))
51 eqcom 2628 . . . . . . . . . . . . . . . . . . . . . 22 (𝑢 = (𝑥 cyclShift 𝑚) ↔ (𝑥 cyclShift 𝑚) = 𝑢)
5250, 51syl6bb 276 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 = 𝑢 → (𝑦 = (𝑥 cyclShift 𝑚) ↔ (𝑥 cyclShift 𝑚) = 𝑢))
5352rexbidv 3046 . . . . . . . . . . . . . . . . . . . 20 (𝑦 = 𝑢 → (∃𝑚 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑚) ↔ ∃𝑚 ∈ (0..^(#‘𝑥))(𝑥 cyclShift 𝑚) = 𝑢))
5449, 53syl5bb 272 . . . . . . . . . . . . . . . . . . 19 (𝑦 = 𝑢 → (∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛) ↔ ∃𝑚 ∈ (0..^(#‘𝑥))(𝑥 cyclShift 𝑚) = 𝑢))
5554cbvrabv 3188 . . . . . . . . . . . . . . . . . 18 {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} = {𝑢 ∈ Word (Vtx‘𝐺) ∣ ∃𝑚 ∈ (0..^(#‘𝑥))(𝑥 cyclShift 𝑚) = 𝑢}
5655cshwshashnsame 15745 . . . . . . . . . . . . . . . . 17 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) ∈ ℙ) → (∃𝑖 ∈ (0..^(#‘𝑥))(𝑥𝑖) ≠ (𝑥‘0) → (#‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = (#‘𝑥)))
5756ad2ant2rl 784 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) ∧ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)) → (∃𝑖 ∈ (0..^(#‘𝑥))(𝑥𝑖) ≠ (𝑥‘0) → (#‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = (#‘𝑥)))
5846, 57mpd 15 . . . . . . . . . . . . . . 15 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) ∧ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)) → (#‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = (#‘𝑥))
5939, 58sylan9eqr 2677 . . . . . . . . . . . . . 14 ((((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) ∧ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)) ∧ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) → (#‘𝑈) = (#‘𝑥))
6059exp41 637 . . . . . . . . . . . . 13 (𝑥 ∈ Word (Vtx‘𝐺) → (𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘𝑥)))))
6160adantr 481 . . . . . . . . . . . 12 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → (𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘𝑥)))))
62 oveq1 6617 . . . . . . . . . . . . . . . 16 (𝑁 = (#‘𝑥) → (𝑁 ClWWalksN 𝐺) = ((#‘𝑥) ClWWalksN 𝐺))
6362eleq2d 2684 . . . . . . . . . . . . . . 15 (𝑁 = (#‘𝑥) → (𝑥 ∈ (𝑁 ClWWalksN 𝐺) ↔ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)))
64 eleq1 2686 . . . . . . . . . . . . . . . . 17 (𝑁 = (#‘𝑥) → (𝑁 ∈ ℙ ↔ (#‘𝑥) ∈ ℙ))
6564anbi2d 739 . . . . . . . . . . . . . . . 16 (𝑁 = (#‘𝑥) → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ↔ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)))
66 oveq2 6618 . . . . . . . . . . . . . . . . . . . 20 (𝑁 = (#‘𝑥) → (0..^𝑁) = (0..^(#‘𝑥)))
6766rexeqdv 3137 . . . . . . . . . . . . . . . . . . 19 (𝑁 = (#‘𝑥) → (∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛) ↔ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)))
6867rabbidv 3180 . . . . . . . . . . . . . . . . . 18 (𝑁 = (#‘𝑥) → {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)})
6968eqeq2d 2631 . . . . . . . . . . . . . . . . 17 (𝑁 = (#‘𝑥) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}))
70 eqeq2 2632 . . . . . . . . . . . . . . . . 17 (𝑁 = (#‘𝑥) → ((#‘𝑈) = 𝑁 ↔ (#‘𝑈) = (#‘𝑥)))
7169, 70imbi12d 334 . . . . . . . . . . . . . . . 16 (𝑁 = (#‘𝑥) → ((𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁) ↔ (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘𝑥))))
7265, 71imbi12d 334 . . . . . . . . . . . . . . 15 (𝑁 = (#‘𝑥) → (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁)) ↔ ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘𝑥)))))
7363, 72imbi12d 334 . . . . . . . . . . . . . 14 (𝑁 = (#‘𝑥) → ((𝑥 ∈ (𝑁 ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁))) ↔ (𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘𝑥))))))
7473eqcoms 2629 . . . . . . . . . . . . 13 ((#‘𝑥) = 𝑁 → ((𝑥 ∈ (𝑁 ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁))) ↔ (𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘𝑥))))))
7574adantl 482 . . . . . . . . . . . 12 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → ((𝑥 ∈ (𝑁 ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁))) ↔ (𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘𝑥))))))
7661, 75mpbird 247 . . . . . . . . . . 11 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → (𝑥 ∈ (𝑁 ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁))))
7731, 76mpcom 38 . . . . . . . . . 10 (𝑥 ∈ (𝑁 ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁)))
7877, 1eleq2s 2716 . . . . . . . . 9 (𝑥𝑊 → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁)))
7978impcom 446 . . . . . . . 8 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁))
8038, 79sylbid 230 . . . . . . 7 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁))
8114, 80sylbid 230 . . . . . 6 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → (𝑈 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁))
8281rexlimdva 3025 . . . . 5 ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (∃𝑥𝑊 𝑈 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁))
8382com12 32 . . . 4 (∃𝑥𝑊 𝑈 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (#‘𝑈) = 𝑁))
843, 83syl6bi 243 . . 3 (𝑈 ∈ (𝑊 / ) → (𝑈 ∈ (𝑊 / ) → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (#‘𝑈) = 𝑁)))
8584pm2.43i 52 . 2 (𝑈 ∈ (𝑊 / ) → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (#‘𝑈) = 𝑁))
8685com12 32 1 ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑈 ∈ (𝑊 / ) → (#‘𝑈) = 𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 196  wa 384  w3a 1036   = wceq 1480  wcel 1987  wne 2790  wrex 2908  {crab 2911  c0 3896  {copab 4677  cfv 5852  (class class class)co 6610   / cqs 7693  0cc0 9888  cn 10972  2c2 11022  0cn0 11244  cuz 11639  ...cfz 12276  ..^cfzo 12414  #chash 13065  Word cword 13238   cyclShift ccsh 13479  cprime 15320  Vtxcvtx 25791   UMGraph cumgr 25889   ClWWalksN cclwwlksn 26760
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 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-rep 4736  ax-sep 4746  ax-nul 4754  ax-pow 4808  ax-pr 4872  ax-un 6909  ax-inf2 8490  ax-cnex 9944  ax-resscn 9945  ax-1cn 9946  ax-icn 9947  ax-addcl 9948  ax-addrcl 9949  ax-mulcl 9950  ax-mulrcl 9951  ax-mulcom 9952  ax-addass 9953  ax-mulass 9954  ax-distr 9955  ax-i2m1 9956  ax-1ne0 9957  ax-1rid 9958  ax-rnegex 9959  ax-rrecex 9960  ax-cnre 9961  ax-pre-lttri 9962  ax-pre-lttrn 9963  ax-pre-ltadd 9964  ax-pre-mulgt0 9965  ax-pre-sup 9966
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3or 1037  df-3an 1038  df-tru 1483  df-fal 1486  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-nel 2894  df-ral 2912  df-rex 2913  df-reu 2914  df-rmo 2915  df-rab 2916  df-v 3191  df-sbc 3422  df-csb 3519  df-dif 3562  df-un 3564  df-in 3566  df-ss 3573  df-pss 3575  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-disj 4589  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-se 5039  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 5644  df-ord 5690  df-on 5691  df-lim 5692  df-suc 5693  df-iota 5815  df-fun 5854  df-fn 5855  df-f 5856  df-f1 5857  df-fo 5858  df-f1o 5859  df-fv 5860  df-isom 5861  df-riota 6571  df-ov 6613  df-oprab 6614  df-mpt2 6615  df-om 7020  df-1st 7120  df-2nd 7121  df-wrecs 7359  df-recs 7420  df-rdg 7458  df-1o 7512  df-2o 7513  df-oadd 7516  df-er 7694  df-ec 7696  df-qs 7700  df-map 7811  df-pm 7812  df-en 7908  df-dom 7909  df-sdom 7910  df-fin 7911  df-sup 8300  df-inf 8301  df-oi 8367  df-card 8717  df-cda 8942  df-pnf 10028  df-mnf 10029  df-xr 10030  df-ltxr 10031  df-le 10032  df-sub 10220  df-neg 10221  df-div 10637  df-nn 10973  df-2 11031  df-3 11032  df-n0 11245  df-xnn0 11316  df-z 11330  df-uz 11640  df-rp 11785  df-ico 12131  df-fz 12277  df-fzo 12415  df-fl 12541  df-mod 12617  df-seq 12750  df-exp 12809  df-hash 13066  df-word 13246  df-lsw 13247  df-concat 13248  df-substr 13250  df-reps 13253  df-csh 13480  df-cj 13781  df-re 13782  df-im 13783  df-sqrt 13917  df-abs 13918  df-clim 14161  df-sum 14359  df-dvds 14919  df-gcd 15152  df-prm 15321  df-phi 15406  df-edg 25857  df-umgr 25891  df-clwwlks 26761  df-clwwlksn 26762
This theorem is referenced by:  fusgrhashclwwlkn  26839
  Copyright terms: Public domain W3C validator