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

Theorem konigsberglem2 16610
Description: Lemma 2 for konigsberg 16614: 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 9605 . . . . . . 7 0 ∈ ℤ
2 3z 9623 . . . . . . 7 3 ∈ ℤ
3 fzfig 10816 . . . . . . 7 ((0 ∈ ℤ ∧ 3 ∈ ℤ) → (0...3) ∈ Fin)
41, 2, 3mp2an 426 . . . . . 6 (0...3) ∈ Fin
54elexi 2828 . . . . 5 (0...3) ∈ V
6 0nn0 9528 . . . . . . . . . 10 0 ∈ ℕ0
7 1nn0 9529 . . . . . . . . . 10 1 ∈ ℕ0
8 prexg 4330 . . . . . . . . . 10 ((0 ∈ ℕ0 ∧ 1 ∈ ℕ0) → {0, 1} ∈ V)
96, 7, 8mp2an 426 . . . . . . . . 9 {0, 1} ∈ V
109a1i 9 . . . . . . . 8 (⊤ → {0, 1} ∈ V)
11 2nn0 9530 . . . . . . . . . 10 2 ∈ ℕ0
12 prexg 4330 . . . . . . . . . 10 ((0 ∈ ℕ0 ∧ 2 ∈ ℕ0) → {0, 2} ∈ V)
136, 11, 12mp2an 426 . . . . . . . . 9 {0, 2} ∈ V
1413a1i 9 . . . . . . . 8 (⊤ → {0, 2} ∈ V)
15 3nn0 9531 . . . . . . . . . 10 3 ∈ ℕ0
16 prexg 4330 . . . . . . . . . 10 ((0 ∈ ℕ0 ∧ 3 ∈ ℕ0) → {0, 3} ∈ V)
176, 15, 16mp2an 426 . . . . . . . . 9 {0, 3} ∈ V
1817a1i 9 . . . . . . . 8 (⊤ → {0, 3} ∈ V)
19 prexg 4330 . . . . . . . . . 10 ((1 ∈ ℕ0 ∧ 2 ∈ ℕ0) → {1, 2} ∈ V)
207, 11, 19mp2an 426 . . . . . . . . 9 {1, 2} ∈ V
2120a1i 9 . . . . . . . 8 (⊤ → {1, 2} ∈ V)
22 prexg 4330 . . . . . . . . . 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 11499 . . . . . . 7 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ∈ Word V)
2625mptru 1407 . . . . . 6 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ∈ Word V
2726elexi 2828 . . . . 5 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ∈ V
285, 27opvtxfvi 16148 . . . 4 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩⟩) = (0...3)
2928eqcomi 2238 . . 3 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩⟩)
30 1le3 9466 . . . . 5 1 ≤ 3
31 elfz2nn0 10468 . . . . 5 (1 ∈ (0...3) ↔ (1 ∈ ℕ0 ∧ 3 ∈ ℕ0 ∧ 1 ≤ 3))
327, 15, 30, 31mpbir3an 1206 . . . 4 1 ∈ (0...3)
3332a1i 9 . . 3 (⊤ → 1 ∈ (0...3))
345, 27opiedgfvi 16149 . . . 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 2238 . . 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 11335 . . . . . 6 (⊤ → ⟨“{2, 3}”⟩ ∈ Word V)
3736mptru 1407 . . . . 5 ⟨“{2, 3}”⟩ ∈ Word V
38 df-s7 11478 . . . . 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 2234 . . . . . 6 (0...3) = (0...3)
40 eqid 2234 . . . . . 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 2234 . . . . . 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 16607 . . . . 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 1374 . . . 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 11498 . . . . . . . 8 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ∈ Word V)
4645mptru 1407 . . . . . . 7 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ∈ Word V
4746elexi 2828 . . . . . 6 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ∈ V
485, 47opvtxfvi 16148 . . . . 5 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩) = (0...3)
4948eqcomi 2238 . . . 4 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩)
505, 47opiedgfvi 16149 . . . . 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 2238 . . . 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 11495 . . . . 5 (⊤ → ⟨“{2, 3} {2, 3}”⟩ ∈ Word V)
5310, 14, 18, 21, 21, 24, 24s5s2d 11522 . . . . 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 16607 . . . . 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 1274 . . . 4 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
5610, 14, 18, 21s4cld 11497 . . . . . . . . . 10 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ∈ Word V)
5756mptru 1407 . . . . . . . . 9 ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ∈ Word V
5857elexi 2828 . . . . . . . 8 ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ∈ V
595, 58opvtxfvi 16148 . . . . . . 7 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩) = (0...3)
6059eqcomi 2238 . . . . . 6 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩)
615, 58opiedgfvi 16149 . . . . . . 7 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩) = ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩
6261eqcomi 2238 . . . . . 6 ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩)
6321, 24, 24s3cld 11496 . . . . . . 7 (⊤ → ⟨“{1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
6410, 14, 18, 21, 21, 24, 24s4s3d 11519 . . . . . . 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 16607 . . . . . . 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 1274 . . . . . 6 (⊤ → ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
6710, 14, 18s3cld 11496 . . . . . . . . . . . 12 (⊤ → ⟨“{0, 1} {0, 2} {0, 3}”⟩ ∈ Word V)
6867mptru 1407 . . . . . . . . . . 11 ⟨“{0, 1} {0, 2} {0, 3}”⟩ ∈ Word V
6968elexi 2828 . . . . . . . . . 10 ⟨“{0, 1} {0, 2} {0, 3}”⟩ ∈ V
705, 69opvtxfvi 16148 . . . . . . . . 9 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩) = (0...3)
7170eqcomi 2238 . . . . . . . 8 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩)
725, 69opiedgfvi 16149 . . . . . . . . 9 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩) = ⟨“{0, 1} {0, 2} {0, 3}”⟩
7372eqcomi 2238 . . . . . . . 8 ⟨“{0, 1} {0, 2} {0, 3}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩)
7421, 21, 24, 24s4cld 11497 . . . . . . . . 9 (⊤ → ⟨“{1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
7510, 14, 18, 21, 21, 24, 24s3s4d 11520 . . . . . . . . 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 16607 . . . . . . . . 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 1274 . . . . . . . 8 (⊤ → ⟨“{0, 1} {0, 2} {0, 3}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
7810, 14s2cld 11495 . . . . . . . . . . . . 13 (⊤ → ⟨“{0, 1} {0, 2}”⟩ ∈ Word V)
7978mptru 1407 . . . . . . . . . . . 12 ⟨“{0, 1} {0, 2}”⟩ ∈ Word V
8079elexi 2828 . . . . . . . . . . 11 ⟨“{0, 1} {0, 2}”⟩ ∈ V
815, 80opvtxfvi 16148 . . . . . . . . . 10 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩) = (0...3)
8281eqcomi 2238 . . . . . . . . 9 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩)
835, 80opiedgfvi 16149 . . . . . . . . . 10 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩) = ⟨“{0, 1} {0, 2}”⟩
8483eqcomi 2238 . . . . . . . . 9 ⟨“{0, 1} {0, 2}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩)
8518, 21, 21, 24, 24s5cld 11498 . . . . . . . . . 10 (⊤ → ⟨“{0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
8610, 14, 18, 21, 21, 24, 24s2s5d 11521 . . . . . . . . . 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 16607 . . . . . . . . . 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 1274 . . . . . . . . 9 (⊤ → ⟨“{0, 1} {0, 2}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
8910s1cld 11335 . . . . . . . . . . . . . 14 (⊤ → ⟨“{0, 1}”⟩ ∈ Word V)
9089mptru 1407 . . . . . . . . . . . . 13 ⟨“{0, 1}”⟩ ∈ Word V
9190elexi 2828 . . . . . . . . . . . 12 ⟨“{0, 1}”⟩ ∈ V
925, 91opvtxfvi 16148 . . . . . . . . . . 11 (Vtx‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = (0...3)
9392eqcomi 2238 . . . . . . . . . 10 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1}”⟩⟩)
945, 91opiedgfvi 16149 . . . . . . . . . . 11 (iEdg‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = ⟨“{0, 1}”⟩
9594eqcomi 2238 . . . . . . . . . 10 ⟨“{0, 1}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1}”⟩⟩)
9614, 18, 21, 21, 24, 24s6cld 11499 . . . . . . . . . . 11 (⊤ → ⟨“{0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
9710, 14, 18, 21, 21, 24, 24s1s6d 11515 . . . . . . . . . . 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 16607 . . . . . . . . . . 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 1274 . . . . . . . . . 10 (⊤ → ⟨“{0, 1}”⟩ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
100 0ex 4242 . . . . . . . . . . . . . 14 ∅ ∈ V
1015, 100opvtxfvi 16148 . . . . . . . . . . . . 13 (Vtx‘⟨(0...3), ∅⟩) = (0...3)
102101eqcomi 2238 . . . . . . . . . . . 12 (0...3) = (Vtx‘⟨(0...3), ∅⟩)
1035, 100opiedgfvi 16149 . . . . . . . . . . . . 13 (iEdg‘⟨(0...3), ∅⟩) = ∅
104103eqcomi 2238 . . . . . . . . . . . 12 ∅ = (iEdg‘⟨(0...3), ∅⟩)
105 wrd0 11274 . . . . . . . . . . . . 13 ∅ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)}
106105a1i 9 . . . . . . . . . . . 12 (⊤ → ∅ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
107 eqidd 2235 . . . . . . . . . . . . 13 (⊤ → ∅ = ∅)
1084a1i 9 . . . . . . . . . . . . 13 (⊤ → (0...3) ∈ Fin)
109 upgr0eop 16243 . . . . . . . . . . . . . 14 ((0...3) ∈ Fin → ⟨(0...3), ∅⟩ ∈ UPGraph)
1104, 109mp1i 10 . . . . . . . . . . . . 13 (⊤ → ⟨(0...3), ∅⟩ ∈ UPGraph)
111102, 104, 33, 107, 108, 110vtxdgfi0e 16416 . . . . . . . . . . . 12 (⊤ → ((VtxDeg‘⟨(0...3), ∅⟩)‘1) = 0)
11292a1i 9 . . . . . . . . . . . 12 (⊤ → (Vtx‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = (0...3))
113 0elfz 10474 . . . . . . . . . . . . 13 (3 ∈ ℕ0 → 0 ∈ (0...3))
11415, 113mp1i 10 . . . . . . . . . . . 12 (⊤ → 0 ∈ (0...3))
115 0ne1 9321 . . . . . . . . . . . . 13 0 ≠ 1
116115a1i 9 . . . . . . . . . . . 12 (⊤ → 0 ≠ 1)
117 s1cl 11334 . . . . . . . . . . . . . . 15 ({0, 1} ∈ V → ⟨“{0, 1}”⟩ ∈ Word V)
118 ccatlid 11319 . . . . . . . . . . . . . . 15 (⟨“{0, 1}”⟩ ∈ Word V → (∅ ++ ⟨“{0, 1}”⟩) = ⟨“{0, 1}”⟩)
1199, 117, 118mp2b 8 . . . . . . . . . . . . . 14 (∅ ++ ⟨“{0, 1}”⟩) = ⟨“{0, 1}”⟩
12094, 119eqtr4i 2258 . . . . . . . . . . . . 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 16437 . . . . . . . . . . 11 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1}”⟩⟩)‘1) = (0 + 1))
123 0p1e1 9368 . . . . . . . . . . 11 (0 + 1) = 1
124122, 123eqtrdi 2283 . . . . . . . . . 10 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1}”⟩⟩)‘1) = 1)
12581a1i 9 . . . . . . . . . 10 (⊤ → (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩) = (0...3))
126 2re 9324 . . . . . . . . . . . . 13 2 ∈ ℝ
127 3re 9328 . . . . . . . . . . . . 13 3 ∈ ℝ
128 2lt3 9425 . . . . . . . . . . . . 13 2 < 3
129126, 127, 128ltleii 8392 . . . . . . . . . . . 12 2 ≤ 3
130 elfz2nn0 10468 . . . . . . . . . . . 12 (2 ∈ (0...3) ↔ (2 ∈ ℕ0 ∧ 3 ∈ ℕ0 ∧ 2 ≤ 3))
13111, 15, 129, 130mpbir3an 1206 . . . . . . . . . . 11 2 ∈ (0...3)
132131a1i 9 . . . . . . . . . 10 (⊤ → 2 ∈ (0...3))
133 1ne2 9461 . . . . . . . . . . . 12 1 ≠ 2
134133necomi 2499 . . . . . . . . . . 11 2 ≠ 1
135134a1i 9 . . . . . . . . . 10 (⊤ → 2 ≠ 1)
136 0ne2 9460 . . . . . . . . . . 11 0 ≠ 2
137136a1i 9 . . . . . . . . . 10 (⊤ → 0 ≠ 2)
138 df-s2 11473 . . . . . . . . . . . 12 ⟨“{0, 1} {0, 2}”⟩ = (⟨“{0, 1}”⟩ ++ ⟨“{0, 2}”⟩)
13983, 138eqtri 2255 . . . . . . . . . . 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 16435 . . . . . . . . 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 10475 . . . . . . . . . . 11 (3 ∈ ℕ0 ↔ 3 ∈ (0...3))
14415, 143mpbi 145 . . . . . . . . . 10 3 ∈ (0...3)
145144a1i 9 . . . . . . . . 9 (⊤ → 3 ∈ (0...3))
146 1re 8289 . . . . . . . . . . 11 1 ∈ ℝ
147 1lt3 9426 . . . . . . . . . . 11 1 < 3
148146, 147gtneii 8385 . . . . . . . . . 10 3 ≠ 1
149148a1i 9 . . . . . . . . 9 (⊤ → 3 ≠ 1)
150 3ne0 9349 . . . . . . . . . . 11 3 ≠ 0
151150necomi 2499 . . . . . . . . . 10 0 ≠ 3
152151a1i 9 . . . . . . . . 9 (⊤ → 0 ≠ 3)
153 df-s3 11474 . . . . . . . . . . 11 ⟨“{0, 1} {0, 2} {0, 3}”⟩ = (⟨“{0, 1} {0, 2}”⟩ ++ ⟨“{0, 3}”⟩)
15472, 153eqtri 2255 . . . . . . . . . 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 16435 . . . . . . . 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 11475 . . . . . . . . . 10 ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ = (⟨“{0, 1} {0, 2} {0, 3}”⟩ ++ ⟨“{1, 2}”⟩)
15961, 158eqtri 2255 . . . . . . . . 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 16436 . . . . . . 7 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩)‘1) = (1 + 1))
162 1p1e2 9371 . . . . . . 7 (1 + 1) = 2
163161, 162eqtrdi 2283 . . . . . 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 11476 . . . . . . . 8 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ = (⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ++ ⟨“{1, 2}”⟩)
16650, 165eqtri 2255 . . . . . . 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 16436 . . . . 5 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩)‘1) = (2 + 1))
169 2p1e3 9388 . . . . 5 (2 + 1) = 3
170168, 169eqtrdi 2283 . . . 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 8386 . . . . 5 2 ≠ 3
173172a1i 9 . . . 4 (⊤ → 2 ≠ 3)
174 df-s6 11477 . . . . . 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 2255 . . . . 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 16435 . . 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 16603 . . . 4 (Vtx‘𝐺) = (0...3)
182181a1i 9 . . 3 (⊤ → (Vtx‘𝐺) = (0...3))
183178, 179, 180konigsbergiedg 16604 . . . . 5 (iEdg‘𝐺) = ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩
184183, 38eqtri 2255 . . . 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 16435 . 2 (⊤ → ((VtxDeg‘𝐺)‘1) = 3)
187186mptru 1407 1 ((VtxDeg‘𝐺)‘1) = 3
Colors of variables: wff set class
Syntax hints:  wo 716   = wceq 1398  wtru 1399  wcel 2205  wne 2414  {crab 2526  Vcvv 2815  c0 3512  𝒫 cpw 3674  {cpr 3695  cop 3697   class class class wbr 4114  cfv 5357  (class class class)co 6058  1oc1o 6653  2oc2o 6654  cen 6986  Fincfn 6988  0cc0 8143  1c1 8144   + caddc 8146  cle 8325  2c2 9305  3c3 9306  0cn0 9513  cz 9594  ...cfz 10361  Word cword 11249   ++ cconcat 11303  ⟨“cs1 11328  ⟨“cs2 11466  ⟨“cs3 11467  ⟨“cs4 11468  ⟨“cs5 11469  ⟨“cs6 11470  ⟨“cs7 11471  Vtxcvtx 16133  iEdgciedg 16134  UPGraphcupgr 16212  VtxDegcvtxdg 16407
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 717  ax-5 1496  ax-7 1497  ax-gen 1498  ax-ie1 1542  ax-ie2 1543  ax-8 1553  ax-10 1554  ax-11 1555  ax-i12 1556  ax-bndl 1558  ax-4 1559  ax-17 1575  ax-i9 1579  ax-ial 1583  ax-i5r 1584  ax-13 2207  ax-14 2208  ax-ext 2216  ax-coll 4230  ax-sep 4233  ax-nul 4241  ax-pow 4292  ax-pr 4327  ax-un 4559  ax-setind 4664  ax-iinf 4715  ax-cnex 8234  ax-resscn 8235  ax-1cn 8236  ax-1re 8237  ax-icn 8238  ax-addcl 8239  ax-addrcl 8240  ax-mulcl 8241  ax-addcom 8243  ax-mulcom 8244  ax-addass 8245  ax-mulass 8246  ax-distr 8247  ax-i2m1 8248  ax-0lt1 8249  ax-1rid 8250  ax-0id 8251  ax-rnegex 8252  ax-cnre 8254  ax-pre-ltirr 8255  ax-pre-ltwlin 8256  ax-pre-lttrn 8257  ax-pre-apti 8258  ax-pre-ltadd 8259
This theorem depends on definitions:  df-bi 117  df-dc 843  df-3or 1006  df-3an 1007  df-tru 1401  df-fal 1404  df-nf 1510  df-sb 1812  df-eu 2085  df-mo 2086  df-clab 2221  df-cleq 2227  df-clel 2230  df-nfc 2375  df-ne 2415  df-nel 2510  df-ral 2527  df-rex 2528  df-reu 2529  df-rab 2531  df-v 2817  df-sbc 3046  df-csb 3142  df-dif 3216  df-un 3218  df-in 3220  df-ss 3227  df-nul 3513  df-if 3625  df-pw 3676  df-sn 3700  df-pr 3701  df-op 3703  df-uni 3920  df-int 3955  df-iun 3998  df-br 4115  df-opab 4177  df-mpt 4178  df-tr 4214  df-id 4419  df-iord 4492  df-on 4494  df-ilim 4495  df-suc 4497  df-iom 4718  df-xp 4760  df-rel 4761  df-cnv 4762  df-co 4763  df-dm 4764  df-rn 4765  df-res 4766  df-ima 4767  df-iota 5317  df-fun 5359  df-fn 5360  df-f 5361  df-f1 5362  df-fo 5363  df-f1o 5364  df-fv 5365  df-riota 6011  df-ov 6061  df-oprab 6062  df-mpo 6063  df-1st 6347  df-2nd 6348  df-recs 6549  df-irdg 6614  df-frec 6635  df-1o 6660  df-2o 6661  df-oadd 6664  df-er 6780  df-en 6989  df-dom 6990  df-fin 6991  df-pnf 8326  df-mnf 8327  df-xr 8328  df-ltxr 8329  df-le 8330  df-sub 8462  df-neg 8463  df-inn 9255  df-2 9313  df-3 9314  df-4 9315  df-5 9316  df-6 9317  df-7 9318  df-8 9319  df-9 9320  df-n0 9514  df-z 9595  df-dec 9728  df-uz 9872  df-xadd 10125  df-fz 10362  df-fzo 10499  df-ihash 11164  df-word 11250  df-concat 11304  df-s1 11329  df-s2 11473  df-s3 11474  df-s4 11475  df-s5 11476  df-s6 11477  df-s7 11478  df-ndx 13299  df-slot 13300  df-base 13302  df-edgf 16126  df-vtx 16135  df-iedg 16136  df-upgren 16214  df-umgren 16215  df-vtxdg 16408
This theorem is referenced by:  konigsberglem4  16612
  Copyright terms: Public domain W3C validator