-
Notifications
You must be signed in to change notification settings - Fork 65
rename and boolify some predicates for open intervals #1825
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
base: master
Are you sure you want to change the base?
Conversation
|
Turned into a draft to do some cleaning. |
|
cleaning done |
|
|
||
| ### Renamed | ||
| - in set_interval.v | ||
| + `itv_is_ray` -> `itv_is_open_unbounded`, |
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.
| + `itv_is_ray` -> `itv_is_open_unbounded`, | |
| + `itv_is_ray` -> `itv_is_open_unbounded` |
| ### Renamed | ||
| - in set_interval.v | ||
| + `itv_is_ray` -> `itv_is_open_unbounded`, | ||
| + `itv_is_bd_open` -> `itv_is_oo`, |
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.
| + `itv_is_bd_open` -> `itv_is_oo`, | |
| + `itv_is_bd_open` -> `itv_is_oo` |
| Definition itv_open_ends (i : interval T) : Prop := | ||
| itv_is_ray i \/ itv_is_bd_open i. | ||
| Definition itv_open_ends (i : interval T) : bool := | ||
| (itv_is_open_unbounded i) || (itv_is_oo i). |
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.
| (itv_is_open_unbounded i) || (itv_is_oo i). | |
| itv_is_open_unbounded i || itv_is_oo i. |
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 can maybe use Implicit Types (i : interval T) and then some of these definitions can fit on one line.
| if i is `[_, _] then true else false. | ||
|
|
||
| Definition itv_closed_ends (i : interval T) : bool := | ||
| (itv_is_closed_unbounded i) || (itv_is_cc i). |
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.
| (itv_is_closed_unbounded i) || (itv_is_cc i). | |
| itv_is_closed_unbounded i || itv_is_cc i. |
affeldt-aist
left a comment
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 think that the change of naming is a clarification and using bool improves the scripts.
Motivation for this change
fixes #1823
This PR
itv_open_ends,itv_is_rayanditv_is_bd_openfrom
Proptoboolfor easier use,Checklist
CHANGELOG_UNRELEASED.mdReference: How to document
Merge policy
As a rule of thumb:
all compile are preferentially merged into master.
Reminder to reviewers