Exact Interval Images for Rounded Targets #
Structured theorem statements for exact interval images of rounded floating-point targets,
specialized to IEEE32Exec.
This file defines correctly-rounded activation assumptions, separating-activation assumptions, finite σ-networks, exact interval semantics, and the pipeline theorem:
correctly rounded activation + separating construction + exact semantics construction
implies exact interval images for every finite rounded target on [-1,1]^d.
Separating activation condition, specialized to IEEE32Exec #
Source: Hwang et al. (arXiv:2506.16065), Condition 1 and its correctly-rounded sufficient
conditions.
Alias for the executable float format used throughout this file (IEEE32Exec).
Instances For
Float-format constants for IEEE binary32 #
Mantissa bitwidth M for IEEE binary32 (excluding the hidden leading bit).
Instances For
Minimum normal exponent emin for IEEE binary32.
Instances For
Maximum normal exponent emax for IEEE binary32.
Instances For
Instances For
Instances For
Instances For
Basic helpers #
Instances For
Instances For
Instances For
Separating activation condition #
- c1 : F
First finite input witnessing the zero anchor in the separating condition.
- c2 : F
Second finite input used to create a nonzero separated activation value.
The first witness input is finite.
The second witness input is finite.
The activation sends the first witness to zero.
The activation value at the second witness is finite.
The second activation value has the magnitude required by the binary32 separation bound.
At least one witness input is not too close to underflow.
- η : F
Threshold witness for the local binary32 separation step.
The threshold witness is finite.
The threshold witness lies in the binary32 magnitude window required by the theorem.
The activation value at the threshold is finite.
- sigma_etaPlus_finite : finite (σ (TorchLean.Floats.IEEE754.IEEE32Exec.nextUp self.η))
The activation value at the next float above the threshold is finite.
The threshold activation magnitude is bounded in the required binary32 window.
- sigma_etaPlus_abs_mem : rabs (σ (TorchLean.Floats.IEEE754.IEEE32Exec.nextUp self.η)) ∈ Set.Icc (pow2 (emin + 5)) (pow2 (emax - 6) * rabs self.η)
The next-up activation magnitude is bounded in the required binary32 window.
- threshold_separates (x y : F) : x ≤ self.η → self.η < TorchLean.Floats.IEEE754.IEEE32Exec.nextUp self.η → TorchLean.Floats.IEEE754.IEEE32Exec.nextUp self.η ≤ y → σ x ≤ σ self.η ∧ σ self.η < σ (TorchLean.Floats.IEEE754.IEEE32Exec.nextUp self.η) ∧ σ (TorchLean.Floats.IEEE754.IEEE32Exec.nextUp self.η) ≤ σ y ∨ σ x ≥ σ self.η ∧ σ self.η > σ (TorchLean.Floats.IEEE754.IEEE32Exec.nextUp self.η) ∧ σ (TorchLean.Floats.IEEE754.IEEE32Exec.nextUp self.η) ≥ σ y
The activation separates values below and above the threshold interval.
- lam : ℝ
Real Lipschitz envelope around the threshold.
The envelope constant is in the paper's binary32-safe range.
- lipschitz_around_threshold (x y : F) : x ≤ self.η → self.η < TorchLean.Floats.IEEE754.IEEE32Exec.nextUp self.η → TorchLean.Floats.IEEE754.IEEE32Exec.nextUp self.η ≤ y → |TorchLean.Floats.IEEE754.IEEE32Exec.toReal (σ x) - TorchLean.Floats.IEEE754.IEEE32Exec.toReal (σ self.η)| ≤ self.lam * |TorchLean.Floats.IEEE754.IEEE32Exec.toReal x - TorchLean.Floats.IEEE754.IEEE32Exec.toReal self.η| ∧ |TorchLean.Floats.IEEE754.IEEE32Exec.toReal (σ y) - TorchLean.Floats.IEEE754.IEEE32Exec.toReal (σ (TorchLean.Floats.IEEE754.IEEE32Exec.nextUp self.η))| ≤ self.lam * |TorchLean.Floats.IEEE754.IEEE32Exec.toReal y - (TorchLean.Floats.IEEE754.IEEE32Exec.nextUp self.η).toReal|
Activation values obey the Lipschitz envelope on both sides of the threshold gap.
Instances For
Correctly-rounded activations and real sufficient conditions #
- finite_input_implies (x : F) : finite x → finite (σ x) ∧ TorchLean.Floats.IEEE754.IEEE32Exec.toReal (σ x) = TorchLean.Floats.IEEE754.IEEE32Exec.fp32Round (ρ (TorchLean.Floats.IEEE754.IEEE32Exec.toReal x))
Finite executable inputs evaluate to finite executable outputs with the declared rounding law.
Instances For
Real-valued sufficient conditions used to prove that a correctly-rounded activation satisfies the separating activation condition.
This is a “real” analogue of Witness that talks about a target function ρ : ℝ → ℝ.
- c1' : F
First binary32 input used by the real sufficient conditions.
- c2' : F
Second binary32 input used by the real sufficient conditions.
The first input is finite.
The second input is finite.
The real activation is close to zero at the first witness.
- rho_c2'_range : |ρ (TorchLean.Floats.IEEE754.IEEE32Exec.toReal self.c2')| ∈ Set.Icc (ε / 2 + 2 * ε ^ 2) (5 / 4 - 2 * ε)
The real activation has the required magnitude at the second witness.
At least one real witness input has magnitude safely above underflow.
- rho_between_on_Icc (x : ℝ) : TorchLean.Floats.IEEE754.IEEE32Exec.toReal self.c1' ≤ x → x ≤ TorchLean.Floats.IEEE754.IEEE32Exec.toReal self.c2' → min (ρ (TorchLean.Floats.IEEE754.IEEE32Exec.toReal self.c1')) (ρ (TorchLean.Floats.IEEE754.IEEE32Exec.toReal self.c2')) ≤ ρ x ∧ ρ x ≤ max (ρ (TorchLean.Floats.IEEE754.IEEE32Exec.toReal self.c1')) (ρ (TorchLean.Floats.IEEE754.IEEE32Exec.toReal self.c2'))
On the witness interval,
ρstays between its endpoint values. - δ : ℝ
Real-valued threshold location used by the sufficient conditions.
The threshold lies in the specified central window.
- rho_threshold_properties : (∀ (x y : ℝ), x ≤ self.δ - 1 / 8 → self.δ + 1 / 8 ≤ y → ρ x ≤ ρ (self.δ - 1 / 8) ∧ ρ (self.δ - 1 / 8) < ρ (self.δ + 1 / 8) ∧ ρ (self.δ + 1 / 8) ≤ ρ y ∨ ρ x ≥ ρ (self.δ - 1 / 8) ∧ ρ (self.δ - 1 / 8) > ρ (self.δ + 1 / 8) ∧ ρ (self.δ + 1 / 8) ≥ ρ y) ∧ ∀ (x y : ℝ), x ∈ Set.Icc (self.δ - 1 / 8) (self.δ + 1 / 8) → y ∈ Set.Icc (self.δ - 1 / 8) (self.δ + 1 / 8) → |ρ x| ∈ Set.Icc (1 / 4) 1 ∧ |ρ x - ρ y| > 1 / 8 * |x - y|
Threshold separation and local growth conditions for the real activation.
- lam : ℝ
Lipschitz constant for the real activation.
The Lipschitz constant is in the binary32-safe range required by the theorem.
Global Lipschitz bound for the real activation.
Instances For
Existence of a RealWitness for ρ.
Instances For
Correct-rounding bridge: a real activation satisfying the sufficient conditions induces a rounded floating-point activation satisfying the separating activation condition.
Instances For
Finite σ-network model #
A feedforward σ-network: affine layers with σ between them, no σ after the final affine.
- last {din dout : ℕ} (A : Affine din dout) : Net din dout
- step {din mid dout : ℕ} (A : Affine din mid) (n : Net mid dout) : Net din dout
Instances For
Interval semantics using OpsExact #
Interval semantics for a network: apply affSharp and then push the activation through
sigmaSharp.
Instances For
Bounded interval domains and direct-image hulls #
Instances For
The canonical cube domain [-1,1]^d.
Instances For
Indicator functions and separability #
We model “there exists a σ-network implementing a scaled threshold-indicator exactly under interval
semantics on I[a,b]” using our SigmaNet.Net interval interpreter evalSharp1.
Instances For
Separability of σ on I[a,b] with threshold η and scale K.
Informally, this asserts existence of σ-networks whose interval semantics coincides with the
ideal abstraction of scaled threshold indicators (ι_{≤z}, ι_{≥z}, and ι_{>η}).
Instances For
Finite min/max witnesses for ideal hulls #
chooseMin is below every element of the finset (under the no-NaN side condition).
chooseMax is above every element of the finset (under the no-NaN side condition).
Existence of min/max witnesses for idealSharp on a nonempty box domain.
This packages the interval hull characterization of idealSharp as an Icc m M.
Exact interval images from separating threshold networks #
Separability and exact-semantics premises #
Separating activation condition specialized to IEEE32Exec.
Instances For
Premise: the separating activation condition yields exact threshold-indicator networks on
[-1,1].
Premise: separability yields a σ-network whose interval semantics equals the direct-image hull.
Instances For
For any NaN-free rounded target h, there exists a σ-network with exact interval semantics.
Instances For
Separating activations and threshold-network composition imply exact interval semantics.
Exact interval-image theorem for rounded targets: for every NaN-free rounded target fHat, there is
a σ-network whose interval semantics is exactly the min/max hull of fHat '' γ(B) on every cube
box.
Instances For
Derive exact interval images from exact interval semantics by choosing finite min/max witnesses.
Correct rounding to exact interval images #
Pipeline theorem: correctly-rounded real activations plus separating-threshold constructions imply exact interval images for rounded targets.