case nil
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v : V
p : Walk G u✝ v
ht✝ : IsTrail p
x u : V
ht : IsTrail Walk.nil
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges Walk.nil)) ↔ u ≠ u → x ≠ u ∧ x ≠ u

case cons
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ih : IsTrail p → (Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w)
ht : IsTrail (cons huv p)
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges (cons huv p))) ↔ u ≠ w → x ≠ u ∧ x ≠ w
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u v : V
p : Walk G u v
ht : IsTrail p
x : V
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ u ≠ v → x ≠ u ∧ x ≠ v
induction' p with u u v w huv p ih
no goals
case nil
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v : V
p : Walk G u✝ v
ht✝ : IsTrail p
x u : V
ht : IsTrail Walk.nil
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges Walk.nil)) ↔ u ≠ u → x ≠ u ∧ x ≠ u
simp
case cons
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ih : IsTrail p → (Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w)
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges (cons huv p))) ↔ u ≠ w → x ≠ u ∧ x ≠ w
case cons
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ih : IsTrail p → (Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w)
ht : IsTrail (cons huv p)
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges (cons huv p))) ↔ u ≠ w → x ≠ u ∧ x ≠ w
rw [cons_isTrail_iff] at ht
case cons
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges (cons huv p))) ↔ u ≠ w → x ≠ u ∧ x ≠ w
case cons
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ih : IsTrail p → (Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w)
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges (cons huv p))) ↔ u ≠ w → x ≠ u ∧ x ≠ w
specialize ih ht.1
case cons
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + if decide (x = u ∨ x = v) = true then 1 else 0) ↔
    ¬u = w → ¬x = u ∧ ¬x = w
case cons
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges (cons huv p))) ↔ u ≠ w → x ≠ u ∧ x ≠ w
simp only [List.countp_cons, Ne.def, edges_cons, Sym2.mem_iff]
case cons.inl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
h : decide (x = u ∨ x = v) = true
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + 1) ↔ ¬u = w → ¬x = u ∧ ¬x = w

case cons.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
h : ¬decide (x = u ∨ x = v) = true
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + 0) ↔ ¬u = w → ¬x = u ∧ ¬x = w
case cons
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + if decide (x = u ∨ x = v) = true then 1 else 0) ↔
    ¬u = w → ¬x = u ∧ ¬x = w
split_ifs with h
case cons.inl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
h : x = u ∨ x = v
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + 1) ↔ ¬u = w → ¬x = u ∧ ¬x = w
case cons.inl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
h : decide (x = u ∨ x = v) = true
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + 1) ↔ ¬u = w → ¬x = u ∧ ¬x = w
rw [decide_eq_true_eq] at h
case cons.inl.inl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u v✝ : V
p✝ : Walk G u v✝
ht✝ : IsTrail p✝
x v w : V
p : Walk G v w
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
huv : Adj G x v
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (x, v) ∈ edges p
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + 1) ↔ ¬x = w → ¬x = x ∧ ¬x = w

case cons.inl.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v : V
p✝ : Walk G u✝ v
ht✝ : IsTrail p✝
x u w : V
huv : Adj G u x
p : Walk G x w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, x) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ x ≠ w → x ≠ x ∧ x ≠ w
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + 1) ↔ ¬u = w → ¬x = u ∧ ¬x = w
case cons.inl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
h : x = u ∨ x = v
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + 1) ↔ ¬u = w → ¬x = u ∧ ¬x = w
obtain (rfl | rfl) := h
case cons.inl.inl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u v✝ : V
p✝ : Walk G u v✝
ht✝ : IsTrail p✝
x v w : V
p : Walk G v w
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
huv : Adj G x v
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (x, v) ∈ edges p
⊢ ¬(v ≠ w → x ≠ v ∧ x ≠ w) ↔ ¬x = w → ¬x = x ∧ ¬x = w
case cons.inl.inl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u v✝ : V
p✝ : Walk G u v✝
ht✝ : IsTrail p✝
x v w : V
p : Walk G v w
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
huv : Adj G x v
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (x, v) ∈ edges p
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + 1) ↔ ¬x = w → ¬x = x ∧ ¬x = w
rw [Nat.even_add_one, ih]
case cons.inl.inl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u v✝ : V
p✝ : Walk G u v✝
ht✝ : IsTrail p✝
x v w : V
p : Walk G v w
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
huv : Adj G x v
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (x, v) ∈ edges p
⊢ x = w → ¬v = w
case cons.inl.inl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u v✝ : V
p✝ : Walk G u v✝
ht✝ : IsTrail p✝
x v w : V
p : Walk G v w
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
huv : Adj G x v
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (x, v) ∈ edges p
⊢ ¬(v ≠ w → x ≠ v ∧ x ≠ w) ↔ ¬x = w → ¬x = x ∧ ¬x = w
simp only [huv.ne, imp_false, Ne.def, not_false_iff, true_and_iff, not_forall,
  Classical.not_not, exists_prop, eq_self_iff_true, not_true, false_and_iff,
  and_iff_right_iff_imp]
