-
Notifications
You must be signed in to change notification settings - Fork 383
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
[Merged by Bors] - chore: remove some uses of open Classical
, part 2
#15413
Changes from 6 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 |
---|---|---|
|
@@ -24,8 +24,6 @@ namespace ModuleCat | |
|
||
universe u | ||
|
||
open scoped Classical | ||
|
||
variable (R : Type u) | ||
|
||
section | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -72,8 +72,7 @@ theorem not_isUnit_zero [Nontrivial M₀] : ¬IsUnit (0 : M₀) := | |||||
|
||||||
namespace Ring | ||||||
|
||||||
open scoped Classical | ||||||
|
||||||
open Classical in | ||||||
grunweg marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
/-- Introduce a function `inverse` on a monoid with zero `M₀`, which sends `x` to `x⁻¹` if `x` is | ||||||
invertible and to `0` otherwise. This definition is somewhat ad hoc, but one needs a fully (rather | ||||||
than partially) defined inverse function for some purposes, including for calculus. | ||||||
|
@@ -454,10 +453,9 @@ end CommGroupWithZero | |||||
|
||||||
section NoncomputableDefs | ||||||
|
||||||
open scoped Classical | ||||||
|
||||||
variable {M : Type*} [Nontrivial M] | ||||||
|
||||||
open Classical in | ||||||
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.
Suggested change
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. I have used |
||||||
/-- Constructs a `GroupWithZero` structure on a `MonoidWithZero` | ||||||
consisting only of units and 0. -/ | ||||||
noncomputable def groupWithZeroOfIsUnitOrEqZero [hM : MonoidWithZero M] | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason to avoid the modern style ``` open CategoryTheory Limits` ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No specific reason, I had just copied what was already there. Fixed!