AFTD Auto-Formalizing Theoretical Domains

op1957_exceptional_slots_four_shore_structure

theoremverified

A pairwise anticomplete barrier partition, split into two exceptional groups and a pool, produces four pairwise disjoint shores with the same unique crossing edge and an anticomplete pool.

Statement

theorem op1957_exceptional_slots_four_shore_structure
    {I V : Type*} [DecidableEq I] [DecidableEq V] (G : SimpleGraph V)
    (K J : Finset I) (R : I → Finset V) (U X Y P Q : Finset V) (x y : V)
    (hJK : J ⊆ K)
    (hsub : ∀ i ∈ K, R i ⊆ U)
    (hne : ∀ i ∈ K, (R i).Nonempty)
    (hdis : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → Disjoint (R i) (R j))
    (hanti : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → ∀ u ∈ R i, ∀ v ∈ R j, ¬ G.Adj u v)
    (hcover : K.biUnion R = U)
    (hP : P = ∅ ∨ ∃ i ∈ K \ J, P = R i)
    (hQ : Q = ∅ ∨ ∃ i ∈ K \ J, Q = R i)
    (hslot : ∀ i ∈ K \ J, R i = P ∨ R i = Q)
    (hPQ : Disjoint P Q)
    (hXY : Disjoint X Y) (hXU : Disjoint X U) (hYU : Disjoint Y U)
    (hcross : ∀ a ∈ X, ∀ b ∈ Y, G.Adj a b → a=x ∧ b=y)
    (hXanti : ∀ a ∈ X, ∀ u ∈ U, ¬ G.Adj a u)
    (hYanti : ∀ b ∈ Y, ∀ u ∈ U, ¬ G.Adj b u) :
    let F : Fin 4 → Finset V := ![X,Y,P,Q]
    let E := J.biUnion R
    P ⊆ U ∧ Q ⊆ U ∧ E ⊆ U ∧ U = P ∪ Q ∪ E ∧
    (∀ i j : Fin 4, i ≠ j → Disjoint (F i) (F j)) ∧
    (∀ i, Disjoint (F i) E) ∧
    (∀ i j : Fin 4, i ≠ j → ∀ a ∈ F i, ∀ b ∈ F j, G.Adj a b →
      (i=0 ∧ j=1 ∧ a=x ∧ b=y) ∨ (i=1 ∧ j=0 ∧ a=y ∧ b=x)) ∧
    (∀ i, ∀ a ∈ F i, ∀ b ∈ E, ¬ G.Adj a b)
Source
OP-1957 small-shore barrier graph-to-count transfer
Verified
29 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 1

The proof, explained

The proof decomposes the barrier vertex set U into two exceptional slots P, Q and a pool E = ⋃_{j ∈ J} R(j), using the covering hypothesis and the definition of slots. Because the partition blocks R(i) are pairwise disjoint and anticomplete, and P and Q correspond to distinct blocks in K \\ J, the sets P, Q, and E are pairwise disjoint and pairwise anticomplete. The shores F = ![X, Y, P, Q] inherit pairwise disjointness from the disjointness of X and Y from U and each other. Finally, exhaustive case analysis on the four shore indices confirms that the only crossing edges among distinct shores connect x ∈ X and y ∈ Y, and that all four shores are anticomplete to the pool E.

  1. P ⊆ U, Q ⊆ U, and E ⊆ U.

    Working in classical logic, we observe that P is either empty (which is a subset of U by `Finset.empty_subset`) or equal to some partition block R(i) with i ∈ K \\ J ⊆ K, which is contained in U by hypothesis `hsub`. Symmetrically, Q ⊆ U. For the pool E = ⋃_{j ∈ J} R(j), any element belongs to R(j) for some j ∈ J; since J ⊆ K, hypothesis `hsub` again guarantees that R(j) ⊆ U, so E ⊆ U.

    lines 26–39

    uses Finset.empty_subset, Finset.mem_sdiff.mp, Finset.mem_biUnion.mp

      classical
      dsimp only
      have hPU : P ⊆ U := by
        rcases hP with rfl | ⟨i,hi,rfl⟩
        · exact Finset.empty_subset _
        · exact hsub i (Finset.mem_sdiff.mp hi).1
      have hQU : Q ⊆ U := by
        rcases hQ with rfl | ⟨i,hi,rfl⟩
        · exact Finset.empty_subset _
        · exact hsub i (Finset.mem_sdiff.mp hi).1
      have hEU : J.biUnion R ⊆ U := by
        intro v hv
        obtain ⟨i,hi,hv⟩ := Finset.mem_biUnion.mp hv
        exact hsub i (hJK hi) hv
  2. U = P ∪ Q ∪ E.

    We establish equality by two inclusions. Forward: since U = ⋃_{i ∈ K} R(i) by `hcover`, any v ∈ U belongs to R(i) for some i ∈ K. If i ∈ J, then v ∈ E. Otherwise, i ∈ K \\ J, so by the slot condition `hslot`, R(i) must be either P or Q, placing v in P ∪ Q. Reverse: since P, Q, and E are all subsets of U, their union P ∪ Q ∪ E is contained in U.

    lines 40–57

    uses Finset.mem_biUnion.mp, Finset.mem_union_right, Finset.mem_biUnion.mpr, Finset.mem_sdiff.mpr, Finset.mem_union_left, Finset.mem_union.mp

      have hUeq : U = P ∪ Q ∪ J.biUnion R := by
        ext v
        constructor
        · intro hv
          rw [←hcover] at hv
          obtain ⟨i,hi,hv⟩ := Finset.mem_biUnion.mp hv
          by_cases hij : i ∈ J
          · exact Finset.mem_union_right _ (Finset.mem_biUnion.mpr ⟨i,hij,hv⟩)
          · have hi' : i ∈ K \ J := Finset.mem_sdiff.mpr ⟨hi,hij⟩
            rcases hslot i hi' with hp | hq
            · exact Finset.mem_union_left _ (Finset.mem_union_left _ (hp ▸ hv))
            · exact Finset.mem_union_left _ (Finset.mem_union_right _ (hq ▸ hv))
        · intro hv
          rcases Finset.mem_union.mp hv with hv | hv
          · rcases Finset.mem_union.mp hv with hv | hv
            · exact hPU hv
            · exact hQU hv
          · exact hEU hv
  3. P and Q are both disjoint from the pool E.

    If P is empty, disjointness is trivial. If P = R(i) for some i ∈ K \\ J, any element of E = ⋃_{j ∈ J} R(j) belongs to R(j) with j ∈ J. Because i ∉ J and j ∈ J, the indices i and j are distinct elements of K. By pairwise disjointness `hdis`, R(i) and R(j) are disjoint, so no element can lie in both P and E. The exact same argument shows that Q and E are disjoint.

    lines 58–73

    uses Finset.disjoint_left.mpr, Finset.mem_biUnion.mp, Finset.mem_sdiff.mp, Finset.disjoint_left.mp

      have hPE : Disjoint P (J.biUnion R) := by
        rcases hP with rfl | ⟨i,hi,rfl⟩
        · simp
        · apply Finset.disjoint_left.mpr
          intro v hv he
          obtain ⟨j,hj,hvj⟩ := Finset.mem_biUnion.mp he
          have hij : i ≠ j := by intro h; subst j; exact (Finset.mem_sdiff.mp hi).2 hj
          exact Finset.disjoint_left.mp (hdis i (Finset.mem_sdiff.mp hi).1 j (hJK hj) hij) hv hvj
      have hQE : Disjoint Q (J.biUnion R) := by
        rcases hQ with rfl | ⟨i,hi,rfl⟩
        · simp
        · apply Finset.disjoint_left.mpr
          intro v hv he
          obtain ⟨j,hj,hvj⟩ := Finset.mem_biUnion.mp he
          have hij : i ≠ j := by intro h; subst j; exact (Finset.mem_sdiff.mp hi).2 hj
          exact Finset.disjoint_left.mp (hdis i (Finset.mem_sdiff.mp hi).1 j (hJK hj) hij) hv hvj
  4. P is anticomplete to Q, and both P and Q are anticomplete to E.

    For P and Q: if either is empty, there are no vertices, so the claim is vacuous. If P = R(i) and Q = R(j) for i, j ∈ K \\ J, the indices i and j cannot be equal: otherwise P = Q = R(i) would be nonempty (by `hne`) yet disjoint from itself (by `hPQ`), a contradiction. Since i ≠ j ∈ K, the partition blocks R(i) and R(j) are pairwise anticomplete by `hanti`. For P (or Q) and E: any element of E lies in R(j) for some j ∈ J. Since i ∈ K \\ J and j ∈ J, we have i ≠ j, so by `hanti` there are no edges between R(i) and R(j).

    lines 74–97

    uses Finset.mem_sdiff.mp, Finset.disjoint_left.mp, Finset.mem_biUnion.mp

      have hPQanti : ∀ a ∈ P, ∀ b ∈ Q, ¬ G.Adj a b := by
        rcases hP with rfl | ⟨i,hi,rfl⟩
        · simp
        · rcases hQ with rfl | ⟨j,hj,rfl⟩
          · simp
          · have hij : i ≠ j := by
              intro he; subst j
              obtain ⟨v,hv⟩ := hne i (Finset.mem_sdiff.mp hi).1
              exact Finset.disjoint_left.mp hPQ hv hv
            exact hanti i (Finset.mem_sdiff.mp hi).1 j (Finset.mem_sdiff.mp hj).1 hij
      have hPEanti : ∀ a ∈ P, ∀ b ∈ J.biUnion R, ¬ G.Adj a b := by
        rcases hP with rfl | ⟨i,hi,rfl⟩
        · simp
        · intro a ha b hb
          obtain ⟨j,hj,hb⟩ := Finset.mem_biUnion.mp hb
          have hij : i ≠ j := by intro he; subst j; exact (Finset.mem_sdiff.mp hi).2 hj
          exact hanti i (Finset.mem_sdiff.mp hi).1 j (hJK hj) hij a ha b hb
      have hQEanti : ∀ a ∈ Q, ∀ b ∈ J.biUnion R, ¬ G.Adj a b := by
        rcases hQ with rfl | ⟨i,hi,rfl⟩
        · simp
        · intro a ha b hb
          obtain ⟨j,hj,hb⟩ := Finset.mem_biUnion.mp hb
          have hij : i ≠ j := by intro he; subst j; exact (Finset.mem_sdiff.mp hi).2 hj
          exact hanti i (Finset.mem_sdiff.mp hi).1 j (hJK hj) hij a ha b hb
  5. X and Y are disjoint from P, Q, and E.

    By hypothesis, X and Y are disjoint from U. Since P, Q, and E have all been shown to be subsets of U, the lemma `Finset.disjoint_of_subset_right` immediately implies that X and Y are disjoint from P, from Q, and from E.

    lines 98–103

    uses Finset.disjoint_of_subset_right

      have hXP : Disjoint X P := Finset.disjoint_of_subset_right hPU hXU
      have hXQ : Disjoint X Q := Finset.disjoint_of_subset_right hQU hXU
      have hYP : Disjoint Y P := Finset.disjoint_of_subset_right hPU hYU
      have hYQ : Disjoint Y Q := Finset.disjoint_of_subset_right hQU hYU
      have hXE : Disjoint X (J.biUnion R) := Finset.disjoint_of_subset_right hEU hXU
      have hYE : Disjoint Y (J.biUnion R) := Finset.disjoint_of_subset_right hEU hYU
  6. The four shores F = ![X, Y, P, Q] are pairwise disjoint.

    We provide the first four proved conjuncts (P ⊆ U, Q ⊆ U, E ⊆ U, and U = P ∪ Q ∪ E). To show that F_i and F_j are disjoint for all distinct indices i ≠ j in Fin 4, we perform exhaustive case analysis on i and j. Each of the pairs of distinct sets from {X, Y, P, Q} is disjoint by the hypotheses `hXY` and `hPQ`, or by the disjointness lemmas `hXP`, `hXQ`, `hYP`, and `hYQ` proved in the previous step.

    lines 104–108

      refine ⟨hPU,hQU,hEU,hUeq,?_,?_,?_,?_⟩
      · intro i j hij
        fin_cases i <;> fin_cases j <;> simp_all <;>
          first | exact hXY | exact hXY.symm | exact hXP | exact hXP.symm | exact hXQ | exact hXQ.symm |
            exact hYP | exact hYP.symm | exact hYQ | exact hYQ.symm | exact hPQ | exact hPQ.symm
  7. Each of the four shores F_i is disjoint from E.

    We case-split on i ∈ Fin 4. The shore F_i evaluates to X, Y, P, or Q via matrix vector simplification, and disjointness from E is given respectively by the earlier established facts `hXE`, `hYE`, `hPE`, and `hQE`.

    lines 109–111

    uses Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_fin_one

      · intro i
        fin_cases i <;> simp only [Matrix.cons_val_zero,Matrix.cons_val_one,Matrix.cons_val_fin_one] <;>
          first | exact hXE | exact hYE | exact hPE | exact hQE
  8. Any edge between distinct shores F_i and F_j has endpoints x ∈ X and y ∈ Y.

    We examine all pairs of distinct shores i ≠ j using case analysis on Fin 4: between F_0 = X and F_1 = Y, hypothesis `hcross` forces the endpoints to be a = x and b = y; by symmetry of adjacency, between F_1 = Y and F_0 = X the endpoints are a = y and b = x. Any edge between X (or Y) and P (or Q) contradicts anticompleteness to U (`hXanti` or `hYanti`), since P, Q ⊆ U. Any edge between P and Q contradicts the anticompleteness lemma `hPQanti`. All impossible cases are eliminated by `False.elim`.

    lines 112–125

    uses False.elim

      · intro i j hij a ha b hb hab
        fin_cases i <;> fin_cases j <;> simp at hij ⊢ <;> simp at ha hb <;>
          first | exact hcross a ha b hb hab
                | exact ⟨(hcross b hb a ha hab.symm).2,(hcross b hb a ha hab.symm).1⟩
                | exact False.elim (hXanti a ha b (hPU hb) hab)
                | exact False.elim (hXanti a ha b (hQU hb) hab)
                | exact False.elim (hXanti b hb a (hPU ha) hab.symm)
                | exact False.elim (hXanti b hb a (hQU ha) hab.symm)
                | exact False.elim (hYanti a ha b (hPU hb) hab)
                | exact False.elim (hYanti a ha b (hQU hb) hab)
                | exact False.elim (hYanti b hb a (hPU ha) hab.symm)
                | exact False.elim (hYanti b hb a (hQU ha) hab.symm)
                | exact False.elim (hPQanti a ha b hb hab)
                | exact False.elim (hPQanti b hb a ha hab.symm)
  9. Each shore F_i is anticomplete to the pool E.

    Case-splitting on i ∈ Fin 4, the shore F_i is X, Y, P, or Q. For X and Y, since E ⊆ U, any edge to E is ruled out by `hXanti` and `hYanti`. For P and Q, edges to E are ruled out by the earlier lemmas `hPEanti` and `hQEanti`.

    lines 126–129

    uses Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_fin_one

      · intro i a ha b hb
        fin_cases i <;> simp only [Matrix.cons_val_zero,Matrix.cons_val_one,Matrix.cons_val_fin_one] at ha <;>
          first | exact hXanti a ha b (hEU hb) | exact hYanti a ha b (hEU hb) |
            exact hPEanti a ha b hb | exact hQEanti a ha b hb
Finset.empty_subset
The empty set is a subset of any finite set.
Finset.mem_sdiff.mp
An element of the set difference s \\ t belongs to s and does not belong to t.
Finset.mem_biUnion.mp
If an element belongs to a bounded union ⋃_{a ∈ s} f(a), then it belongs to f(a) for some a ∈ s.
Finset.mem_biUnion.mpr
If an element belongs to f(a) for some a ∈ s, then it belongs to the bounded union ⋃_{a ∈ s} f(a).
Finset.mem_sdiff.mpr
If an element belongs to s and not to t, then it belongs to s \\ t.
Finset.mem_union_left
If an element belongs to s, then it belongs to s ∪ t.
Finset.mem_union_right
If an element belongs to t, then it belongs to s ∪ t.
Finset.mem_union.mp
If an element belongs to s ∪ t, then it belongs to s or to t.
Finset.disjoint_left.mp
If two finite sets are disjoint, no element of the first belongs to the second.
Finset.disjoint_left.mpr
Two finite sets are disjoint if no element of the first belongs to the second.
Finset.disjoint_of_subset_right
If s is disjoint from u, then s is disjoint from any subset t ⊆ u.
Matrix.cons_val_zero
Evaluating a vector constructed with Matrix.vecCons at index 0 yields its first element.
Matrix.cons_val_one
Evaluating a vector constructed with Matrix.vecCons at index 1 yields the first element of its tail.
Matrix.cons_val_fin_one
Evaluating a 1-element vector constructed with Matrix.vecCons at its sole index yields that element.
False.elim
From a contradiction (False), any statement follows (principle of explosion).

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 op1957_exceptional_slots_four_shore_structure    {I V : Type*} [DecidableEq I] [DecidableEq V] (G : SimpleGraph V)    (K J : Finset I) (R : I → Finset V) (U X Y P Q : Finset V) (x y : V)    (hJK : J ⊆ K)    (hsub : ∀ i ∈ K, R i ⊆ U)    (hne : ∀ i ∈ K, (R i).Nonempty)    (hdis : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → Disjoint (R i) (R j))    (hanti : ∀ i ∈ K, ∀ j ∈ K, i ≠ j → ∀ u ∈ R i, ∀ v ∈ R j, ¬ G.Adj u v)    (hcover : K.biUnion R = U)    (hP : P = ∅ ∨ ∃ i ∈ K \ J, P = R i)    (hQ : Q = ∅ ∨ ∃ i ∈ K \ J, Q = R i)    (hslot : ∀ i ∈ K \ J, R i = P ∨ R i = Q)    (hPQ : Disjoint P Q)    (hXY : Disjoint X Y) (hXU : Disjoint X U) (hYU : Disjoint Y U)    (hcross : ∀ a ∈ X, ∀ b ∈ Y, G.Adj a b → a=x ∧ b=y)    (hXanti : ∀ a ∈ X, ∀ u ∈ U, ¬ G.Adj a u)    (hYanti : ∀ b ∈ Y, ∀ u ∈ U, ¬ G.Adj b u) :    let F : Fin 4 → Finset V := ![X,Y,P,Q]    let E := J.biUnion R    P ⊆ U ∧ Q ⊆ U ∧ E ⊆ U ∧ U = P ∪ Q ∪ E ∧    (∀ i j : Fin 4, i ≠ j → Disjoint (F i) (F j)) ∧    (∀ i, Disjoint (F i) E) ∧    (∀ i j : Fin 4, i ≠ j → ∀ a ∈ F i, ∀ b ∈ F j, G.Adj a b →      (i=0 ∧ j=1 ∧ a=x ∧ b=y) ∨ (i=1 ∧ j=0 ∧ a=y ∧ b=x)) ∧    (∀ i, ∀ a ∈ F i, ∀ b ∈ E, ¬ G.Adj a b) := by  classical  dsimp only  have hPU : P ⊆ U := by    rcases hP with rfl | ⟨i,hi,rfl⟩    · exact Finset.empty_subset _    · exact hsub i (Finset.mem_sdiff.mp hi).1  have hQU : Q ⊆ U := by    rcases hQ with rfl | ⟨i,hi,rfl⟩    · exact Finset.empty_subset _    · exact hsub i (Finset.mem_sdiff.mp hi).1  have hEU : J.biUnion R ⊆ U := by    intro v hv    obtain ⟨i,hi,hv⟩ := Finset.mem_biUnion.mp hv    exact hsub i (hJK hi) hv  have hUeq : U = P ∪ Q ∪ J.biUnion R := by    ext v    constructor    · intro hv      rw [←hcover] at hv      obtain ⟨i,hi,hv⟩ := Finset.mem_biUnion.mp hv      by_cases hij : i ∈ J      · exact Finset.mem_union_right _ (Finset.mem_biUnion.mpr ⟨i,hij,hv⟩)      · have hi' : i ∈ K \ J := Finset.mem_sdiff.mpr ⟨hi,hij⟩        rcases hslot i hi' with hp | hq        · exact Finset.mem_union_left _ (Finset.mem_union_left _ (hp ▸ hv))        · exact Finset.mem_union_left _ (Finset.mem_union_right _ (hq ▸ hv))    · intro hv      rcases Finset.mem_union.mp hv with hv | hv      · rcases Finset.mem_union.mp hv with hv | hv        · exact hPU hv        · exact hQU hv      · exact hEU hv  have hPE : Disjoint P (J.biUnion R) := by    rcases hP with rfl | ⟨i,hi,rfl⟩    · simp    · apply Finset.disjoint_left.mpr      intro v hv he      obtain ⟨j,hj,hvj⟩ := Finset.mem_biUnion.mp he      have hij : i ≠ j := by intro h; subst j; exact (Finset.mem_sdiff.mp hi).2 hj      exact Finset.disjoint_left.mp (hdis i (Finset.mem_sdiff.mp hi).1 j (hJK hj) hij) hv hvj  have hQE : Disjoint Q (J.biUnion R) := by    rcases hQ with rfl | ⟨i,hi,rfl⟩    · simp    · apply Finset.disjoint_left.mpr      intro v hv he      obtain ⟨j,hj,hvj⟩ := Finset.mem_biUnion.mp he      have hij : i ≠ j := by intro h; subst j; exact (Finset.mem_sdiff.mp hi).2 hj      exact Finset.disjoint_left.mp (hdis i (Finset.mem_sdiff.mp hi).1 j (hJK hj) hij) hv hvj  have hPQanti : ∀ a ∈ P, ∀ b ∈ Q, ¬ G.Adj a b := by    rcases hP with rfl | ⟨i,hi,rfl⟩    · simp    · rcases hQ with rfl | ⟨j,hj,rfl⟩      · simp      · have hij : i ≠ j := by          intro he; subst j          obtain ⟨v,hv⟩ := hne i (Finset.mem_sdiff.mp hi).1          exact Finset.disjoint_left.mp hPQ hv hv        exact hanti i (Finset.mem_sdiff.mp hi).1 j (Finset.mem_sdiff.mp hj).1 hij  have hPEanti : ∀ a ∈ P, ∀ b ∈ J.biUnion R, ¬ G.Adj a b := by    rcases hP with rfl | ⟨i,hi,rfl⟩    · simp    · intro a ha b hb      obtain ⟨j,hj,hb⟩ := Finset.mem_biUnion.mp hb      have hij : i ≠ j := by intro he; subst j; exact (Finset.mem_sdiff.mp hi).2 hj      exact hanti i (Finset.mem_sdiff.mp hi).1 j (hJK hj) hij a ha b hb  have hQEanti : ∀ a ∈ Q, ∀ b ∈ J.biUnion R, ¬ G.Adj a b := by    rcases hQ with rfl | ⟨i,hi,rfl⟩    · simp    · intro a ha b hb      obtain ⟨j,hj,hb⟩ := Finset.mem_biUnion.mp hb      have hij : i ≠ j := by intro he; subst j; exact (Finset.mem_sdiff.mp hi).2 hj      exact hanti i (Finset.mem_sdiff.mp hi).1 j (hJK hj) hij a ha b hb  have hXP : Disjoint X P := Finset.disjoint_of_subset_right hPU hXU  have hXQ : Disjoint X Q := Finset.disjoint_of_subset_right hQU hXU  have hYP : Disjoint Y P := Finset.disjoint_of_subset_right hPU hYU  have hYQ : Disjoint Y Q := Finset.disjoint_of_subset_right hQU hYU  have hXE : Disjoint X (J.biUnion R) := Finset.disjoint_of_subset_right hEU hXU  have hYE : Disjoint Y (J.biUnion R) := Finset.disjoint_of_subset_right hEU hYU  refine ⟨hPU,hQU,hEU,hUeq,?_,?_,?_,?_⟩  · intro i j hij    fin_cases i <;> fin_cases j <;> simp_all <;>      first | exact hXY | exact hXY.symm | exact hXP | exact hXP.symm | exact hXQ | exact hXQ.symm |        exact hYP | exact hYP.symm | exact hYQ | exact hYQ.symm | exact hPQ | exact hPQ.symm  · intro i    fin_cases i <;> simp only [Matrix.cons_val_zero,Matrix.cons_val_one,Matrix.cons_val_fin_one] <;>      first | exact hXE | exact hYE | exact hPE | exact hQE  · intro i j hij a ha b hb hab    fin_cases i <;> fin_cases j <;> simp at hij ⊢ <;> simp at ha hb <;>      first | exact hcross a ha b hb hab            | exact ⟨(hcross b hb a ha hab.symm).2,(hcross b hb a ha hab.symm).1⟩            | exact False.elim (hXanti a ha b (hPU hb) hab)            | exact False.elim (hXanti a ha b (hQU hb) hab)            | exact False.elim (hXanti b hb a (hPU ha) hab.symm)            | exact False.elim (hXanti b hb a (hQU ha) hab.symm)            | exact False.elim (hYanti a ha b (hPU hb) hab)            | exact False.elim (hYanti a ha b (hQU hb) hab)            | exact False.elim (hYanti b hb a (hPU ha) hab.symm)            | exact False.elim (hYanti b hb a (hQU ha) hab.symm)            | exact False.elim (hPQanti a ha b hb hab)            | exact False.elim (hPQanti b hb a ha hab.symm)  · intro i a ha b hb    fin_cases i <;> simp only [Matrix.cons_val_zero,Matrix.cons_val_one,Matrix.cons_val_fin_one] at ha <;>      first | exact hXanti a ha b (hEU hb) | exact hYanti a ha b (hEU hb) |        exact hPEanti a ha b hb | exact hQEanti a ha b hb
See it in the graphDiscuss this resultChallenge it