Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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] - perf(NumberTheory.NumberField.Basic): make
RingOfIntegers
a Type. #12386[Merged by Bors] - perf(NumberTheory.NumberField.Basic): make
RingOfIntegers
a Type. #12386Changes from 28 commits
7029ff0
72c4630
42828e0
2ce7ff8
90fe9d7
f5164c8
30792d0
5ed31af
385deb6
aa08e49
fc2986d
e0c1318
19ed662
4b9dcf5
d09d64c
da92d37
8e8017a
fb7e2a9
dd6bda2
819f1f9
e6f150f
476b09d
705b772
ea62c59
2638243
cd204f6
9eb6037
dc37d9e
8f8fcf2
bb71ca3
a907653
92f6dcc
29506b6
7b28e54
4eee99a
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
We should figure out why
simp
dislikes these lemmas.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.
I tried for a bit and can't figure it out. If I write
mk_add_mk _
thensimp
can use it (e.g. inrestrict_addMonoidHom
), butmk_add_mk
is too hard.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.
Weird
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.
If it works with
_
and not without it, then there are some instance implicit arguments that cannot be found (or unified correctly) with typeclass synthesis. The underscore bypasses typeclass search for all arguments (if I remember correctly).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.
It's not because of the
⟨x, hx⟩
syntax?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.
I forgot to give more details but they seem not to even be considered according to the
set_option trace
output. So it doesn't even appear to arrive at the instance synth step. But afaict the terms match perfectly syntactically: the discrimination tree should just find the simp lemmas.