AFTD Auto-Formalizing Theoretical Domains

op1957_two_bridge_degree_only_shore_matching_obstruction

theoremverified

An explicit 48-vertex graph H of maximum degree 21 has adjacent saturated twins 0,1, and distinct nonneighbors 2,3 that share no H-neighbor with 0. An eight-vertex set Q consists of saturated vertices with common H-neighborhood W ∪ {2,3}, where W has 19 vertices; each of two 14-vertex subsets W₁,W₂ covering W, as well as Q, induces a perfect matching in the complement G. But G[W] has matching number at most seven, and G is not 12-extendible.

Statement

theorem op1957_two_bridge_degree_only_shore_matching_obstruction :
    let W : Finset (Fin 48) := Finset.univ.filter (fun v => 5 ≤ v.val ∧ v.val < 24)
    let W₁ : Finset (Fin 48) := Finset.univ.filter (fun v => 5 ≤ v.val ∧ v.val < 19)
    let W₂ : Finset (Fin 48) := Finset.univ.filter (fun v => (5 ≤ v.val ∧ v.val < 12) ∨ (17 ≤ v.val ∧ v.val < 24))
    let Q : Finset (Fin 48) := Finset.univ.filter (fun v => 24 ≤ v.val ∧ v.val < 32)
    (∀ a, (op1957_shore_barrier_H.neighborFinset a).card ≤ 21) ∧
    op1957_shore_barrier_H.Adj 0 1 ∧
    (op1957_shore_barrier_H.neighborFinset 0).card = 21 ∧
    (∀ a, a ≠ 0 → a ≠ 1 → (op1957_shore_barrier_H.Adj 0 a ↔ op1957_shore_barrier_H.Adj 1 a)) ∧
    ¬ op1957_shore_barrier_H.Adj 0 2 ∧ ¬ op1957_shore_barrier_H.Adj 0 3 ∧
    (∀ a, op1957_shore_barrier_H.Adj 0 a → ¬ op1957_shore_barrier_H.Adj 2 a ∧ ¬ op1957_shore_barrier_H.Adj 3 a) ∧
    (∀ q ∈ Q, op1957_shore_barrier_H.neighborFinset q = W ∪ {2, 3}) ∧
    (∃ M : (op1957_shore_barrier_G.induce {v | v ∈ W₁}).Subgraph, M.IsPerfectMatching) ∧
    (∃ M : (op1957_shore_barrier_G.induce {v | v ∈ W₂}).Subgraph, M.IsPerfectMatching) ∧
    (∃ M : (op1957_shore_barrier_G.induce {v | v ∈ Q}).Subgraph, M.IsPerfectMatching) ∧
    (∀ M : (op1957_shore_barrier_G.induce {v | v ∈ W}).Subgraph,
       M.IsMatching → M.edgeSet.ncard ≤ 7) ∧
    ¬ is_k_extendable op1957_shore_barrier_G 12
Source
Explicit degree-only obstruction to the general two-bridge shore-matching step for OP-1957, found in experiment 35093; the graph is not claimed to satisfy the first equality witness or minimality.
Verified
20 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 3

The proof, explained

