Section 11.1: fix two unprovable statements#505
Open
rkirov wants to merge 1 commit into
Open
Conversation
- The intersection example near `BoundedInterval.inter_eq` claimed
`Ioo 2 4 ∩ Icc 4 6 = Icc 4 4`, which is false as sets
(`Ioo 2 4 ∩ Icc 4 6 = ∅`). Change to `Icc 2 4 ∩ Icc 4 6`, matching
the intended `Icc 4 4` RHS.
- Example 11.1.17 stated `(P' ⊔ P).intervals = {Icc 1 2, Ioo 2 3, Icc 3 4, ∅}`
as a `Finset BoundedInterval` equality, which is unprovable because
`BoundedInterval.inter` is `Classical.choose`-based and does not commit
to a canonical constructor (e.g. nothing forces
`(Icc 1 2 ∩ Ico 1 3 : BoundedInterval) = Icc 1 2`, they are only
equal after mapping toSet).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
rkirov
commented
May 23, 2026
| example : ∃ P P' : Partition (Icc 1 4), | ||
| P.intervals = {Ico 1 3, Icc 3 4} ∧ | ||
| P'.intervals = {Icc 1 2, Ioc 2 4} ∧ | ||
| (P' ⊔ P).intervals.image toSet = |
Contributor
Author
There was a problem hiding this comment.
This one is subtle due to not having extensional equality on BoundedIntervals, which means we can't ever prove even simple A ∩ B = C for BoundedIntervals without going to Sets. I thought about some larger changes to the setup (e.g. constructing computable intersection method for BoundedIntervals), but the easiest way was just change this to confirm equality with Sets.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
The intersection example near
BoundedInterval.inter_eqclaimedIoo 2 4 ∩ Icc 4 6 = Icc 4 4, which is false as sets (Ioo 2 4 ∩ Icc 4 6 = ∅). Change toIcc 2 4 ∩ Icc 4 6, matching the intendedIcc 4 4RHS.Example 11.1.17 stated
(P' ⊔ P).intervals = {Icc 1 2, Ioo 2 3, Icc 3 4, ∅}as aFinset BoundedIntervalequality, which is unprovable becauseBoundedInterval.interisClassical.choose-based and does not commit to a canonical constructor (e.g. nothing forces(Icc 1 2 ∩ Ico 1 3 : BoundedInterval) = Icc 1 2). Restate the third conjunct at the set level, via the coercion image, with a comment explaining why.