Skip to content
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

Inequality functionality for norm_num #1567

Closed
thorimur opened this issue Jan 14, 2023 · 2 comments
Closed

Inequality functionality for norm_num #1567

thorimur opened this issue Jan 14, 2023 · 2 comments

Comments

@thorimur
Copy link
Collaborator

This is an issue for tracking inequality functionality needed in norm_num, including , <, and .

For , the following example should work:

example {α} [DivisionRing α] [CharZero α] : (-1:α) ≠ 2 := by norm_num
@hrmacbeth
Copy link
Member

hrmacbeth commented Jan 14, 2023

Thanks for opening this issue @thorimur, indeed this is very important functionality. I removed the Github link between this issue and #1568 because if they're linked then Github will "close" this issue when #1568 is merged, whereas we want the issue to stay open until the and < functionality is also implemented.

Edit: What goes around, comes around. It looks like the new version of #1568 will indeed knock off the whole issue.

bors bot pushed a commit that referenced this issue Jan 22, 2023
This PR gives `norm_num` basic inequality (and equality) functionality (towards #1567), including the following:
```
example {α} [DivisionRing α] [CharZero α] : (-1:α) ≠ 2 := by norm_num
```
We implement basic logical extensions to handle `=` and `≠` together, namely `¬`, `True`, and `False`. `≠` is not given an extension, as it is handled by `=` and `¬`.

For now we only can prove `≠` for numbers given a `CharZero α` instance.

- [x] depends on: #1578 

Co-authored-by: Mario Carneiro <di.gama@gmail.com>
@digama0
Copy link
Member

digama0 commented Jan 22, 2023

Fixed in #1568

@digama0 digama0 closed this as completed Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants