Skip to content

Commit fb00f2a

Browse files
committed
feat(SimpleGraph/Connectivity/Subgraph): w.toSubgraph.IsInduced ↔ w.IsChordless (#38568)
1 parent 2cac942 commit fb00f2a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Mathlib/Combinatorics/SimpleGraph/Connectivity/Subgraph.lean

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Authors: Kyle Miller, Rémi Bottinelli
66
module
77

88
public import Mathlib.Combinatorics.SimpleGraph.Connectivity.Connected
9+
public import Mathlib.Combinatorics.SimpleGraph.Walk.Chord
910
public import Mathlib.Data.Set.Card
1011

1112
/-!
@@ -366,6 +367,11 @@ theorem map_mapToSubgraph_eq_induce_id {u v : V} (w : G.Walk u v) :
366367
w.toSubgraph.coe →g G.induce _) = w.induce _ (fun _ ↦ id) :=
367368
w.map_mapToSubgraph_eq_induce ..
368369

370+
theorem isInduced_toSubgraph {w : G.Walk u v} : w.toSubgraph.IsInduced ↔ w.IsChordless := by
371+
simp_rw [Subgraph.IsInduced, IsChordless, IsChord, Sym2.forall, Sym2.lift_mk, G.mem_edgeSet,
372+
mem_verts_toSubgraph, adj_toSubgraph_iff_mem_edges]
373+
grind only
374+
369375
namespace IsPath
370376

371377
lemma neighborSet_toSubgraph_startpoint {u v} {p : G.Walk u v}

0 commit comments

Comments
 (0)