-
Notifications
You must be signed in to change notification settings - Fork 1.5k
[Merged by Bors] - chore: remove some redundant classical
#41497
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 |
|---|---|---|
|
|
@@ -112,7 +112,6 @@ open scoped Classical in | |
| lemma traceDual_top' : | ||
| (⊤ : Submodule B L)ᵛ = | ||
| if ((LinearMap.range (Algebra.trace K L)).restrictScalars A ≤ 1) then ⊤ else ⊥ := by | ||
| classical | ||
|
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. If possible, please remove the
Contributor
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. I check each of them before the PR
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 do this instead?
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. (The point is that the statement then does not rely on any classical decidability instances, although this might be quite minor here.)
Contributor
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. thats another line. I think the script missed something (or I when i went over it), but whatever |
||
| split_ifs with h | ||
| · rw [_root_.eq_top_iff] | ||
| exact fun _ _ _ _ ↦ h ⟨_, rfl⟩ | ||
|
|
@@ -224,11 +223,11 @@ variable [IsDomain A] [IsFractionRing B L] [Nontrivial B] [NoZeroDivisors B] | |
|
|
||
| namespace FractionalIdeal | ||
|
|
||
| open scoped Classical in | ||
| /-- The dual of a non-zero fractional ideal is the dual of the submodule under the trace form. -/ | ||
| noncomputable | ||
| def dual (I : FractionalIdeal B⁰ L) : | ||
| FractionalIdeal B⁰ L := | ||
| open scoped Classical in | ||
| if hI : I = 0 then 0 else | ||
| ⟨Iᵛ, by | ||
| classical | ||
|
Comment on lines
+230
to
233
Contributor
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. FYI here we really need both |
||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.