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

Theorem konigsberglem2 16501
Description: Lemma 2 for konigsberg 16505: 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 9590 . . . . . . 7 0 ∈ ℤ
2 3z 9608 . . . . . . 7 3 ∈ ℤ
3 fzfig 10796 . . . . . . 7 ((0 ∈ ℤ ∧ 3 ∈ ℤ) → (0...3) ∈ Fin)
41, 2, 3mp2an 426 . . . . . 6 (0...3) ∈ Fin
54elexi 2828 . . . . 5 (0...3) ∈ V
6 0nn0 9513 . . . . . . . . . 10 0 ∈ ℕ0
7 1nn0 9514 . . . . . . . . . 10 1 ∈ ℕ0
8 prexg 4327 . . . . . . . . . 10 ((0 ∈ ℕ0 ∧ 1 ∈ ℕ0) → {0, 1} ∈ V)
96, 7, 8mp2an 426 . . . . . . . . 9 {0, 1} ∈ V
109a1i 9 . . . . . . . 8 (⊤ → {0, 1} ∈ V)
11 2nn0 9515 . . . . . . . . . 10 2 ∈ ℕ0
12 prexg 4327 . . . . . . . . . 10 ((0 ∈ ℕ0 ∧ 2 ∈ ℕ0) → {0, 2} ∈ V)
136, 11, 12mp2an 426 . . . . . . . . 9 {0, 2} ∈ V
1413a1i 9 . . . . . . . 8 (⊤ → {0, 2} ∈ V)
15 3nn0 9516 . . . . . . . . . 10 3 ∈ ℕ0
16 prexg 4327 . . . . . . . . . 10 ((0 ∈ ℕ0 ∧ 3 ∈ ℕ0) → {0, 3} ∈ V)
176, 15, 16mp2an 426 . . . . . . . . 9 {0, 3} ∈ V
1817a1i 9 . . . . . . . 8 (⊤ → {0, 3} ∈ V)
19 prexg 4327 . . . . . . . . . 10 ((1 ∈ ℕ0 ∧ 2 ∈ ℕ0) → {1, 2} ∈ V)
207, 11, 19mp2an 426 . . . . . . . . 9 {1, 2} ∈ V
2120a1i 9 . . . . . . . 8 (⊤ → {1, 2} ∈ V)
22 prexg 4327 . . . . . . . . . 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 11478 . . . . . . 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 16039 . . . 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 9451 . . . . 5 1 ≤ 3
31 elfz2nn0 10450 . . . . 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 16040 . . . 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 11314 . . . . . 6 (⊤ → ⟨“{2, 3}”⟩ ∈ Word V)
3736mptru 1407 . . . . 5 ⟨“{2, 3}”⟩ ∈ Word V
38 df-s7 11457 . . . . 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 16498 . . . . 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 11477 . . . . . . . 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 16039 . . . . 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 16040 . . . . 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 11474 . . . . 5 (⊤ → ⟨“{2, 3} {2, 3}”⟩ ∈ Word V)
5310, 14, 18, 21, 21, 24, 24s5s2d 11501 . . . . 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 16498 . . . . 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 11476 . . . . . . . . . 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 16039 . . . . . . 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 16040 . . . . . . 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 11475 . . . . . . 7 (⊤ → ⟨“{1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
6410, 14, 18, 21, 21, 24, 24s4s3d 11498 . . . . . . 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 16498 . . . . . . 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 11475 . . . . . . . . . . . 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 16039 . . . . . . . . 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 16040 . . . . . . . . 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 11476 . . . . . . . . 9 (⊤ → ⟨“{1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
7510, 14, 18, 21, 21, 24, 24s3s4d 11499 . . . . . . . . 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 16498 . . . . . . . . 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 11474 . . . . . . . . . . . . 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 16039 . . . . . . . . . 10 (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩) = (0...3)
8281eqcomi 2238 . . . . . . . . 9 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1} {0, 2}”⟩⟩)
835, 80opiedgfvi 16040 . . . . . . . . . 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 11477 . . . . . . . . . 10 (⊤ → ⟨“{0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
8610, 14, 18, 21, 21, 24, 24s2s5d 11500 . . . . . . . . . 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 16498 . . . . . . . . . 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 11314 . . . . . . . . . . . . . 14 (⊤ → ⟨“{0, 1}”⟩ ∈ Word V)
9089mptru 1407 . . . . . . . . . . . . 13 ⟨“{0, 1}”⟩ ∈ Word V
9190elexi 2828 . . . . . . . . . . . 12 ⟨“{0, 1}”⟩ ∈ V
925, 91opvtxfvi 16039 . . . . . . . . . . 11 (Vtx‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = (0...3)
9392eqcomi 2238 . . . . . . . . . 10 (0...3) = (Vtx‘⟨(0...3), ⟨“{0, 1}”⟩⟩)
945, 91opiedgfvi 16040 . . . . . . . . . . 11 (iEdg‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = ⟨“{0, 1}”⟩
9594eqcomi 2238 . . . . . . . . . 10 ⟨“{0, 1}”⟩ = (iEdg‘⟨(0...3), ⟨“{0, 1}”⟩⟩)
9614, 18, 21, 21, 24, 24s6cld 11478 . . . . . . . . . . 11 (⊤ → ⟨“{0, 2} {0, 3} {1, 2} {1, 2} {2, 3} {2, 3}”⟩ ∈ Word V)
9710, 14, 18, 21, 21, 24, 24s1s6d 11494 . . . . . . . . . . 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 16498 . . . . . . . . . . 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 4239 . . . . . . . . . . . . . 14 ∅ ∈ V
1015, 100opvtxfvi 16039 . . . . . . . . . . . . 13 (Vtx‘⟨(0...3), ∅⟩) = (0...3)
102101eqcomi 2238 . . . . . . . . . . . 12 (0...3) = (Vtx‘⟨(0...3), ∅⟩)
1035, 100opiedgfvi 16040 . . . . . . . . . . . . 13 (iEdg‘⟨(0...3), ∅⟩) = ∅
104103eqcomi 2238 . . . . . . . . . . . 12 ∅ = (iEdg‘⟨(0...3), ∅⟩)
105 wrd0 11253 . . . . . . . . . . . . 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 16134 . . . . . . . . . . . . . 14 ((0...3) ∈ Fin → ⟨(0...3), ∅⟩ ∈ UPGraph)
1104, 109mp1i 10 . . . . . . . . . . . . 13 (⊤ → ⟨(0...3), ∅⟩ ∈ UPGraph)
111102, 104, 33, 107, 108, 110vtxdgfi0e 16307 . . . . . . . . . . . 12 (⊤ → ((VtxDeg‘⟨(0...3), ∅⟩)‘1) = 0)
11292a1i 9 . . . . . . . . . . . 12 (⊤ → (Vtx‘⟨(0...3), ⟨“{0, 1}”⟩⟩) = (0...3))
113 0elfz 10456 . . . . . . . . . . . . 13 (3 ∈ ℕ0 → 0 ∈ (0...3))
11415, 113mp1i 10 . . . . . . . . . . . 12 (⊤ → 0 ∈ (0...3))
115 0ne1 9306 . . . . . . . . . . . . 13 0 ≠ 1
116115a1i 9 . . . . . . . . . . . 12 (⊤ → 0 ≠ 1)
117 s1cl 11313 . . . . . . . . . . . . . . 15 ({0, 1} ∈ V → ⟨“{0, 1}”⟩ ∈ Word V)
118 ccatlid 11298 . . . . . . . . . . . . . . 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 16328 . . . . . . . . . . 11 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1}”⟩⟩)‘1) = (0 + 1))
123 0p1e1 9353 . . . . . . . . . . 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 9309 . . . . . . . . . . . . 13 2 ∈ ℝ
127 3re 9313 . . . . . . . . . . . . 13 3 ∈ ℝ
128 2lt3 9410 . . . . . . . . . . . . 13 2 < 3
129126, 127, 128ltleii 8378 . . . . . . . . . . . 12 2 ≤ 3
130 elfz2nn0 10450 . . . . . . . . . . . 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 9446 . . . . . . . . . . . 12 1 ≠ 2
134133necomi 2499 . . . . . . . . . . 11 2 ≠ 1
135134a1i 9 . . . . . . . . . 10 (⊤ → 2 ≠ 1)
136 0ne2 9445 . . . . . . . . . . 11 0 ≠ 2
137136a1i 9 . . . . . . . . . 10 (⊤ → 0 ≠ 2)
138 df-s2 11452 . . . . . . . . . . . 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 16326 . . . . . . . . 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 10457 . . . . . . . . . . 11 (3 ∈ ℕ0 ↔ 3 ∈ (0...3))
14415, 143mpbi 145 . . . . . . . . . 10 3 ∈ (0...3)
145144a1i 9 . . . . . . . . 9 (⊤ → 3 ∈ (0...3))
146 1re 8275 . . . . . . . . . . 11 1 ∈ ℝ
147 1lt3 9411 . . . . . . . . . . 11 1 < 3
148146, 147gtneii 8371 . . . . . . . . . 10 3 ≠ 1
149148a1i 9 . . . . . . . . 9 (⊤ → 3 ≠ 1)
150 3ne0 9334 . . . . . . . . . . 11 3 ≠ 0
151150necomi 2499 . . . . . . . . . 10 0 ≠ 3
152151a1i 9 . . . . . . . . 9 (⊤ → 0 ≠ 3)
153 df-s3 11453 . . . . . . . . . . 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 16326 . . . . . . . 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 11454 . . . . . . . . . 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 16327 . . . . . . 7 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2}”⟩⟩)‘1) = (1 + 1))
162 1p1e2 9356 . . . . . . 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 11455 . . . . . . . 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 16327 . . . . 5 (⊤ → ((VtxDeg‘⟨(0...3), ⟨“{0, 1} {0, 2} {0, 3} {1, 2} {1, 2}”⟩⟩)‘1) = (2 + 1))
169 2p1e3 9373 . . . . 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 8372 . . . . 5 2 ≠ 3
173172a1i 9 . . . 4 (⊤ → 2 ≠ 3)
174 df-s6 11456 . . . . . 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 16326 . . 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 16494 . . . 4 (Vtx‘𝐺) = (0...3)
182181a1i 9 . . 3 (⊤ → (Vtx‘𝐺) = (0...3))
183178, 179, 180konigsbergiedg 16495 . . . . 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 16326 . 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 3510  𝒫 cpw 3671  {cpr 3692  cop 3694   class class class wbr 4111  cfv 5354  (class class class)co 6052  1oc1o 6642  2oc2o 6643  cen 6975  Fincfn 6977  0cc0 8129  1c1 8130   + caddc 8132  cle 8311  2c2 9290  3c3 9291  0cn0 9498  cz 9579  ...cfz 10345  Word cword 11228   ++ cconcat 11282  ⟨“cs1 11307  ⟨“cs2 11445  ⟨“cs3 11446  ⟨“cs4 11447  ⟨“cs5 11448  ⟨“cs6 11449  ⟨“cs7 11450  Vtxcvtx 16024  iEdgciedg 16025  UPGraphcupgr 16103  VtxDegcvtxdg 16298
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 4227  ax-sep 4230  ax-nul 4238  ax-pow 4289  ax-pr 4324  ax-un 4556  ax-setind 4661  ax-iinf 4712  ax-cnex 8220  ax-resscn 8221  ax-1cn 8222  ax-1re 8223  ax-icn 8224  ax-addcl 8225  ax-addrcl 8226  ax-mulcl 8227  ax-addcom 8229  ax-mulcom 8230  ax-addass 8231  ax-mulass 8232  ax-distr 8233  ax-i2m1 8234  ax-0lt1 8235  ax-1rid 8236  ax-0id 8237  ax-rnegex 8238  ax-cnre 8240  ax-pre-ltirr 8241  ax-pre-ltwlin 8242  ax-pre-lttrn 8243  ax-pre-apti 8244  ax-pre-ltadd 8245
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 3045  df-csb 3141  df-dif 3215  df-un 3217  df-in 3219  df-ss 3226  df-nul 3511  df-if 3623  df-pw 3673  df-sn 3697  df-pr 3698  df-op 3700  df-uni 3917  df-int 3952  df-iun 3995  df-br 4112  df-opab 4174  df-mpt 4175  df-tr 4211  df-id 4416  df-iord 4489  df-on 4491  df-ilim 4492  df-suc 4494  df-iom 4715  df-xp 4757  df-rel 4758  df-cnv 4759  df-co 4760  df-dm 4761  df-rn 4762  df-res 4763  df-ima 4764  df-iota 5314  df-fun 5356  df-fn 5357  df-f 5358  df-f1 5359  df-fo 5360  df-f1o 5361  df-fv 5362  df-riota 6005  df-ov 6055  df-oprab 6056  df-mpo 6057  df-1st 6336  df-2nd 6337  df-recs 6538  df-irdg 6603  df-frec 6624  df-1o 6649  df-2o 6650  df-oadd 6653  df-er 6769  df-en 6978  df-dom 6979  df-fin 6980  df-pnf 8312  df-mnf 8313  df-xr 8314  df-ltxr 8315  df-le 8316  df-sub 8448  df-neg 8449  df-inn 9240  df-2 9298  df-3 9299  df-4 9300  df-5 9301  df-6 9302  df-7 9303  df-8 9304  df-9 9305  df-n0 9499  df-z 9580  df-dec 9713  df-uz 9857  df-xadd 10109  df-fz 10346  df-fzo 10481  df-ihash 11143  df-word 11229  df-concat 11283  df-s1 11308  df-s2 11452  df-s3 11453  df-s4 11454  df-s5 11455  df-s6 11456  df-s7 11457  df-ndx 13232  df-slot 13233  df-base 13235  df-edgf 16017  df-vtx 16026  df-iedg 16027  df-upgren 16105  df-umgren 16106  df-vtxdg 16299
This theorem is referenced by:  konigsberglem4  16503
  Copyright terms: Public domain W3C validator