AFTD Auto-Formalizing Theoretical Domains

op874_ten_vertex_square_suppression_always_bridged

theoremverified

The displayed connected simple bridgeless cubic ten-vertex graph has exactly one four-cycle, with vertices 2,8,3,9 in cyclic order. Suppressing it on opposite ports is loopless: it adds a second copy of each of edges 5--6 and 0--4. The underlying simple graph of the result is H, in which the unique edge 1--7 is a bridge. Thus allowing parallel edges still need not preserve bridgelessness.

Statement

theorem op874_ten_vertex_square_suppression_always_bridged :
  let E : Finset (Sym2 (Fin 10)) :=
    {s(0,4),s(0,7),s(0,8),s(1,5),s(1,6),s(1,7),
     s(2,5),s(2,8),s(2,9),s(3,6),s(3,8),s(3,9),s(4,7),s(4,9),s(5,6)}
  let G : SimpleGraph (Fin 10) := SimpleGraph.fromEdgeSet (↑E : Set (Sym2 (Fin 10)))
  let R : Finset (Sym2 (Fin 10)) :=
    {s(0,4),s(0,7),s(1,5),s(1,6),s(1,7),s(4,7),s(5,6)}
  let H : SimpleGraph (Fin 10) := SimpleGraph.fromEdgeSet (↑R : Set (Sym2 (Fin 10)))
  G.Connected ∧ G.IsRegularOfDegree 3 ∧ (∀ e : Sym2 (Fin 10), ¬ G.IsBridge e) ∧
  G.Adj 2 8 ∧ G.Adj 8 3 ∧ G.Adj 3 9 ∧ G.Adj 9 2 ∧
  (∀ c : Fin 4 → Fin 10, Function.Injective c →
    (∀ i, G.Adj (c i) (c (i+1))) →
    ∀ v, (∃ i, c i = v) ↔ (v = 2 ∨ v = 3 ∨ v = 8 ∨ v = 9)) ∧
  H.IsBridge s(1,7)
Source
Square-reduction obstruction for OP-874; experiments 43691 and 43698.
Verified
28 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 2
  • Arena.Reachable.transReachability is transitive.
  • cFor a group $G$ and an element $s \in G$, the local count $c_G(s)$ is the cardinality of the set of elements $g \in G$ such that…

The proof, explained

