Vectorization #
Shared Euclidean-space vectorization utilities for analytic autograd proofs.
This module centralizes the Vec alias (EuclideanSpace ℝ (Fin n)) and the basic
Tensor ℝ (.dim n .scalar) ↔ Vec n conversions used across multiple proof files.
PyTorch correspondence / citations #
This plays the same role as treating a length-n tensor as an element of ℝ^n when using
standard analysis results (mean value theorem, operator norms, etc.).
https://pytorch.org/docs/stable/linalg.html
Euclidean vectors over ℝ.
Instances For
Convert a 1D scalar tensor (Tensor ℝ (.dim n .scalar)) into a Euclidean vector Vec n.
This is the “analysis-friendly” view of a length-n tensor as an element of ℝ^n.
Instances For
Convert a Euclidean vector Vec n back into a 1D scalar tensor (Tensor ℝ (.dim n .scalar)).
This is the inverse direction of toVecE.