-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Merged by Bors] - chore(Data/Set/Card): make s.ncard the simpNF of Fintype.card s
#39414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -330,17 +330,17 @@ theorem coe_Ico (a b : α) : (Ico a b : Set α) = Set.Ico a b := | |
| theorem coe_Ioo (a b : α) : (Ioo a b : Set α) = Set.Ioo a b := | ||
| Set.ext fun _ => mem_Ioo | ||
|
|
||
| @[simp, to_dual self] | ||
| @[to_dual self] | ||
| theorem _root_.Fintype.card_Icc (a b : α) [Fintype (Set.Icc a b)] : | ||
| Fintype.card (Set.Icc a b) = #(Icc a b) := | ||
|
Comment on lines
+333
to
335
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, it just simplifies the LHS to I also think these are pretty strange as simp lemmas, but maybe I haven't used
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These lemmas should be stated in terms of
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you make a follow-up PR to make this change?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| Fintype.card_of_finset' _ fun _ ↦ by simp | ||
|
|
||
| @[to_dual (reorder := a b) (attr := simp)] | ||
| @[to_dual (reorder := a b)] | ||
| theorem _root_.Fintype.card_Ico (a b : α) [Fintype (Set.Ico a b)] : | ||
| Fintype.card (Set.Ico a b) = #(Ico a b) := | ||
| Fintype.card_of_finset' _ fun _ ↦ by simp | ||
|
|
||
| @[simp, to_dual self] | ||
| @[to_dual self] | ||
| theorem _root_.Fintype.card_Ioo (a b : α) [Fintype (Set.Ioo a b)] : | ||
| Fintype.card (Set.Ioo a b) = #(Ioo a b) := | ||
| Fintype.card_of_finset' _ fun _ ↦ by simp | ||
|
|
@@ -379,12 +379,12 @@ theorem coe_Ici (a : α) : (Ici a : Set α) = Set.Ici a := | |
| theorem coe_Ioi (a : α) : (Ioi a : Set α) = Set.Ioi a := | ||
| Set.ext fun _ => mem_Ioi | ||
|
|
||
| @[to_dual (attr := simp)] | ||
| @[to_dual] | ||
| theorem _root_.Fintype.card_Ici (a : α) [Fintype (Set.Ici a)] : | ||
| Fintype.card (Set.Ici a) = #(Ici a) := | ||
| Fintype.card_of_finset' _ fun _ ↦ by simp | ||
|
|
||
| @[to_dual (attr := simp)] | ||
| @[to_dual] | ||
| theorem _root_.Fintype.card_Ioi (a : α) [Fintype (Set.Ioi a)] : | ||
| Fintype.card (Set.Ioi a) = #(Ioi a) := | ||
| Fintype.card_of_finset' _ fun _ ↦ by simp | ||
|
|
@@ -437,7 +437,6 @@ theorem mem_uIcc : x ∈ uIcc a b ↔ a ⊓ b ≤ x ∧ x ≤ a ⊔ b := | |
| theorem coe_uIcc (a b : α) : (Finset.uIcc a b : Set α) = Set.uIcc a b := | ||
| coe_Icc _ _ | ||
|
|
||
| @[simp] | ||
| theorem _root_.Fintype.card_uIcc (a b : α) [Fintype (Set.uIcc a b)] : | ||
| Fintype.card (Set.uIcc a b) = #(uIcc a b) := | ||
| Fintype.card_of_finset' _ fun _ ↦ by simp [Set.uIcc] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.