9h (part 1): lift remaining RiemannCurvature theorems to explicit g#42
Merged
Conversation
…re(At) / _symmetric to explicit g
…eep proof cascade)
…ure) to explicit g - IsKilling predicate now takes (g : RiemannianMetric I M) - IsKilling.second_covDeriv_inner_skew lifted; local scalar var g renamed to kw_g to avoid shadowing the section g - second_covDeriv_commutator lifted - IsKilling.second_covDeriv_eq_curvature lifted All HasMetric.metric body refs replaced with g; metricInner abbrev calls with g.metricInner; metricInner_X lemma calls with g.metricInner_X. Internal callers within RiemannCurvature.lean updated to pass g.
The proof routes through ⟪·,·⟫_ℝ = hm.metric.inner via the InnerProductSpace instance derived from [HasMetric I M], so ricci_symm cannot be lifted for arbitrary g without InnerProductSpace restructure. Use subst hg pattern: caller passes g and proof of g = hm.metric, body works in hm.metric form. BochnerExpansion caller updated to pass (HasMetric.metric, rfl). RiemannCurvature.lean is now fully explicit-g for all theorems with at most this trivial hg sidecar.
This was referenced May 19, 2026
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.
Summary
9h — lift
Curvature/RiemannCurvature.leanfrom typeclass-boundHasMetric.metricto explicit(g : RiemannianMetric I M)parameters.Lifted theorems / defs
riemannCurvature_metric_skewriemannCurvature_inner_self_zeroriemannCurvature_pair_symmbianchi_first,_antisymm,_metric_skewsectionalCurvature(def)sectionalCurvatureAt(def)sectionalCurvature_symmetricIsFlat(predicate)IsKilling(predicate)IsKilling.second_covDeriv_inner_skewg : M → ℝrenamed tokw_gto avoid section-var shadowsecond_covDeriv_commutatorIsKilling.second_covDeriv_eq_curvaturericci_symmhg : g = hm.metric)LinearMap.trace_eq_sum_innerover⟪·,·⟫_ℝ = hm.metric.innerties tohm.metric; lift usessubst hgto bridge to typeclass formAfter this PR
RiemannCurvature.leanis fully explicit-g (5 residualHasMetric.metricoccurrences are in docstrings / cross-references, not in theorem bodies).Bochner caller update
Operators/Bochner/BochnerExpansion.leanline 421 caller updated fromricci_symm WV GV x h_interiortoricci_symm HasMetric.metric rfl WV GV x h_interior.Deferred
Bochner stack body lifts (
BochnerExpansion.lean179 sites,PerSummand.lean183 sites,Bochner.lean77 sites) — depend on lifting SmoothOrthoFrame wrappers (also have InnerProductSpace tie). Separate effort.Test plan
lake buildclean per commit