case cons.inl.inl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u v✝ : V
p✝ : Walk G u v✝
ht✝ : IsTrail p✝
v : V
huv : Adj G v v
p : Walk G v v
ih : Even (List.countp (fun e => decide (v ∈ e)) (edges p)) ↔ v ≠ v → v ≠ v ∧ v ≠ v
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (v, v) ∈ edges p
⊢ False
case cons.inl.inl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u v✝ : V
p✝ : Walk G u v✝
ht✝ : IsTrail p✝
x v w : V
p : Walk G v w
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
huv : Adj G x v
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (x, v) ∈ edges p
⊢ x = w → ¬v = w
rintro rfl rfl
no goals
case cons.inl.inl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u v✝ : V
p✝ : Walk G u v✝
ht✝ : IsTrail p✝
v : V
huv : Adj G v v
p : Walk G v v
ih : Even (List.countp (fun e => decide (v ∈ e)) (edges p)) ↔ v ≠ v → v ≠ v ∧ v ≠ v
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (v, v) ∈ edges p
⊢ False
exact G.loopless _ huv
case cons.inl.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v : V
p✝ : Walk G u✝ v
ht✝ : IsTrail p✝
x u w : V
huv : Adj G u x
p : Walk G x w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, x) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ x ≠ w → x ≠ x ∧ x ≠ w
⊢ ¬¬(x ≠ w → x ≠ x ∧ x ≠ w) ↔ ¬(¬u = w → ¬x = u ∧ ¬x = w)
case cons.inl.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v : V
p✝ : Walk G u✝ v
ht✝ : IsTrail p✝
x u w : V
huv : Adj G u x
p : Walk G x w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, x) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ x ≠ w → x ≠ x ∧ x ≠ w
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + 1) ↔ ¬u = w → ¬x = u ∧ ¬x = w
rw [Nat.even_add_one, ih, ← not_iff_not]
case cons.inl.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v : V
p✝ : Walk G u✝ v
ht✝ : IsTrail p✝
x u w : V
huv : Adj G u x
p : Walk G x w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, x) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ x ≠ w → x ≠ x ∧ x ≠ w
⊢ x = w → ¬u = w
case cons.inl.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v : V
p✝ : Walk G u✝ v
ht✝ : IsTrail p✝
x u w : V
huv : Adj G u x
p : Walk G x w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, x) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ x ≠ w → x ≠ x ∧ x ≠ w
⊢ ¬¬(x ≠ w → x ≠ x ∧ x ≠ w) ↔ ¬(¬u = w → ¬x = u ∧ ¬x = w)
simp only [huv.ne.symm, Ne.def, eq_self_iff_true, not_true, false_and_iff, not_forall,
  not_false_iff, exists_prop, and_true_iff, Classical.not_not, true_and_iff, iff_and_self]