The theorem proves several structural properties of an explicit 48-vertex graph H and its complement G, establishing that G is not 12-extendible. The first eight properties—degree bounds, adjacent twin vertices, non-neighborhoods, and neighbor sets of Q—are verified by finite computational decision. Perfect matchings in G[W₁], G[W₂], and G[Q] are constructed explicitly via fixed-point-free involutions along edges of G. The matching number of G[W] is bounded by 7 by exhibiting a 7-vertex cover c_W = [5, 12), leveraging the fact that [12, 24) is an independent set in G. Finally, G cannot be 12-extendible because two disjoint odd subsets, K₅ ⊂ Q (size 5) and W (size 19), have no cross edges in G, yet their 24-vertex complement admits an explicit perfect matching, violating the parity barrier for extendibility.

  1. The adjacency relation of H is symmetric and loopless.

    Symmetry follows because the definition of adjacency takes the symmetric disjunction of `op1957_shore_barrier_base a b` and `op1957_shore_barrier_base b a` (swapping branches using `Or.inr` and `Or.inl`). Irreflexivity holds because adjacency explicitly requires a ≠ b.

    lines 8–9

    uses Or.inl, Or.inr

      symm := ⟨by intro a b h; exact ⟨h.1.symm, h.2.elim Or.inr Or.inl⟩⟩
      loopless := ⟨by intro a h; exact h.1 rfl⟩
  2. Adjacency in H is decidable. automation

    Unfolding `op1957_shore_barrier_base`, adjacency is a boolean combination of decidable inequalities on finite natural numbers (`Fin 48`), so typeclass synthesis (`infer_instance`) provides the decision procedure.

    lines 12–14

    uses op1957_shore_barrier_base

      change Decidable (a ≠ b ∧ (op1957_shore_barrier_base a b ∨ op1957_shore_barrier_base b a))
      unfold op1957_shore_barrier_base
      infer_instance
  3. A fixed-point-free involution along edges of a graph defines a valid spanning subgraph.

    Given an involution f on V such that every vertex v is adjacent to f(v), we define a subgraph on the full vertex set with edges w = f(v). Lines 25–27 verify that every such edge is an edge of G; line 28 verifies that every endpoint is in the full vertex set; and lines 30–33 show symmetry: if w = f(v), then f(w) = f(f(v)) = v.

    lines 25–33

        intro v w hw
        subst hw
        exact h_adj v
      edge_vert := by intro v w hw; trivial
      symm := by
        constructor
        intro v w hw
        show v = f w
        rw [hw, h_inv]
  4. The subgraph induced by an involution along edges is a perfect matching.

    By `SimpleGraph.Subgraph.isPerfectMatching_iff`, a subgraph is a perfect matching if and only if each vertex has a unique neighbor. For each vertex v, its unique neighbor in the subgraph is f(v), since adjacency in the subgraph is defined by w = f(v).

    lines 39–43

    uses SimpleGraph.Subgraph.isPerfectMatching_iff

      rw [SimpleGraph.Subgraph.isPerfectMatching_iff]
      intro v
      refine ⟨f v, rfl, ?_⟩
      intro w hw
      exact hw
  5. Introduce vertex sets W, W₁, W₂, Q, and verify the first eight structural properties of H by finite computation. automation

    We introduce the finsets W = [5, 24), W₁ = [5, 19), W₂ = [5, 12) ∪ [17, 24), and Q = [24, 32). The first eight conjuncts assert that Δ(H) ≤ 21; vertices 0 and 1 are adjacent, have degree 21, and are twins outside {0, 1}; 0 is non-adjacent to 2 and 3 and shares no neighbors with them; and every vertex in Q has neighborhood W ∪ {2, 3}. Because H is an explicit graph on Fin 48, each of these finite checks is closed automatically by computational evaluation (`decide`).

    lines 63–64

      intro W W₁ W₂ Q
      refine ⟨by decide, by decide, by decide, by decide, by decide, by decide, by decide, by decide, ?_, ?_, ?_, ?_, ?_⟩
  6. The induced subgraph G[W₁] has a perfect matching.

    We define an involution f₁ on the 14-vertex set W₁ = [5, 19) by shifting vertices below 12 up by 7 and vertices 12 or above down by 7. Computational checking (`decide`) verifies that f₁ preserves W₁, satisfies f₁(f₁(v)) = v, and connects adjacent vertices in G[W₁]. Applying `op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution` and `op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching` yields a perfect matching of G[W₁].

    lines 65–78

    uses op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution, op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching

      · let f₁ (v : {v : Fin 48 // v ∈ W₁}) : {v : Fin 48 // v ∈ W₁} :=
          if h : v.val.val < 12 then
            ⟨⟨v.val.val + 7, by omega⟩, by
              revert v h; decide⟩
          else
            ⟨⟨v.val.val - 7, by omega⟩, by
              revert v h; decide⟩
        have f₁_inv (v : {v : Fin 48 // v ∈ W₁}) : f₁ (f₁ v) = v := by
          revert v; decide
        have f₁_adj (v : {v : Fin 48 // v ∈ W₁}) :
            (op1957_shore_barrier_G.induce {x | x ∈ W₁}).Adj v (f₁ v) := by
          revert v; decide
        exact ⟨op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution _ f₁ f₁_inv f₁_adj,
          op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching _ _ _ _⟩
  7. The induced subgraph G[W₂] has a perfect matching.

    Similarly, on the 14-vertex set W₂ = [5, 12) ∪ [17, 24), we define an involution f₂ that shifts vertices below 12 up by 12 (into [17, 24)) and vertices 17 or above down by 12. Computation (`decide`) verifies that f₂ is an involution pairing adjacent vertices in G[W₂]. Applying the involution matching construction produces a perfect matching of G[W₂].

    lines 79–92

    uses op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution, op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching

      · let f₂ (v : {v : Fin 48 // v ∈ W₂}) : {v : Fin 48 // v ∈ W₂} :=
          if h : v.val.val < 12 then
            ⟨⟨v.val.val + 12, by omega⟩, by
              revert v h; decide⟩
          else
            ⟨⟨v.val.val - 12, by omega⟩, by
              revert v h; decide⟩
        have f₂_inv (v : {v : Fin 48 // v ∈ W₂}) : f₂ (f₂ v) = v := by
          revert v; decide
        have f₂_adj (v : {v : Fin 48 // v ∈ W₂}) :
            (op1957_shore_barrier_G.induce {x | x ∈ W₂}).Adj v (f₂ v) := by
          revert v; decide
        exact ⟨op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution _ f₂ f₂_inv f₂_adj,
          op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching _ _ _ _⟩
  8. The induced subgraph G[Q] has a perfect matching.

    On the 8-vertex set Q = [24, 32), we define fQ by pairing each even vertex v with v + 1 and each odd vertex v with v - 1. Computation (`decide`) confirms that fQ is an involution along edges of G[Q]. The involution matching lemmas produce a perfect matching of G[Q].

    lines 93–106

    uses op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution, op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching

      · let fQ (v : {v : Fin 48 // v ∈ Q}) : {v : Fin 48 // v ∈ Q} :=
          if h : v.val.val % 2 = 0 then
            ⟨⟨v.val.val + 1, by omega⟩, by
              revert v h; decide⟩
          else
            ⟨⟨v.val.val - 1, by omega⟩, by
              revert v h; decide⟩
        have fQ_inv (v : {v : Fin 48 // v ∈ Q}) : fQ (fQ v) = v := by
          revert v; decide
        have fQ_adj (v : {v : Fin 48 // v ∈ Q}) :
            (op1957_shore_barrier_G.induce {x | x ∈ Q}).Adj v (fQ v) := by
          revert v; decide
        exact ⟨op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution _ fQ fQ_inv fQ_adj,
          op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching _ _ _ _⟩
  9. Every matching in G[W] has at most seven edges.

    Given any matching M in G[W], consider the subset c_W = {v ∈ W | v < 12} = [5, 12), which has cardinality 7 (`c_W_encard`). Because vertices [12, 24) induce a clique in H, they form an independent set in G, which implies every edge in G[W] must have at least one endpoint in [5, 12); thus c_W is a vertex cover of G[W] (`c_W_cover`, checked by `decide`). By `graph_matching_encard_le_vertex_cover_encard`, the size of any matching cannot exceed the size of any vertex cover, so the edge set of M has size at most 7.

    lines 107–122

    uses Set.encard_coe_eq_coe_finsetCard, graph_matching_encard_le_vertex_cover_encard, Set.encard_le_coe_iff_finite_ncard_le.mp

      · intro M hM
        let c_W : Set {v : Fin 48 // v ∈ W} := {v | v.val.val < 12}
        have c_W_encard : c_W.encard = 7 := by
          have : c_W = (Finset.univ.filter (fun (v : {v : Fin 48 // v ∈ W}) => v.val.val < 12) : Set _) := by
            ext; simp [c_W]
          rw [this, Set.encard_coe_eq_coe_finsetCard]
          norm_num
          decide
        have c_W_cover : (op1957_shore_barrier_G.induce {v | v ∈ W}).IsVertexCover c_W := by
          intro ⟨v, hv⟩ ⟨w, hw⟩ hadj
          simp only [c_W]
          revert v w hv hw hadj
          decide
        have h := graph_matching_encard_le_vertex_cover_encard _ M c_W hM c_W_cover
        rw [c_W_encard] at h
        exact (Set.encard_le_coe_iff_finite_ncard_le.mp h).2
  10. Assuming G is 12-extendible, the 24-vertex complement C of two disjoint odd anticomplete shores K₅ and W admits a perfect matching in G[C].

    Suppose for contradiction that G is 12-extendible (`intro hExt`). Let K₅ = [24, 29) ⊂ Q (size 5) and W = [5, 24) (size 19). Both sets have odd cardinality, are disjoint, and are anticomplete in G because all vertices in Q are adjacent to all of W in H. The complement C = Fin 48 \ (K₅ ∪ W) has size 48 - 5 - 19 = 24 = 2 × 12 (`Set.ncard_coe_finset`). We define an involution fC on C pairing [0, 5) with [43, 48) via v ↔ 47 - v, and pairing [29, 43) via v ↔ 71 - v. Exhaustive checking (`decide`) verifies that fC is an involution along edges of G[C], so the involution matching lemmas produce a perfect matching P of G[C].

    lines 123–159

    uses Set.ncard_coe_finset, op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution, op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching

      · intro hExt
        let K₅ : Finset (Fin 48) := Finset.univ.filter (fun v => 24 ≤ v.val ∧ v.val < 29)
        let C : Finset (Fin 48) := Finset.univ.filter (fun v => v ∉ K₅ ∧ v ∉ W)
        let fC (v : {v : Fin 48 // v ∈ C}) : {v : Fin 48 // v ∈ C} :=
          if h1 : v.val.val < 5 then
            ⟨⟨47 - v.val.val, by omega⟩, by
              revert v h1; decide⟩
          else if h2 : v.val.val ≥ 43 then
            ⟨⟨47 - v.val.val, by omega⟩, by
              revert v h1 h2; decide⟩
          else if h3 : 29 ≤ v.val.val ∧ v.val.val ≤ 42 then
            ⟨⟨71 - v.val.val, by omega⟩, by
              revert v h1 h2 h3; decide⟩
          else
            v
        have fC_inv (v : {v : Fin 48 // v ∈ C}) : fC (fC v) = v := by
          revert v; decide
        have fC_adj (v : {v : Fin 48 // v ∈ C}) :
            (op1957_shore_barrier_G.induce {x | x ∈ C}).Adj v (fC v) := by
          revert v; decide
        have hT : K₅.card % 2 = 1 := by decide
        have hN : W.card % 2 = 1 := by decide
        have hdisj : Disjoint K₅ W := by decide
        have hcross : ∀ a ∈ K₅, ∀ b ∈ W, ¬ op1957_shore_barrier_G.Adj a b := by decide
        have hsize : ({v : Fin 48 | v ∉ K₅ ∧ v ∉ W} : Set (Fin 48)).ncard = 2 * 12 := by
          have : ({v : Fin 48 | v ∉ K₅ ∧ v ∉ W} : Set (Fin 48)) = (C : Set (Fin 48)) := by
            ext x
            simp [C]
          rw [this, Set.ncard_coe_finset]
          decide
        have hPM : ∃ P : (op1957_shore_barrier_G.induce {v | v ∉ K₅ ∧ v ∉ W}).Subgraph, P.IsPerfectMatching := by
          have hEq : {v : Fin 48 | v ∉ K₅ ∧ v ∉ W} = {v | v ∈ C} := by
            ext x
            simp [C]
          rw [hEq]
          exact ⟨op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution _ fC fC_inv fC_adj,
            op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching _ _ _ _⟩
  11. Contradiction: G is not 12-extendible.

    By `extendible_two_odd_anticomplete_shores_complement_unmatchable`, if a graph is k-extendible, the induced subgraph on the complement of two disjoint odd anticomplete shores of size 2k cannot have a perfect matching. Extending the matching P of size 12 on C to a perfect matching of G would force a perfect matching on K₅ ∪ W, which is impossible because K₅ and W are odd and have no cross edges. This contradicts the existence of P, concluding that G is not 12-extendible.

    lines 160–161

    uses extendible_two_odd_anticomplete_shores_complement_unmatchable

        exact extendible_two_odd_anticomplete_shores_complement_unmatchable op1957_shore_barrier_G 12
          hExt K₅ W hT hN hdisj hcross hsize hPM
extendible_two_odd_anticomplete_shores_complement_unmatchable
In a k-extendible graph, if two disjoint vertex sets each have odd cardinality and have no edges between them, the induced subgraph on the remaining 2k vertices cannot admit a perfect matching.
graph_matching_encard_le_vertex_cover_encard
The cardinality of any matching in a graph is at most the cardinality of any vertex cover.
op1957_shore_barrier_base
The base relation defining edges between vertices of Fin 48 in the graph H.
op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution
Constructs a spanning subgraph of G whose edges are the pairs {v, f(v)} given by an involution f along edges of G.
op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching
The subgraph constructed from an involution along edges of G is a perfect matching.
Or.inl
Constructs a proof of a ∨ b from a proof of a.
Or.inr
Constructs a proof of a ∨ b from a proof of b.
Set.encard_coe_eq_coe_finsetCard
The extended cardinality (in ℕ ∪ {∞}) of a finite set coerced to a set equals its finite cardinality.
Set.encard_le_coe_iff_finite_ncard_le.mp
If the extended cardinality of a set is at most a natural number k, then the set is finite and its natural cardinality is at most k.
Set.ncard_coe_finset
The natural cardinality of a finite set coerced to a set equals the cardinality of the finite set.
SimpleGraph.Subgraph.isPerfectMatching_iff
A subgraph is a perfect matching if and only if every vertex in the ambient graph has a unique neighbor in the subgraph.

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

def op1957_shore_barrier_base (a b : Fin 48) : Prop :=  (a.val < 2 ∧ (b.val < 2 ∨ b.val = 4 ∨ (5 ≤ b.val ∧ b.val < 24))) ∨  ((12 ≤ a.val ∧ a.val < 24) ∧ (12 ≤ b.val ∧ b.val < 24)) ∨  ((24 ≤ a.val ∧ a.val < 32) ∧ ((5 ≤ b.val ∧ b.val < 24) ∨ b.val = 2 ∨ b.val = 3))def op1957_shore_barrier_H : SimpleGraph (Fin 48) where  Adj a b := a ≠ b ∧ (op1957_shore_barrier_base a b ∨ op1957_shore_barrier_base b a)  symm := ⟨by intro a b h; exact ⟨h.1.symm, h.2.elim Or.inr Or.inl⟩⟩  loopless := ⟨by intro a h; exact h.1 rfl⟩instance : DecidableRel op1957_shore_barrier_H.Adj := fun a b => by  change Decidable (a ≠ b ∧ (op1957_shore_barrier_base a b ∨ op1957_shore_barrier_base b a))  unfold op1957_shore_barrier_base  infer_instancedef op1957_shore_barrier_G : SimpleGraph (Fin 48) := op1957_shore_barrier_Hᶜinstance : DecidableRel op1957_shore_barrier_G.Adj := inferInstanceAs (DecidableRel (op1957_shore_barrier_Hᶜ).Adj)def op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution    {V : Type*} (G : SimpleGraph V) (f : V → V)    (h_inv : ∀ v, f (f v) = v) (h_adj : ∀ v, G.Adj v (f v)) : G.Subgraph where  verts := Set.univ  Adj v w := w = f v  adj_sub := by    intro v w hw    subst hw    exact h_adj v  edge_vert := by intro v w hw; trivial  symm := by    constructor    intro v w hw    show v = f w    rw [hw, h_inv]theorem op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching    {V : Type*} (G : SimpleGraph V) (f : V → V)    (h_inv : ∀ v, f (f v) = v) (h_adj : ∀ v, G.Adj v (f v)) :    (op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution G f h_inv h_adj).IsPerfectMatching := by  rw [SimpleGraph.Subgraph.isPerfectMatching_iff]  intro v  refine ⟨f v, rfl, ?_⟩  intro w hw  exact hwtheorem op1957_two_bridge_degree_only_shore_matching_obstruction :    let W : Finset (Fin 48) := Finset.univ.filter (fun v => 5 ≤ v.val ∧ v.val < 24)    let W₁ : Finset (Fin 48) := Finset.univ.filter (fun v => 5 ≤ v.val ∧ v.val < 19)    let W₂ : Finset (Fin 48) := Finset.univ.filter (fun v => (5 ≤ v.val ∧ v.val < 12) ∨ (17 ≤ v.val ∧ v.val < 24))    let Q : Finset (Fin 48) := Finset.univ.filter (fun v => 24 ≤ v.val ∧ v.val < 32)    (∀ a, (op1957_shore_barrier_H.neighborFinset a).card ≤ 21) ∧    op1957_shore_barrier_H.Adj 0 1 ∧    (op1957_shore_barrier_H.neighborFinset 0).card = 21 ∧    (∀ a, a ≠ 0 → a ≠ 1 → (op1957_shore_barrier_H.Adj 0 a ↔ op1957_shore_barrier_H.Adj 1 a)) ∧    ¬ op1957_shore_barrier_H.Adj 0 2 ∧ ¬ op1957_shore_barrier_H.Adj 0 3 ∧    (∀ a, op1957_shore_barrier_H.Adj 0 a → ¬ op1957_shore_barrier_H.Adj 2 a ∧ ¬ op1957_shore_barrier_H.Adj 3 a) ∧    (∀ q ∈ Q, op1957_shore_barrier_H.neighborFinset q = W ∪ {2, 3}) ∧    (∃ M : (op1957_shore_barrier_G.induce {v | v ∈ W₁}).Subgraph, M.IsPerfectMatching) ∧    (∃ M : (op1957_shore_barrier_G.induce {v | v ∈ W₂}).Subgraph, M.IsPerfectMatching) ∧    (∃ M : (op1957_shore_barrier_G.induce {v | v ∈ Q}).Subgraph, M.IsPerfectMatching) ∧    (∀ M : (op1957_shore_barrier_G.induce {v | v ∈ W}).Subgraph,       M.IsMatching → M.edgeSet.ncard ≤ 7) ∧    ¬ is_k_extendable op1957_shore_barrier_G 12 := by  intro W W₁ W₂ Q  refine ⟨by decide, by decide, by decide, by decide, by decide, by decide, by decide, by decide, ?_, ?_, ?_, ?_, ?_⟩  · let f₁ (v : {v : Fin 48 // v ∈ W₁}) : {v : Fin 48 // v ∈ W₁} :=      if h : v.val.val < 12 then        ⟨⟨v.val.val + 7, by omega⟩, by          revert v h; decide⟩      else        ⟨⟨v.val.val - 7, by omega⟩, by          revert v h; decide⟩    have f₁_inv (v : {v : Fin 48 // v ∈ W₁}) : f₁ (f₁ v) = v := by      revert v; decide    have f₁_adj (v : {v : Fin 48 // v ∈ W₁}) :        (op1957_shore_barrier_G.induce {x | x ∈ W₁}).Adj v (f₁ v) := by      revert v; decide    exact ⟨op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution _ f₁ f₁_inv f₁_adj,      op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching _ _ _ _⟩  · let f₂ (v : {v : Fin 48 // v ∈ W₂}) : {v : Fin 48 // v ∈ W₂} :=      if h : v.val.val < 12 then        ⟨⟨v.val.val + 12, by omega⟩, by          revert v h; decide⟩      else        ⟨⟨v.val.val - 12, by omega⟩, by          revert v h; decide⟩    have f₂_inv (v : {v : Fin 48 // v ∈ W₂}) : f₂ (f₂ v) = v := by      revert v; decide    have f₂_adj (v : {v : Fin 48 // v ∈ W₂}) :        (op1957_shore_barrier_G.induce {x | x ∈ W₂}).Adj v (f₂ v) := by      revert v; decide    exact ⟨op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution _ f₂ f₂_inv f₂_adj,      op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching _ _ _ _⟩  · let fQ (v : {v : Fin 48 // v ∈ Q}) : {v : Fin 48 // v ∈ Q} :=      if h : v.val.val % 2 = 0 then        ⟨⟨v.val.val + 1, by omega⟩, by          revert v h; decide⟩      else        ⟨⟨v.val.val - 1, by omega⟩, by          revert v h; decide⟩    have fQ_inv (v : {v : Fin 48 // v ∈ Q}) : fQ (fQ v) = v := by      revert v; decide    have fQ_adj (v : {v : Fin 48 // v ∈ Q}) :        (op1957_shore_barrier_G.induce {x | x ∈ Q}).Adj v (fQ v) := by      revert v; decide    exact ⟨op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution _ fQ fQ_inv fQ_adj,      op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching _ _ _ _⟩  · intro M hM    let c_W : Set {v : Fin 48 // v ∈ W} := {v | v.val.val < 12}    have c_W_encard : c_W.encard = 7 := by      have : c_W = (Finset.univ.filter (fun (v : {v : Fin 48 // v ∈ W}) => v.val.val < 12) : Set _) := by        ext; simp [c_W]      rw [this, Set.encard_coe_eq_coe_finsetCard]      norm_num      decide    have c_W_cover : (op1957_shore_barrier_G.induce {v | v ∈ W}).IsVertexCover c_W := by      intro ⟨v, hv⟩ ⟨w, hw⟩ hadj      simp only [c_W]      revert v w hv hw hadj      decide    have h := graph_matching_encard_le_vertex_cover_encard _ M c_W hM c_W_cover    rw [c_W_encard] at h    exact (Set.encard_le_coe_iff_finite_ncard_le.mp h).2  · intro hExt    let K₅ : Finset (Fin 48) := Finset.univ.filter (fun v => 24 ≤ v.val ∧ v.val < 29)    let C : Finset (Fin 48) := Finset.univ.filter (fun v => v ∉ K₅ ∧ v ∉ W)    let fC (v : {v : Fin 48 // v ∈ C}) : {v : Fin 48 // v ∈ C} :=      if h1 : v.val.val < 5 then        ⟨⟨47 - v.val.val, by omega⟩, by          revert v h1; decide⟩      else if h2 : v.val.val ≥ 43 then        ⟨⟨47 - v.val.val, by omega⟩, by          revert v h1 h2; decide⟩      else if h3 : 29 ≤ v.val.val ∧ v.val.val ≤ 42 then        ⟨⟨71 - v.val.val, by omega⟩, by          revert v h1 h2 h3; decide⟩      else        v    have fC_inv (v : {v : Fin 48 // v ∈ C}) : fC (fC v) = v := by      revert v; decide    have fC_adj (v : {v : Fin 48 // v ∈ C}) :        (op1957_shore_barrier_G.induce {x | x ∈ C}).Adj v (fC v) := by      revert v; decide    have hT : K₅.card % 2 = 1 := by decide    have hN : W.card % 2 = 1 := by decide    have hdisj : Disjoint K₅ W := by decide    have hcross : ∀ a ∈ K₅, ∀ b ∈ W, ¬ op1957_shore_barrier_G.Adj a b := by decide    have hsize : ({v : Fin 48 | v ∉ K₅ ∧ v ∉ W} : Set (Fin 48)).ncard = 2 * 12 := by      have : ({v : Fin 48 | v ∉ K₅ ∧ v ∉ W} : Set (Fin 48)) = (C : Set (Fin 48)) := by        ext x        simp [C]      rw [this, Set.ncard_coe_finset]      decide    have hPM : ∃ P : (op1957_shore_barrier_G.induce {v | v ∉ K₅ ∧ v ∉ W}).Subgraph, P.IsPerfectMatching := by      have hEq : {v : Fin 48 | v ∉ K₅ ∧ v ∉ W} = {v | v ∈ C} := by        ext x        simp [C]      rw [hEq]      exact ⟨op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution _ fC fC_inv fC_adj,        op1957_two_bridge_degree_only_shore_matching_obstruction_matchingOfInvolution_isPerfectMatching _ _ _ _⟩    exact extendible_two_odd_anticomplete_shores_complement_unmatchable op1957_shore_barrier_G 12      hExt K₅ W hT hN hdisj hcross hsize hPM
See it in the graphDiscuss this resultChallenge it