AFTD Auto-Formalizing Theoretical Domains

boundary_five_blocks_bridge_shore_defect_pattern

theoremverified

Under the displayed four-block, minimum-degree and separator hypotheses, the indicated even bridge shores have at least two A vertices on the x side if x has at most one opposite-block nonneighbor. If x has exactly two such nonneighbors, both lie on the y side and the x side has no A vertices and exactly one B vertex. No clique or matching hypothesis is assumed.

Statement

theorem boundary_five_blocks_bridge_shore_defect_pattern
    (k : ℕ) (hk : 5 ≤ k) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
    (A B C D : Finset (Fin (4*k)))
    (hAB : Disjoint A B) (hAC : Disjoint A C) (hAD : Disjoint A D)
    (hBC : Disjoint B C) (hBD : Disjoint B D) (hCD : Disjoint C D)
    (hcover : A ∪ B ∪ C ∪ D = Finset.univ)
    (hA : A.card=5) (hC : C.card=5)
    (hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k)
    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)
    (hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d)
    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)
    (hsep : ∀ X U V : Finset (Fin (4*k)), U.Nonempty → V.Nonempty →
      Disjoint X U → Disjoint X V → Disjoint U V → X ∪ U ∪ V = Finset.univ →
      (∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v) → 2*k ≤ X.card)
    (x y : Fin (4*k)) (hx : x ∈ A) (hy : y ∈ C)
    (Q W : Finset (Fin (4*k))) (hQW : Disjoint Q W)
    (hxQ : x ∉ Q) (hyQ : y ∉ Q) (hxW : x ∉ W) (hyW : y ∉ W)
    (hQeven : Even Q.card) (hWeven : Even W.card)
    (hsize : (Q ∪ W ∪ {x,y}).card = 2*k)
    (hyQadj : ∀ q ∈ Q, ¬ G.Adj y q)
    (hxWadj : ∀ w ∈ W, ¬ G.Adj x w)
    (hcross : ∀ q ∈ Q, ∀ w ∈ W, ¬ G.Adj q w)
    : let r := (C.filter (fun c => ¬ G.Adj x c)).card;
      (r ≤ 1 → 2 ≤ (Q ∩ A).card) ∧
      (r = 2 → (W ∩ C).card = 2 ∧ (Q ∩ A).card = 0 ∧ (Q ∩ B).card = 1)
Source
OP-1957: assembly of the nonclique bridge-shore count and separator.
Verified
24 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4
Used by 1

The proof, explained

The proof reduces the bridge shore problem to two pure integer arithmetic classification lemmas. First, the graph hypotheses, minimum degree bound, and shore properties are translated into a system of 21 capacity, parity, and conditional constraints via `boundary_five_blocks_bridge_shore_defect_constraints`, and a separator bound is established whenever Q ∩ D is nonempty. The argument then splits on the defect r: when r ≤ 1, `boundary_five_blocks_short_c_shore_arithmetic` shows |Q ∩ A| ≥ 2; when r = 2, `boundary_five_blocks_two_defect_shore_arithmetic` forces |W ∩ C| = 2, |Q ∩ A| = 0, and |Q ∩ B| = 1.

  1. The intersection sizes of the bridge shores Q and W with the four blocks satisfy a comprehensive system of 21 arithmetic and parity constraints.

    We enable classical reasoning and invoke `boundary_five_blocks_bridge_shore_defect_constraints`. This extracts the size and capacity relations for shores Q and W across the blocks A, B, C, D, confirming that m = 2k - 5 ≥ 5, the nonneighbor defect r = |{c ∈ C | ¬G.Adj x c}| is at most 2, |W ∩ C| ≤ r, the total shore size is Q.card + W.card = m + 3, and various conditional inequalities between shore components hold.

    lines 25–32

    uses boundary_five_blocks_bridge_shore_defect_constraints

          (r = 2 → (W ∩ C).card = 2 ∧ (Q ∩ A).card = 0 ∧ (Q ∩ B).card = 1) := by  classical
      dsimp only
      have hc := boundary_five_blocks_bridge_shore_defect_constraints k hk G A B C D
        hAB hAC hAD hBC hBD hCD hcover hA hC hsizeAB hsizeCD hnoAB hnoCD hdegree
        x y hx hy Q W hQW hxQ hyQ hxW hyW hQeven hWeven hsize hyQadj hxWadj hcross
      dsimp only at hc
      rcases hc with ⟨hm,hr,hrc,hcapA,hcapB,hcapC,hcapD,hQ,hW,hQe,hWe,htotal,
        hrootx,hrooty,hqa,hqb,hqc,hqd,hwa,hwb,hwc,hwd⟩
  2. If Q ∩ D is nonempty, then |Q ∩ D| + |W ∩ B| + |W ∩ D| ≤ 2k - 5.

    Assuming |Q ∩ D| > 0, the set D ∩ Q is nonempty by `Finset.card_pos.mp` and intersection commutativity (`Finset.inter_comm`). Applying `boundary_five_blocks_strong_shore_separator_bound` gives |D ∩ Q| + |B ∩ W| + |D ∩ W| ≤ 2k - 5, which simplifies to the required inequality by commuting the intersections.

    lines 33–41

    uses Finset.card_pos.mp, Finset.inter_comm, boundary_five_blocks_strong_shore_separator_bound

      have hs : 0 < (Q ∩ D).card →
          (Q ∩ D).card + (W ∩ B).card + (W ∩ D).card ≤ 2*k-5 := by
        intro hp
        have hne : (D ∩ Q).Nonempty := by
          apply Finset.card_pos.mp
          simpa [Finset.inter_comm] using hp
        have hh := boundary_five_blocks_strong_shore_separator_bound k hk G A B C D
          hAB hAC hAD hBC hBD hCD hcover hA hC hsizeAB hsizeCD hnoCD hsep Q W hQW hcross hne
        simpa only [Finset.inter_comm] using hh
  3. If x has at most one nonneighbor in C (r ≤ 1), then Q contains at least two vertices from A (|Q ∩ A| ≥ 2).

    We split the main conjunction with `constructor` and assume r ≤ 1. We apply `boundary_five_blocks_short_c_shore_arithmetic`, supplying the structural constraints and the conditional separator bound. The only remaining condition |W ∩ C| ≤ 1 follows by linear integer arithmetic (`omega`) from |W ∩ C| ≤ r and r ≤ 1.

    lines 42–49

    uses boundary_five_blocks_short_c_shore_arithmetic

      constructor
      · intro hr1
        apply boundary_five_blocks_short_c_shore_arithmetic (2*k-5)
          (C.filter (fun c => ¬ G.Adj x c)).card (Q∩A).card (Q∩B).card (Q∩C).card (Q∩D).card
          (W∩A).card (W∩B).card (W∩C).card (W∩D).card Q.card W.card
          hm hr hrc hcapA hcapB hcapC hcapD hQ hW hQe hWe htotal hrootx hrooty
          hqa hqb hqc hqd hwa hwb hwc hwd hs
        omega
  4. If x has exactly two nonneighbors in C (r = 2), then |W ∩ C| = 2, |Q ∩ A| = 0, and |Q ∩ B| = 1.

    For the second case, we assume r = 2. Applying `boundary_five_blocks_two_defect_shore_arithmetic` with the structural constraints, r = 2, and the conditional separator bound directly concludes that |W ∩ C| = 2, |Q ∩ A| = 0, and |Q ∩ B| = 1.

    lines 50–55

    uses boundary_five_blocks_two_defect_shore_arithmetic

      · intro hr2
        exact boundary_five_blocks_two_defect_shore_arithmetic (2*k-5)
          (C.filter (fun c => ¬ G.Adj x c)).card (Q∩A).card (Q∩B).card (Q∩C).card (Q∩D).card
          (W∩A).card (W∩B).card (W∩C).card (W∩D).card Q.card W.card
          hm hr2 hrc hcapA hcapB hcapC hcapD hQ hW hQe hWe htotal hrootx hrooty
          hqa hqb hqc hqd hwa hwb hwc hwd hs
boundary_five_blocks_bridge_shore_defect_constraints
Under the four-block partition and minimum-degree hypotheses, the intersection sizes of the even bridge shores Q and W with A, B, C, D satisfy a system of 21 parity, size, capacity, root-degree, and conditional interaction inequalities, including r ≤ 2 and |W ∩ C| ≤ r where r is the number of nonneighbors of x in C.
Finset.card_pos.mp
A finite set is nonempty if and only if its cardinality is strictly greater than zero.
Finset.inter_comm
The intersection of two finite sets is commutative: s₁ ∩ s₂ = s₂ ∩ s₁.
boundary_five_blocks_strong_shore_separator_bound
Under the four-block separator hypotheses, if D ∩ Q is nonempty, then |D ∩ Q| + |B ∩ W| + |D ∩ W| ≤ 2k - 5.
boundary_five_blocks_short_c_shore_arithmetic
Any non-negative integer solution to the bridge shore defect constraints and the conditional separator bound satisfies qa ≥ 2 provided the defect on W ∩ C satisfies wc ≤ 1.
boundary_five_blocks_two_defect_shore_arithmetic
Any non-negative integer solution to the bridge shore defect constraints and the conditional separator bound with r = 2 uniquely satisfies wc = 2, qa = 0, and qb = 1.

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

theorem boundary_five_blocks_bridge_shore_defect_pattern    (k : ℕ) (hk : 5 ≤ k) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]    (A B C D : Finset (Fin (4*k)))    (hAB : Disjoint A B) (hAC : Disjoint A C) (hAD : Disjoint A D)    (hBC : Disjoint B C) (hBD : Disjoint B D) (hCD : Disjoint C D)    (hcover : A ∪ B ∪ C ∪ D = Finset.univ)    (hA : A.card=5) (hC : C.card=5)    (hsizeAB : A.card+B.card=2*k) (hsizeCD : C.card+D.card=2*k)    (hnoAB : ∀ a ∈ A, ∀ b ∈ B, ¬ G.Adj a b)    (hnoCD : ∀ c ∈ C, ∀ d ∈ D, ¬ G.Adj c d)    (hdegree : ∀ v, 2*k+2 ≤ (G.neighborFinset v).card)    (hsep : ∀ X U V : Finset (Fin (4*k)), U.Nonempty → V.Nonempty →      Disjoint X U → Disjoint X V → Disjoint U V → X ∪ U ∪ V = Finset.univ →      (∀ u ∈ U, ∀ v ∈ V, ¬ G.Adj u v) → 2*k ≤ X.card)    (x y : Fin (4*k)) (hx : x ∈ A) (hy : y ∈ C)    (Q W : Finset (Fin (4*k))) (hQW : Disjoint Q W)    (hxQ : x ∉ Q) (hyQ : y ∉ Q) (hxW : x ∉ W) (hyW : y ∉ W)    (hQeven : Even Q.card) (hWeven : Even W.card)    (hsize : (Q ∪ W ∪ {x,y}).card = 2*k)    (hyQadj : ∀ q ∈ Q, ¬ G.Adj y q)    (hxWadj : ∀ w ∈ W, ¬ G.Adj x w)    (hcross : ∀ q ∈ Q, ∀ w ∈ W, ¬ G.Adj q w)    : let r := (C.filter (fun c => ¬ G.Adj x c)).card;      (r ≤ 1 → 2 ≤ (Q ∩ A).card) ∧      (r = 2 → (W ∩ C).card = 2 ∧ (Q ∩ A).card = 0 ∧ (Q ∩ B).card = 1) := by  classical  dsimp only  have hc := boundary_five_blocks_bridge_shore_defect_constraints k hk G A B C D    hAB hAC hAD hBC hBD hCD hcover hA hC hsizeAB hsizeCD hnoAB hnoCD hdegree    x y hx hy Q W hQW hxQ hyQ hxW hyW hQeven hWeven hsize hyQadj hxWadj hcross  dsimp only at hc  rcases hc with ⟨hm,hr,hrc,hcapA,hcapB,hcapC,hcapD,hQ,hW,hQe,hWe,htotal,    hrootx,hrooty,hqa,hqb,hqc,hqd,hwa,hwb,hwc,hwd⟩  have hs : 0 < (Q ∩ D).card →      (Q ∩ D).card + (W ∩ B).card + (W ∩ D).card ≤ 2*k-5 := by    intro hp    have hne : (D ∩ Q).Nonempty := by      apply Finset.card_pos.mp      simpa [Finset.inter_comm] using hp    have hh := boundary_five_blocks_strong_shore_separator_bound k hk G A B C D      hAB hAC hAD hBC hBD hCD hcover hA hC hsizeAB hsizeCD hnoCD hsep Q W hQW hcross hne    simpa only [Finset.inter_comm] using hh  constructor  · intro hr1    apply boundary_five_blocks_short_c_shore_arithmetic (2*k-5)      (C.filter (fun c => ¬ G.Adj x c)).card (Q∩A).card (Q∩B).card (Q∩C).card (Q∩D).card      (W∩A).card (W∩B).card (W∩C).card (W∩D).card Q.card W.card      hm hr hrc hcapA hcapB hcapC hcapD hQ hW hQe hWe htotal hrootx hrooty      hqa hqb hqc hqd hwa hwb hwc hwd hs    omega  · intro hr2    exact boundary_five_blocks_two_defect_shore_arithmetic (2*k-5)      (C.filter (fun c => ¬ G.Adj x c)).card (Q∩A).card (Q∩B).card (Q∩C).card (Q∩D).card      (W∩A).card (W∩B).card (W∩C).card (W∩D).card Q.card W.card      hm hr2 hrc hcapA hcapB hcapC hcapD hQ hW hQe hWe htotal hrootx hrooty      hqa hqb hqc hqd hwa hwb hwc hwd hs
See it in the graphDiscuss this resultChallenge it