Proof of Theorem cusgrsize2inds
Step | Hyp | Ref
| Expression |
1 | | cusgrsizeindb0.v |
. . . . 5
⊢ 𝑉 = (Vtx‘𝐺) |
2 | 1 | fvexi 6788 |
. . . 4
⊢ 𝑉 ∈ V |
3 | | hashnn0n0nn 14106 |
. . . . . . . 8
⊢ (((𝑉 ∈ V ∧ 𝑌 ∈ ℕ0)
∧ ((♯‘𝑉) =
𝑌 ∧ 𝑁 ∈ 𝑉)) → 𝑌 ∈ ℕ) |
4 | 3 | anassrs 468 |
. . . . . . 7
⊢ ((((𝑉 ∈ V ∧ 𝑌 ∈ ℕ0)
∧ (♯‘𝑉) =
𝑌) ∧ 𝑁 ∈ 𝑉) → 𝑌 ∈ ℕ) |
5 | | simplll 772 |
. . . . . . . . . . 11
⊢ ((((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) → 𝑉 ∈ V) |
6 | | simplr 766 |
. . . . . . . . . . 11
⊢ ((((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) → 𝑁 ∈ 𝑉) |
7 | | eleq1 2826 |
. . . . . . . . . . . . . . 15
⊢ (𝑌 = (♯‘𝑉) → (𝑌 ∈ ℕ ↔ (♯‘𝑉) ∈
ℕ)) |
8 | 7 | eqcoms 2746 |
. . . . . . . . . . . . . 14
⊢
((♯‘𝑉) =
𝑌 → (𝑌 ∈ ℕ ↔ (♯‘𝑉) ∈
ℕ)) |
9 | | nnm1nn0 12274 |
. . . . . . . . . . . . . 14
⊢
((♯‘𝑉)
∈ ℕ → ((♯‘𝑉) − 1) ∈
ℕ0) |
10 | 8, 9 | syl6bi 252 |
. . . . . . . . . . . . 13
⊢
((♯‘𝑉) =
𝑌 → (𝑌 ∈ ℕ → ((♯‘𝑉) − 1) ∈
ℕ0)) |
11 | 10 | ad2antlr 724 |
. . . . . . . . . . . 12
⊢ (((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ → ((♯‘𝑉) − 1) ∈
ℕ0)) |
12 | 11 | imp 407 |
. . . . . . . . . . 11
⊢ ((((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) →
((♯‘𝑉) −
1) ∈ ℕ0) |
13 | | nncn 11981 |
. . . . . . . . . . . . . . . 16
⊢
((♯‘𝑉)
∈ ℕ → (♯‘𝑉) ∈ ℂ) |
14 | | 1cnd 10970 |
. . . . . . . . . . . . . . . 16
⊢
((♯‘𝑉)
∈ ℕ → 1 ∈ ℂ) |
15 | 13, 14 | npcand 11336 |
. . . . . . . . . . . . . . 15
⊢
((♯‘𝑉)
∈ ℕ → (((♯‘𝑉) − 1) + 1) = (♯‘𝑉)) |
16 | 15 | eqcomd 2744 |
. . . . . . . . . . . . . 14
⊢
((♯‘𝑉)
∈ ℕ → (♯‘𝑉) = (((♯‘𝑉) − 1) + 1)) |
17 | 8, 16 | syl6bi 252 |
. . . . . . . . . . . . 13
⊢
((♯‘𝑉) =
𝑌 → (𝑌 ∈ ℕ → (♯‘𝑉) = (((♯‘𝑉) − 1) +
1))) |
18 | 17 | ad2antlr 724 |
. . . . . . . . . . . 12
⊢ (((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ → (♯‘𝑉) = (((♯‘𝑉) − 1) +
1))) |
19 | 18 | imp 407 |
. . . . . . . . . . 11
⊢ ((((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) → (♯‘𝑉) = (((♯‘𝑉) − 1) +
1)) |
20 | | hashdifsnp1 14210 |
. . . . . . . . . . . 12
⊢ ((𝑉 ∈ V ∧ 𝑁 ∈ 𝑉 ∧ ((♯‘𝑉) − 1) ∈ ℕ0)
→ ((♯‘𝑉) =
(((♯‘𝑉) −
1) + 1) → (♯‘(𝑉 ∖ {𝑁})) = ((♯‘𝑉) − 1))) |
21 | 20 | imp 407 |
. . . . . . . . . . 11
⊢ (((𝑉 ∈ V ∧ 𝑁 ∈ 𝑉 ∧ ((♯‘𝑉) − 1) ∈ ℕ0)
∧ (♯‘𝑉) =
(((♯‘𝑉) −
1) + 1)) → (♯‘(𝑉 ∖ {𝑁})) = ((♯‘𝑉) − 1)) |
22 | 5, 6, 12, 19, 21 | syl31anc 1372 |
. . . . . . . . . 10
⊢ ((((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) ∧ 𝑌 ∈ ℕ) →
(♯‘(𝑉 ∖
{𝑁})) =
((♯‘𝑉) −
1)) |
23 | | oveq1 7282 |
. . . . . . . . . . . . 13
⊢
((♯‘(𝑉
∖ {𝑁})) =
((♯‘𝑉) −
1) → ((♯‘(𝑉 ∖ {𝑁}))C2) = (((♯‘𝑉) − 1)C2)) |
24 | 23 | eqeq2d 2749 |
. . . . . . . . . . . 12
⊢
((♯‘(𝑉
∖ {𝑁})) =
((♯‘𝑉) −
1) → ((♯‘𝐹) = ((♯‘(𝑉 ∖ {𝑁}))C2) ↔ (♯‘𝐹) = (((♯‘𝑉) −
1)C2))) |
25 | 8 | ad2antlr 724 |
. . . . . . . . . . . . . . 15
⊢ (((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ ↔ (♯‘𝑉) ∈
ℕ)) |
26 | | nnnn0 12240 |
. . . . . . . . . . . . . . . . . . . 20
⊢
((♯‘𝑉)
∈ ℕ → (♯‘𝑉) ∈
ℕ0) |
27 | | hashclb 14073 |
. . . . . . . . . . . . . . . . . . . 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 27819 |
. . . . . . . . . . . . . . . . . . . . . 22
⊢ ((𝐺 ∈ ComplUSGraph ∧ 𝑉 ∈ Fin ∧ 𝑁 ∈ 𝑉) → (♯‘𝐸) = (((♯‘𝑉) − 1) + (♯‘𝐹))) |
32 | | oveq2 7283 |
. . . . . . . . . . . . . . . . . . . . . . . . . . 27
⊢
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (((♯‘𝑉) − 1) + (♯‘𝐹)) = (((♯‘𝑉) − 1) +
(((♯‘𝑉) −
1)C2))) |
33 | 32 | eqeq2d 2749 |
. . . . . . . . . . . . . . . . . . . . . . . . . 26
⊢
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → ((♯‘𝐸) = (((♯‘𝑉) − 1) + (♯‘𝐹)) ↔ (♯‘𝐸) = (((♯‘𝑉) − 1) +
(((♯‘𝑉) −
1)C2)))) |
34 | 33 | adantl 482 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢
(((♯‘𝑉)
∈ ℕ ∧ (♯‘𝐹) = (((♯‘𝑉) − 1)C2)) →
((♯‘𝐸) =
(((♯‘𝑉) −
1) + (♯‘𝐹))
↔ (♯‘𝐸) =
(((♯‘𝑉) −
1) + (((♯‘𝑉)
− 1)C2)))) |
35 | | bcn2m1 14038 |
. . . . . . . . . . . . . . . . . . . . . . . . . . . 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 481 |
. . . . . . . . . . . . . . . . . . . . . . . . 25
⊢
(((♯‘𝑉)
∈ ℕ ∧ (♯‘𝐹) = (((♯‘𝑉) − 1)C2)) →
((♯‘𝐸) =
(((♯‘𝑉) −
1) + (((♯‘𝑉)
− 1)C2)) → (♯‘𝐸) = ((♯‘𝑉)C2))) |
39 | 34, 38 | sylbid 239 |
. . . . . . . . . . . . . . . . . . . . . . . 24
⊢
(((♯‘𝑉)
∈ ℕ ∧ (♯‘𝐹) = (((♯‘𝑉) − 1)C2)) →
((♯‘𝐸) =
(((♯‘𝑉) −
1) + (♯‘𝐹))
→ (♯‘𝐸) =
((♯‘𝑉)C2))) |
40 | 39 | ex 413 |
. . . . . . . . . . . . . . . . . . . . . . 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 1118 |
. . . . . . . . . . . . . . . . . . . 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 481 |
. . . . . . . . . . . . . . . 16
⊢ ((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) → (𝑁 ∈ 𝑉 → ((♯‘𝑉) ∈ ℕ → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (♯‘𝐸) = ((♯‘𝑉)C2)))))) |
48 | 47 | imp 407 |
. . . . . . . . . . . . . . 15
⊢ (((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) → ((♯‘𝑉) ∈ ℕ → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (♯‘𝐸) = ((♯‘𝑉)C2))))) |
49 | 25, 48 | sylbid 239 |
. . . . . . . . . . . . . 14
⊢ (((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
(((♯‘𝑉) −
1)C2) → (♯‘𝐸) = ((♯‘𝑉)C2))))) |
50 | 49 | imp 407 |
. . . . . . . . . . . . 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 413 |
. . . . . . . 8
⊢ (((𝑉 ∈ V ∧
(♯‘𝑉) = 𝑌) ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
((♯‘(𝑉 ∖
{𝑁}))C2) →
(♯‘𝐸) =
((♯‘𝑉)C2))))) |
56 | 55 | adantllr 716 |
. . . . . . 7
⊢ ((((𝑉 ∈ V ∧ 𝑌 ∈ ℕ0)
∧ (♯‘𝑉) =
𝑌) ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
((♯‘(𝑉 ∖
{𝑁}))C2) →
(♯‘𝐸) =
((♯‘𝑉)C2))))) |
57 | 4, 56 | mpd 15 |
. . . . . 6
⊢ ((((𝑉 ∈ V ∧ 𝑌 ∈ ℕ0)
∧ (♯‘𝑉) =
𝑌) ∧ 𝑁 ∈ 𝑉) → (𝐺 ∈ ComplUSGraph →
((♯‘𝐹) =
((♯‘(𝑉 ∖
{𝑁}))C2) →
(♯‘𝐸) =
((♯‘𝑉)C2)))) |
58 | 57 | exp41 435 |
. . . . 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 1110 |
. 2
⊢ ((𝐺 ∈ ComplUSGraph ∧
(♯‘𝑉) = 𝑌 ∧ 𝑁 ∈ 𝑉) → (𝑌 ∈ ℕ0 →
((♯‘𝐹) =
((♯‘(𝑉 ∖
{𝑁}))C2) →
(♯‘𝐸) =
((♯‘𝑉)C2)))) |
62 | 61 | com12 32 |
1
⊢ (𝑌 ∈ ℕ0
→ ((𝐺 ∈
ComplUSGraph ∧ (♯‘𝑉) = 𝑌 ∧ 𝑁 ∈ 𝑉) → ((♯‘𝐹) = ((♯‘(𝑉 ∖ {𝑁}))C2) → (♯‘𝐸) = ((♯‘𝑉)C2)))) |