import Mathlib.Data.Finset.Max namespace Finset variable {α : Type*} [LinearOrder α] /-- `Finset.max'` does not depend on the choice of nonemptiness witness. This is essentially proof irrelevance, but having it as a lemma is convenient for rewriting. -/ theorem max'_eq_max' {s : Finset α} (h₁ h₂ : s.Nonempty) : s.max' h₁ = s.max' h₂ := by classical cases Subsingleton.elim h₁ h₂ rfl /-- `Finset.min'` does not depend on the choice of nonemptiness witness. -/ theorem min'_eq_min' {s : Finset α} (h₁ h₂ : s.Nonempty) : s.min' h₁ = s.min' h₂ := by classical cases Subsingleton.elim h₁ h₂ rfl end Finset