math / data /lean /OAI /Combinatorics /EditApproximation /Binary /BinaryBufferInputBounds.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
1.94 kB
import OAI.Combinatorics.EditApproximation.Refinement.PhysicalPreparedInputBounds
import OAI.Combinatorics.EditApproximation.Geometry.RefinementBufferRanges
namespace OAI
/-! A refinement continuation has a separate current-index buffer.
Only the earlier-history buffer enters the online objective, so its
range invariant does not require any relation at unused current keys. -/
namespace EditApproximation
namespace BinaryFraction
theorem PreparedKernelNumericBounds.with_independent_cached_values {nx ny M : β„•}
{N P F exponent H Q eM eF B E S t : β„•}
{tau a eta kappa delta : BinaryFraction}
{integer : β„• β†’ TargetInterval ny β†’ β„•}
(hn : PreparedKernelNumericBounds (nx := nx) (M := M)
N P F exponent H Q eM eF B E S t tau a eta kappa delta integer)
(parentInitial : TargetInterval ny β†’ BinaryFraction)
(childMass childInitial : Fin M β†’ TargetInterval ny β†’ BinaryFraction)
(old current : Fin M Γ— TargetInterval ny β†’ BinaryFraction)
(history : β„• β†’ Fin M Γ— TargetInterval ny β†’ BinaryFraction)
(hp : βˆ€ r, (parentInitial r).width ≀ B)
(hm : βˆ€ i r, (childMass i r).width ≀ B)
(hi : βˆ€ i r, (childInitial i r).width ≀ B)
(ho : βˆ€ input, (old input).width ≀ B)
(hc : βˆ€ input, (current input).width ≀ B)
(hh : βˆ€ s ≀ t + 1, βˆ€ i r, (history s (i, r)).width ≀ B)
(hpnonneg : βˆ€ r, 0 ≀ (parentInitial r).value)
(hrange : βˆ€ s ≀ t + 1, βˆ€ i r, 0 ≀ (history s (i, r)).value ∧
(history s (i, r)).value ≀ (childInitial i r).value) :
PreparedKernelInputBounds (nx := nx) N P F exponent H Q eM eF B E S t
tau a eta kappa delta parentInitial childMass childInitial old current history integer := by
exact { (hn.with_cached_values parentInitial childMass childInitial history
hp hm hi hh hpnonneg hrange) with oldSize := ho, currentSize := hc }
end BinaryFraction
end EditApproximation
end OAI