We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
p.support.get
1 parent a2df56f commit c2105b8Copy full SHA for c2105b8
1 file changed
Mathlib/Combinatorics/SimpleGraph/Paths.lean
@@ -94,6 +94,10 @@ theorem IsPath.mk' {u v : V} {p : G.Walk u v} (h : p.support.Nodup) : p.IsPath :
94
theorem isPath_def {u v : V} (p : G.Walk u v) : p.IsPath ↔ p.support.Nodup :=
95
⟨IsPath.support_nodup, IsPath.mk'⟩
96
97
+theorem isPath_iff_injective_get_support {u v : V} (p : G.Walk u v) :
98
+ p.IsPath ↔ (p.support.get ·).Injective :=
99
+ p.isPath_def.trans List.nodup_iff_injective_get
100
+
101
@[simp]
102
theorem isPath_copy {u v u' v'} (p : G.Walk u v) (hu : u = u') (hv : v = v') :
103
(p.copy hu hv).IsPath ↔ p.IsPath := by
0 commit comments