Skip to content

Commit

Permalink
chore: Make Finset.univ_nonempty be simp (#17216)
Browse files Browse the repository at this point in the history
`Set.univ_nonempty` already is

From LeanAPAP
  • Loading branch information
YaelDillies committed Sep 28, 2024
1 parent 3fdf477 commit 67904bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Mathlib/Algebra/BigOperators/Expect.lean
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ end AddCommMonoid
section Semiring
variable [Semiring M] [Module ℚ≥0 M]

@[simp] lemma expect_one [Nonempty ι] : 𝔼 _i : ι, (1 : M) = 1 := expect_const _
lemma expect_one [Nonempty ι] : 𝔼 _i : ι, (1 : M) = 1 := expect_const _

end Semiring
end Fintype
2 changes: 1 addition & 1 deletion Mathlib/Data/Fintype/Basic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ theorem Nonempty.eq_univ [Subsingleton α] : s.Nonempty → s = univ := by
theorem univ_nonempty_iff : (univ : Finset α).Nonempty ↔ Nonempty α := by
rw [← coe_nonempty, coe_univ, Set.nonempty_iff_univ_nonempty]

@[aesop unsafe apply (rule_sets := [finsetNonempty])]
@[simp, aesop unsafe apply (rule_sets := [finsetNonempty])]
theorem univ_nonempty [Nonempty α] : (univ : Finset α).Nonempty :=
univ_nonempty_iff.2 ‹_›

Expand Down

0 comments on commit 67904bc

Please sign in to comment.