TorchLean API

NN.MLTheory.CROWN.Proofs.DirectedIBPPermutation

Directed enclosure through shape-erased coordinate operations #

The runtime implements permutations by adjacent swaps. Each swap reads one input coordinate, so the same enclosure proof applies to every accepted permutation, including empty tensors.

Shape-erased endpoint tensors have the same shape as an enclosed exact real tensor.

Instances For

    Successful endpoint and real evaluations preserve shape and coordinate enclosure.

    Instances For

      The checked permutation evaluator applies the same swaps to all three tensors.

      Exact transpose uses the runtime's validated transposition permutation.

      Instances For
        theorem NN.MLTheory.CROWN.Graph.DirectedBackward.ibpMonotoneSomeTensor?_encloses {α : Type} [TorchLean.Storage α] [Context α] [BoundOps α] [LawfulBoundOps α] {s t : Spec.Shape} {B box : FlatBox α} {f : ℕ → ℝ} {y : TorchLean.Tensor ℝ t} {op : Spec.SomeTensor α → Except String (Spec.SomeTensor α)} {exactOp : Spec.SomeTensor ℝ → Except String (Spec.SomeTensor ℝ)} (hop : TensorTransferEncloses op exactOp) (hB : RowEncloses B s.size f) (hy : exactOp { shape := s, tensor := realTensor s f } = Except.ok { shape := t, tensor := y }) (hbox : ibpMonotoneSomeTensor? s t op B = some box) :

        Applying an enclosing shape-erased transfer to endpoint tensors encloses its exact result.