feat(CPTPMap): close 6 sorries around piProd#1067
Open
dennj wants to merge 1 commit intoleanprover-community:masterfrom
Open
feat(CPTPMap): close 6 sorries around piProd#1067dennj wants to merge 1 commit intoleanprover-community:masterfrom
dennj wants to merge 1 commit intoleanprover-community:masterfrom
Conversation
MatrixMap: - exists_kraus: prove via explicit Kraus decomposition over ((B × A) × A) × B (now requires [StarRing R] [Fintype B]). - Basis.piTensorProduct: drop the local opaque stub and use Mathlib's PiTensorProduct.Basis. - Add choi_matrix_piProd characterising the Choi matrix of piProd. Unbundled: - Add IsTracePreserving.piProd. - Discharge IsCompletelyPositive.piProd via choi_matrix_piProd and Matrix.PosSemidef.piProd. CPTP: - Fill CPTPMap.piProd.TP using IsTracePreserving.piProd (needs maxRecDepth 1000). - fin_1_piProd: replace the sorry-in-type statement with the real equality using ofEquiv (Equiv.funUnique (Fin 1) _) and prove it.
jstoobysmith
reviewed
May 4, 2026
Member
jstoobysmith
left a comment
There was a problem hiding this comment.
Two comments - though one is really just a comment, the other a question.
|
|
||
| /-- Finite Pi-type tensor product of MatrixMaps. Defined as `PiTensorProduct.tprod` of the | ||
| underlying Linear maps. Notation `⨂ₜₘ[R] i, f i`, eventually. -/ | ||
| noncomputable def piProd (Λi : ∀ i, MatrixMap (dI i) (dO i) R) : MatrixMap (∀i, dI i) (∀i, dO i) R := |
Member
There was a problem hiding this comment.
Is this definition equivalent to the existing one? What is the reason for the change?
Member
There was a problem hiding this comment.
At some point, I think these CPTP files should be broken up. Maybe we should add a TODO item for this at some point.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MatrixMap:
Unbundled:
CPTP: