ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  konigsberglem2 GIF version

Theorem konigsberglem2 16359
Description: Lemma 2 for konigsberg 16363: Vertex 1 has degree three. (Contributed by Mario Carneiro, 11-Mar-2015.) (Revised by Mario Carneiro, 28-Feb-2016.) (Revised by AV, 4-Mar-2021.)
Hypotheses
Ref Expression
konigsberg.v 𝑉 = (0...3)
konigsberg.e 𝐸 = ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩
konigsberg.g 𝐺 = ⟨𝑉, 𝐸
Assertion
Ref Expression
konigsberglem2 ((VtxDeg‘𝐺)‘1) = 3

Proof of Theorem konigsberglem2
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 0z 9490 . . . . . . 7 0 ∈ ℤ
2 3z 9508 . . . . . . 7 3 ∈ ℤ
3 fzfig 10693 . . . . . . 7 ((0 ∈ ℤ ∧ 3 ∈ ℤ) → (0...3) ∈ Fin)
41, 2, 3mp2an 426 . . . . . 6 (0...3) ∈ Fin
54elexi 2815 . . . . 5 (0...3) ∈ V
6 0nn0 9417 . . . . . . . . . 10 0 ∈ ℕ0
7 1nn0 9418 . . . . . . . . . 10 1 ∈ ℕ0
8 prexg 4301 . . . . . . . . . 10 ((0 ∈ ℕ0 ∧ 1 ∈ ℕ0) → {0, 1} ∈ V)
96, 7, 8mp2an 426 . . . . . . . . 9 {0, 1} ∈ V
109a1i 9 . . . . . . . 8 (⊤ → {0, 1} ∈ V)
11 2nn0 9419 . . . . . . . . . 10 2 ∈ ℕ0
12 prexg 4301 . . . . . . . . . 10 ((0 ∈ ℕ0 ∧ 2 ∈ ℕ0) → {0, 2} ∈ V)
136, 11, 12mp2an 426 . . . . . . . . 9 {0, 2} ∈ V
1413a1i 9 . . . . . . . 8 (⊤ → {0, 2} ∈ V)
15 3nn0 9420 . . . . . . . . . 10 3 ∈ ℕ0
16 prexg 4301 . . . . . . . . . 10 ((0 ∈ ℕ0 ∧ 3 ∈ ℕ0) → {0, 3} ∈ V)
176, 15, 16mp2an 426 . . . . . . . . 9 {0, 3} ∈ V
1817a1i 9 . . . . . . . 8 (⊤ → {0, 3} ∈ V)
19 prexg 4301 . . . . . . . . . 10 ((1 ∈ ℕ0 ∧ 2 ∈ ℕ0) → {1, 2} ∈ V)
207, 11, 19mp2an 426 . . . . . . . . 9 {1, 2} ∈ V
2120a1i 9 . . . . . . . 8 (⊤ → {1, 2} ∈ V)
22 prexg 4301 . . . . . . . . . 10 ((2 ∈ ℕ0 ∧ 3 ∈ ℕ0) → {2, 3} ∈ V)
2311, 15, 22mp2an 426 . . . . . . . . 9 {2, 3} ∈ V
2423a1i 9 . . . . . . . 8 (⊤ → {2, 3} ∈ V)
2510, 14, 18, 21, 21, 24s6cld 11367 . . . . . . 7 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ∈ Word V)
2625mptru 1406 . . . . . 6 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ∈ Word V
2726elexi 2815 . . . . 5 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ∈ V
285, 27opvtxfvi 15897 . . . 4 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩⟩) = (0...3)
2928eqcomi 2235 . . 3 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩⟩)
30 1le3 9355 . . . . 5 1 ≤ 3
31 elfz2nn0 10347 . . . . 5 (1 ∈ (0...3) ↔ (1 ∈ ℕ0 ∧ 3 ∈ ℕ0 ∧ 1 ≤ 3))
327, 15, 30, 31mpbir3an 1205 . . . 4 1 ∈ (0...3)
3332a1i 9 . . 3 (⊤ → 1 ∈ (0...3))
345, 27opiedgfvi 15898 . . . 4 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩⟩) = ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩
3534eqcomi 2235 . . 3 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩⟩)
3624s1cld 11203 . . . . . 6 (⊤ → ⟨“{2, 3}”⟩ ∈ Word V)
3736mptru 1406 . . . . 5 ⟨“{2, 3}”⟩ ∈ Word V
38 df-s7 11346 . . . . 5 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ = (⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ++ ⟨“{2, 3}”⟩)
39 eqid 2231 . . . . . 6 (0...3) = (0...3)
40 eqid 2231 . . . . . 6 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ = ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩
41 eqid 2231 . . . . . 6 ⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩⟩ = ⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩⟩
4239, 40, 41konigsbergssiedgwen 16356 . . . . 5 ((⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ∈ Word V ∧ ⟨“{2, 3}”⟩ ∈ Word V ∧ ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ = (⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ++ ⟨“{2, 3}”⟩)) → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
4326, 37, 38, 42mp3an 1373 . . . 4 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)}
4443a1i 9 . . 3 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
4510, 14, 18, 21, 21s5cld 11366 . . . . . . . 8 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ∈ Word V)
4645mptru 1406 . . . . . . 7 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ∈ Word V
4746elexi 2815 . . . . . 6 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ∈ V
485, 47opvtxfvi 15897 . . . . 5 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩) = (0...3)
4948eqcomi 2235 . . . 4 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩)
505, 47opiedgfvi 15898 . . . . 5 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩) = ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩
5150eqcomi 2235 . . . 4 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩)
5224, 24s2cld 11363 . . . . 5 (⊤ → ⟨“{2, 3} {2, 3}”⟩ ∈ Word V)
5310, 14, 18, 21, 21, 24, 24s5s2d 11390 . . . . 5 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ = (⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ++ ⟨“{2, 3} {2, 3}”⟩))
5439, 40, 41konigsbergssiedgwen 16356 . . . . 5 ((⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ∈ Word V ∧ ⟨“{2, 3} {2, 3}”⟩ ∈ Word V ∧ ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ = (⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ++ ⟨“{2, 3} {2, 3}”⟩)) → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
5545, 52, 53, 54syl3anc 1273 . . . 4 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
5610, 14, 18, 21s4cld 11365 . . . . . . . . . 10 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ∈ Word V)
5756mptru 1406 . . . . . . . . 9 ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ∈ Word V
5857elexi 2815 . . . . . . . 8 ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ∈ V
595, 58opvtxfvi 15897 . . . . . . 7 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩) = (0...3)
6059eqcomi 2235 . . . . . 6 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩)
615, 58opiedgfvi 15898 . . . . . . 7 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩) = ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩
6261eqcomi 2235 . . . . . 6 ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩)
6321, 24, 24s3cld 11364 . . . . . . 7 (⊤ → ⟨“{1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
6410, 14, 18, 21, 21, 24, 24s4s3d 11387 . . . . . . 7 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ = (⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ++ ⟨“{1, 2} {2, 3} {2, 3}”⟩))
6539, 40, 41konigsbergssiedgwen 16356 . . . . . . 7 ((⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ∈ Word V ∧ ⟨“{1, 2} {2, 3} {2, 3}”⟩ ∈ Word V ∧ ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ = (⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ++ ⟨“{1, 2} {2, 3} {2, 3}”⟩)) → ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
6656, 63, 64, 65syl3anc 1273 . . . . . 6 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
6710, 14, 18s3cld 11364 . . . . . . . . . . . 12 (⊤ → ⟨“{0, 1} {0, 2} {0, 3}”⟩ ∈ Word V)
6867mptru 1406 . . . . . . . . . . 11 ⟨“{0, 1} {0, 2} {0, 3}”⟩ ∈ Word V
6968elexi 2815 . . . . . . . . . 10 ⟨“{0, 1} {0, 2} {0, 3}”⟩ ∈ V
705, 69opvtxfvi 15897 . . . . . . . . 9 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩) = (0...3)
7170eqcomi 2235 . . . . . . . 8 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩)
725, 69opiedgfvi 15898 . . . . . . . . 9 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩) = ⟨“{0, 1} {0, 2} {0, 3}”⟩
7372eqcomi 2235 . . . . . . . 8 ⟨“{0, 1} {0, 2} {0, 3}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩)
7421, 21, 24, 24s4cld 11365 . . . . . . . . 9 (⊤ → ⟨“{1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
7510, 14, 18, 21, 21, 24, 24s3s4d 11388 . . . . . . . . 9 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ = (⟨“{0, 1} {0, 2} {0, 3}”⟩ ++ ⟨“{1, 2} {1, 2} {2, 3} {2, 3}”⟩))
7639, 40, 41konigsbergssiedgwen 16356 . . . . . . . . 9 ((⟨“{0, 1} {0, 2} {0, 3}”⟩ ∈ Word V ∧ ⟨“{1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V ∧ ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ = (⟨“{0, 1} {0, 2} {0, 3}”⟩ ++ ⟨“{1, 2} {1, 2} {2, 3} {2, 3}”⟩)) → ⟨“{0, 1} {0, 2} {0, 3}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
7767, 74, 75, 76syl3anc 1273 . . . . . . . 8 (⊤ → ⟨“{0, 1} {0, 2} {0, 3}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
7810, 14s2cld 11363 . . . . . . . . . . . . 13 (⊤ → ⟨“{0, 1} {0, 2}”⟩ ∈ Word V)
7978mptru 1406 . . . . . . . . . . . 12 ⟨“{0, 1} {0, 2}”⟩ ∈ Word V
8079elexi 2815 . . . . . . . . . . 11 ⟨“{0, 1} {0, 2}”⟩ ∈ V
815, 80opvtxfvi 15897 . . . . . . . . . 10 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩) = (0...3)
8281eqcomi 2235 . . . . . . . . 9 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩)
835, 80opiedgfvi 15898 . . . . . . . . . 10 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩) = ⟨“{0, 1} {0, 2}”⟩
8483eqcomi 2235 . . . . . . . . 9 ⟨“{0, 1} {0, 2}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩)
8518, 21, 21, 24, 24s5cld 11366 . . . . . . . . . 10 (⊤ → ⟨“{0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
8610, 14, 18, 21, 21, 24, 24s2s5d 11389 . . . . . . . . . 10 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ = (⟨“{0, 1} {0, 2}”⟩ ++ ⟨“{0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩))
8739, 40, 41konigsbergssiedgwen 16356 . . . . . . . . . 10 ((⟨“{0, 1} {0, 2}”⟩ ∈ Word V ∧ ⟨“{0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V ∧ ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ = (⟨“{0, 1} {0, 2}”⟩ ++ ⟨“{0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩)) → ⟨“{0, 1} {0, 2}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
8878, 85, 86, 87syl3anc 1273 . . . . . . . . 9 (⊤ → ⟨“{0, 1} {0, 2}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
8910s1cld 11203 . . . . . . . . . . . . . 14 (⊤ → ⟨“{0, 1}”⟩ ∈ Word V)
9089mptru 1406 . . . . . . . . . . . . 13 ⟨“{0, 1}”⟩ ∈ Word V
9190elexi 2815 . . . . . . . . . . . 12 ⟨“{0, 1}”⟩ ∈ V
925, 91opvtxfvi 15897 . . . . . . . . . . 11 (Vtx‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = (0...3)
9392eqcomi 2235 . . . . . . . . . 10 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1}”⟩⟩)
945, 91opiedgfvi 15898 . . . . . . . . . . 11 (iEdg‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = ⟨“{0, 1}”⟩
9594eqcomi 2235 . . . . . . . . . 10 ⟨“{0, 1}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1}”⟩⟩)
9614, 18, 21, 21, 24, 24s6cld 11367 . . . . . . . . . . 11 (⊤ → ⟨“{0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
9710, 14, 18, 21, 21, 24, 24s1s6d 11383 . . . . . . . . . . 11 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ = (⟨“{0, 1}”⟩ ++ ⟨“{0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩))
9839, 40, 41konigsbergssiedgwen 16356 . . . . . . . . . . 11 ((⟨“{0, 1}”⟩ ∈ Word V ∧ ⟨“{0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V ∧ ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ = (⟨“{0, 1}”⟩ ++ ⟨“{0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩)) → ⟨“{0, 1}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
9989, 96, 97, 98syl3anc 1273 . . . . . . . . . 10 (⊤ → ⟨“{0, 1}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
100 0ex 4216 . . . . . . . . . . . . . 14 ∅ ∈ V
1015, 100opvtxfvi 15897 . . . . . . . . . . . . 13 (Vtx‘⟨(0...3), ∅⟩) = (0...3)
102101eqcomi 2235 . . . . . . . . . . . 12 (0...3) = (Vtx‘⟨(0...3), ∅⟩)
1035, 100opiedgfvi 15898 . . . . . . . . . . . . 13 (iEdg‘⟨(0...3), ∅⟩) = ∅
104103eqcomi 2235 . . . . . . . . . . . 12 ∅ = (iEdg‘⟨(0...3), ∅⟩)
105 wrd0 11142 . . . . . . . . . . . . 13 ∅ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)}
106105a1i 9 . . . . . . . . . . . 12 (⊤ → ∅ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
107 eqidd 2232 . . . . . . . . . . . . 13 (⊤ → ∅ = ∅)
1084a1i 9 . . . . . . . . . . . . 13 (⊤ → (0...3) ∈ Fin)
109 upgr0eop 15992 . . . . . . . . . . . . . 14 ((0...3) ∈ Fin → ⟨(0...3), ∅⟩ ∈ UPGraph)
1104, 109mp1i 10 . . . . . . . . . . . . 13 (⊤ → ⟨(0...3), ∅⟩ ∈ UPGraph)
111102, 104, 33, 107, 108, 110vtxdgfi0e 16165 . . . . . . . . . . . 12 (⊤ → ((VtxDeg‘⟨(0...3), ∅⟩)‘1) = 0)
11292a1i 9 . . . . . . . . . . . 12 (⊤ → (Vtx‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = (0...3))
113 0elfz 10353 . . . . . . . . . . . . 13 (3 ∈ ℕ0 → 0 ∈ (0...3))
11415, 113mp1i 10 . . . . . . . . . . . 12 (⊤ → 0 ∈ (0...3))
115 0ne1 9210 . . . . . . . . . . . . 13 0 ≠ 1
116115a1i 9 . . . . . . . . . . . 12 (⊤ → 0 ≠ 1)
117 s1cl 11202 . . . . . . . . . . . . . . 15 ({0, 1} ∈ V → ⟨“{0, 1}”⟩ ∈ Word V)
118 ccatlid 11187 . . . . . . . . . . . . . . 15 (⟨“{0, 1}”⟩ ∈ Word V → (∅ ++ ⟨“{0, 1}”⟩) = ⟨“{0, 1}”⟩)
1199, 117, 118mp2b 8 . . . . . . . . . . . . . 14 (∅ ++ ⟨“{0, 1}”⟩) = ⟨“{0, 1}”⟩
12094, 119eqtr4i 2255 . . . . . . . . . . . . 13 (iEdg‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = (∅ ++ ⟨“{0, 1}”⟩)
121120a1i 9 . . . . . . . . . . . 12 (⊤ → (iEdg‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = (∅ ++ ⟨“{0, 1}”⟩))
122102, 33, 104, 106, 111, 112, 108, 114, 116, 121vdegp1cid 16186 . . . . . . . . . . 11 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1}”⟩⟩)‘1) = (0 + 1))
123 0p1e1 9257 . . . . . . . . . . 11 (0 + 1) = 1
124122, 123eqtrdi 2280 . . . . . . . . . 10 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1}”⟩⟩)‘1) = 1)
12581a1i 9 . . . . . . . . . 10 (⊤ → (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩) = (0...3))
126 2re 9213 . . . . . . . . . . . . 13 2 ∈ ℝ
127 3re 9217 . . . . . . . . . . . . 13 3 ∈ ℝ
128 2lt3 9314 . . . . . . . . . . . . 13 2 < 3
129126, 127, 128ltleii 8282 . . . . . . . . . . . 12 2 ≤ 3
130 elfz2nn0 10347 . . . . . . . . . . . 12 (2 ∈ (0...3) ↔ (2 ∈ ℕ0 ∧ 3 ∈ ℕ0 ∧ 2 ≤ 3))
13111, 15, 129, 130mpbir3an 1205 . . . . . . . . . . 11 2 ∈ (0...3)
132131a1i 9 . . . . . . . . . 10 (⊤ → 2 ∈ (0...3))
133 1ne2 9350 . . . . . . . . . . . 12 1 ≠ 2
134133necomi 2487 . . . . . . . . . . 11 2 ≠ 1
135134a1i 9 . . . . . . . . . 10 (⊤ → 2 ≠ 1)
136 0ne2 9349 . . . . . . . . . . 11 0 ≠ 2
137136a1i 9 . . . . . . . . . 10 (⊤ → 0 ≠ 2)
138 df-s2 11341 . . . . . . . . . . . 12 ⟨“{0, 1} {0, 2}”⟩ = (⟨“{0, 1}”⟩ ++ ⟨“{0, 2}”⟩)
13983, 138eqtri 2252 . . . . . . . . . . 11 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩) = (⟨“{0, 1}”⟩ ++ ⟨“{0, 2}”⟩)
140139a1i 9 . . . . . . . . . 10 (⊤ → (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩) = (⟨“{0, 1}”⟩ ++ ⟨“{0, 2}”⟩))
14193, 33, 95, 99, 124, 125, 108, 114, 116, 132, 135, 137, 140vdegp1aid 16184 . . . . . . . . 9 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩)‘1) = 1)
14270a1i 9 . . . . . . . . 9 (⊤ → (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩) = (0...3))
143 nn0fz0 10354 . . . . . . . . . . 11 (3 ∈ ℕ0 ↔ 3 ∈ (0...3))
14415, 143mpbi 145 . . . . . . . . . 10 3 ∈ (0...3)
145144a1i 9 . . . . . . . . 9 (⊤ → 3 ∈ (0...3))
146 1re 8178 . . . . . . . . . . 11 1 ∈ ℝ
147 1lt3 9315 . . . . . . . . . . 11 1 < 3
148146, 147gtneii 8275 . . . . . . . . . 10 3 ≠ 1
149148a1i 9 . . . . . . . . 9 (⊤ → 3 ≠ 1)
150 3ne0 9238 . . . . . . . . . . 11 3 ≠ 0
151150necomi 2487 . . . . . . . . . 10 0 ≠ 3
152151a1i 9 . . . . . . . . 9 (⊤ → 0 ≠ 3)
153 df-s3 11342 . . . . . . . . . . 11 ⟨“{0, 1} {0, 2} {0, 3}”⟩ = (⟨“{0, 1} {0, 2}”⟩ ++ ⟨“{0, 3}”⟩)
15472, 153eqtri 2252 . . . . . . . . . 10 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩) = (⟨“{0, 1} {0, 2}”⟩ ++ ⟨“{0, 3}”⟩)
155154a1i 9 . . . . . . . . 9 (⊤ → (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩) = (⟨“{0, 1} {0, 2}”⟩ ++ ⟨“{0, 3}”⟩))
15682, 33, 84, 88, 141, 142, 108, 114, 116, 145, 149, 152, 155vdegp1aid 16184 . . . . . . . 8 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩)‘1) = 1)
15759a1i 9 . . . . . . . 8 (⊤ → (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩) = (0...3))
158 df-s4 11343 . . . . . . . . . 10 ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ = (⟨“{0, 1} {0, 2} {0, 3}”⟩ ++ ⟨“{1, 2}”⟩)
15961, 158eqtri 2252 . . . . . . . . 9 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩) = (⟨“{0, 1} {0, 2} {0, 3}”⟩ ++ ⟨“{1, 2}”⟩)
160159a1i 9 . . . . . . . 8 (⊤ → (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩) = (⟨“{0, 1} {0, 2} {0, 3}”⟩ ++ ⟨“{1, 2}”⟩))
16171, 33, 73, 77, 156, 157, 108, 132, 135, 160vdegp1bid 16185 . . . . . . 7 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩)‘1) = (1 + 1))
162 1p1e2 9260 . . . . . . 7 (1 + 1) = 2
163161, 162eqtrdi 2280 . . . . . 6 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩)‘1) = 2)
16448a1i 9 . . . . . 6 (⊤ → (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩) = (0...3))
165 df-s5 11344 . . . . . . . 8 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ = (⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ++ ⟨“{1, 2}”⟩)
16650, 165eqtri 2252 . . . . . . 7 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩) = (⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ++ ⟨“{1, 2}”⟩)
167166a1i 9 . . . . . 6 (⊤ → (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩) = (⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ++ ⟨“{1, 2}”⟩))
16860, 33, 62, 66, 163, 164, 108, 132, 135, 167vdegp1bid 16185 . . . . 5 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩)‘1) = (2 + 1))
169 2p1e3 9277 . . . . 5 (2 + 1) = 3
170168, 169eqtrdi 2280 . . . 4 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩)‘1) = 3)
17128a1i 9 . . . 4 (⊤ → (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩⟩) = (0...3))
172126, 128ltneii 8276 . . . . 5 2 ≠ 3
173172a1i 9 . . . 4 (⊤ → 2 ≠ 3)
174 df-s6 11345 . . . . . 6 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ = (⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ++ ⟨“{2, 3}”⟩)
17534, 174eqtri 2252 . . . . 5 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩⟩) = (⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ++ ⟨“{2, 3}”⟩)
176175a1i 9 . . . 4 (⊤ → (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩⟩) = (⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ++ ⟨“{2, 3}”⟩))
17749, 33, 51, 55, 170, 171, 108, 132, 135, 145, 149, 173, 176vdegp1aid 16184 . . 3 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩⟩)‘1) = 3)
178 konigsberg.v . . . . 5 𝑉 = (0...3)
179 konigsberg.e . . . . 5 𝐸 = ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩
180 konigsberg.g . . . . 5 𝐺 = ⟨𝑉, 𝐸
181178, 179, 180konigsbergvtx 16352 . . . 4 (Vtx‘𝐺) = (0...3)
182181a1i 9 . . 3 (⊤ → (Vtx‘𝐺) = (0...3))
183178, 179, 180konigsbergiedg 16353 . . . . 5 (iEdg‘𝐺) = ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩
184183, 38eqtri 2252 . . . 4 (iEdg‘𝐺) = (⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ++ ⟨“{2, 3}”⟩)
185184a1i 9 . . 3 (⊤ → (iEdg‘𝐺) = (⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ++ ⟨“{2, 3}”⟩))
18629, 33, 35, 44, 177, 182, 108, 132, 135, 145, 149, 173, 185vdegp1aid 16184 . 2 (⊤ → ((VtxDeg‘𝐺)‘1) = 3)
187186mptru 1406 1 ((VtxDeg‘𝐺)‘1) = 3
Colors of variables: wff set class
Syntax hints:  wo 715   = wceq 1397  wtru 1398  wcel 2202  wne 2402  {crab 2514  Vcvv 2802  c0 3494  𝒫 cpw 3652  {cpr 3670  cop 3672   class class class wbr 4088  cfv 5326  (class class class)co 6018  1oc1o 6575  2oc2o 6576  cen 6907  Fincfn 6909  0cc0 8032  1c1 8033   + caddc 8035  cle 8215  2c2 9194  3c3 9195  0cn0 9402  cz 9479  ...cfz 10243  Word cword 11117   ++ cconcat 11171  ⟨“cs1 11196  ⟨“cs2 11334  ⟨“cs3 11335  ⟨“cs4 11336  ⟨“cs5 11337  ⟨“cs6 11338  ⟨“cs7 11339  Vtxcvtx 15882  iEdgciedg 15883  UPGraphcupgr 15961  VtxDegcvtxdg 16156
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 619  ax-in2 620  ax-io 716  ax-5 1495  ax-7 1496  ax-gen 1497  ax-ie1 1541  ax-ie2 1542  ax-8 1552  ax-10 1553  ax-11 1554  ax-i12 1555  ax-bndl 1557  ax-4 1558  ax-17 1574  ax-i9 1578  ax-ial 1582  ax-i5r 1583  ax-13 2204  ax-14 2205  ax-ext 2213  ax-coll 4204  ax-sep 4207  ax-nul 4215  ax-pow 4264  ax-pr 4299  ax-un 4530  ax-setind 4635  ax-iinf 4686  ax-cnex 8123  ax-resscn 8124  ax-1cn 8125  ax-1re 8126  ax-icn 8127  ax-addcl 8128  ax-addrcl 8129  ax-mulcl 8130  ax-addcom 8132  ax-mulcom 8133  ax-addass 8134  ax-mulass 8135  ax-distr 8136  ax-i2m1 8137  ax-0lt1 8138  ax-1rid 8139  ax-0id 8140  ax-rnegex 8141  ax-cnre 8143  ax-pre-ltirr 8144  ax-pre-ltwlin 8145  ax-pre-lttrn 8146  ax-pre-apti 8147  ax-pre-ltadd 8148
This theorem depends on definitions:  df-bi 117  df-dc 842  df-3or 1005  df-3an 1006  df-tru 1400  df-fal 1403  df-nf 1509  df-sb 1811  df-eu 2082  df-mo 2083  df-clab 2218  df-cleq 2224  df-clel 2227  df-nfc 2363  df-ne 2403  df-nel 2498  df-ral 2515  df-rex 2516  df-reu 2517  df-rab 2519  df-v 2804  df-sbc 3032  df-csb 3128  df-dif 3202  df-un 3204  df-in 3206  df-ss 3213  df-nul 3495  df-if 3606  df-pw 3654  df-sn 3675  df-pr 3676  df-op 3678  df-uni 3894  df-int 3929  df-iun 3972  df-br 4089  df-opab 4151  df-mpt 4152  df-tr 4188  df-id 4390  df-iord 4463  df-on 4465  df-ilim 4466  df-suc 4468  df-iom 4689  df-xp 4731  df-rel 4732  df-cnv 4733  df-co 4734  df-dm 4735  df-rn 4736  df-res 4737  df-ima 4738  df-iota 5286  df-fun 5328  df-fn 5329  df-f 5330  df-f1 5331  df-fo 5332  df-f1o 5333  df-fv 5334  df-riota 5971  df-ov 6021  df-oprab 6022  df-mpo 6023  df-1st 6303  df-2nd 6304  df-recs 6471  df-irdg 6536  df-frec 6557  df-1o 6582  df-2o 6583  df-oadd 6586  df-er 6702  df-en 6910  df-dom 6911  df-fin 6912  df-pnf 8216  df-mnf 8217  df-xr 8218  df-ltxr 8219  df-le 8220  df-sub 8352  df-neg 8353  df-inn 9144  df-2 9202  df-3 9203  df-4 9204  df-5 9205  df-6 9206  df-7 9207  df-8 9208  df-9 9209  df-n0 9403  df-z 9480  df-dec 9612  df-uz 9756  df-xadd 10008  df-fz 10244  df-fzo 10378  df-ihash 11039  df-word 11118  df-concat 11172  df-s1 11197  df-s2 11341  df-s3 11342  df-s4 11343  df-s5 11344  df-s6 11345  df-s7 11346  df-ndx 13103  df-slot 13104  df-base 13106  df-edgf 15875  df-vtx 15884  df-iedg 15885  df-upgren 15963  df-umgren 15964  df-vtxdg 16157
This theorem is referenced by:  konigsberglem4  16361
  Copyright terms: Public domain W3C validator