The proof verifies that a specific 10-vertex cubic graph G is connected and bridgeless by exhibiting a Hamiltonian cycle C whose edges remain connected upon single-edge deletion. An exhaustive check confirms that G contains a unique 4-cycle with vertex set {2, 3, 8, 9}. Suppressing this 4-cycle on opposite ports yields a multigraph whose underlying simple graph H contains {1, 7} as a bridge. This counterexample demonstrates that suppressing a 4-cycle on opposite ports need not preserve bridgelessness, even when parallel edges are permitted.

  1. Adjacency is decidable for G, H, and the spanning cycle C.

    Unfolding the definition of each graph from its explicit finite edge set enables typeclass inference to synthesize decidability of adjacency between any pair of vertices in Fin 10.

    lines 11–15

    private instance : DecidableRel in1288b_G.Adj := fun _ _ => by unfold in1288b_G; infer_instance
    private instance : DecidableRel in1288b_H.Adj := fun _ _ => by unfold in1288b_H; infer_instance
    private def in1288b_C : SimpleGraph (Fin 10) := SimpleGraph.fromEdgeSet
      (↑({s(0,8),s(8,2),s(2,9),s(9,3),s(3,6),s(6,5),s(5,1),s(1,7),s(7,4),s(4,0)} : Finset (Sym2 (Fin 10))) : Set (Sym2 (Fin 10)))
    private instance : DecidableRel in1288b_C.Adj := fun _ _ => by unfold in1288b_C; infer_instance
  2. The 10-cycle C is a subgraph of G (C ≤ G). automation

    To verify that every edge of C is an edge of G, the proof introduces two arbitrary vertices u, v ∈ Fin 10 and exhausts all 100 cases with `fin_cases`, closing each case by computation (`decide`).

    lines 16–19

    private theorem in1288b_C_le : in1288b_C ≤ in1288b_G := by
      intro u v h
      revert h
      fin_cases u <;> fin_cases v <;> decide
  3. The 10-cycle graph C is connected.

    The proof shows that every vertex v is reachable from vertex 0 by chaining adjacent steps along the 10-cycle 0-4-7-1-5-6-3-9-2-8-0. Since all vertices can reach 0, any two vertices u and v are connected by traversing u to 0 and then 0 to v.

    lines 20–35

    uses SimpleGraph.Reachable.refl

    private theorem in1288b_C_conn : in1288b_C.Connected := by
      have r : ∀ a b : Fin 10, in1288b_C.Adj a b → in1288b_C.Reachable a b := fun a b h => h.reachable
      have h0 : ∀ v, in1288b_C.Reachable 0 v := by
        intro v
        fin_cases v
        · exact SimpleGraph.Reachable.refl _
        · exact (((r 0 4 (by decide))).trans (r 4 7 (by decide))).trans (r 7 1 (by decide))
        · exact ((r 0 8 (by decide))).trans (r 8 2 (by decide))
        · exact ((((r 0 8 (by decide))).trans (r 8 2 (by decide))).trans (r 2 9 (by decide))).trans (r 9 3 (by decide))
        · exact (r 0 4 (by decide))
        · exact ((((r 0 4 (by decide))).trans (r 4 7 (by decide))).trans (r 7 1 (by decide))).trans (r 1 5 (by decide))
        · exact (((((r 0 8 (by decide))).trans (r 8 2 (by decide))).trans (r 2 9 (by decide))).trans (r 9 3 (by decide))).trans (r 3 6 (by decide))
        · exact ((r 0 4 (by decide))).trans (r 4 7 (by decide))
        · exact (r 0 8 (by decide))
        · exact (((r 0 8 (by decide))).trans (r 8 2 (by decide))).trans (r 2 9 (by decide))
      exact ⟨fun u v => (h0 u).symm.trans (h0 v)⟩
  4. Every vertex in C has degree 2, so C is a 2-regular graph (a collection of cycles). automation

    For each vertex v, its degree in C is equated to the cardinality of its neighbor finset using `SimpleGraph.coe_neighborFinset`, `Set.ncard_coe_finset`, and `SimpleGraph.card_neighborFinset_eq_degree`. Exhaustion over all 10 vertices confirms by `decide` that every vertex degree equals 2.

    lines 36–40

    uses SimpleGraph.coe_neighborFinset, Set.ncard_coe_finset, SimpleGraph.card_neighborFinset_eq_degree

    private theorem in1288b_C_cycles : in1288b_C.IsCycles := by
      intro v _
      rw [← SimpleGraph.coe_neighborFinset, Set.ncard_coe_finset,
        SimpleGraph.card_neighborFinset_eq_degree]
      fin_cases v <;> decide
  5. G is connected and every vertex has degree 3.

    Because C is a connected spanning subgraph of G (`in1288b_C_conn` and `in1288b_C_le`), G is connected. Exhausting all 10 vertices proves that every vertex has degree 3 (`in1288b_deg`), which implies that its neighbor set has cardinality 3 (`in1288b_ncard`).

    lines 41–45

    uses in1288b_C_conn, in1288b_C_le, SimpleGraph.coe_neighborFinset, Set.ncard_coe_finset, SimpleGraph.card_neighborFinset_eq_degree, in1288b_deg

    private theorem in1288b_conn : in1288b_G.Connected := in1288b_C_conn.mono in1288b_C_le
    private theorem in1288b_deg (v : Fin 10) : in1288b_G.degree v = 3 := by fin_cases v <;> decide
    private theorem in1288b_ncard (v : Fin 10) : (in1288b_G.neighborSet v).ncard = 3 := by
      rw [← SimpleGraph.coe_neighborFinset, Set.ncard_coe_finset, SimpleGraph.card_neighborFinset_eq_degree]
      exact in1288b_deg v
  6. No edge of G is a bridge (G is bridgeless).

    By `SimpleGraph.isBridge_iff`, an edge e = {v, w} is a bridge if and only if deleting e disconnects v and w. If e is in the Hamiltonian cycle C, then because C is 2-regular, v and w remain reachable in C \ {e} and thus in G \ {e}. If e is not in C, then all edges of C survive in G \ {e}, so C remains a connected spanning subgraph of G \ {e}. Hence v and w are always reachable in G \ {e}.

    lines 46–62

    uses SimpleGraph.isBridge_iff, SimpleGraph.mem_edgeSet, SimpleGraph.Reachable.mono, SimpleGraph.deleteEdges_mono, in1288b_C_le, SimpleGraph.deleteEdges_adj, Set.mem_singleton_iff

    private theorem in1288b_nobridge (e : Sym2 (Fin 10)) : ¬ in1288b_G.IsBridge e := by
      obtain ⟨v, w⟩ := e
      rw [SimpleGraph.isBridge_iff]
      intro h
      by_cases he : s(v,w) ∈ in1288b_C.edgeSet
      · have hadj : in1288b_C.Adj v w := by simpa only [SimpleGraph.mem_edgeSet] using he
        have hr : (in1288b_C.deleteEdges {s(v,w)}).Reachable v w :=
          in1288b_C_cycles.reachable_deleteEdges hadj
        exact h (SimpleGraph.Reachable.mono (SimpleGraph.deleteEdges_mono in1288b_C_le) hr)
      · have hle : in1288b_C ≤ in1288b_G.deleteEdges {s(v,w)} := by
          intro a b hab
          rw [SimpleGraph.deleteEdges_adj]
          refine ⟨in1288b_C_le hab, ?_⟩
          intro hm
          rw [Set.mem_singleton_iff] at hm
          exact he (hm ▸ (SimpleGraph.mem_edgeSet (G := in1288b_C)).mpr hab)
        exact h (in1288b_C_conn.preconnected.mono hle v w)
  7. The edge {1, 7} is a bridge in H. automation

    Using the bridge characterization `SimpleGraph.isBridge_iff`, the proof verifies by `decide` that deleting {1, 7} disconnects vertices 1 and 7 in H.

    lines 63–65

    uses SimpleGraph.isBridge_iff

    private theorem in1288b_bridge : in1288b_H.IsBridge s(1,7) := by
      rw [SimpleGraph.isBridge_iff]
      decide
  8. Any 4-cycle in G has vertex set {2, 3, 8, 9}. automation

    For any sequence of four vertices a, b, c, d forming a cycle of length 4 with c ≠ a and d ≠ b, exhaustive verification over all 10 choices of a (`fin_cases a`) confirms by `decide` that {a, b, c, d} = {2, 3, 8, 9}.

    lines 66–71

    private theorem in1288b_squares : ∀ (a b : Fin 10), in1288b_G.Adj a b →
        ∀ c, in1288b_G.Adj b c → c ≠ a →
        ∀ d, in1288b_G.Adj c d → d ≠ b → in1288b_G.Adj d a →
        ∀ v, (v = a ∨ v = b ∨ v = c ∨ v = d) ↔ (v = 2 ∨ v = 3 ∨ v = 8 ∨ v = 9) := by
      intro a
      fin_cases a <;> decide
  9. G is connected, 3-regular, bridgeless, contains the square 2-8-3-9-2, and {1, 7} is a bridge in H.

    The main theorem's conjunction is broken into subgoals. Connectedness is provided by `in1288b_conn`, bridgelessness by `in1288b_nobridge`, and the bridge in H by `in1288b_bridge`. The four adjacencies of the 4-cycle are checked by computation (`decide`). 3-regularity follows from `in1288b_ncard` by relating the neighbor set cardinality to the graph degree.

    lines 73–96

    uses in1288b_conn, in1288b_nobridge, in1288b_bridge, in1288b_ncard, SimpleGraph.coe_neighborFinset, Set.ncard_coe_finset, SimpleGraph.card_neighborFinset_eq_degree

    theorem op874_ten_vertex_square_suppression_always_bridged :
      let E : Finset (Sym2 (Fin 10)) :=
        {s(0,4),s(0,7),s(0,8),s(1,5),s(1,6),s(1,7),
         s(2,5),s(2,8),s(2,9),s(3,6),s(3,8),s(3,9),s(4,7),s(4,9),s(5,6)}
      let G : SimpleGraph (Fin 10) := SimpleGraph.fromEdgeSet (↑E : Set (Sym2 (Fin 10)))
      let R : Finset (Sym2 (Fin 10)) :=
        {s(0,4),s(0,7),s(1,5),s(1,6),s(1,7),s(4,7),s(5,6)}
      let H : SimpleGraph (Fin 10) := SimpleGraph.fromEdgeSet (↑R : Set (Sym2 (Fin 10)))
      G.Connected ∧ G.IsRegularOfDegree 3 ∧ (∀ e : Sym2 (Fin 10), ¬ G.IsBridge e) ∧
      G.Adj 2 8 ∧ G.Adj 8 3 ∧ G.Adj 3 9 ∧ G.Adj 9 2 ∧
      (∀ c : Fin 4 → Fin 10, Function.Injective c →
        (∀ i, G.Adj (c i) (c (i+1))) →
        ∀ v, (∃ i, c i = v) ↔ (v = 2 ∨ v = 3 ∨ v = 8 ∨ v = 9)) ∧
      H.IsBridge s(1,7) := by
      dsimp only
      change in1288b_G.Connected ∧ in1288b_G.IsRegularOfDegree 3 ∧
        (∀ e, ¬ in1288b_G.IsBridge e) ∧
        in1288b_G.Adj 2 8 ∧ in1288b_G.Adj 8 3 ∧ in1288b_G.Adj 3 9 ∧ in1288b_G.Adj 9 2 ∧ _ ∧ in1288b_H.IsBridge s(1,7)
      refine ⟨in1288b_conn, ?_, in1288b_nobridge, by decide, by decide, by decide, by decide, ?_, in1288b_bridge⟩
      · intro v
        have h := in1288b_ncard v
        rw [← SimpleGraph.coe_neighborFinset, Set.ncard_coe_finset,
          SimpleGraph.card_neighborFinset_eq_degree] at h
        exact h
  10. Every 4-cycle in G has range {2, 3, 8, 9}.

    Given an injective 4-cycle c : Fin 4 → Fin 10 with adjacencies between consecutive vertices, injectivity ensures opposite vertices are distinct (c 2 ≠ c 0 and c 3 ≠ c 1). Applying `in1288b_squares` to c 0, c 1, c 2, c 3 establishes that a vertex is in the range of c if and only if it is in {2, 3, 8, 9}.

    lines 97–112

    uses in1288b_squares

      · intro c hinj hcycle v
        have hadj (i : Fin 4) : in1288b_G.Adj (c i) (c (i+1)) := hcycle i
        have hs := in1288b_squares (c 0) (c 1) (by simpa using hadj 0)
          (c 2) (by simpa using hadj 1) (by intro h; exact (by decide : (2 : Fin 4) ≠ 0) (hinj h))
          (c 3) (by simpa using hadj 2) (by intro h; exact (by decide : (3 : Fin 4) ≠ 1) (hinj h))
          (by simpa using hadj 3) v
        constructor
        · rintro ⟨i,hi⟩
          apply hs.mp
          fin_cases i <;> simp_all
        · intro hv
          rcases hs.mpr hv with h | h | h | h
          · exact ⟨0,h.symm⟩
          · exact ⟨1,h.symm⟩
          · exact ⟨2,h.symm⟩
          · exact ⟨3,h.symm⟩
SimpleGraph.Reachable.refl
Every vertex in a graph is reachable from itself by a path of length zero.
SimpleGraph.coe_neighborFinset
The coercion of the finite set of neighbors of a vertex to a set is equal to its neighbor set.
Set.ncard_coe_finset
The set cardinality of a coerced finite set is equal to the cardinality of the finite set.
SimpleGraph.card_neighborFinset_eq_degree
The cardinality of the neighbor finset of a vertex equals the degree of that vertex.
in1288b_C_conn
The spanning 10-vertex cycle graph C is connected.
in1288b_C_le
The cycle graph C is a subgraph of G (every edge of C is an edge of G).
in1288b_deg
Every vertex in graph G has degree 3.
SimpleGraph.isBridge_iff
An edge between two vertices is a bridge if and only if deleting that edge makes those vertices unreachable from each other.
SimpleGraph.mem_edgeSet
An unordered pair belongs to the edge set of a graph if and only if the two vertices are adjacent.
SimpleGraph.Reachable.mono
If G is a subgraph of G', reachability of two vertices in G implies their reachability in G'.
SimpleGraph.deleteEdges_mono
If G is a subgraph of H, deleting a set of edges preserves the subgraph relation.
SimpleGraph.deleteEdges_adj
Two vertices are adjacent in a graph with some edges deleted if and only if they were adjacent originally and the edge between them was not deleted.
Set.mem_singleton_iff
An element belongs to a singleton set {b} if and only if it equals b.
in1288b_conn
The graph G is connected.
in1288b_nobridge
No edge of the graph G is a bridge (G is bridgeless).
in1288b_bridge
The edge between 1 and 7 is a bridge in graph H.
in1288b_ncard
For every vertex in G, the cardinality of its neighbor set is 3.
in1288b_squares
Any four vertices forming a 4-cycle in G have vertex set {2, 3, 8, 9}.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

