Proof of Theorem cusgrsize2inds
Step | Hyp | Ref
| Expression |
1 | | cusgrsizeindb0.v |
. . . . 5
⊢ 𝑉 = (Vtx‘𝐺) |
2 | 1 | fvexi 6770 |
. . . 4
⊢ 𝑉 ∈ V |
3 | | hashnn0n0nn 14034 |
. . . . . . . 8
⊢ (((𝑉 ∈ V ∧ 𝑌 ∈ ℕ0)
∧ ((♯‘𝑉) =
𝑌 ∧ 𝑁 ∈ 𝑉)) → 𝑌 ∈ ℕ) |
4 | 3 | anassrs 467 |
. . . . . . 7
⊢ ((((𝑉 ∈ V ∧ 𝑌 ∈ ℕ0)
∧ (♯‘𝑉) =
𝑌) ∧ 𝑁 ∈ 𝑉) → 𝑌 ∈ ℕ) |
5 | | simplll 771 |
. . . . . . . . . . 11
⊢ ((((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) → 𝑉 ∈ V) |
6 | | simplr 765 |
. . . . . . . . . . 11
⊢ ((((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) → 𝑁 ∈ 𝑉) |
7 | | eleq1 2826 |
. . . . . . . . . . . . . . 15
⊢ (𝑌 = (♯‘𝑉) → (𝑌 ∈ ℕ ↔ (♯‘𝑉) ∈
ℕ)) |
8 | 7 | eqcoms 2746 |
. . . . . . . . . . . . . 14
⊢
((♯‘𝑉) =
𝑌 → (𝑌 ∈ ℕ ↔ (♯‘𝑉) ∈
ℕ)) |
9 | | nnm1nn0 12204 |
. . . . . . . . . . . . . 14
⊢
((♯‘𝑉)
∈ ℕ → ((♯‘𝑉) − 1) ∈
ℕ0) |
10 | 8, 9 | syl6bi 252 |
. . . . . . . . . . . . 13
⊢
((♯‘𝑉) =
𝑌 → (𝑌 ∈ ℕ → ((♯‘𝑉) − 1) ∈
ℕ0)) |
11 | 10 | ad2antlr 723 |
. . . . . . . . . . . 12
⊢ (((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ → ((♯‘𝑉) − 1) ∈
ℕ0)) |
12 | 11 | imp 406 |
. . . . . . . . . . 11
⊢ ((((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) →
((♯‘𝑉) −
1) ∈ ℕ0) |
13 | | nncn 11911 |
. . . . . . . . . . . . . . . 16
⊢
((♯‘𝑉)
∈ ℕ → (♯‘𝑉) ∈ ℂ) |
14 | | 1cnd 10901 |
. . . . . . . . . . . . . . . 16
⊢
((♯‘𝑉)
∈ ℕ → 1 ∈ ℂ) |
15 | 13, 14 | npcand 11266 |
. . . . . . . . . . . . . . 15
⊢
((♯‘𝑉)
∈ ℕ → (((♯‘𝑉) − 1) + 1) = (♯‘𝑉)) |
16 | 15 | eqcomd 2744 |
. . . . . . . . . . . . . 14
⊢
((♯‘𝑉)
∈ ℕ → (♯‘𝑉) = (((♯‘𝑉) − 1) + 1)) |
17 | 8, 16 | syl6bi 252 |
. . . . . . . . . . . . 13
⊢
((♯‘𝑉) =
𝑌 → (𝑌 ∈ ℕ → (♯‘𝑉) = (((♯‘𝑉) − 1) +
1))) |
18 | 17 | ad2antlr 723 |
. . . . . . . . . . . 12
⊢ (((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ → (♯‘𝑉) = (((♯‘𝑉) − 1) +
1))) |
19 | 18 | imp 406 |
. . . . . . . . . . 11
⊢ ((((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) → (♯‘𝑉) = (((♯‘𝑉) − 1) +
1)) |
20 | | hashdifsnp1 14138 |
. . . . . . . . . . . 12
⊢ ((𝑉 ∈ V ∧ 𝑁 ∈ 𝑉 ∧ ((♯‘𝑉) − 1) ∈ ℕ0)
→ ((♯‘𝑉) =
(((♯‘𝑉) −
1) + 1) → (♯‘(𝑉 ∖ {𝑁})) = ((♯‘𝑉) − 1))) |
21 | 20 | imp 406 |
. . . . . . . . . . 11
⊢ (((𝑉 ∈ V ∧ 𝑁 ∈ 𝑉 ∧ ((♯‘𝑉) − 1) ∈ ℕ0)
∧ (♯‘𝑉) =
(((♯‘𝑉) −
1) + 1)) → (♯‘(𝑉 ∖ {𝑁})) = ((♯‘𝑉) − 1)) |
22 | 5, 6, 12, 19, 21 | syl31anc 1371 |
. . . . . . . . . 10
⊢ ((((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) →
(♯‘(𝑉 ∖
{𝑁})) =
((♯‘𝑉) −
1)) |
23 | | oveq1 7262 |
. . . . . . . . . . . . 13
⊢
((♯‘(𝑉
∖ {𝑁})) =
((♯‘𝑉) −
1) → ((♯‘(𝑉 ∖ {𝑁}))C2) = (((♯‘𝑉) − 1)C2)) |
24 | 23 | eqeq2d 2749 |
. . . . . . . . . . . 12
⊢
((♯‘(𝑉
∖ {𝑁})) =
((♯‘𝑉) −
1) → ((♯‘𝐹) = ((♯‘(𝑉 ∖ {𝑁}))C2) ↔ (♯‘𝐹) = (((♯‘𝑉) −
1)C2))) |
25 | 8 | ad2antlr 723 |
. . . . . . . . . . . . . . 15
⊢ (((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ ↔ (♯‘𝑉) ∈
ℕ)) |
26 | | nnnn0 12170 |
. . . . . . . . . . . . . . . . . . . 20
⊢
((♯‘𝑉)
∈ ℕ → (♯‘𝑉) ∈
ℕ0) |
27 | | hashclb 14001 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝑉 ∈ V → (𝑉 ∈ Fin ↔
(♯‘𝑉) ∈
ℕ0)) |
28 | 26, 27 | syl5ibrcom 246 |
. . . . . . . . . . . . . . . . . . 19
⊢
((♯‘𝑉)
∈ ℕ → (𝑉
∈ V → 𝑉 ∈
Fin)) |
29 | | cusgrsizeindb0.e |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ 𝐸 = (Edg‘𝐺) |
30 | | cusgrsizeinds.f |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢ 𝐹 = {𝑒 ∈ 𝐸 ∣ 𝑁 ∉ 𝑒} |
31 | 1, 29, 30 | cusgrsizeinds 27722 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ ((𝐺 ∈ ComplUSGraph ∧ 𝑉 ∈ Fin ∧ 𝑁 ∈ 𝑉) → (♯‘𝐸) = (((♯‘𝑉) − 1) + (♯‘𝐹))) |
32 | | oveq2 7263 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (((♯‘𝑉) − 1) + (♯‘𝐹)) = (((♯‘𝑉) − 1) +
(((♯‘𝑉) −
1)C2))) |
33 | 32 | eqeq2d 2749 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → ((♯‘𝐸) = (((♯‘𝑉) − 1) + (♯‘𝐹)) ↔ (♯‘𝐸) = (((♯‘𝑉) − 1) +
(((♯‘𝑉) −
1)C2)))) |
34 | 33 | adantl 481 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢
(((♯‘𝑉)
∈ ℕ ∧ (♯‘𝐹) = (((♯‘𝑉) − 1)C2)) →
((♯‘𝐸) =
(((♯‘𝑉) −
1) + (♯‘𝐹))
↔ (♯‘𝐸) =
(((♯‘𝑉) −
1) + (((♯‘𝑉)
− 1)C2)))) |
35 | | bcn2m1 13966 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 28
⊢
((♯‘𝑉)
∈ ℕ → (((♯‘𝑉) − 1) + (((♯‘𝑉) − 1)C2)) =
((♯‘𝑉)C2)) |
36 | 35 | eqeq2d 2749 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢
((♯‘𝑉)
∈ ℕ → ((♯‘𝐸) = (((♯‘𝑉) − 1) + (((♯‘𝑉) − 1)C2)) ↔
(♯‘𝐸) =
((♯‘𝑉)C2))) |
37 | 36 | biimpd 228 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢
((♯‘𝑉)
∈ ℕ → ((♯‘𝐸) = (((♯‘𝑉) − 1) + (((♯‘𝑉) − 1)C2)) →
(♯‘𝐸) =
((♯‘𝑉)C2))) |
38 | 37 | adantr 480 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢
(((♯‘𝑉)
∈ ℕ ∧ (♯‘𝐹) = (((♯‘𝑉) − 1)C2)) →
((♯‘𝐸) =
(((♯‘𝑉) −
1) + (((♯‘𝑉)
− 1)C2)) → (♯‘𝐸) = ((♯‘𝑉)C2))) |
39 | 34, 38 | sylbid 239 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢
(((♯‘𝑉)
∈ ℕ ∧ (♯‘𝐹) = (((♯‘𝑉) − 1)C2)) →
((♯‘𝐸) =
(((♯‘𝑉) −
1) + (♯‘𝐹))
→ (♯‘𝐸) =
((♯‘𝑉)C2))) |
40 | 39 | ex 412 |
. . . . . . . . . . . . . . . . . . . . . . 23
⊢
((♯‘𝑉)
∈ ℕ → ((♯‘𝐹) = (((♯‘𝑉) − 1)C2) → ((♯‘𝐸) = (((♯‘𝑉) − 1) +
(♯‘𝐹)) →
(♯‘𝐸) =
((♯‘𝑉)C2)))) |
41 | 40 | com3r 87 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢
((♯‘𝐸) =
(((♯‘𝑉) −
1) + (♯‘𝐹))
→ ((♯‘𝑉)
∈ ℕ → ((♯‘𝐹) = (((♯‘𝑉) − 1)C2) → (♯‘𝐸) = ((♯‘𝑉)C2)))) |
42 | 31, 41 | syl 17 |
. . . . . . . . . . . . . . . . . . . . 21
⊢ ((𝐺 ∈ ComplUSGraph ∧ 𝑉 ∈ Fin ∧ 𝑁 ∈ 𝑉) → ((♯‘𝑉) ∈ ℕ →
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (♯‘𝐸) = ((♯‘𝑉)C2)))) |
43 | 42 | 3exp 1117 |
. . . . . . . . . . . . . . . . . . . 20
⊢ (𝐺 ∈ ComplUSGraph →
(𝑉 ∈ Fin → (𝑁 ∈ 𝑉 → ((♯‘𝑉) ∈ ℕ →
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (♯‘𝐸) = ((♯‘𝑉)C2)))))) |
44 | 43 | com14 96 |
. . . . . . . . . . . . . . . . . . 19
⊢
((♯‘𝑉)
∈ ℕ → (𝑉
∈ Fin → (𝑁 ∈
𝑉 → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (♯‘𝐸) = ((♯‘𝑉)C2)))))) |
45 | 28, 44 | syldc 48 |
. . . . . . . . . . . . . . . . . 18
⊢ (𝑉 ∈ V →
((♯‘𝑉) ∈
ℕ → (𝑁 ∈
𝑉 → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (♯‘𝐸) = ((♯‘𝑉)C2)))))) |
46 | 45 | com23 86 |
. . . . . . . . . . . . . . . . 17
⊢ (𝑉 ∈ V → (𝑁 ∈ 𝑉 → ((♯‘𝑉) ∈ ℕ → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (♯‘𝐸) = ((♯‘𝑉)C2)))))) |
47 | 46 | adantr 480 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) → (𝑁 ∈ 𝑉 → ((♯‘𝑉) ∈ ℕ → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (♯‘𝐸) = ((♯‘𝑉)C2)))))) |
48 | 47 | imp 406 |
. . . . . . . . . . . . . . 15
⊢ (((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) → ((♯‘𝑉) ∈ ℕ → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (♯‘𝐸) = ((♯‘𝑉)C2))))) |
49 | 25, 48 | sylbid 239 |
. . . . . . . . . . . . . 14
⊢ (((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (♯‘𝐸) = ((♯‘𝑉)C2))))) |
50 | 49 | imp 406 |
. . . . . . . . . . . . 13
⊢ ((((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (♯‘𝐸) = ((♯‘𝑉)C2)))) |
51 | 50 | com13 88 |
. . . . . . . . . . . 12
⊢
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (𝐺 ∈
ComplUSGraph → ((((𝑉
∈ V ∧ (♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) → (♯‘𝐸) = ((♯‘𝑉)C2)))) |
52 | 24, 51 | syl6bi 252 |
. . . . . . . . . . 11
⊢
((♯‘(𝑉
∖ {𝑁})) =
((♯‘𝑉) −
1) → ((♯‘𝐹) = ((♯‘(𝑉 ∖ {𝑁}))C2) → (𝐺 ∈ ComplUSGraph → ((((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) → (♯‘𝐸) = ((♯‘𝑉)C2))))) |
53 | 52 | com24 95 |
. . . . . . . . . 10
⊢
((♯‘(𝑉
∖ {𝑁})) =
((♯‘𝑉) −
1) → ((((𝑉 ∈ V
∧ (♯‘𝑉) =
𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
((♯‘(𝑉 ∖
{𝑁}))C2) →
(♯‘𝐸) =
((♯‘𝑉)C2))))) |
54 | 22, 53 | mpcom 38 |
. . . . . . . . 9
⊢ ((((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
((♯‘(𝑉 ∖
{𝑁}))C2) →
(♯‘𝐸) =
((♯‘𝑉)C2)))) |
55 | 54 | ex 412 |
. . . . . . . 8
⊢ (((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
((♯‘(𝑉 ∖
{𝑁}))C2) →
(♯‘𝐸) =
((♯‘𝑉)C2))))) |
56 | 55 | adantllr 715 |
. . . . . . 7
⊢ ((((𝑉 ∈ V ∧ 𝑌 ∈ ℕ0)
∧ (♯‘𝑉) =
𝑌) ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
((♯‘(𝑉 ∖
{𝑁}))C2) →
(♯‘𝐸) =
((♯‘𝑉)C2))))) |
57 | 4, 56 | mpd 15 |
. . . . . 6
⊢ ((((𝑉 ∈ V ∧ 𝑌 ∈ ℕ0)
∧ (♯‘𝑉) =
𝑌) ∧ 𝑁 ∈ 𝑉) → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
((♯‘(𝑉 ∖
{𝑁}))C2) →
(♯‘𝐸) =
((♯‘𝑉)C2)))) |
58 | 57 | exp41 434 |
. . . . 5
⊢ (𝑉 ∈ V → (𝑌 ∈ ℕ0
→ ((♯‘𝑉) =
𝑌 → (𝑁 ∈ 𝑉 → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
((♯‘(𝑉 ∖
{𝑁}))C2) →
(♯‘𝐸) =
((♯‘𝑉)C2))))))) |
59 | 58 | com25 99 |
. . . 4
⊢ (𝑉 ∈ V → (𝐺 ∈ ComplUSGraph →
((♯‘𝑉) = 𝑌 → (𝑁 ∈ 𝑉 → (𝑌 ∈ ℕ0 →
((♯‘𝐹) =
((♯‘(𝑉 ∖
{𝑁}))C2) →
(♯‘𝐸) =
((♯‘𝑉)C2))))))) |
60 | 2, 59 | ax-mp 5 |
. . 3
⊢ (𝐺 ∈ ComplUSGraph →
((♯‘𝑉) = 𝑌 → (𝑁 ∈ 𝑉 → (𝑌 ∈ ℕ0 →
((♯‘𝐹) =
((♯‘(𝑉 ∖
{𝑁}))C2) →
(♯‘𝐸) =
((♯‘𝑉)C2)))))) |
61 | 60 | 3imp 1109 |
. 2
⊢ ((𝐺 ∈ ComplUSGraph ∧
(♯‘𝑉) = 𝑌 ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ0 →
((♯‘𝐹) =
((♯‘(𝑉 ∖
{𝑁}))C2) →
(♯‘𝐸) =
((♯‘𝑉)C2)))) |
62 | 61 | com12 32 |
1
⊢ (𝑌 ∈ ℕ0
→ ((𝐺 ∈
ComplUSGraph ∧ (♯‘𝑉) = 𝑌 ∧ 𝑁 ∈ 𝑉) → ((♯‘𝐹) = ((♯‘(𝑉 ∖ {𝑁}))C2) → (♯‘𝐸) = ((♯‘𝑉)C2)))) |