Bracketing a Real Value #
A location records whether an input is the lower endpoint of a half-open interval or, for an
interior point, whether it lies below, at, or above the midpoint. The refinement rules transfer
this information from a subdivision cell to its enclosing interval. These are the Lean
counterparts of Flocq's Calc.Bracket location semantics.
Instances For
Instances For
Compute the location of x in a bracket whose lower endpoint is d.
Instances For
The computed location satisfies the bracket semantics.
An inexact location places the input strictly between the bracket endpoints.
Midpoint comparison is equivalent to comparing distances from the two endpoints.
A location in an interior arithmetic-progression cell determines a location in the full interval, given the comparison with the full midpoint.
A subinterval strictly below the global midpoint has global location .lt.
A subinterval strictly above the global midpoint has global location .gt.
Exactness at the first cell's lower endpoint remains exact in the full interval.
An inexact point in the first cell lies below the full midpoint when there are several cells.
At the central lower endpoint of an even subdivision, the global location is midpoint exact.
An inexact point in the central cell of an even subdivision is above the global midpoint.
At the lower endpoint of the central cell of an odd subdivision, the global location is low.
In the central cell of an odd subdivision, local and global midpoint locations agree.
Refine a local location when the enclosing subdivision count is even.
Instances For
Refine a local location when the enclosing subdivision count is odd.
Instances For
Correctness of location refinement for an even number of cells.
Correctness of location refinement for an odd number of cells.
Refine a local location, selecting the even or odd subdivision rule automatically.
The parity test is the decidable steps % 2 = 0, so this definition and the truncation layer
built on it are executable.
Instances For
Correctness of automatic local-to-global location refinement.