case cons.inl.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v : V
p✝ : Walk G u✝ v
ht✝ : IsTrail p✝
x u : V
huv : Adj G u x
p : Walk G x x
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, x) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ x ≠ x → x ≠ x ∧ x ≠ x
⊢ ¬u = x
case cons.inl.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v : V
p✝ : Walk G u✝ v
ht✝ : IsTrail p✝
x u w : V
huv : Adj G u x
p : Walk G x w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, x) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ x ≠ w → x ≠ x ∧ x ≠ w
⊢ x = w → ¬u = w
rintro rfl
no goals
case cons.inl.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v : V
p✝ : Walk G u✝ v
ht✝ : IsTrail p✝
x u : V
huv : Adj G u x
p : Walk G x x
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, x) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ x ≠ x → x ≠ x ∧ x ≠ x
⊢ ¬u = x
exact huv.ne
case cons.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
h : ¬x = u ∧ ¬x = v
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + 0) ↔ ¬u = w → ¬x = u ∧ ¬x = w
case cons.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
h : ¬decide (x = u ∨ x = v) = true
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + 0) ↔ ¬u = w → ¬x = u ∧ ¬x = w
rw [decide_eq_true_eq, not_or] at h
case cons.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
h : ¬x = u ∧ ¬x = v
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ ¬v = w → ¬x = w
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ ¬u = w → ¬x = w
case cons.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ v ≠ w → x ≠ v ∧ x ≠ w
h : ¬x = u ∧ ¬x = v
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p) + 0) ↔ ¬u = w → ¬x = u ∧ ¬x = w
simp only [h.1, h.2, not_false_iff, true_and_iff, add_zero, Ne.def] at ih⊢
case cons.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
h : ¬x = u ∧ ¬x = v
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ ¬v = w → ¬x = w
⊢ ¬v = w → ¬x = w ↔ ¬u = w → ¬x = w
case cons.inr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
h : ¬x = u ∧ ¬x = v
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ ¬v = w → ¬x = w
⊢ Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ ¬u = w → ¬x = w
rw [ih]
case cons.inr.mpr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v : V
huv : Adj G u v
h : ¬x = u ∧ ¬x = v
p : Walk G v x
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ ¬v = x → ¬x = x
h' : ¬u = x → ¬x = x
h'' : ¬v = x
⊢ False
case cons.inr.mpr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v w : V
huv : Adj G u v
p : Walk G v w
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
h : ¬x = u ∧ ¬x = v
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ ¬v = w → ¬x = w
⊢ (¬u = w → ¬x = w) → ¬v = w → ¬x = w
rintro h' h'' rfl
case cons.inr.mpr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v : V
huv : Adj G u v
h : ¬x = u ∧ ¬x = v
p : Walk G v x
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ ¬v = x → ¬x = x
h'' : ¬v = x
h' : u = x
⊢ False
case cons.inr.mpr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v : V
huv : Adj G u v
h : ¬x = u ∧ ¬x = v
p : Walk G v x
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ ¬v = x → ¬x = x
h' : ¬u = x → ¬x = x
h'' : ¬v = x
⊢ False
simp only [imp_false, eq_self_iff_true, not_true, Classical.not_not] at h'
case cons.inr.mpr.refl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u v✝ : V
p✝ : Walk G u v✝
ht✝ : IsTrail p✝
x v : V
p : Walk G v x
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ ¬v = x → ¬x = x
h'' : ¬v = x
huv : Adj G x v
h : ¬x = x ∧ ¬x = v
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (x, v) ∈ edges p
⊢ False
case cons.inr.mpr
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u✝ v✝ : V
p✝ : Walk G u✝ v✝
ht✝ : IsTrail p✝
x u v : V
huv : Adj G u v
h : ¬x = u ∧ ¬x = v
p : Walk G v x
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (u, v) ∈ edges p
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ ¬v = x → ¬x = x
h'' : ¬v = x
h' : u = x
⊢ False
cases h'
no goals
case cons.inr.mpr.refl
V : Type u_1
G : SimpleGraph V
inst✝ : DecidableEq V
u v✝ : V
p✝ : Walk G u v✝
ht✝ : IsTrail p✝
x v : V
p : Walk G v x
ih : Even (List.countp (fun e => decide (x ∈ e)) (edges p)) ↔ ¬v = x → ¬x = x
h'' : ¬v = x
huv : Adj G x v
h : ¬x = x ∧ ¬x = v
ht : IsTrail p ∧ ¬Quotient.mk (Sym2.Rel.setoid V) (x, v) ∈ edges p
⊢ False
simp only [not_true, and_false, false_and] at h