def WList.edgeRemove {α : Type u_1} {β : Type u_2} (F : Set β) [DecidablePred fun (x : β) => x ∈ F] :
Remove edges from a WList that belong to a given edge set F.
Equations
- WList.edgeRemove F (WList.nil x_1) = WList.nil x_1
- WList.edgeRemove F (WList.cons x_1 e w) = if e ∈ F then WList.edgeRemove F w else WList.cons x_1 e (WList.edgeRemove F w)
Instances For
@[simp]
theorem WList.edgeRemove_nil {α : Type u_1} {β : Type u_2} {x : α} {F : Set β} [DecidablePred fun (x : β) => x ∈ F] :
theorem WList.edgeRemove_cons {α : Type u_1} {β : Type u_2} {F : Set β} [DecidablePred fun (x : β) => x ∈ F] (x : α) (e : β) (w : WList α β) :
@[simp]
theorem WList.edgeRemove_cons_of_mem {α : Type u_1} {β : Type u_2} {e : β} {F : Set β} [DecidablePred fun (x : β) => x ∈ F] (heF : e ∈ F) (x : α) (w : WList α β) :
@[simp]
theorem WList.edgeRemove_cons_of_notMem {α : Type u_1} {β : Type u_2} {e : β} {F : Set β} [DecidablePred fun (x : β) => x ∈ F] (heF : e ∉ F) (x : α) (w : WList α β) :
@[simp]
theorem WList.edgeRemove_notMem_edge {α : Type u_1} {β : Type u_2} {F : Set β} [DecidablePred fun (x : β) => x ∈ F] (w : WList α β) (e : β) (he : e ∈ F) :
e ∉ (edgeRemove F w).edge
@[simp]
theorem WList.edgeRemove_edgeRemove {α : Type u_1} {β : Type u_2} (F F' : Set β) [DecidablePred fun (x : β) => x ∈ F] [DecidablePred fun (x : β) => x ∈ F'] [DecidablePred fun (x : β) => x ∈ F ∪ F'] (w : WList α β) :
@[simp]
theorem WList.edgeRemove_last {α : Type u_1} {β : Type u_2} {F : Set β} [DecidablePred fun (x : β) => x ∈ F] (w : WList α β) :
@[simp]
theorem WList.edgeRemove_edge {α : Type u_1} {β : Type u_2} {F : Set β} [DecidablePred fun (x : β) => x ∈ F] (w : WList α β) :
@[simp]
theorem WList.mem_edgeRemove_edge_iff {α : Type u_1} {β : Type u_2} {e : β} {F : Set β} {w : WList α β} [DecidablePred fun (x : β) => x ∈ F] :
@[simp]
theorem WList.edgeRemove_edgeSet {α : Type u_1} {β : Type u_2} {F : Set β} [DecidablePred fun (x : β) => x ∈ F] (w : WList α β) :
theorem WList.edgeRemove_append_eq_right {α : Type u_1} {β : Type u_2} {F : Set β} [DecidablePred fun (x : β) => x ∈ F] (w₁ w₂ : WList α β) (hw₁ : w₁.edgeSet ⊆ F) :
Remove loops from a WList by removing edges where the source equals the target.
Equations
Instances For
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
theorem WList.mem_deloop_iff {α : Type u_1} {β : Type u_2} {x : α} {w : WList α β} [DecidableEq α] :
theorem WList.deloop_isSublist_mono {α : Type u_1} {β : Type u_2} {w₁ w₂ : WList α β} [DecidableEq α] (h : w₁.IsSublist w₂) :
@[simp]
theorem WList.deloop_eq_self {α : Type u_1} {β : Type u_2} {w : WList α β} [DecidableEq α] (hw : w.NoLoop) :
@[simp]