TorchLean API

NN.MLTheory.CROWN.Proofs.DirectedIBPAxisPlan

The checked adjacent-swap planner #

The planner fixes one requested axis at a time. Its processed prefix agrees with the requested permutation, and its recorded swaps reproduce its current axis list.

theorem NN.MLTheory.CROWN.Graph.swapDepthsForPerm_realizes (perm : Array ℕ) (rank : ℕ) (hlen : perm.size = rank) (hnodup : perm.toList.Nodup) (swaps : Array ℕ) (hplan : IR.Graph.swapDepthsForPerm perm rank = Except.ok swaps) :

Every successful checked plan realizes the entire requested axis ordering.