Interval Soundness Lemmas #
Scalar interval arithmetic, box-cast lemmas, and point-box facts used by the graph IBP soundness induction.
Op-level soundness lemmas (enclosure for each supported step) #
These lemmas are the building blocks for the final “certificate ⇒ semantics enclosure” theorem.
This proof reuses the following existing components:
- Linear IBP soundness over
ℝis already proved inNN.MLTheory.CROWN.mlpasNN.MLTheory.CROWN.Theorems.ibp_linear_sound_real. - For add/sub/relu on
FlatBox, the graph file already contains enclosure lemmas inNN.MLTheory.CROWN.Graph.Theorems.Semantics.
Monotonicity of real ReLU, used by interval enclosure proofs.
Elementwise interval multiplication of two boxes is sound.
FloatLib bounds each coordinate by the four endpoint products. The box wrapper also checks the
dimensions, so the conclusion concerns the box actually returned by boxMulElem.
Casting and containment #
Boxes and values carry their dimensions in dependent types. Transporting both along the same
equality preserves containment; the box conversion lemmas let operator proofs reuse Box bounds
without unfolding the flattened representation.
Casting a box and a point along the same equality does not change containment.
Box.contains implies encloses on the flattened box; the two are definitionally the same, and
the lemma exists so proofs can change vocabulary without unfolding.
Point Boxes Always Enclose Their Point #
This is used in the .const case, where a constant node certifies a point box
[v,v] and the semantics returns exactly the same v.