auto-task(quantumCapacity): minimize imports of QuantumInfo/Capacity/Capacity.lean#1270
Conversation
…Capacity.lean Co-authored-by: Claude <noreply@anthropic.com>
|
Thank you for this PR, which will now be reviewed. If submitting to ./Physlib or ./QuantumInfo, please see our review guidelines if you are not familiar with the process. You should expect a back and forth with a reviewer before your PR is merged. See also that link for how to add appropriate labels to your PR. The PR will also go through a number of automated checks. You can learn more about these here, including how to run them locally. If you are submitting to ./PhyslibAlpha there will be a lighter review process, though your PR must still pass the automated checks. If you want to bring attention to this PR, please write a message on this thread of the Lean Zulip. Important: If a reviewer adds an |
Summary
Trims the import list of
QuantumInfo/Capacity/Capacity.leandown to what the fileactually needs. Only
importlines were touched — no code, docstrings, ordeclarations were changed.
This file is a leaf module (no other file imports
QuantumInfo.Capacity.Capacity), so there is no downstream breakage and noimports needed to be added anywhere.
Imports removed (9)
Why these are safe to remove
Channels.Bundled,Channels.CPTP,Channels.Dual,Channels.MatrixMap,Channels.Unbundled— theCPTPMapoperations used here (compose,compose_assoc,id,piProd,piProd_id,piProd_comp,ofEquiv, …) arestill in scope because both retained imports,
QuantumInfo.Entropy.VonNeumannand
QuantumInfo.States.Mixed.Fidelity, transitively import all fiveChannelsmodules.
Entropy.SSA,Entropy.Relative,Entropy.DPI— the file references nothingspecific to strong subadditivity, relative entropy, or the data-processing
inequality. These modules were only acting as carriers for
QuantumInfo.Entropy.VonNeumann(which definescoherentInfo, the one entropysymbol the file uses);
VonNeumannis now imported directly.States.Mixed.TraceDistance— unused; the approximation definitions in thisfile are stated in terms of
fidelity, not trace distance.Imports kept (4)
Each directly provides a symbol the file uses to state or prove its declarations:
Mathlib.Analysis.SpecialFunctions.Log.Base—Real.logbQuantumInfo.Entropy.VonNeumann—coherentInfoQuantumInfo.States.Mixed.Fidelity—fidelity,fidelity_self_eq_onePhyslib.Meta.Sorry— the@[sorryful]attributeVerification
lake buildcompletes successfully (9107 jobs, no errors). The only warnings on thefile are the three pre-existing
declaration uses 'sorry'warnings from the@[sorryful]theorems that were already present — no newsorry, no new axioms, andno new errors or warnings were introduced.