set_option maxRecDepth 8192set_option maxHeartbeats 5000000set_option synthInstance.maxSize 200000set_option synthInstance.maxHeartbeats 800000private def in1288b_E : Finset (Sym2 (Fin 10)) :=  {s(0,4),s(0,7),s(0,8),s(1,5),s(1,6),s(1,7),s(2,5),s(2,8),s(2,9),s(3,6),s(3,8),s(3,9),s(4,7),s(4,9),s(5,6)}private def in1288b_R : Finset (Sym2 (Fin 10)) :=  {s(0,4),s(0,7),s(1,5),s(1,6),s(1,7),s(4,7),s(5,6)}private def in1288b_G : SimpleGraph (Fin 10) := SimpleGraph.fromEdgeSet (↑in1288b_E : Set (Sym2 (Fin 10)))private def in1288b_H : SimpleGraph (Fin 10) := SimpleGraph.fromEdgeSet (↑in1288b_R : Set (Sym2 (Fin 10)))private instance : DecidableRel in1288b_G.Adj := fun _ _ => by unfold in1288b_G; infer_instanceprivate instance : DecidableRel in1288b_H.Adj := fun _ _ => by unfold in1288b_H; infer_instanceprivate def in1288b_C : SimpleGraph (Fin 10) := SimpleGraph.fromEdgeSet  (↑({s(0,8),s(8,2),s(2,9),s(9,3),s(3,6),s(6,5),s(5,1),s(1,7),s(7,4),s(4,0)} : Finset (Sym2 (Fin 10))) : Set (Sym2 (Fin 10)))private instance : DecidableRel in1288b_C.Adj := fun _ _ => by unfold in1288b_C; infer_instanceprivate theorem in1288b_C_le : in1288b_C ≤ in1288b_G := by  intro u v h  revert h  fin_cases u <;> fin_cases v <;> decideprivate theorem in1288b_C_conn : in1288b_C.Connected := by  have r : ∀ a b : Fin 10, in1288b_C.Adj a b → in1288b_C.Reachable a b := fun a b h => h.reachable  have h0 : ∀ v, in1288b_C.Reachable 0 v := by    intro v    fin_cases v    · exact SimpleGraph.Reachable.refl _    · exact (((r 0 4 (by decide))).trans (r 4 7 (by decide))).trans (r 7 1 (by decide))    · exact ((r 0 8 (by decide))).trans (r 8 2 (by decide))    · exact ((((r 0 8 (by decide))).trans (r 8 2 (by decide))).trans (r 2 9 (by decide))).trans (r 9 3 (by decide))    · exact (r 0 4 (by decide))    · exact ((((r 0 4 (by decide))).trans (r 4 7 (by decide))).trans (r 7 1 (by decide))).trans (r 1 5 (by decide))    · exact (((((r 0 8 (by decide))).trans (r 8 2 (by decide))).trans (r 2 9 (by decide))).trans (r 9 3 (by decide))).trans (r 3 6 (by decide))    · exact ((r 0 4 (by decide))).trans (r 4 7 (by decide))    · exact (r 0 8 (by decide))    · exact (((r 0 8 (by decide))).trans (r 8 2 (by decide))).trans (r 2 9 (by decide))  exact ⟨fun u v => (h0 u).symm.trans (h0 v)⟩private theorem in1288b_C_cycles : in1288b_C.IsCycles := by  intro v _  rw [← SimpleGraph.coe_neighborFinset, Set.ncard_coe_finset,    SimpleGraph.card_neighborFinset_eq_degree]  fin_cases v <;> decideprivate theorem in1288b_conn : in1288b_G.Connected := in1288b_C_conn.mono in1288b_C_leprivate theorem in1288b_deg (v : Fin 10) : in1288b_G.degree v = 3 := by fin_cases v <;> decideprivate theorem in1288b_ncard (v : Fin 10) : (in1288b_G.neighborSet v).ncard = 3 := by  rw [← SimpleGraph.coe_neighborFinset, Set.ncard_coe_finset, SimpleGraph.card_neighborFinset_eq_degree]  exact in1288b_deg vprivate theorem in1288b_nobridge (e : Sym2 (Fin 10)) : ¬ in1288b_G.IsBridge e := by  obtain ⟨v, w⟩ := e  rw [SimpleGraph.isBridge_iff]  intro h  by_cases he : s(v,w) ∈ in1288b_C.edgeSet  · have hadj : in1288b_C.Adj v w := by simpa only [SimpleGraph.mem_edgeSet] using he    have hr : (in1288b_C.deleteEdges {s(v,w)}).Reachable v w :=      in1288b_C_cycles.reachable_deleteEdges hadj    exact h (SimpleGraph.Reachable.mono (SimpleGraph.deleteEdges_mono in1288b_C_le) hr)  · have hle : in1288b_C ≤ in1288b_G.deleteEdges {s(v,w)} := by      intro a b hab      rw [SimpleGraph.deleteEdges_adj]      refine ⟨in1288b_C_le hab, ?_⟩      intro hm      rw [Set.mem_singleton_iff] at hm      exact he (hm ▸ (SimpleGraph.mem_edgeSet (G := in1288b_C)).mpr hab)    exact h (in1288b_C_conn.preconnected.mono hle v w)private theorem in1288b_bridge : in1288b_H.IsBridge s(1,7) := by  rw [SimpleGraph.isBridge_iff]  decideprivate theorem in1288b_squares : ∀ (a b : Fin 10), in1288b_G.Adj a b →    ∀ c, in1288b_G.Adj b c → c ≠ a →    ∀ d, in1288b_G.Adj c d → d ≠ b → in1288b_G.Adj d a →    ∀ v, (v = a ∨ v = b ∨ v = c ∨ v = d) ↔ (v = 2 ∨ v = 3 ∨ v = 8 ∨ v = 9) := by  intro a  fin_cases a <;> decidetheorem op874_ten_vertex_square_suppression_always_bridged :  let E : Finset (Sym2 (Fin 10)) :=    {s(0,4),s(0,7),s(0,8),s(1,5),s(1,6),s(1,7),     s(2,5),s(2,8),s(2,9),s(3,6),s(3,8),s(3,9),s(4,7),s(4,9),s(5,6)}  let G : SimpleGraph (Fin 10) := SimpleGraph.fromEdgeSet (↑E : Set (Sym2 (Fin 10)))  let R : Finset (Sym2 (Fin 10)) :=    {s(0,4),s(0,7),s(1,5),s(1,6),s(1,7),s(4,7),s(5,6)}  let H : SimpleGraph (Fin 10) := SimpleGraph.fromEdgeSet (↑R : Set (Sym2 (Fin 10)))  G.Connected ∧ G.IsRegularOfDegree 3 ∧ (∀ e : Sym2 (Fin 10), ¬ G.IsBridge e) ∧  G.Adj 2 8 ∧ G.Adj 8 3 ∧ G.Adj 3 9 ∧ G.Adj 9 2 ∧  (∀ c : Fin 4 → Fin 10, Function.Injective c →    (∀ i, G.Adj (c i) (c (i+1))) →    ∀ v, (∃ i, c i = v) ↔ (v = 2 ∨ v = 3 ∨ v = 8 ∨ v = 9)) ∧  H.IsBridge s(1,7) := by  dsimp only  change in1288b_G.Connected ∧ in1288b_G.IsRegularOfDegree 3 ∧    (∀ e, ¬ in1288b_G.IsBridge e) ∧    in1288b_G.Adj 2 8 ∧ in1288b_G.Adj 8 3 ∧ in1288b_G.Adj 3 9 ∧ in1288b_G.Adj 9 2 ∧ _ ∧ in1288b_H.IsBridge s(1,7)  refine ⟨in1288b_conn, ?_, in1288b_nobridge, by decide, by decide, by decide, by decide, ?_, in1288b_bridge⟩  · intro v    have h := in1288b_ncard v    rw [← SimpleGraph.coe_neighborFinset, Set.ncard_coe_finset,      SimpleGraph.card_neighborFinset_eq_degree] at h    exact h  · intro c hinj hcycle v    have hadj (i : Fin 4) : in1288b_G.Adj (c i) (c (i+1)) := hcycle i    have hs := in1288b_squares (c 0) (c 1) (by simpa using hadj 0)      (c 2) (by simpa using hadj 1) (by intro h; exact (by decide : (2 : Fin 4) ≠ 0) (hinj h))      (c 3) (by simpa using hadj 2) (by intro h; exact (by decide : (3 : Fin 4) ≠ 1) (hinj h))      (by simpa using hadj 3) v    constructor    · rintro ⟨i,hi⟩      apply hs.mp      fin_cases i <;> simp_all    · intro hv      rcases hs.mpr hv with h | h | h | h      · exact ⟨0,h.symm⟩      · exact ⟨1,h.symm⟩      · exact ⟨2,h.symm⟩      · exact ⟨3,h.symm⟩
See it in the graphDiscuss this resultChallenge it