Skip to content

Commit 67bc64e

Browse files
committed
feat(Combinatorics/SimpleGraph/Copy): maxDegree is monotonic, and minDegree is monotonic over a surjective Copy (leanprover-community#38355)
1 parent b2dc94b commit 67bc64e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Mathlib/Combinatorics/SimpleGraph/Copy.lean

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,23 @@ theorem IsContained.max_degree_le [Fintype V] [Fintype W] [DecidableRel G.Adj] [
327327
have ⟨f⟩ := h
328328
exact f.max_degree_le
329329

330+
@[gcongr]
331+
lemma maxDegree_mono {H : SimpleGraph V} [Fintype V] [DecidableRel G.Adj] [DecidableRel H.Adj]
332+
(hle : G ≤ H) : G.maxDegree ≤ H.maxDegree :=
333+
IsContained.of_le hle |>.max_degree_le
334+
335+
theorem Copy.minDegree_le [Fintype V] [Fintype W] [DecidableRel G.Adj] [DecidableRel H.Adj]
336+
{f : Copy G H} (hf : Function.Surjective f) : G.minDegree ≤ H.minDegree := by
337+
cases isEmpty_or_nonempty W
338+
· simp [Function.isEmpty f]
339+
refine H.le_minDegree_of_forall_le_degree _ fun w ↦ ?_
340+
obtain ⟨v, rfl⟩ := hf w
341+
grw [← f.degree_le, ← minDegree_le_degree]
342+
343+
theorem Hom.minDegree_le [Fintype V] [Fintype W] [DecidableRel G.Adj] [DecidableRel H.Adj]
344+
{f : G →g H} (hf : Function.Bijective f) : G.minDegree ≤ H.minDegree :=
345+
Copy.minDegree_le (f := ⟨f, hf.injective⟩) hf.surjective
346+
330347
end IsContained
331348

332349
section Free

0 commit comments

Comments
 (0)