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

Theorem konigsberglem2 16484
Description: Lemma 2 for konigsberg 16488: 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 9588 . . . . . . 7 0 ∈ ℤ
2 3z 9606 . . . . . . 7 3 ∈ ℤ
3 fzfig 10792 . . . . . . 7 ((0 ∈ ℤ ∧ 3 ∈ ℤ) → (0...3) ∈ Fin)
41, 2, 3mp2an 426 . . . . . 6 (0...3) ∈ Fin
54elexi 2826 . . . . 5 (0...3) ∈ V
6 0nn0 9511 . . . . . . . . . 10 0 ∈ ℕ0
7 1nn0 9512 . . . . . . . . . 10 1 ∈ ℕ0
8 prexg 4325 . . . . . . . . . 10 ((0 ∈ ℕ0 ∧ 1 ∈ ℕ0) → {0, 1} ∈ V)
96, 7, 8mp2an 426 . . . . . . . . 9 {0, 1} ∈ V
109a1i 9 . . . . . . . 8 (⊤ → {0, 1} ∈ V)
11 2nn0 9513 . . . . . . . . . 10 2 ∈ ℕ0
12 prexg 4325 . . . . . . . . . 10 ((0 ∈ ℕ0 ∧ 2 ∈ ℕ0) → {0, 2} ∈ V)
136, 11, 12mp2an 426 . . . . . . . . 9 {0, 2} ∈ V
1413a1i 9 . . . . . . . 8 (⊤ → {0, 2} ∈ V)
15 3nn0 9514 . . . . . . . . . 10 3 ∈ ℕ0
16 prexg 4325 . . . . . . . . . 10 ((0 ∈ ℕ0 ∧ 3 ∈ ℕ0) → {0, 3} ∈ V)
176, 15, 16mp2an 426 . . . . . . . . 9 {0, 3} ∈ V
1817a1i 9 . . . . . . . 8 (⊤ → {0, 3} ∈ V)
19 prexg 4325 . . . . . . . . . 10 ((1 ∈ ℕ0 ∧ 2 ∈ ℕ0) → {1, 2} ∈ V)
207, 11, 19mp2an 426 . . . . . . . . 9 {1, 2} ∈ V
2120a1i 9 . . . . . . . 8 (⊤ → {1, 2} ∈ V)
22 prexg 4325 . . . . . . . . . 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 11474 . . . . . . 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 2826 . . . . 5 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩ ∈ V
285, 27opvtxfvi 16022 . . . 4 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩⟩) = (0...3)
2928eqcomi 2236 . . 3 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3}”⟩⟩)
30 1le3 9449 . . . . 5 1 ≤ 3
31 elfz2nn0 10446 . . . . 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 16023 . . . 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 2236 . . 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 11310 . . . . . 6 (⊤ → ⟨“{2, 3}”⟩ ∈ Word V)
3736mptru 1407 . . . . 5 ⟨“{2, 3}”⟩ ∈ Word V
38 df-s7 11453 . . . . 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 2232 . . . . . 6 (0...3) = (0...3)
40 eqid 2232 . . . . . 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 2232 . . . . . 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 16481 . . . . 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 11473 . . . . . . . 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 2826 . . . . . 6 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ ∈ V
485, 47opvtxfvi 16022 . . . . 5 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩) = (0...3)
4948eqcomi 2236 . . . 4 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩)
505, 47opiedgfvi 16023 . . . . 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 2236 . . . 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 11470 . . . . 5 (⊤ → ⟨“{2, 3} {2, 3}”⟩ ∈ Word V)
5310, 14, 18, 21, 21, 24, 24s5s2d 11497 . . . . 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 16481 . . . . 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 11472 . . . . . . . . . 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 2826 . . . . . . . 8 ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ∈ V
595, 58opvtxfvi 16022 . . . . . . 7 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩) = (0...3)
6059eqcomi 2236 . . . . . 6 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩)
615, 58opiedgfvi 16023 . . . . . . 7 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩) = ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩
6261eqcomi 2236 . . . . . 6 ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩)
6321, 24, 24s3cld 11471 . . . . . . 7 (⊤ → ⟨“{1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
6410, 14, 18, 21, 21, 24, 24s4s3d 11494 . . . . . . 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 16481 . . . . . . 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 11471 . . . . . . . . . . . 12 (⊤ → ⟨“{0, 1} {0, 2} {0, 3}”⟩ ∈ Word V)
6867mptru 1407 . . . . . . . . . . 11 ⟨“{0, 1} {0, 2} {0, 3}”⟩ ∈ Word V
6968elexi 2826 . . . . . . . . . 10 ⟨“{0, 1} {0, 2} {0, 3}”⟩ ∈ V
705, 69opvtxfvi 16022 . . . . . . . . 9 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩) = (0...3)
7170eqcomi 2236 . . . . . . . 8 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩)
725, 69opiedgfvi 16023 . . . . . . . . 9 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩) = ⟨“{0, 1} {0, 2} {0, 3}”⟩
7372eqcomi 2236 . . . . . . . 8 ⟨“{0, 1} {0, 2} {0, 3}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3}”⟩⟩)
7421, 21, 24, 24s4cld 11472 . . . . . . . . 9 (⊤ → ⟨“{1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
7510, 14, 18, 21, 21, 24, 24s3s4d 11495 . . . . . . . . 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 16481 . . . . . . . . 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 11470 . . . . . . . . . . . . 13 (⊤ → ⟨“{0, 1} {0, 2}”⟩ ∈ Word V)
7978mptru 1407 . . . . . . . . . . . 12 ⟨“{0, 1} {0, 2}”⟩ ∈ Word V
8079elexi 2826 . . . . . . . . . . 11 ⟨“{0, 1} {0, 2}”⟩ ∈ V
815, 80opvtxfvi 16022 . . . . . . . . . 10 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩) = (0...3)
8281eqcomi 2236 . . . . . . . . 9 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩)
835, 80opiedgfvi 16023 . . . . . . . . . 10 (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩) = ⟨“{0, 1} {0, 2}”⟩
8483eqcomi 2236 . . . . . . . . 9 ⟨“{0, 1} {0, 2}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩)
8518, 21, 21, 24, 24s5cld 11473 . . . . . . . . . 10 (⊤ → ⟨“{0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
8610, 14, 18, 21, 21, 24, 24s2s5d 11496 . . . . . . . . . 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 16481 . . . . . . . . . 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 11310 . . . . . . . . . . . . . 14 (⊤ → ⟨“{0, 1}”⟩ ∈ Word V)
9089mptru 1407 . . . . . . . . . . . . 13 ⟨“{0, 1}”⟩ ∈ Word V
9190elexi 2826 . . . . . . . . . . . 12 ⟨“{0, 1}”⟩ ∈ V
925, 91opvtxfvi 16022 . . . . . . . . . . 11 (Vtx‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = (0...3)
9392eqcomi 2236 . . . . . . . . . 10 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1}”⟩⟩)
945, 91opiedgfvi 16023 . . . . . . . . . . 11 (iEdg‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = ⟨“{0, 1}”⟩
9594eqcomi 2236 . . . . . . . . . 10 ⟨“{0, 1}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1}”⟩⟩)
9614, 18, 21, 21, 24, 24s6cld 11474 . . . . . . . . . . 11 (⊤ → ⟨“{0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
9710, 14, 18, 21, 21, 24, 24s1s6d 11490 . . . . . . . . . . 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 16481 . . . . . . . . . . 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 4237 . . . . . . . . . . . . . 14 ∅ ∈ V
1015, 100opvtxfvi 16022 . . . . . . . . . . . . 13 (Vtx‘⟨(0...3), ∅⟩) = (0...3)
102101eqcomi 2236 . . . . . . . . . . . 12 (0...3) = (Vtx‘⟨(0...3), ∅⟩)
1035, 100opiedgfvi 16023 . . . . . . . . . . . . 13 (iEdg‘⟨(0...3), ∅⟩) = ∅
104103eqcomi 2236 . . . . . . . . . . . 12 ∅ = (iEdg‘⟨(0...3), ∅⟩)
105 wrd0 11249 . . . . . . . . . . . . 13 ∅ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)}
106105a1i 9 . . . . . . . . . . . 12 (⊤ → ∅ ∈ Word {𝑥 ∈ 𝒫 (0...3) ∣ (𝑥 ≈ 1o𝑥 ≈ 2o)})
107 eqidd 2233 . . . . . . . . . . . . 13 (⊤ → ∅ = ∅)
1084a1i 9 . . . . . . . . . . . . 13 (⊤ → (0...3) ∈ Fin)
109 upgr0eop 16117 . . . . . . . . . . . . . 14 ((0...3) ∈ Fin → ⟨(0...3), ∅⟩ ∈ UPGraph)
1104, 109mp1i 10 . . . . . . . . . . . . 13 (⊤ → ⟨(0...3), ∅⟩ ∈ UPGraph)
111102, 104, 33, 107, 108, 110vtxdgfi0e 16290 . . . . . . . . . . . 12 (⊤ → ((VtxDeg‘⟨(0...3), ∅⟩)‘1) = 0)
11292a1i 9 . . . . . . . . . . . 12 (⊤ → (Vtx‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = (0...3))
113 0elfz 10452 . . . . . . . . . . . . 13 (3 ∈ ℕ0 → 0 ∈ (0...3))
11415, 113mp1i 10 . . . . . . . . . . . 12 (⊤ → 0 ∈ (0...3))
115 0ne1 9304 . . . . . . . . . . . . 13 0 ≠ 1
116115a1i 9 . . . . . . . . . . . 12 (⊤ → 0 ≠ 1)
117 s1cl 11309 . . . . . . . . . . . . . . 15 ({0, 1} ∈ V → ⟨“{0, 1}”⟩ ∈ Word V)
118 ccatlid 11294 . . . . . . . . . . . . . . 15 (⟨“{0, 1}”⟩ ∈ Word V → (∅ ++ ⟨“{0, 1}”⟩) = ⟨“{0, 1}”⟩)
1199, 117, 118mp2b 8 . . . . . . . . . . . . . 14 (∅ ++ ⟨“{0, 1}”⟩) = ⟨“{0, 1}”⟩
12094, 119eqtr4i 2256 . . . . . . . . . . . . 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 16311 . . . . . . . . . . 11 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1}”⟩⟩)‘1) = (0 + 1))
123 0p1e1 9351 . . . . . . . . . . 11 (0 + 1) = 1
124122, 123eqtrdi 2281 . . . . . . . . . 10 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1}”⟩⟩)‘1) = 1)
12581a1i 9 . . . . . . . . . 10 (⊤ → (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩) = (0...3))
126 2re 9307 . . . . . . . . . . . . 13 2 ∈ ℝ
127 3re 9311 . . . . . . . . . . . . 13 3 ∈ ℝ
128 2lt3 9408 . . . . . . . . . . . . 13 2 < 3
129126, 127, 128ltleii 8376 . . . . . . . . . . . 12 2 ≤ 3
130 elfz2nn0 10446 . . . . . . . . . . . 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 9444 . . . . . . . . . . . 12 1 ≠ 2
134133necomi 2497 . . . . . . . . . . 11 2 ≠ 1
135134a1i 9 . . . . . . . . . 10 (⊤ → 2 ≠ 1)
136 0ne2 9443 . . . . . . . . . . 11 0 ≠ 2
137136a1i 9 . . . . . . . . . 10 (⊤ → 0 ≠ 2)
138 df-s2 11448 . . . . . . . . . . . 12 ⟨“{0, 1} {0, 2}”⟩ = (⟨“{0, 1}”⟩ ++ ⟨“{0, 2}”⟩)
13983, 138eqtri 2253 . . . . . . . . . . 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 16309 . . . . . . . . 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 10453 . . . . . . . . . . 11 (3 ∈ ℕ0 ↔ 3 ∈ (0...3))
14415, 143mpbi 145 . . . . . . . . . 10 3 ∈ (0...3)
145144a1i 9 . . . . . . . . 9 (⊤ → 3 ∈ (0...3))
146 1re 8273 . . . . . . . . . . 11 1 ∈ ℝ
147 1lt3 9409 . . . . . . . . . . 11 1 < 3
148146, 147gtneii 8369 . . . . . . . . . 10 3 ≠ 1
149148a1i 9 . . . . . . . . 9 (⊤ → 3 ≠ 1)
150 3ne0 9332 . . . . . . . . . . 11 3 ≠ 0
151150necomi 2497 . . . . . . . . . 10 0 ≠ 3
152151a1i 9 . . . . . . . . 9 (⊤ → 0 ≠ 3)
153 df-s3 11449 . . . . . . . . . . 11 ⟨“{0, 1} {0, 2} {0, 3}”⟩ = (⟨“{0, 1} {0, 2}”⟩ ++ ⟨“{0, 3}”⟩)
15472, 153eqtri 2253 . . . . . . . . . 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 16309 . . . . . . . 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 11450 . . . . . . . . . 10 ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ = (⟨“{0, 1} {0, 2} {0, 3}”⟩ ++ ⟨“{1, 2}”⟩)
15961, 158eqtri 2253 . . . . . . . . 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 16310 . . . . . . 7 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩)‘1) = (1 + 1))
162 1p1e2 9354 . . . . . . 7 (1 + 1) = 2
163161, 162eqtrdi 2281 . . . . . 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 11451 . . . . . . . 8 ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩ = (⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩ ++ ⟨“{1, 2}”⟩)
16650, 165eqtri 2253 . . . . . . 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 16310 . . . . 5 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩)‘1) = (2 + 1))
169 2p1e3 9371 . . . . 5 (2 + 1) = 3
170168, 169eqtrdi 2281 . . . 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 8370 . . . . 5 2 ≠ 3
173172a1i 9 . . . 4 (⊤ → 2 ≠ 3)
174 df-s6 11452 . . . . . 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 2253 . . . . 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 16309 . . 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 16477 . . . 4 (Vtx‘𝐺) = (0...3)
182181a1i 9 . . 3 (⊤ → (Vtx‘𝐺) = (0...3))
183178, 179, 180konigsbergiedg 16478 . . . . 5 (iEdg‘𝐺) = ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩
184183, 38eqtri 2253 . . . 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 16309 . 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 2203  wne 2412  {crab 2524  Vcvv 2813  c0 3508  𝒫 cpw 3669  {cpr 3690  cop 3692   class class class wbr 4109  cfv 5352  (class class class)co 6050  1oc1o 6640  2oc2o 6641  cen 6973  Fincfn 6975  0cc0 8127  1c1 8128   + caddc 8130  cle 8309  2c2 9288  3c3 9289  0cn0 9496  cz 9577  ...cfz 10342  Word cword 11224   ++ cconcat 11278  ⟨“cs1 11303  ⟨“cs2 11441  ⟨“cs3 11442  ⟨“cs4 11443  ⟨“cs5 11444  ⟨“cs6 11445  ⟨“cs7 11446  Vtxcvtx 16007  iEdgciedg 16008  UPGraphcupgr 16086  VtxDegcvtxdg 16281
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 2205  ax-14 2206  ax-ext 2214  ax-coll 4225  ax-sep 4228  ax-nul 4236  ax-pow 4287  ax-pr 4322  ax-un 4554  ax-setind 4659  ax-iinf 4710  ax-cnex 8218  ax-resscn 8219  ax-1cn 8220  ax-1re 8221  ax-icn 8222  ax-addcl 8223  ax-addrcl 8224  ax-mulcl 8225  ax-addcom 8227  ax-mulcom 8228  ax-addass 8229  ax-mulass 8230  ax-distr 8231  ax-i2m1 8232  ax-0lt1 8233  ax-1rid 8234  ax-0id 8235  ax-rnegex 8236  ax-cnre 8238  ax-pre-ltirr 8239  ax-pre-ltwlin 8240  ax-pre-lttrn 8241  ax-pre-apti 8242  ax-pre-ltadd 8243
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 2083  df-mo 2084  df-clab 2219  df-cleq 2225  df-clel 2228  df-nfc 2373  df-ne 2413  df-nel 2508  df-ral 2525  df-rex 2526  df-reu 2527  df-rab 2529  df-v 2815  df-sbc 3043  df-csb 3139  df-dif 3213  df-un 3215  df-in 3217  df-ss 3224  df-nul 3509  df-if 3621  df-pw 3671  df-sn 3695  df-pr 3696  df-op 3698  df-uni 3915  df-int 3950  df-iun 3993  df-br 4110  df-opab 4172  df-mpt 4173  df-tr 4209  df-id 4414  df-iord 4487  df-on 4489  df-ilim 4490  df-suc 4492  df-iom 4713  df-xp 4755  df-rel 4756  df-cnv 4757  df-co 4758  df-dm 4759  df-rn 4760  df-res 4761  df-ima 4762  df-iota 5312  df-fun 5354  df-fn 5355  df-f 5356  df-f1 5357  df-fo 5358  df-f1o 5359  df-fv 5360  df-riota 6003  df-ov 6053  df-oprab 6054  df-mpo 6055  df-1st 6334  df-2nd 6335  df-recs 6536  df-irdg 6601  df-frec 6622  df-1o 6647  df-2o 6648  df-oadd 6651  df-er 6767  df-en 6976  df-dom 6977  df-fin 6978  df-pnf 8310  df-mnf 8311  df-xr 8312  df-ltxr 8313  df-le 8314  df-sub 8446  df-neg 8447  df-inn 9238  df-2 9296  df-3 9297  df-4 9298  df-5 9299  df-6 9300  df-7 9301  df-8 9302  df-9 9303  df-n0 9497  df-z 9578  df-dec 9710  df-uz 9854  df-xadd 10106  df-fz 10343  df-fzo 10477  df-ihash 11139  df-word 11225  df-concat 11279  df-s1 11304  df-s2 11448  df-s3 11449  df-s4 11450  df-s5 11451  df-s6 11452  df-s7 11453  df-ndx 13215  df-slot 13216  df-base 13218  df-edgf 16000  df-vtx 16009  df-iedg 16010  df-upgren 16088  df-umgren 16089  df-vtxdg 16282
This theorem is referenced by:  konigsberglem4  16486
  Copyright terms: Public domain W3C validator