[Merged by Bors] - refactor: define < on WithBot/WithTop as an inductive predicate#30848
[Merged by Bors] - refactor: define < on WithBot/WithTop as an inductive predicate#30848YaelDillies wants to merge 1 commit intoleanprover-community:masterfrom
< on WithBot/WithTop as an inductive predicate#30848Conversation
PR summary 6c19380648Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Equivalently, `x ≤ y` can be defined as `∀ a : α, x = ↑a → ∃ b : α, y = ↑b ∧ a ≤ b`, | ||
| see `le_if_forall`. The definition as an inductive predicate is preferred since it | ||
| cannot be accidentally unfolded too far. -/ | ||
| /-- Auxiliary definition for the order on `WithBot`. -/ |
There was a problem hiding this comment.
If this is auxiliary, why not just private it?
There was a problem hiding this comment.
because that messes up with mk_iff unfortunately
There was a problem hiding this comment.
But surely there is the advantage of allowing people to use the cases tactic on this inductive? Is it really an implementation detail?
There was a problem hiding this comment.
No, not really. You're right, I forgot to mention that. I think it's good for it not to be private
Follow up to leanprover-community#19668, where I did the same for `LE` but forgot to do it for `LT`.
5e41ad9 to
5fcd699
Compare
|
Pull request successfully merged into master. Build succeeded: |
< on WithBot/WithTop as an inductive predicate< on WithBot/WithTop as an inductive predicate
Follow up to #19668, where I did the same for
LEbut forgot to do it forLT.