Bounds and norm facts for dependent tensors.
The lemmas here support proof developments that need componentwise bounds, norm estimates, and simple inequalities over tensor-shaped data.
Flatten / unflatten round-trips #
The round-trip lemmas for the spec definitions live with the definitions themselves:
NN/Spec/Core/TensorReductionShape.lean provides
so downstream proof files do not need to re-prove the index arithmetic here.
Existence of a uniform bound for safediv_spec, expressed via an idempotent min-clamp.
tensor_norm_squared t is nonnegative, since it is a sum of squares.
Convenience orientation of tensor_norm_squared_nonneg.
Keep this untagged as a simp lemma: the canonical theorem above uses the existing >= spelling,
while downstream analysis proofs often need the 0 ≤ ... spelling for Real.sq_sqrt.
tensor_norm_squared t = 0 iff t is the all-zero tensor.