refactor: use Mathlib's norm_matmul, module, ring, and pull fun #531
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 202 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.318
Real PR Conversation Timeline
1 comments
"Review active on #531"
general
weight: 0.35
seewoo5
Summary
Follow-up to #434: for the custom tactics proposed there that are superseded by existing Mathlib tactics (
fin_vec_simp→norm_matmul,pointwise→ring/module/pull fun _ ↦ _), this PR replaces the corresponding boilerplate across the repo with Mathlib's built-in tactics (net -62 lines).(The other two Mathlib-superseded items from #434 —
d_nfandslash_simp— were already migrated upstream in #478 and #495.)Changes
SpherePacking/Basic/E8.lean: Usenorm_matmul(Mathlib.Tactic.NormMatMul) to proveE8Inverse_mul_E8Matrixdirectly over[Field R] [CharZero R], removingE8Inverse_eq_castand thedecide +kernelhelperE8Inverse_mul_E8Matrix_rat.SpherePacking/ModularForms/JacobiTheta/JacobiIdentity.lean: Useringdirectly onℍ → ℂ(instead ofext z; simp [Pi.]; ring) andsqinjacobi_f_eq_mul.SpherePacking/ModularForms/JacobiTheta/Derivative.lean: Usemodule(Mathlib.Tactic.Module),ring,Algebra.smul_def,linear_combination, andpull fun _ ↦ _(Mathlib.Tactic.Push) to eliminate repetitiveext z; simp [Pi._apply]; ringboilerplate acrossf₂/f₃/f₄,theta_g/theta_h,H_sum_sq,serreDerivative_H₂/H₃/H₄, andD_H₂/H₃/H₄.SpherePacking/ModularForms/FG.lean&SpherePacking/MagicFunction/b/Psi.lean: Usepull fun _ ↦ _(Mathlib.Tactic.Push) in place of manualPi.*_applysimp onlylists inF_eq_nine_DE₄_sq,MLDE_F,MLDE_G, andψS_eq_neg_one_half_smul_G_div_disc.All new tactic imports use private
importstatements matching the module import style from #516.