Add an edge and a vertex to the end of a WList
Equations
- (WList.nil x_3).concat x✝¹ x✝ = WList.cons x_3 x✝¹ (WList.nil x✝)
- (WList.cons x_3 e w).concat x✝¹ x✝ = WList.cons x_3 e (w.concat x✝¹ x✝)
Instances For
Equations
- WList.toWList (WList.TsiLw.nil u) = WList.nil u
- WList.toWList (w.concat e u) = (WList.toWList w).concat e u
Instances For
Equations
- WList.TsiLw.cons x✝¹ x✝ (WList.TsiLw.nil u) = (WList.TsiLw.nil x✝¹).concat x✝ u
- WList.TsiLw.cons x✝¹ x✝ (w.concat e' u) = (WList.TsiLw.cons x✝¹ x✝ w).concat e' u
Instances For
Equations
- (WList.nil u).fromWList = WList.TsiLw.nil u
- (WList.cons x_1 e w).fromWList = WList.TsiLw.cons x_1 e w.fromWList
Instances For
@[simp]
Equations
- WList.TsiLw_equiv = { toFun := fun (w : WList.TsiLw α β) => WList.toWList w, invFun := fun (w : WList α β) => w.fromWList, left_inv := ⋯, right_inv := ⋯ }
Instances For
Glue two wLists w₁, w₂ together. The last vertex of w₁ is ignored,
so this is most reasonable if w₁.last = w₂.first
Equations
- (WList.nil _x).append x✝ = x✝
- (WList.cons x_2 e w).append x✝ = WList.cons x_2 e (w.append x✝)
Instances For
@[instance_reducible]
Equations
- WList.instAppend = { append := WList.append }
theorem WList.concat_injective {α : Type u_1} {β : Type u_2} {x : α} {e : β} :
Function.Injective fun (x_1 : WList α β) => x_1.concat e x
instance WList.instAssociativeHAppend {α : Type u_1} {β : Type u_2} :
Std.Associative fun (x1 x2 : WList α β) => x1 ++ x2
theorem WList.append_right_injective {α : Type u_1} {β : Type u_2} {w : WList α β} :
Function.Injective fun (x : WList α β) => w ++ x
@[simp]
@[simp]
theorem WList.Nontrivial.reverse {α : Type u_1} {β : Type u_2} {w : WList α β} :
w.Nontrivial → w.reverse.Nontrivial
Alias of the reverse direction of WList.reverse_nontrivial_iff.
theorem WList.WellFormed.reverse {α : Type u_1} {β : Type u_2} {w : WList α β} :
w.WellFormed → w.reverse.WellFormed
Alias of the reverse direction of WList.wellFormed_reverse_iff.
theorem WList.Nonempty.lastEdge_cons {α : Type u_1} {β : Type u_2} {x : α} {e : β} {w : WList α β} (hw : w.Nonempty) :
@[simp]
@[simp]
theorem WList.lastEdge_cons_cons {α : Type u_1} {β : Type u_2} {x y : α} {e f : β} {w : WList α β} :
@[simp]
Equations
- WList.edgeMap k (WList.nil u) = WList.nil u
- WList.edgeMap k (WList.cons x_1 e w) = WList.cons x_1 (k e) (WList.edgeMap k w)