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

Theorem umgrhashecclwwlk 27042
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
erclwwlkn.w 𝑊 = (𝑁 ClWWalksN 𝐺)
erclwwlkn.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 erclwwlkn.w . . . . 5 𝑊 = (𝑁 ClWWalksN 𝐺)
2 erclwwlkn.r . . . . 5 = {⟨𝑡, 𝑢⟩ ∣ (𝑡𝑊𝑢𝑊 ∧ ∃𝑛 ∈ (0...𝑁)𝑡 = (𝑢 cyclShift 𝑛))}
31, 2eclclwwlkn1 27039 . . . 4 (𝑈 ∈ (𝑊 / ) → (𝑈 ∈ (𝑊 / ) ↔ ∃𝑥𝑊 𝑈 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}))
4 rabeq 3223 . . . . . . . . . 10 (𝑊 = (𝑁 ClWWalksN 𝐺) → {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
51, 4mp1i 13 . . . . . . . . 9 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
6 prmnn 15435 . . . . . . . . . . . 12 (𝑁 ∈ ℙ → 𝑁 ∈ ℕ)
76nnnn0d 11389 . . . . . . . . . . 11 (𝑁 ∈ ℙ → 𝑁 ∈ ℕ0)
87adantl 481 . . . . . . . . . 10 ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → 𝑁 ∈ ℕ0)
91eleq2i 2722 . . . . . . . . . . 11 (𝑥𝑊𝑥 ∈ (𝑁 ClWWalksN 𝐺))
109biimpi 206 . . . . . . . . . 10 (𝑥𝑊𝑥 ∈ (𝑁 ClWWalksN 𝐺))
11 clwwlknscsh 27027 . . . . . . . . . 10 ((𝑁 ∈ ℕ0𝑥 ∈ (𝑁 ClWWalksN 𝐺)) → {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
128, 10, 11syl2an 493 . . . . . . . . 9 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → {𝑦 ∈ (𝑁 ClWWalksN 𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
135, 12eqtrd 2685 . . . . . . . 8 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)})
1413eqeq2d 2661 . . . . . . 7 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → (𝑈 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)}))
156adantl 481 . . . . . . . . . . . 12 ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → 𝑁 ∈ ℕ)
16 simpll 805 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → 𝑥 ∈ Word (Vtx‘𝐺))
17 elnnne0 11344 . . . . . . . . . . . . . . . . . 18 (𝑁 ∈ ℕ ↔ (𝑁 ∈ ℕ0𝑁 ≠ 0))
18 eqeq1 2655 . . . . . . . . . . . . . . . . . . . . . 22 (𝑁 = (#‘𝑥) → (𝑁 = 0 ↔ (#‘𝑥) = 0))
1918eqcoms 2659 . . . . . . . . . . . . . . . . . . . . 21 ((#‘𝑥) = 𝑁 → (𝑁 = 0 ↔ (#‘𝑥) = 0))
20 hasheq0 13192 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 ∈ Word (Vtx‘𝐺) → ((#‘𝑥) = 0 ↔ 𝑥 = ∅))
2119, 20sylan9bbr 737 . . . . . . . . . . . . . . . . . . . 20 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → (𝑁 = 0 ↔ 𝑥 = ∅))
2221necon3bid 2867 . . . . . . . . . . . . . . . . . . 19 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → (𝑁 ≠ 0 ↔ 𝑥 ≠ ∅))
2322biimpcd 239 . . . . . . . . . . . . . . . . . 18 (𝑁 ≠ 0 → ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → 𝑥 ≠ ∅))
2417, 23simplbiim 659 . . . . . . . . . . . . . . . . 17 (𝑁 ∈ ℕ → ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → 𝑥 ≠ ∅))
2524impcom 445 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → 𝑥 ≠ ∅)
26 simplr 807 . . . . . . . . . . . . . . . . 17 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → (#‘𝑥) = 𝑁)
2726eqcomd 2657 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → 𝑁 = (#‘𝑥))
2816, 25, 273jca 1261 . . . . . . . . . . . . . . 15 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) ∧ 𝑁 ∈ ℕ) → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (#‘𝑥)))
2928ex 449 . . . . . . . . . . . . . 14 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → (𝑁 ∈ ℕ → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (#‘𝑥))))
30 eqid 2651 . . . . . . . . . . . . . . 15 (Vtx‘𝐺) = (Vtx‘𝐺)
3130clwwlknbp 26997 . . . . . . . . . . . . . 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 444 . . . . . . . . . 10 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → (𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ≠ ∅ ∧ 𝑁 = (#‘𝑥)))
36 scshwfzeqfzo 13618 . . . . . . . . . 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 2661 . . . . . . . 8 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)}))
39 fveq2 6229 . . . . . . . . . . . . . . 15 (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}))
40 simprl 809 . . . . . . . . . . . . . . . . 17 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) ∧ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)) → 𝐺 ∈ UMGraph)
41 prmuz2 15455 . . . . . . . . . . . . . . . . . . 19 ((#‘𝑥) ∈ ℙ → (#‘𝑥) ∈ (ℤ‘2))
4241adantl 481 . . . . . . . . . . . . . . . . . 18 ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ) → (#‘𝑥) ∈ (ℤ‘2))
4342adantl 481 . . . . . . . . . . . . . . . . 17 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) ∧ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)) → (#‘𝑥) ∈ (ℤ‘2))
44 simplr 807 . . . . . . . . . . . . . . . . 17 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) ∧ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)) → 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺))
45 umgr2cwwkdifex 27029 . . . . . . . . . . . . . . . . 17 ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ (ℤ‘2) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) → ∃𝑖 ∈ (0..^(#‘𝑥))(𝑥𝑖) ≠ (𝑥‘0))
4640, 43, 44, 45syl3anc 1366 . . . . . . . . . . . . . . . 16 (((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) ∧ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)) → ∃𝑖 ∈ (0..^(#‘𝑥))(𝑥𝑖) ≠ (𝑥‘0))
47 oveq2 6698 . . . . . . . . . . . . . . . . . . . . . 22 (𝑛 = 𝑚 → (𝑥 cyclShift 𝑛) = (𝑥 cyclShift 𝑚))
4847eqeq2d 2661 . . . . . . . . . . . . . . . . . . . . 21 (𝑛 = 𝑚 → (𝑦 = (𝑥 cyclShift 𝑛) ↔ 𝑦 = (𝑥 cyclShift 𝑚)))
4948cbvrexv 3202 . . . . . . . . . . . . . . . . . . . 20 (∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛) ↔ ∃𝑚 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑚))
50 eqeq1 2655 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 = 𝑢 → (𝑦 = (𝑥 cyclShift 𝑚) ↔ 𝑢 = (𝑥 cyclShift 𝑚)))
51 eqcom 2658 . . . . . . . . . . . . . . . . . . . . . 22 (𝑢 = (𝑥 cyclShift 𝑚) ↔ (𝑥 cyclShift 𝑚) = 𝑢)
5250, 51syl6bb 276 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 = 𝑢 → (𝑦 = (𝑥 cyclShift 𝑚) ↔ (𝑥 cyclShift 𝑚) = 𝑢))
5352rexbidv 3081 . . . . . . . . . . . . . . . . . . . 20 (𝑦 = 𝑢 → (∃𝑚 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑚) ↔ ∃𝑚 ∈ (0..^(#‘𝑥))(𝑥 cyclShift 𝑚) = 𝑢))
5449, 53syl5bb 272 . . . . . . . . . . . . . . . . . . 19 (𝑦 = 𝑢 → (∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛) ↔ ∃𝑚 ∈ (0..^(#‘𝑥))(𝑥 cyclShift 𝑚) = 𝑢))
5554cbvrabv 3230 . . . . . . . . . . . . . . . . . 18 {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} = {𝑢 ∈ Word (Vtx‘𝐺) ∣ ∃𝑚 ∈ (0..^(#‘𝑥))(𝑥 cyclShift 𝑚) = 𝑢}
5655cshwshashnsame 15857 . . . . . . . . . . . . . . . . 17 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) ∈ ℙ) → (∃𝑖 ∈ (0..^(#‘𝑥))(𝑥𝑖) ≠ (𝑥‘0) → (#‘{𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) = (#‘𝑥)))
5756ad2ant2rl 800 . . . . . . . . . . . . . . . 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 2707 . . . . . . . . . . . . . 14 ((((𝑥 ∈ Word (Vtx‘𝐺) ∧ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)) ∧ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)) ∧ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}) → (#‘𝑈) = (#‘𝑥))
6059exp41 637 . . . . . . . . . . . . 13 (𝑥 ∈ Word (Vtx‘𝐺) → (𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘𝑥)))))
6160adantr 480 . . . . . . . . . . . 12 ((𝑥 ∈ Word (Vtx‘𝐺) ∧ (#‘𝑥) = 𝑁) → (𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘𝑥)))))
62 oveq1 6697 . . . . . . . . . . . . . . . 16 (𝑁 = (#‘𝑥) → (𝑁 ClWWalksN 𝐺) = ((#‘𝑥) ClWWalksN 𝐺))
6362eleq2d 2716 . . . . . . . . . . . . . . 15 (𝑁 = (#‘𝑥) → (𝑥 ∈ (𝑁 ClWWalksN 𝐺) ↔ 𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺)))
64 eleq1 2718 . . . . . . . . . . . . . . . . 17 (𝑁 = (#‘𝑥) → (𝑁 ∈ ℙ ↔ (#‘𝑥) ∈ ℙ))
6564anbi2d 740 . . . . . . . . . . . . . . . 16 (𝑁 = (#‘𝑥) → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ↔ (𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ)))
66 oveq2 6698 . . . . . . . . . . . . . . . . . . . 20 (𝑁 = (#‘𝑥) → (0..^𝑁) = (0..^(#‘𝑥)))
6766rexeqdv 3175 . . . . . . . . . . . . . . . . . . 19 (𝑁 = (#‘𝑥) → (∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛) ↔ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)))
6867rabbidv 3220 . . . . . . . . . . . . . . . . . 18 (𝑁 = (#‘𝑥) → {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)})
6968eqeq2d 2661 . . . . . . . . . . . . . . . . 17 (𝑁 = (#‘𝑥) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} ↔ 𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)}))
70 eqeq2 2662 . . . . . . . . . . . . . . . . 17 (𝑁 = (#‘𝑥) → ((#‘𝑈) = 𝑁 ↔ (#‘𝑈) = (#‘𝑥)))
7169, 70imbi12d 333 . . . . . . . . . . . . . . . 16 (𝑁 = (#‘𝑥) → ((𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁) ↔ (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘𝑥))))
7265, 71imbi12d 333 . . . . . . . . . . . . . . 15 (𝑁 = (#‘𝑥) → (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁)) ↔ ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘𝑥)))))
7363, 72imbi12d 333 . . . . . . . . . . . . . 14 (𝑁 = (#‘𝑥) → ((𝑥 ∈ (𝑁 ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁))) ↔ (𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘𝑥))))))
7473eqcoms 2659 . . . . . . . . . . . . 13 ((#‘𝑥) = 𝑁 → ((𝑥 ∈ (𝑁 ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁))) ↔ (𝑥 ∈ ((#‘𝑥) ClWWalksN 𝐺) → ((𝐺 ∈ UMGraph ∧ (#‘𝑥) ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^(#‘𝑥))𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = (#‘𝑥))))))
7574adantl 481 . . . . . . . . . . . 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 2748 . . . . . . . . 9 (𝑥𝑊 → ((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁)))
7978impcom 445 . . . . . . . 8 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0..^𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁))
8038, 79sylbid 230 . . . . . . 7 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → (𝑈 = {𝑦 ∈ Word (Vtx‘𝐺) ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁))
8114, 80sylbid 230 . . . . . 6 (((𝐺 ∈ UMGraph ∧ 𝑁 ∈ ℙ) ∧ 𝑥𝑊) → (𝑈 = {𝑦𝑊 ∣ ∃𝑛 ∈ (0...𝑁)𝑦 = (𝑥 cyclShift 𝑛)} → (#‘𝑈) = 𝑁))
8281rexlimdva 3060 . . . . 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 383  w3a 1054   = wceq 1523  wcel 2030  wne 2823  wrex 2942  {crab 2945  c0 3948  {copab 4745  cfv 5926  (class class class)co 6690   / cqs 7786  0cc0 9974  cn 11058  2c2 11108  0cn0 11330  cuz 11725  ...cfz 12364  ..^cfzo 12504  #chash 13157  Word cword 13323   cyclShift ccsh 13580  cprime 15432  Vtxcvtx 25919  UMGraphcumgr 26021   ClWWalksN cclwwlkn 26981
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1762  ax-4 1777  ax-5 1879  ax-6 1945  ax-7 1981  ax-8 2032  ax-9 2039  ax-10 2059  ax-11 2074  ax-12 2087  ax-13 2282  ax-ext 2631  ax-rep 4804  ax-sep 4814  ax-nul 4822  ax-pow 4873  ax-pr 4936  ax-un 6991  ax-inf2 8576  ax-cnex 10030  ax-resscn 10031  ax-1cn 10032  ax-icn 10033  ax-addcl 10034  ax-addrcl 10035  ax-mulcl 10036  ax-mulrcl 10037  ax-mulcom 10038  ax-addass 10039  ax-mulass 10040  ax-distr 10041  ax-i2m1 10042  ax-1ne0 10043  ax-1rid 10044  ax-rnegex 10045  ax-rrecex 10046  ax-cnre 10047  ax-pre-lttri 10048  ax-pre-lttrn 10049  ax-pre-ltadd 10050  ax-pre-mulgt0 10051  ax-pre-sup 10052
This theorem depends on definitions:  df-bi 197  df-or 384  df-an 385  df-3or 1055  df-3an 1056  df-tru 1526  df-fal 1529  df-ex 1745  df-nf 1750  df-sb 1938  df-eu 2502  df-mo 2503  df-clab 2638  df-cleq 2644  df-clel 2647  df-nfc 2782  df-ne 2824  df-nel 2927  df-ral 2946  df-rex 2947  df-reu 2948  df-rmo 2949  df-rab 2950  df-v 3233  df-sbc 3469  df-csb 3567  df-dif 3610  df-un 3612  df-in 3614  df-ss 3621  df-pss 3623  df-nul 3949  df-if 4120  df-pw 4193  df-sn 4211  df-pr 4213  df-tp 4215  df-op 4217  df-uni 4469  df-int 4508  df-iun 4554  df-disj 4653  df-br 4686  df-opab 4746  df-mpt 4763  df-tr 4786  df-id 5053  df-eprel 5058  df-po 5064  df-so 5065  df-fr 5102  df-se 5103  df-we 5104  df-xp 5149  df-rel 5150  df-cnv 5151  df-co 5152  df-dm 5153  df-rn 5154  df-res 5155  df-ima 5156  df-pred 5718  df-ord 5764  df-on 5765  df-lim 5766  df-suc 5767  df-iota 5889  df-fun 5928  df-fn 5929  df-f 5930  df-f1 5931  df-fo 5932  df-f1o 5933  df-fv 5934  df-isom 5935  df-riota 6651  df-ov 6693  df-oprab 6694  df-mpt2 6695  df-om 7108  df-1st 7210  df-2nd 7211  df-wrecs 7452  df-recs 7513  df-rdg 7551  df-1o 7605  df-2o 7606  df-oadd 7609  df-er 7787  df-ec 7789  df-qs 7793  df-map 7901  df-pm 7902  df-en 7998  df-dom 7999  df-sdom 8000  df-fin 8001  df-sup 8389  df-inf 8390  df-oi 8456  df-card 8803  df-cda 9028  df-pnf 10114  df-mnf 10115  df-xr 10116  df-ltxr 10117  df-le 10118  df-sub 10306  df-neg 10307  df-div 10723  df-nn 11059  df-2 11117  df-3 11118  df-n0 11331  df-xnn0 11402  df-z 11416  df-uz 11726  df-rp 11871  df-ico 12219  df-fz 12365  df-fzo 12505  df-fl 12633  df-mod 12709  df-seq 12842  df-exp 12901  df-hash 13158  df-word 13331  df-lsw 13332  df-concat 13333  df-substr 13335  df-reps 13338  df-csh 13581  df-cj 13883  df-re 13884  df-im 13885  df-sqrt 14019  df-abs 14020  df-clim 14263  df-sum 14461  df-dvds 15028  df-gcd 15264  df-prm 15433  df-phi 15518  df-edg 25985  df-umgr 26023  df-clwwlk 26950  df-clwwlkn 26983
This theorem is referenced by:  fusgrhashclwwlkn  27043
  Copyright terms: Public domain W3C validator