Skip to content

[9d] Explicit-g: Bochner stack internals #17

@Xinze-Li-Moqian

Description

@Xinze-Li-Moqian

Part of umbrella #9. Sub-task 9d — Bochner stack.

Scope

Files (4):

  • OpenGALib/Riemannian/Operators/Bochner.lean
  • OpenGALib/Riemannian/Operators/Bochner/HessianExpansion.lean
  • OpenGALib/Riemannian/Operators/Bochner/BochnerExpansion.lean
  • OpenGALib/Riemannian/Operators/Bochner/PerSummand.lean

Heaviest file in the cascade — Bochner stack has 67 `_g` notation uses total. After #14#16, the underlying definitions take explicit `g`; this sub-issue migrates the Bochner stack itself.

Changes

For each Bochner file:

  1. Drop `[hm : HasMetric I M]` from section variables.
  2. Add `(g : RiemannianMetric I M)` as explicit section parameter — auto-included in all theorems / lemmas.
  3. Update all internal call sites of curvature / operator functions to pass `g` explicitly: `g.ricciTensor x v w`, `g.manifoldLaplacian f`, etc.
  4. `_g`-style notations still work in proof bodies (via `HasMetric.metric` resolution from outer scope, or no longer needed if all switched to method calls). The pragmatic choice: in this sub-issue, keep using `⟪⟫_g` etc. via the notation infrastructure (it auto-routes to `HasMetric.metric` per the notation update in 9a/9b/9c). The final `_g` deletion happens in 9f.

Risk

This is the highest-friction file cluster — 67 notation uses, many internal lemmas. Build may take iterations to settle.

Invariant

Bochner stack 0-sorry maintained. `bochner_weitzenboeck` headline + `manifoldGradient_smooth_of_smooth` unconditional preserved.

Acceptance

  • Build clean.
  • Sorry count unchanged (38).
  • Bochner stack 0-sorry preserved.
  • All 4 Bochner files have explicit `g` as section parameter.

Dependencies

Requires #14 (9a), #15 (9b), #16 (9c) merged first.

See also

#9 umbrella · prev: 9c (#16) · next: 9e (consumers)

Metadata

Metadata

Labels

architectureDesign / module organization changesmathMathematical content / proof workrefactorCode restructuring / reorganization

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions