AFTD Auto-Formalizing Theoretical Domains

matching_zero_codegree_blocked_switches_forces_complement_four_cycle

theoremverified

If a perfect-matching edge uv has no common complement neighbor, each endpoint has at least two graph neighbors, and no four- or six-switch is available, the complement contains a four-cycle with two vertices in each endpoint neighborhood.

Statement

theorem matching_zero_codegree_blocked_switches_forces_complement_four_cycle
    {V : Type*} (G : SimpleGraph V) (P : G.Subgraph) (hP : P.IsPerfectMatching)
    (u v : V) (huv : P.Adj u v)
    (hdeg_u : ∃ x y : V, x ≠ y ∧ G.Adj u x ∧ G.Adj u y)
    (hdeg_v : ∃ x y : V, x ≠ y ∧ G.Adj v x ∧ G.Adj v y)
    (hfar2 : ∀ x : V, ¬ ((Gᶜ).Adj u x ∧ (Gᶜ).Adj v x))
    (h4 : ¬ ∃ a b, Function.Injective (![u,v,a,b] : Fin 4 → V) ∧ P.Adj a b ∧ G.Adj v a ∧ G.Adj u b)
    (h6 : ¬ ∃ a b c d, Function.Injective (![u,v,a,b,c,d] : Fin 6 → V) ∧ P.Adj a b ∧ P.Adj c d ∧ G.Adj v b ∧ G.Adj a c ∧ G.Adj u d) :
    ∃ a b c d, Function.Injective (![u,v,a,b,c,d] : Fin 6 → V) ∧
      (Gᶜ).Adj u a ∧ (Gᶜ).Adj u b ∧ (Gᶜ).Adj v c ∧ (Gᶜ).Adj v d ∧
      (Gᶜ).Adj a c ∧ (Gᶜ).Adj a d ∧ (Gᶜ).Adj b c ∧ (Gᶜ).Adj b d
Source
OP-1957: the zero-codegree short-switch obstruction contains a four-cycle; experiment 34629.
Verified
20 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Used by 1

The proof, explained

The theorem is established by first proving that pairwise distinctness implies injectivity for 4- and 6-tuples, and then selecting two matching edges {x, y} and {z, t} using the degree bounds. Because u and v share no complement neighbor and admit no 4-switch, the matching partner y of a neighbor x of v is also adjacent to v and non-adjacent to u; symmetrically, the partner t of a neighbor z of u is adjacent to u and non-adjacent to v. The sets {x, y} and {z, t} are disjoint because their vertices have opposite adjacency to v, and the absence of 6-switches prevents any graph cross-edges, yielding the desired K_{2,2} in the complement.

  1. Any 4-tuple of pairwise distinct elements defines an injective map from Fin 4.

    Given distinctness hypotheses for all pairs of entries in ![a, b, c, d], we verify injectivity by exhausting all 16 pairs of indices (i, j) in Fin 4 with `fin_cases`. The diagonal cases i = j are immediate by reflexivity, and every off-diagonal case i ≠ j contradicts one of the given distinctness hypotheses.

    lines 8–13

      intro i j hij
      fin_cases i <;> fin_cases j
      exacts [rfl, absurd hij hab, absurd hij hac, absurd hij had,
        absurd hij hab.symm, rfl, absurd hij hbc, absurd hij hbd,
        absurd hij hac.symm, absurd hij hbc.symm, rfl, absurd hij hcd,
        absurd hij had.symm, absurd hij hbd.symm, absurd hij hcd.symm, rfl]
  2. Any 6-tuple of pairwise distinct elements defines an injective map from Fin 6.

    Similarly, given distinctness hypotheses for all 15 pairs of entries in ![a, b, c, d, e, f], we verify injectivity by exhausting all 36 index pairs (i, j) in Fin 6 with `fin_cases`. Each off-diagonal equality contradicts one of the assumed pairwise inequalities.

    lines 21–28

      intro i j hij
      fin_cases i <;> fin_cases j
      exacts [rfl, absurd hij hab, absurd hij hac, absurd hij had, absurd hij hae, absurd hij haf,
        absurd hij hab.symm, rfl, absurd hij hbc, absurd hij hbd, absurd hij hbe, absurd hij hbf,
        absurd hij hac.symm, absurd hij hbc.symm, rfl, absurd hij hcd, absurd hij hce, absurd hij hcf,
        absurd hij had.symm, absurd hij hbd.symm, absurd hij hcd.symm, rfl, absurd hij hde, absurd hij hdf,
        absurd hij hae.symm, absurd hij hbe.symm, absurd hij hce.symm, absurd hij hde.symm, rfl, absurd hij hef,
        absurd hij haf.symm, absurd hij hbf.symm, absurd hij hcf.symm, absurd hij hdf.symm, absurd hij hef.symm, rfl]
  3. Every vertex has a unique partner in the matching P, and u and v are distinct neighbors in G.

    We work in classical logic. From the definition of a perfect matching via `SimpleGraph.Subgraph.isPerfectMatching_iff.mp`, any vertex has a unique neighbor in P (recorded as `hmate`). Because uv is an edge of P, it is also an edge of G, which implies u ≠ v.

    lines 41–45

    uses SimpleGraph.Subgraph.isPerfectMatching_iff.mp

      classical
      have hmate : ∀ {a b c : V}, P.Adj a b → P.Adj a c → b = c :=
        fun {a b c} h1 h2 => (SimpleGraph.Subgraph.isPerfectMatching_iff.mp hP a).unique h1 h2
      have huvG : G.Adj u v := P.adj_sub huv
      have huvne : u ≠ v := huvG.ne
  4. Any vertex with at least two neighbors in G has a neighbor distinct from any given target vertex.

    Given two distinct neighbors x and y of a vertex s, at least one of them must differ from any specified vertex t: if x = t, then y ≠ t by transitivity.

    lines 46–53

      have choose_other (s t : V) (h : ∃ x y : V, x ≠ y ∧ G.Adj s x ∧ G.Adj s y) :
          ∃ z, z ≠ t ∧ G.Adj s z := by
        obtain ⟨x,y,hxy,hx,hy⟩ := h
        by_cases hxt : x = t
        · refine ⟨y, ?_, hy⟩
          intro hyt
          exact hxy (hxt.trans hyt.symm)
        · exact ⟨x,hxt,hx⟩
  5. Every vertex other than u and v is adjacent in G to at least one of u and v.

    If a vertex x ≠ u, v were not adjacent to u and also not adjacent to v in G, then x would be adjacent to both u and v in the complement graph Gᶜ by `SimpleGraph.compl_adj`. This contradicts the hypothesis `hfar2` that u and v share no complement neighbor. Hence non-adjacency to u implies adjacency to v (`hnu`), and non-adjacency to v implies adjacency to u (`hnv`).

    lines 54–63

    uses SimpleGraph.compl_adj

      have hnu (x : V) (hxu : x ≠ u) (hxv : x ≠ v) (hux : ¬ G.Adj u x) : G.Adj v x := by
        by_contra hvx
        apply hfar2 x
        exact ⟨(SimpleGraph.compl_adj G u x).2 ⟨hxu.symm,hux⟩,
          (SimpleGraph.compl_adj G v x).2 ⟨hxv.symm,hvx⟩⟩
      have hnv (x : V) (hxu : x ≠ u) (hxv : x ≠ v) (hvx : ¬ G.Adj v x) : G.Adj u x := by
        by_contra hux
        apply hfar2 x
        exact ⟨(SimpleGraph.compl_adj G u x).2 ⟨hxu.symm,hux⟩,
          (SimpleGraph.compl_adj G v x).2 ⟨hxv.symm,hvx⟩⟩
  6. There exists a neighbor x of v other than u, whose matching partner y in P is distinct from both u and v.

    Since v has degree at least 2 in G, we choose a neighbor x of v with x ≠ u. Let y be the unique matching partner of x in P, so x ≠ y. If y were u, uniqueness of matching partners in P would force v = x, contradicting x ≠ v. Similarly, if y were v, uniqueness would force u = x, contradicting x ≠ u. Thus y is distinct from both u and v.

    lines 64–77

    uses SimpleGraph.Subgraph.isPerfectMatching_iff.mp

      obtain ⟨x,hxu,hvx⟩ := choose_other v u hdeg_v
      have hxv : x ≠ v := hvx.symm.ne
      obtain ⟨y,hxy,_⟩ := (SimpleGraph.Subgraph.isPerfectMatching_iff.mp hP) x
      have hxyne : x ≠ y := (P.adj_sub hxy).ne
      have hyu : y ≠ u := by
        intro h
        subst y
        have h' : v = x := hmate huv hxy.symm
        exact hxv h'.symm
      have hyv : y ≠ v := by
        intro h
        subst y
        have h' : u = x := hmate huv.symm hxy.symm
        exact hxu h'.symm
  7. Both x and y are neighbors of v in G and non-neighbors of u in G.

    If u were adjacent to y in G, the four distinct vertices (u, v, x, y) would form a 4-switch—since xy is a matching edge, v is adjacent to x, and u is adjacent to y—contradicting the hypothesis `h4`. Hence u is not adjacent to y. By the dichotomy `hnu`, v is adjacent to y. If u were adjacent to x, the tuple (u, v, y, x) would likewise form a 4-switch with matching edge yx, again contradicting `h4`. Thus u is not adjacent to x either.

    lines 78–88

    uses in1047_fourcycle_tuple4_injective

      have huxy : ¬ G.Adj u y := by
        intro h
        apply h4
        refine ⟨x,y,?_,hxy,hvx,h⟩
        exact in1047_fourcycle_tuple4_injective u v x y huvne hxu.symm hyu.symm hxv.symm hyv.symm hxyne
      have hvy : G.Adj v y := hnu y hyu hyv huxy
      have huxx : ¬ G.Adj u x := by
        intro h
        apply h4
        refine ⟨y,x,?_,hxy.symm,hvy,h⟩
        exact in1047_fourcycle_tuple4_injective u v y x huvne hyu.symm hxu.symm hyv.symm hxv.symm hxyne.symm
  8. There exists a neighbor z of u other than v, whose matching partner t in P is distinct from both u and v.

    Symmetrically, since u has degree at least 2 in G, we choose a neighbor z of u with z ≠ v. Let t be the unique matching partner of z in P, so z ≠ t. By the uniqueness of matching partners in P, t cannot equal u (which would force v = z) nor v (which would force u = z).

    lines 89–102

    uses SimpleGraph.Subgraph.isPerfectMatching_iff.mp

      obtain ⟨z,hzv,huz⟩ := choose_other u v hdeg_u
      have hzu : z ≠ u := huz.symm.ne
      obtain ⟨t,hzt,_⟩ := (SimpleGraph.Subgraph.isPerfectMatching_iff.mp hP) z
      have hztne : z ≠ t := (P.adj_sub hzt).ne
      have htu : t ≠ u := by
        intro h
        subst t
        have h' : v = z := hmate huv hzt.symm
        exact hzv h'.symm
      have htv : t ≠ v := by
        intro h
        subst t
        have h' : u = z := hmate huv.symm hzt.symm
        exact hzu h'.symm
  9. Both z and t are neighbors of u in G and non-neighbors of v in G.

    If v were adjacent to t in G, the vertices (u, v, t, z) with matching edge tz would form a 4-switch, contradicting `h4`. Hence v is not adjacent to t, which by `hnv` forces u to be adjacent to t. If v were adjacent to z, the vertices (u, v, z, t) would form a 4-switch, contradicting `h4`. Thus v is not adjacent to z either.

    lines 103–113

    uses in1047_fourcycle_tuple4_injective

      have hvt : ¬ G.Adj v t := by
        intro h
        apply h4
        refine ⟨t,z,?_,hzt.symm,h,huz⟩
        exact in1047_fourcycle_tuple4_injective u v t z huvne htu.symm hzu.symm htv.symm hzv.symm hztne.symm
      have hut : G.Adj u t := hnv t htu htv hvt
      have hvz : ¬ G.Adj v z := by
        intro h
        apply h4
        refine ⟨z,t,?_,hzt,h,hut⟩
        exact in1047_fourcycle_tuple4_injective u v z t huvne hzu.symm htu.symm hzv.symm htv.symm hztne
  10. The sets {x, y} and {z, t} are disjoint, so all six vertices u, v, x, y, z, t are pairwise distinct.

    Both x and y are adjacent to v in G, while neither z nor t is adjacent to v in G. Consequently, x ≠ z, x ≠ t, y ≠ z, and y ≠ t. Together with the earlier inequalities, all six vertices u, v, x, y, z, t are pairwise distinct.

    lines 114–129

      have hxz : x ≠ z := by
        intro h
        subst z
        exact hvz hvx
      have hxt : x ≠ t := by
        intro h
        subst t
        exact hvt hvx
      have hyz : y ≠ z := by
        intro h
        subst z
        exact hvz hvy
      have hyt : y ≠ t := by
        intro h
        subst t
        exact hvt hvy
  11. There are no edges in G between {x, y} and {z, t}.

    Suppose an edge existed in G between {x, y} and {z, t}: an edge xz would give a 6-switch (u, v, x, y, z, t) with matching edges xy, zt and graph edges vy, xz, ut; an edge xt would give a 6-switch (u, v, x, y, t, z); an edge yz would give a 6-switch (u, v, y, x, z, t); and an edge yt would give a 6-switch (u, v, y, x, t, z). In each case, injectivity of the 6-tuple is certified by `in1047_fourcycle_tuple6_injective`, contradicting `h6`. Hence none of these four cross-edges exist in G.

    lines 130–153

    uses in1047_fourcycle_tuple6_injective

      have hxzH : ¬ G.Adj x z := by
        intro h
        apply h6
        refine ⟨x,y,z,t,?_,hxy,hzt,hvy,h,hut⟩
        exact in1047_fourcycle_tuple6_injective u v x y z t huvne hxu.symm hyu.symm hzu.symm htu.symm
          hxv.symm hyv.symm hzv.symm htv.symm hxyne hxz hxt hyz hyt hztne
      have hxtH : ¬ G.Adj x t := by
        intro h
        apply h6
        refine ⟨x,y,t,z,?_,hxy,hzt.symm,hvy,h,huz⟩
        exact in1047_fourcycle_tuple6_injective u v x y t z huvne hxu.symm hyu.symm htu.symm hzu.symm
          hxv.symm hyv.symm htv.symm hzv.symm hxyne hxt hxz hyt hyz hztne.symm
      have hyzH : ¬ G.Adj y z := by
        intro h
        apply h6
        refine ⟨y,x,z,t,?_,hxy.symm,hzt,hvx,h,hut⟩
        exact in1047_fourcycle_tuple6_injective u v y x z t huvne hyu.symm hxu.symm hzu.symm htu.symm
          hyv.symm hxv.symm hzv.symm htv.symm hxyne.symm hyz hyt hxz hxt hztne
      have hytH : ¬ G.Adj y t := by
        intro h
        apply h6
        refine ⟨y,x,t,z,?_,hxy.symm,hzt.symm,hvx,h,huz⟩
        exact in1047_fourcycle_tuple6_injective u v y x t z huvne hyu.symm hxu.symm htu.symm hzu.symm
          hyv.symm hxv.symm htv.symm hzv.symm hxyne.symm hyt hyz hxt hxz hztne.symm
  12. The vertices x, y, z, t form a 4-cycle in Gᶜ with u adjacent to x, y and v adjacent to z, t.

    We instantiate the existential witnesses with a = x, b = y, c = z, d = t. All six vertices are distinct by `in1047_fourcycle_tuple6_injective`. By `SimpleGraph.compl_adj`, the absence of edges in G implies complement edges: u is adjacent in Gᶜ to x and y; v is adjacent in Gᶜ to z and t; and the four pairs (x, z), (x, t), (y, z), (y, t) are all adjacent in Gᶜ, forming the complete bipartite graph K_{2,2} (a 4-cycle) in the complement.

    lines 154–164

    uses SimpleGraph.compl_adj, in1047_fourcycle_tuple6_injective

      refine ⟨x,y,z,t,?_,?_,?_,?_,?_,?_,?_,?_,?_⟩
      · exact in1047_fourcycle_tuple6_injective u v x y z t huvne hxu.symm hyu.symm hzu.symm htu.symm
          hxv.symm hyv.symm hzv.symm htv.symm hxyne hxz hxt hyz hyt hztne
      · exact (SimpleGraph.compl_adj G u x).2 ⟨hxu.symm,huxx⟩
      · exact (SimpleGraph.compl_adj G u y).2 ⟨hyu.symm,huxy⟩
      · exact (SimpleGraph.compl_adj G v z).2 ⟨hzv.symm,hvz⟩
      · exact (SimpleGraph.compl_adj G v t).2 ⟨htv.symm,hvt⟩
      · exact (SimpleGraph.compl_adj G x z).2 ⟨hxz,hxzH⟩
      · exact (SimpleGraph.compl_adj G x t).2 ⟨hxt,hxtH⟩
      · exact (SimpleGraph.compl_adj G y z).2 ⟨hyz,hyzH⟩
      · exact (SimpleGraph.compl_adj G y t).2 ⟨hyt,hytH⟩
SimpleGraph.Subgraph.isPerfectMatching_iff.mp
In a graph with a perfect matching, every vertex has a unique matching partner.
SimpleGraph.compl_adj
Two vertices are adjacent in the complement graph if and only if they are distinct and not adjacent in the original graph.
in1047_fourcycle_tuple4_injective
A 4-tuple of vertices whose entries are pairwise distinct defines an injective function from Fin 4.
in1047_fourcycle_tuple6_injective
A 6-tuple of vertices whose entries are pairwise distinct defines an injective function from Fin 6.

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 maxHeartbeats 2000000set_option maxRecDepth 8192private theorem in1047_fourcycle_tuple4_injective {V : Type*} (a b c d : V)    (hab : a ≠ b) (hac : a ≠ c) (had : a ≠ d)    (hbc : b ≠ c) (hbd : b ≠ d) (hcd : c ≠ d) :    Function.Injective (![a,b,c,d] : Fin 4 → V) := by  intro i j hij  fin_cases i <;> fin_cases j  exacts [rfl, absurd hij hab, absurd hij hac, absurd hij had,    absurd hij hab.symm, rfl, absurd hij hbc, absurd hij hbd,    absurd hij hac.symm, absurd hij hbc.symm, rfl, absurd hij hcd,    absurd hij had.symm, absurd hij hbd.symm, absurd hij hcd.symm, rfl]private theorem in1047_fourcycle_tuple6_injective {V : Type*} (a b c d e f : V)    (hab : a ≠ b) (hac : a ≠ c) (had : a ≠ d) (hae : a ≠ e) (haf : a ≠ f)    (hbc : b ≠ c) (hbd : b ≠ d) (hbe : b ≠ e) (hbf : b ≠ f)    (hcd : c ≠ d) (hce : c ≠ e) (hcf : c ≠ f)    (hde : d ≠ e) (hdf : d ≠ f) (hef : e ≠ f) :    Function.Injective (![a,b,c,d,e,f] : Fin 6 → V) := by  intro i j hij  fin_cases i <;> fin_cases j  exacts [rfl, absurd hij hab, absurd hij hac, absurd hij had, absurd hij hae, absurd hij haf,    absurd hij hab.symm, rfl, absurd hij hbc, absurd hij hbd, absurd hij hbe, absurd hij hbf,    absurd hij hac.symm, absurd hij hbc.symm, rfl, absurd hij hcd, absurd hij hce, absurd hij hcf,    absurd hij had.symm, absurd hij hbd.symm, absurd hij hcd.symm, rfl, absurd hij hde, absurd hij hdf,    absurd hij hae.symm, absurd hij hbe.symm, absurd hij hce.symm, absurd hij hde.symm, rfl, absurd hij hef,    absurd hij haf.symm, absurd hij hbf.symm, absurd hij hcf.symm, absurd hij hdf.symm, absurd hij hef.symm, rfl]theorem matching_zero_codegree_blocked_switches_forces_complement_four_cycle    {V : Type*} (G : SimpleGraph V) (P : G.Subgraph) (hP : P.IsPerfectMatching)    (u v : V) (huv : P.Adj u v)    (hdeg_u : ∃ x y : V, x ≠ y ∧ G.Adj u x ∧ G.Adj u y)    (hdeg_v : ∃ x y : V, x ≠ y ∧ G.Adj v x ∧ G.Adj v y)    (hfar2 : ∀ x : V, ¬ ((Gᶜ).Adj u x ∧ (Gᶜ).Adj v x))    (h4 : ¬ ∃ a b, Function.Injective (![u,v,a,b] : Fin 4 → V) ∧ P.Adj a b ∧ G.Adj v a ∧ G.Adj u b)    (h6 : ¬ ∃ a b c d, Function.Injective (![u,v,a,b,c,d] : Fin 6 → V) ∧ P.Adj a b ∧ P.Adj c d ∧ G.Adj v b ∧ G.Adj a c ∧ G.Adj u d) :    ∃ a b c d, Function.Injective (![u,v,a,b,c,d] : Fin 6 → V) ∧      (Gᶜ).Adj u a ∧ (Gᶜ).Adj u b ∧ (Gᶜ).Adj v c ∧ (Gᶜ).Adj v d ∧      (Gᶜ).Adj a c ∧ (Gᶜ).Adj a d ∧ (Gᶜ).Adj b c ∧ (Gᶜ).Adj b d := by  classical  have hmate : ∀ {a b c : V}, P.Adj a b → P.Adj a c → b = c :=    fun {a b c} h1 h2 => (SimpleGraph.Subgraph.isPerfectMatching_iff.mp hP a).unique h1 h2  have huvG : G.Adj u v := P.adj_sub huv  have huvne : u ≠ v := huvG.ne  have choose_other (s t : V) (h : ∃ x y : V, x ≠ y ∧ G.Adj s x ∧ G.Adj s y) :      ∃ z, z ≠ t ∧ G.Adj s z := by    obtain ⟨x,y,hxy,hx,hy⟩ := h    by_cases hxt : x = t    · refine ⟨y, ?_, hy⟩      intro hyt      exact hxy (hxt.trans hyt.symm)    · exact ⟨x,hxt,hx⟩  have hnu (x : V) (hxu : x ≠ u) (hxv : x ≠ v) (hux : ¬ G.Adj u x) : G.Adj v x := by    by_contra hvx    apply hfar2 x    exact ⟨(SimpleGraph.compl_adj G u x).2 ⟨hxu.symm,hux⟩,      (SimpleGraph.compl_adj G v x).2 ⟨hxv.symm,hvx⟩⟩  have hnv (x : V) (hxu : x ≠ u) (hxv : x ≠ v) (hvx : ¬ G.Adj v x) : G.Adj u x := by    by_contra hux    apply hfar2 x    exact ⟨(SimpleGraph.compl_adj G u x).2 ⟨hxu.symm,hux⟩,      (SimpleGraph.compl_adj G v x).2 ⟨hxv.symm,hvx⟩⟩  obtain ⟨x,hxu,hvx⟩ := choose_other v u hdeg_v  have hxv : x ≠ v := hvx.symm.ne  obtain ⟨y,hxy,_⟩ := (SimpleGraph.Subgraph.isPerfectMatching_iff.mp hP) x  have hxyne : x ≠ y := (P.adj_sub hxy).ne  have hyu : y ≠ u := by    intro h    subst y    have h' : v = x := hmate huv hxy.symm    exact hxv h'.symm  have hyv : y ≠ v := by    intro h    subst y    have h' : u = x := hmate huv.symm hxy.symm    exact hxu h'.symm  have huxy : ¬ G.Adj u y := by    intro h    apply h4    refine ⟨x,y,?_,hxy,hvx,h⟩    exact in1047_fourcycle_tuple4_injective u v x y huvne hxu.symm hyu.symm hxv.symm hyv.symm hxyne  have hvy : G.Adj v y := hnu y hyu hyv huxy  have huxx : ¬ G.Adj u x := by    intro h    apply h4    refine ⟨y,x,?_,hxy.symm,hvy,h⟩    exact in1047_fourcycle_tuple4_injective u v y x huvne hyu.symm hxu.symm hyv.symm hxv.symm hxyne.symm  obtain ⟨z,hzv,huz⟩ := choose_other u v hdeg_u  have hzu : z ≠ u := huz.symm.ne  obtain ⟨t,hzt,_⟩ := (SimpleGraph.Subgraph.isPerfectMatching_iff.mp hP) z  have hztne : z ≠ t := (P.adj_sub hzt).ne  have htu : t ≠ u := by    intro h    subst t    have h' : v = z := hmate huv hzt.symm    exact hzv h'.symm  have htv : t ≠ v := by    intro h    subst t    have h' : u = z := hmate huv.symm hzt.symm    exact hzu h'.symm  have hvt : ¬ G.Adj v t := by    intro h    apply h4    refine ⟨t,z,?_,hzt.symm,h,huz⟩    exact in1047_fourcycle_tuple4_injective u v t z huvne htu.symm hzu.symm htv.symm hzv.symm hztne.symm  have hut : G.Adj u t := hnv t htu htv hvt  have hvz : ¬ G.Adj v z := by    intro h    apply h4    refine ⟨z,t,?_,hzt,h,hut⟩    exact in1047_fourcycle_tuple4_injective u v z t huvne hzu.symm htu.symm hzv.symm htv.symm hztne  have hxz : x ≠ z := by    intro h    subst z    exact hvz hvx  have hxt : x ≠ t := by    intro h    subst t    exact hvt hvx  have hyz : y ≠ z := by    intro h    subst z    exact hvz hvy  have hyt : y ≠ t := by    intro h    subst t    exact hvt hvy  have hxzH : ¬ G.Adj x z := by    intro h    apply h6    refine ⟨x,y,z,t,?_,hxy,hzt,hvy,h,hut⟩    exact in1047_fourcycle_tuple6_injective u v x y z t huvne hxu.symm hyu.symm hzu.symm htu.symm      hxv.symm hyv.symm hzv.symm htv.symm hxyne hxz hxt hyz hyt hztne  have hxtH : ¬ G.Adj x t := by    intro h    apply h6    refine ⟨x,y,t,z,?_,hxy,hzt.symm,hvy,h,huz⟩    exact in1047_fourcycle_tuple6_injective u v x y t z huvne hxu.symm hyu.symm htu.symm hzu.symm      hxv.symm hyv.symm htv.symm hzv.symm hxyne hxt hxz hyt hyz hztne.symm  have hyzH : ¬ G.Adj y z := by    intro h    apply h6    refine ⟨y,x,z,t,?_,hxy.symm,hzt,hvx,h,hut⟩    exact in1047_fourcycle_tuple6_injective u v y x z t huvne hyu.symm hxu.symm hzu.symm htu.symm      hyv.symm hxv.symm hzv.symm htv.symm hxyne.symm hyz hyt hxz hxt hztne  have hytH : ¬ G.Adj y t := by    intro h    apply h6    refine ⟨y,x,t,z,?_,hxy.symm,hzt.symm,hvx,h,huz⟩    exact in1047_fourcycle_tuple6_injective u v y x t z huvne hyu.symm hxu.symm htu.symm hzu.symm      hyv.symm hxv.symm htv.symm hzv.symm hxyne.symm hyt hyz hxt hxz hztne.symm  refine ⟨x,y,z,t,?_,?_,?_,?_,?_,?_,?_,?_,?_⟩  · exact in1047_fourcycle_tuple6_injective u v x y z t huvne hxu.symm hyu.symm hzu.symm htu.symm      hxv.symm hyv.symm hzv.symm htv.symm hxyne hxz hxt hyz hyt hztne  · exact (SimpleGraph.compl_adj G u x).2 ⟨hxu.symm,huxx⟩  · exact (SimpleGraph.compl_adj G u y).2 ⟨hyu.symm,huxy⟩  · exact (SimpleGraph.compl_adj G v z).2 ⟨hzv.symm,hvz⟩  · exact (SimpleGraph.compl_adj G v t).2 ⟨htv.symm,hvt⟩  · exact (SimpleGraph.compl_adj G x z).2 ⟨hxz,hxzH⟩  · exact (SimpleGraph.compl_adj G x t).2 ⟨hxt,hxtH⟩  · exact (SimpleGraph.compl_adj G y z).2 ⟨hyz,hyzH⟩  · exact (SimpleGraph.compl_adj G y t).2 ⟨hyt,hytH⟩
See it in the graphDiscuss this resultChallenge it