Skip to content

Expose sample-covariance wrappers after CFC hardbone#17

Merged
dududuguo merged 1 commit into
mainfrom
rm-hb-sample-covariance-cfc-free-wrapper-contract
Jun 19, 2026
Merged

Expose sample-covariance wrappers after CFC hardbone#17
dududuguo merged 1 commit into
mainfrom
rm-hb-sample-covariance-cfc-free-wrapper-contract

Conversation

@freezed-corpse-143

Copy link
Copy Markdown
Collaborator

Summary

  • Add CFC-free sample-covariance wrapper entry points that fill pointwise Bernstein CFC premises via bernsteinMatrixExp_le_quadratic.
  • Migrate sample-covariance example assumptions off public cfcPrimitive fields while keeping Tropp/Lieb and integrability assumptions explicit.
  • Extend API/judge coverage and refresh RandomMatrix docs/status for the preferred conditional sample-covariance surface.

Motivation

This completes RM-HB-sample-covariance-cfc-free-wrapper-contract: after the Bernstein CFC hardbone leaf is proved, callers should not need to supply pointwise Bernstein CFC fields for the sample-covariance wrapper route.

Scope

  • Adds narrow wrapper theorems only; explicit-CFC compatibility wrappers remain available.
  • Updates examples, API checks, judge checks, and current-facing docs.
  • Does not prove Tropp/Lieb, Golden-Thompson, trace-exp integrability, variance-proxy sharpening, full Matrix Bernstein, or unconditional sample-covariance concentration.

Testing

  • lake env lean HighDimProb/RandomMatrix/ConcentrationStatements.lean
  • lake env lean HighDimProb/Examples/RandomMatrix/SampleCovarianceTailUsage.lean
  • lake env lean HighDimProb/Examples/RandomMatrix/BoundedRowSampleCovarianceOperatorNormUsage.lean
  • lake env lean HighDimProbTest/RandomMatrixConcentrationAPI.lean
  • lake env lean HighDimProbJudge/RandomMatrix/MatrixBernsteinUse.lean
  • lake env lean HighDimProbTest/ExamplesAPI.lean
  • lake build HighDimProbJudge
  • lake build HighDimProb.Examples
  • lake test
  • lake build
  • python scripts/judge_policy_check.py
  • python .github/scripts/check_text_quality.py
  • git diff --check
  • Independent review: code-reviewer APPROVE; architect CLEAR

Add narrow sample-covariance entry points that fill the pointwise Bernstein CFC premise with the proved bernsteinMatrixExp_le_quadratic leaf while keeping Tropp/Lieb, integrability, and variance-proxy assumptions explicit. Migrate example bundles off public cfcPrimitive fields and extend API/judge/docs coverage for the preferred conditional surface.

Constraint: RM-HB-sample-covariance-cfc-free-wrapper-contract only removes caller-supplied pointwise CFC obligations; it must not claim Tropp/Lieb, Golden-Thompson, trace-exp providers, full Matrix Bernstein, or unconditional sample-covariance concentration.

Rejected: Proving new analytic Tropp/Lieb or integrability leaves | outside this wrapper-contract scope and unsupported by the current theorem surface.

Confidence: high

Scope-risk: moderate

Directive: Preserve explicit-CFC compatibility wrappers and keep future docs honest about remaining analytic assumptions.

Tested: lake env lean HighDimProb/RandomMatrix/ConcentrationStatements.lean; lake env lean HighDimProb/Examples/RandomMatrix/SampleCovarianceTailUsage.lean; lake env lean HighDimProb/Examples/RandomMatrix/BoundedRowSampleCovarianceOperatorNormUsage.lean; lake env lean HighDimProbTest/RandomMatrixConcentrationAPI.lean; lake env lean HighDimProbJudge/RandomMatrix/MatrixBernsteinUse.lean; lake env lean HighDimProbTest/ExamplesAPI.lean; lake build HighDimProbJudge; lake build HighDimProb.Examples; lake test; lake build; python scripts/judge_policy_check.py; python .github/scripts/check_text_quality.py; git diff --check; independent code-reviewer APPROVE; architect CLEAR.

Not-tested: GitHub PR checks not run locally.
@dududuguo dududuguo merged commit f900a0c into main Jun 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants