[real] sup/inf lemmas using set notations #1360
Merged
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.
Hi,
It's a little strange that, in
realTheory
, thesup
andinf
of set of real numbers, definitions and lemmas are not using set notations at all. Instead of,P x
is used instead ofx IN P
and?x. P x
is used instead ofP <> {}
, etc. I found these lemmas hard to use, especially when the involved sets are defined in gspec notations (e.g.{x | P x}
, the simplifier can rewritex IN {x | P x}
but cannot deal with the equivalent{x | P x} x
.Therefore now I added a variant for each of these lemmas using set notations (the "primed" version is new):
Perhaps the original intent was to prevent explicitly using
pred_setTheory
but this is no more any issue. Also, the versions of set notation is actually more foundamental. If we were having these lemmas with set notations, the original versions can be obtained by a simple rewrite withIN_APP
andGSYM MEMBER_NOT_EMPTY
. The other side of rewriting is impossible (or hard), because all lambda-applicationsx y
can be interpreted asy IN x
.P.S. In
extrealTheory
(orextreal_baseTheory
), the original sup/inf lemmas are also in similar shapes, and I have already added a lot of such variants using set notations (and then use them in new probability proofs).Chun