Skip to content

Commit 9d514c7

Browse files
committed
feat(Combinatorics/SimpleGraph/Walk): induce.mapLe = induce (leanprover-community#30873)
Inducing a walk to `G[s]` and then mapping to `G[s']` is the same as inducing to `G[s']` when `s ⊆ s'`.
1 parent dec45e9 commit 9d514c7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Mathlib/Combinatorics/SimpleGraph/Walk.lean

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ theorem reverse_transfer (hp) :
14171417

14181418
/-! ### Inducing a walk -/
14191419

1420-
variable {s : Set V}
1420+
variable {s s' : Set V}
14211421

14221422
variable (s) in
14231423
/-- A walk in `G` which is fully contained in a set `s` of vertices lifts to a walk of `G[s]`. -/
@@ -1442,6 +1442,11 @@ protected def induce {u v : V} :
14421442
| .nil, hw => rfl
14431443
| .cons (v := u') huu' w, hw => by simp [map_induce]
14441444

1445+
lemma map_induce_induceHomOfLE (hs : s ⊆ s') {u v : V} : ∀ (w : G.Walk u v) (hw),
1446+
(w.induce s hw).map (G.induceHomOfLE hs).toHom = w.induce s' (subset_trans hw hs)
1447+
| .nil, hw => rfl
1448+
| .cons (v := u') huu' w, hw => by simp [map_induce_induceHomOfLE]
1449+
14451450
end Walk
14461451

14471452
/-! ## Deleting edges -/

0 commit comments

Comments
 (0)