Theorem: Digraph.Walk.edges_snd_mem_support_of_mem_darts (GraphProjects/DigraphConnectivity.lean)

State before:
V : Type u
V' : Type v
V'' : Type w
G : Digraph V
G' : Digraph V'
G'' : Digraph V''
u v v✝ : V
h : G.Adj u v✝
p' : Walk G v✝ v
d : V × V
hd : d ∈ edges (cons h p')
⊢ d.snd ∈ support (cons h p')
Tactic:
simp only [support_cons, edges_cons, List.mem_cons] at hd ⊢
State after:
V : Type u
V' : Type v
V'' : Type w
G : Digraph V
G' : Digraph V'
G'' : Digraph V''
u v v✝ : V
h : G.Adj u v✝
p' : Walk G v✝ v
d : V × V
hd : d = (u, v✝) ∨ d ∈ edges p'
⊢ d.snd = u ∨ d.snd ∈ support p'

State before:
V : Type u
V' : Type v
V'' : Type w
G : Digraph V
G' : Digraph V'
G'' : Digraph V''
u v v✝ : V
h : G.Adj u v✝
p' : Walk G v✝ v
d : V × V
hd : d = (u, v✝) ∨ d ∈ edges p'
⊢ d.snd = u ∨ d.snd ∈ support p'
Tactic:
rcases hd with (rfl | hd)
State after:
case inl
V : Type u
V' : Type v
V'' : Type w
G : Digraph V
G' : Digraph V'
G'' : Digraph V''
u v v✝ : V
h : G.Adj u v✝
p' : Walk G v✝ v
⊢ (u, v✝).snd = u ∨ (u, v✝).snd ∈ support p'

case inr
V : Type u
V' : Type v
V'' : Type w
G : Digraph V
G' : Digraph V'
G'' : Digraph V''
u v v✝ : V
h : G.Adj u v✝
p' : Walk G v✝ v
d : V × V
hd : d ∈ edges p'
⊢ d.snd = u ∨ d.snd ∈ support p'

State before:
case inl
V : Type u
V' : Type v
V'' : Type w
G : Digraph V
G' : Digraph V'
G'' : Digraph V''
u v v✝ : V
h : G.Adj u v✝
p' : Walk G v✝ v
⊢ (u, v✝).snd = u ∨ (u, v✝).snd ∈ support p'
Tactic:
simp
State after:
no goals

State before:
case inr
V : Type u
V' : Type v
V'' : Type w
G : Digraph V
G' : Digraph V'
G'' : Digraph V''
u v v✝ : V
h : G.Adj u v✝
p' : Walk G v✝ v
d : V × V
hd : d ∈ edges p'
⊢ d.snd = u ∨ d.snd ∈ support p'
Tactic:
exact Or.inr (edges_snd_mem_support_of_mem_darts _ hd)
State after:
no goals