Repository navigation
feat(LinearAlgebra/QuadraticForm): base change for quadratic forms without Invertible 2 - #46693
skipgaribaldi wants to merge 11 commits into
Conversation
Construct the base change of a quadratic map along `R → A` over an arbitrary commutative ring, with no hypothesis on `2` and no finiteness hypothesis on the module. Present `M` as a quotient of `M →₀ R`, base change a bilinear representative on the free module, and descend along `QuadraticMap.lift` using right exactness of the tensor product. `QuadraticForm.baseChange` is redefined via this construction and moves, with `baseChange_tmul`, `associated_baseChange` and `polarBilin_baseChange`, from `QuadraticForm/TensorProduct.lean` to the new file `QuadraticForm/BaseChange.lean`. `baseChange`, `baseChange_tmul` and `polarBilin_baseChange` no longer assume `Invertible 2`. `QuadraticForm.baseChange` is now `noncomputable`, and so are the Clifford algebra base-change maps built on it. `ofBaseChangeAux`, `ofBaseChange` and their simp lemmas no longer assume `Invertible 2`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…etric bilinear map Generalize the construction of base change to the tensor product `QuadraticMap.bilinTmul b hb Q : QuadraticMap A (V ⊗[R] M) (W ⊗[R] N)` of a symmetric bilinear map `b` over `A` with a quadratic map `Q` over `R`, with no hypothesis on `2`. Its polar form is `b.tmul (polarBilin Q)`. `QuadraticMap.baseChange` is now the special case where `b` is multiplication on `A`. Also add `QuadraticMap.polarBilin_baseChange` and the compatibility lemma `QuadraticForm.baseChange_eq_tmul` with the previous definition when `2` is invertible, cite Garibaldi–Petersson–Racine Proposition 11.4 and Corollary 11.5, and simplify a helper proof with `LinearMap.quotKerEquivOfSurjective_symm_apply`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…linTmul` Replace the free-presentation construction of `QuadraticMap.bilinTmul` with an explicit formula on words in the free additive monoid underlying the tensor product, using the order of the word in place of a chosen bilinear representative. This removes all uses of choice, so `bilinTmul`, `QuadraticMap.baseChange`, `QuadraticForm.baseChange` and the Clifford algebra base-change maps are computable again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…aseChange`, trim docs Prove `associated_baseChange` from `baseChange_eq_tmul` and `associated_tmul`, and drop development history from the docstrings. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Prove that `toBaseChange` respects the quadratic form by comparing two quadratic maps on `1 ⊗ₜ v` with `baseChange_ext`, instead of reducing to the polar form. This removes the `Invertible (2 : R)` hypothesis from `toBaseChange`, `equivBaseChange` and the remaining lemmas in the file, so `CliffordAlgebra (Q.baseChange A) ≃ₐ[A] A ⊗[R] CliffordAlgebra Q` holds over any commutative ring. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…` in `toBaseChange` Co-Authored-By: Claude Opus 5.5 <[email protected]>
Welcome new contributor!Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests. We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the If you haven't already done so, please come to Zulip and join the Lean community. |
PR summary 5c24b2ede0Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
| Current number | Change | Type (strong) |
|---|---|---|
| 1730 | -1 | backward.defeqAttrib.useBackward |
Current commit 5c24b2ede0
Reference commit 872764eb0f
This script lives in the mathlib-ci repository. To run it locally, from your mathlib4 directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci
../mathlib-ci/scripts/reporting/technical-debt-metrics.py pr_summary
- The
relativevalue is the weighted sum of the differences with weight given by the inverse of the current value of the statistic. - The
absolutevalue is therelativevalue divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
|
LLM-generated |
…iles` These commands made the changes in this commit. To make the same fixes yourself, run them in your mathlib4 checkout.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
These commands made the changes in this commit. To make the same fixes yourself, run them in your mathlib4 checkout.
Currently, base change for quadratic forms
QuadraticForm.baseChangerequiresInvertible (2 : R), but that is not required by the math. This PR fixes that.It defines
QuadraticMap.bilinTmul, the tensor product of a symmetric bilinear mapbwith a quadratic mapQ. The construction is heterobasic, wherebis on anA-module for anR-algebraAandQis defined on anR-module. The tensor product is defined on anA-module by an explicit formula. The full generality of this construction is needed for further developments in quadratic form theory, such as the definitions of Pfister forms and of the module structure on the Witt group.The special case where the bilinear map
bis the multiplication on anR-algebraAdefines the base change ofQtoA. This gives the newQuadraticMap.baseChange, andQuadraticForm.baseChangeis redefined using it.When
2is invertible, the new definition agrees with the old one, as witnessed byQuadraticForm.baseChange_eq_tmul.The new definition for base change means that
Invertible 2is no longer necessary inMathlib/LinearAlgebra/CliffordAlgebra/BaseChange.lean. This PR also drops that unneeded hypothesis where it occurs.This PR adds the reference Garibaldi–Petersson–Racine, Albert Algebras over Commutative Rings, to
docs/references.bibas a textbook account (Proposition 11.4 and Corollary 11.5). Disclosure: I am a co-author. The math is elementary and well known, so there are other possible choices. This one has the advantage of having a free, machine-readable PDF available online, see the URL in the reference.Migration:
QuadraticForm.baseChange,QuadraticForm.baseChange_tmul,QuadraticForm.associated_baseChangeandQuadraticForm.polarBilin_baseChangemove fromMathlib/LinearAlgebra/QuadraticForm/TensorProduct.leanto the new fileMathlib/LinearAlgebra/QuadraticForm/BaseChange.lean. ImportMathlib.LinearAlgebra.QuadraticForm.BaseChange.QuadraticForm.baseChangeis no longer defined to beQuadraticForm.tmul QuadraticMap.sq Q; useQuadraticForm.baseChange_eq_tmulinstead. Declarations inCliffordAlgebra/BaseChange.leanno longer take[Invertible (2 : R)].Use of AI: I chose the approach and directed Claude Opus 5.5 to write the Lean code, working interactively. I used ChatGPT 6.1 Sol to review the code at various stages, leveraging Cameron Freer's lean4-skills.
Zulip discussion: https://leanprover.zulipchat.com/#narrow/channel/287929-mathlib4/topic/QuadraticForm.2EbaseChange.20without.20Invertible.202/with/644221143