mathlib4 review helperopen PRs by @themathqueen on leanprover-community/mathlib4

← queue

#45280 feat(LinearAlgebra): complexification of real spaces

awaiting-author t-algebra CI success

+353 −0 · 3 files · 12 commits · head a20eef5 · updated 4 days ago · Files changed on GitHub

PR description

This provides the basic framework for complexifying spaces (module structures, star structures, and algebra structures). We also provide some API for complexifying linear operators.


Conversation on GitHub 20
github-actions[bot] · comment · 2026-10-25
PR summary a20eef52af
Import changes for modified files

No significant changes to the import graph

<details><summary>Import changes for all files</summary>

|Files|Import difference| |-|-| | Mathlib.LinearAlgebra.Complexification.Basic (new file)|1429|

</details>


<details><summary>

Declarations diff (regex)

</summary>

+ Complexification + I_smul + I_smul_mk + _root_.Submodule.comap_inclusion_complexification + _root_.Submodule.complexification + _root_.Submodule.complexification_bot + _root_.Submodule.complexification_comap_inclusion + _root_.Submodule.complexification_gc + _root_.Submodule.complexification_inf + _root_.Submodule.complexification_inj + _root_.Submodule.complexification_le_complexification + _root_.Submodule.complexification_le_iff + _root_.Submodule.complexification_mono + _root_.Submodule.complexification_sup + _root_.Submodule.complexification_top + _root_.Submodule.exists_complexification_eq_iff + _root_.Submodule.mem_complexification + algebraMap_apply + conj + conj_I_smul + conj_conj + conj_eq_self_iff + conj_mk + equivProd + im_add + im_conj + im_mk + im_mul + im_neg + im_one + im_real_smul + im_smul + im_star + im_sub + im_zero + imₗ + inclusion + instStarAddMonoid + instStarMul + instance : InvolutiveStar (Complexification A) where star_involutive _ := by simp [star_def] + instance : Module ℂ (Complexification V) + instance : Mul (Complexification A) + instance : NonAssocRing (Complexification A) + instance : NonUnitalNonAssocRing (Complexification A) + instance : One (Complexification A) where one := mk 1 0 + instance : SMul ℂ (Complexification V) + instance : Star (Complexification A) where star x := mk (star x.re) (-star x.im) + instance : StarRing (Complexification A) where __ := instStarAddMonoid; __ := instStarMul + instance [AddCommGroup M] : AddCommGroup (Complexification M) := equivProd.addCommGroup + instance [AddCommMonoid M] : AddCommMonoid (Complexification M) := equivProd.addCommMonoid + instance [AddGroup M] : AddGroup (Complexification M) := equivProd.addGroup + instance [AddMonoid M] : AddMonoid (Complexification M) := equivProd.addMonoid + instance [Module ℝ A] [IsScalarTower ℝ A A] : + instance [Module ℝ A] [SMulCommClass ℝ A A] : + instance [Module ℝ A] [StarModule ℝ A] : StarModule ℂ (Complexification A) + instance {A : Type*} [CommRing A] : CommRing (Complexification A) + instance {A : Type*} [NonAssocCommRing A] : NonAssocCommRing (Complexification A) + instance {A : Type*} [NonUnitalCommRing A] : NonUnitalCommRing (Complexification A) + instance {A : Type*} [NonUnitalNonAssocCommRing A] : + instance {A : Type*} [NonUnitalRing A] : NonUnitalRing (Complexification A) + instance {A : Type*} [Ring A] : Ring (Complexification A) + instance {A : Type*} [Ring A] [Algebra ℝ A] : Algebra ℂ (Complexification A) + mk_add_mk + mk_eq_add_I_smul + mk_mul_mk + mk_re_im + mk_sub_mk + mk_zero_zero + mul_def + neg_mk + one_def + re_add + re_conj + re_mk + re_mul + re_neg + re_one + re_real_smul + re_smul + re_star + re_sub + re_zero + realLinearEquivComplex + reₗ + smul_def + star_I_smul + star_conj + star_def + star_mk + symm_conj <details> <summary>You can run this locally as follows</summary>

## from your `mathlib4` directory:
git clone https://github.com/leanprover-community/mathlib-ci.git ../mathlib-ci

## summary with just the declaration names:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
../mathlib-ci/scripts/pr_summary/declarations_diff.sh long <optional_commit>

</details>

The doc-module for scripts/pr_summary/declarations_diff.sh in the undefined repository contains some details about this script.

</details>

<details><summary>

Declarations diff (Lean)

</summary>

✅ Lean-aware diff — post-build, computed from the Lean environment (commit a20eef5).

  • +114 new declarations
  • −0 removed declarations
+Complexification
+Complexification.I_smul
+Complexification.I_smul_mk
+Complexification.algebraMap_apply
+Complexification.casesOn
+Complexification.conj
+Complexification.conj_I_smul
+Complexification.conj_apply
+Complexification.conj_conj
+Complexification.conj_eq_self_iff
+Complexification.conj_mk
+Complexification.ctorIdx
+Complexification.delabMk
+Complexification.equivProd
+Complexification.equivProd_apply
+Complexification.equivProd_symm_apply
+Complexification.ext
+Complexification.ext_iff
+Complexification.im
+Complexification.im_add
+Complexification.im_conj
+Complexification.im_mk
+Complexification.im_mul
+Complexification.im_neg
+Complexification.im_one
+Complexification.im_real_smul
+Complexification.im_smul
+Complexification.im_star
+Complexification.im_sub
+Complexification.im_zero
+Complexification.imₗ
+Complexification.imₗ_apply
+Complexification.inclusion
+Complexification.inclusion_apply
+Complexification.instAddCommGroup
+Complexification.instAddCommMonoid
+Complexification.instAddGroup
+Complexification.instAddMonoid
+Complexification.instAlgebraComplexOfReal
+Complexification.instCommRing
+Complexification.instInvolutiveStar
+Complexification.instIsScalarTowerComplexOfReal
+Complexification.instModuleComplex
+Complexification.instMul
+Complexification.instNonAssocCommRing
+Complexification.instNonAssocRing
+Complexification.instNonUnitalCommRing
+Complexification.instNonUnitalNonAssocCommRing
+Complexification.instNonUnitalNonAssocRing
+Complexification.instNonUnitalRing
+Complexification.instOne
+Complexification.instRing
+Complexification.instSMulCommClassComplexOfReal
+Complexification.instSMulComplex
+Complexification.instStar
+Complexification.instStarAddMonoid
+Complexification.instStarModuleComplexOfReal
+Complexification.instStarMul
+Complexification.instStarRing
+Complexification.mk
+Complexification.mk.inj
+Complexification.mk.injEq
+Complexification.mk.noConfusion
+Complexification.mk.sizeOf_spec
+Complexification.mk_add_mk
+Complexification.mk_eq_add_I_smul
+Complexification.mk_mul_mk
+Complexification.mk_re_im
+Complexification.mk_sub_mk
+Complexification.mk_zero_zero
+Complexification.mul_def
+Complexification.neg_mk
+Complexification.noConfusion
+Complexification.noConfusionType
+Complexification.one_def
+Complexification.re
+Complexification.re_add
+Complexification.re_conj
+Complexification.re_mk
+Complexification.re_mul
+Complexification.re_neg
+Complexification.re_one
+Complexification.re_real_smul
+Complexification.re_smul
+Complexification.re_star
+Complexification.re_sub
+Complexification.re_zero
+Complexification.realLinearEquivComplex
+Complexification.realLinearEquivComplex_apply
+Complexification.realLinearEquivComplex_symm_apply
+Complexification.rec
+Complexification.recOn
+Complexification.reₗ
+Complexification.reₗ_apply
+Complexification.smul_def
+Complexification.star_I_smul
+Complexification.star_conj
+Complexification.star_def
+Complexification.star_mk
+Complexification.symm_conj
+Submodule.comap_inclusion_complexification
+Submodule.complexification
+Submodule.complexification_bot
+Submodule.complexification_comap_inclusion
+Submodule.complexification_gc
+Submodule.complexification_inf
+Submodule.complexification_inj
+Submodule.complexification_le_complexification
+Submodule.complexification_le_iff
+Submodule.complexification_mono
+Submodule.complexification_sup
+Submodule.complexification_top
+Submodule.exists_complexification_eq_iff
+Submodule.mem_complexification

</details>


No changes to strong technical debt. No changes to weak technical debt.

Current commit a20eef52af Reference commit 442ab0d377

This script lives in the undefined 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 relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).
themathqueen · comment · 2026-10-25

@j-loreaux, here is the first PR on complexification.

There's probably more we can add (more instances, more useful API), but this is just the first PR.

~~(I can split the linear map stuff to its own PR if you want, since this PR is quite big.)~~

eric-wieser · on Mathlib/Algebra/Complexification.lean:30 (outdated) · 2026-10-26

Isn't it easy enough to use

import Mathlib

open scoped TensorProduct
variable {𝕜 M : Type*} [RCLike 𝕜] [AddCommGroup M] [Module ℝ M] 

noncomputable def TensorProduct.re : 𝕜 ⊗[ℝ] M →ₗ[ℝ] M :=
  (TensorProduct.lid ℝ M).toLinearMap ∘ₗ RCLike.reLm.rTensor M

noncomputable def TensorProduct.im : 𝕜 ⊗[ℝ] M →ₗ[ℝ] M :=
  (TensorProduct.lid ℝ M).toLinearMap ∘ₗ RCLike.imLm.rTensor M
themathqueen · on Mathlib/Algebra/Complexification.lean:30 (outdated) · 2026-10-26

Hmm.. true. I'll try to refactor later

eric-wieser · on Mathlib/Algebra/Complexification.lean:30 (outdated) · 2026-10-26

This isn't necessarily an argument that your approach is a bad idea; merely that you need to go a bit further to justify it.

themathqueen · on Mathlib/Algebra/Complexification.lean:30 (outdated) · 2026-10-26

I get that. I don't really have any further justification besides convenience since I have a lot of the code written. So I think it's worth a shot at trying to refactor if it can shorten and remove lots of things.

eric-wieser · on Mathlib/Algebra/Complexification.lean:30 (outdated) · 2026-10-26

Another thing you could consider is whether this is really a Module (QuadraticAlgebra _ _) (QuadraticAlgebra _ _) instance; that is, do we really want to specialize to C?

themathqueen · on Mathlib/Algebra/Complexification.lean:30 (outdated) · 2026-11-04

After some thinking, I don't think the tensor product approach is the right one anymore. It wouldn't work for normed spaces for example. So we wouldn't be able to complexify normed or C*-algebras.

themathqueen · on Mathlib/Algebra/Complexification.lean:30 (outdated) · 2026-11-04

I haven't though much about the QuadraticAlgebra approach besides seeing if I can have it as an abbreviation (but that wouldn't work).

themathqueen · on Mathlib/LinearAlgebra/Complexification/Basic.lean:48 (outdated) · 2026-11-05
/-- This prevents `mk x.re y.im` being printed as `{ re := x.re, im := x.im }` by
themathqueen · on Mathlib/LinearAlgebra/Complexification/Basic.lean:15 (outdated) · 2026-11-05
This is realised as a structure with a "real part" and an "imaginary part".
j-loreaux · on Mathlib/Algebra/Complexification.lean:30 (outdated) · 2026-11-10
  1. Regarding "do we really want to specialize to C?". I think the answer is, yes, but even more so, doing this for QuadraticAlgebra doesn't really help us for ℂ.
  2. Regarding tensor products versus Prod versus structures: I'll have more to say about this in another comment, but @themathqueen I want to point out that it is still totally feasible to use ℂ ⊗[ℝ] M under the hood, either by making Complexification a 1-field structure for that, or else an implicit-reducible def (I would lean towards the former).
  3. @eric-wieser note that your TensorProduct.re for RCLike 𝕜 has the annoying property that RCLike.re = Complex.re is not a reducible defeq when 𝕜 := ℂ. Also note that 𝕜 ⊗[ℝ] M is not really what we want. We really want ℂ ⊗[ℝ] M when 𝕜 := ℝ. (arguably, we want 𝕜 ⊗[𝕜] M, but see my other comment).
j-loreaux · comment · 2026-11-10

@ADedecker and @faenuccio I have thought a lot about this since ICERM. Let me lay out things the way I see them.

(Note: I've structured this post more than usual, and it's long, but be assured that none of it is AI. This should be obvious since it's a GitHub comment, but I didn't want you to have any doubts.)

We have two options: create a complexification that always tensors over ℝ, or a version which takes a parameter 𝕜 and tensors over 𝕜; at ICERM we discussed ways to accomplish the latter. I will highlight the advantages and disadvantages I see of each, and then state my conclusions.

Tensor over ℝ

Advantages:

  1. It's simple and we always do the same thing, so there is never a need to consider Complexification ℝ M, Complexification ℂ M, or Complexification 𝕜 M.
  2. It matches the literature best. I don't know of any text that tries to implement complexification as ℂ ⊗[𝕜] M, because they have no counterpart to our formal RCLike class.
  3. We can implement as this as ℂ ⊗[ℝ] M or M × M or as a bespoke structure, they are all the same. We have lots of freedom and the complexification is always equivalent to M × M (as sets).
  4. It is quite natural to get Algebra ℂ (Complexification M) instances, without diamonds.

Disadvantages:

  1. It could cause some fracturing regarding how we handle things involving RCLike. That is, it would be very sad to have to give up this nice general framework and start duplicating everything for ℝ and ℂ. But see the mitigation suggestion below. Of course, this fracturing has already been forced upon us to some extent with ContinuousFunctionalCalculus, and I still see no way around that.
  2. It's perhaps not as elegant (i.e., it would be very nice if this were effectively the identity on complex algebras).

Mitigations:

In situations where we need to use the complexification to prove something over RCLike, we can always pass (e.g., a 𝕜-linear map) through .restrictScalars ℝ and then on to the complexification. In this way, we should still be able to prevent fracturing. Monica pointed this out to me, and I think it makes a lot of sense.

Tensor over 𝕜

Before jumping in, I want to point out that I think this is significantly simpler than we were discussing at ICERM. At ICERM we were concerned because we don't have an Algebra 𝕜 ℂ instance, and so we don't get a ℂ-algebra structure from ℂ ⊗[𝕜] M. So we contemplated a type synonym RCLike.Complex for ℂ that takes a parameter 𝕜 and give an Algebra 𝕜 (RCLike.Complex 𝕜) instance. On #42744, Anatole pointed out that this would mean we need a CLike typeclass, and that seems like a whole mess. We considered this the big downside to this approach.

However, I think this is not a problem at all. I think all we need to do is make RCLike extend NormedAlgebra 𝕜 ℂ. The forgetful inheritance I believe prevents any diamonds. Then we can easily consider ℂ ⊗[𝕜] M.

Advantages: prevents fracturing (but see below!) and is more elegant.

Disadvantages:

  1. We have to worry about three different kinds of complexification. Hopefully we would never need to transition between these, but it is a bit weird.
  2. Hard to explain to outsiders why we would ever want to do this: "why would you ever do Complexification ℂ M", "we don't really", "but then why do you have Complexification 𝕜 M, you only ever allow 𝕜 := ℝ or 𝕜 := ℂ?", "because ... reasons."
  3. I am actually worried about fracturing problems. The ℂ ⊗[𝕜] M approach effectively, although not literally does an invisible case split based on whether 𝕜 := ℝ or 𝕜 := ℂ (because you get either M × M or M back). It's quite elegant that we can do this in a uniform way, but it means that you really can't take real and imaginary parts unless 𝕜 := ℝ, and so we still end up with a fractured landscape.
Conclusion

I think Monica's approach here is the correct one (modulo implementation details, e.g., making this a structure wrapper around ℂ ⊗[ℝ] M).

faenuccio · comment · 2026-11-18

@ADedecker and @faenuccio I have thought a lot about this since ICERM. Let me lay out things the way I see them.

(Note: I've structured this post more than usual, and it's long, but be assured that none of it is AI. This should be obvious since it's a GitHub comment, but I didn't want you to have any doubts.)

We have two options: create a complexification that always tensors over ℝ, or a version which takes a parameter 𝕜 and tensors over 𝕜; at ICERM we discussed ways to accomplish the latter. I will highlight the advantages and disadvantages I see of each, and then state my conclusions.

Tensor over ℝ

Advantages:

  1. It's simple and we always do the same thing, so there is never a need to consider Complexification ℝ M, Complexification ℂ M, or Complexification 𝕜 M.
  1. It matches the literature best. I don't know of any text that tries to implement complexification as ℂ ⊗[𝕜] M, because they have no counterpart to our formal RCLike class.
  1. We can implement as this as ℂ ⊗[ℝ] M or M × M or as a bespoke structure, they are all the same. We have lots of freedom and the complexification is always equivalent to M × M (as sets).
  1. It is quite natural to get Algebra ℂ (Complexification M) instances, without diamonds.

Disadvantages:

  1. It could cause some fracturing regarding how we handle things involving RCLike. That is, it would be very sad to have to give up this nice general framework and start duplicating everything for ℝ and ℂ. But see the mitigation suggestion below. Of course, this fracturing has already been forced upon us to some extent with ContinuousFunctionalCalculus, and I still see no way around that.
  1. It's perhaps not as elegant (i.e., it would be very nice if this were effectively the identity on complex algebras).

Mitigations:

In situations where we need to use the complexification to prove something over RCLike, we can always pass (e.g., a 𝕜-linear map) through .restrictScalars ℝ and then on to the complexification. In this way, we should still be able to prevent fracturing. Monica pointed this out to me, and I think it makes a lot of sense.

Tensor over 𝕜

Before jumping in, I want to point out that I think this is significantly simpler than we were discussing at ICERM. At ICERM we were concerned because we don't have an Algebra 𝕜 ℂ instance, and so we don't get a ℂ-algebra structure from ℂ ⊗[𝕜] M. So we contemplated a type synonym RCLike.Complex for ℂ that takes a parameter 𝕜 and give an Algebra 𝕜 (RCLike.Complex 𝕜) instance. On #42744, Anatole pointed out that this would mean we need a CLike typeclass, and that seems like a whole mess. We considered this the big downside to this approach.

However, I think this is not a problem at all. I think all we need to do is make RCLike extend NormedAlgebra 𝕜 ℂ. The forgetful inheritance I believe prevents any diamonds. Then we can easily consider ℂ ⊗[𝕜] M.

Advantages: prevents fracturing (but see below!) and is more elegant.

Disadvantages:

  1. We have to worry about three different kinds of complexification. Hopefully we would never need to transition between these, but it is a bit weird.
  1. Hard to explain to outsiders why we would ever want to do this: "why would you ever do Complexification ℂ M", "we don't really", "but then why do you have Complexification 𝕜 M, you only ever allow 𝕜 := ℝ or 𝕜 := ℂ?", "because ... reasons."
  1. I am actually worried about fracturing problems. The ℂ ⊗[𝕜] M approach effectively, although not literally does an invisible case split based on whether 𝕜 := ℝ or 𝕜 := ℂ (because you get either M × M or M back). It's quite elegant that we can do this in a uniform way, but it means that you really can't take real and imaginary parts unless 𝕜 := ℝ, and so we still end up with a fractured landscape.
Conclusion

I think Monica's approach here is the correct one (modulo implementation details, e.g., making this a structure wrapper around ℂ ⊗[ℝ] M).

Thanks for the excellent summary of our ICERM discussion, @j-loreaux ! Two questions:

  1. Currently RCLike K extends NormedAlgebra ℝ K: when you suggest that it extends NormedAlgebra K ℂ, you want in particular to put an Algebra K ℂ and, I suppose, a IsScalarTower ℝ K ℂ: is then the NormedAlgebra K ℂ really needed or would the Algebra K ℂ suffice?
  2. With Monica's approach, the complexification of ℂ is ℂ^2 but with our approach it was ℂ (not defeq-ly, perhaps, but at least mathematically) so they seems to very different approaches. In particular, I don't see how this approach would allow for a somewhat uniform treatment of the continuous calculus, and it would oblige to fall back to a complex-continuous calculus vs a real one, no?
eric-wieser · comment · 2026-11-18

One nice property of using 𝕜 ⊗[ℝ] M instead of ℂ ⊗[𝕜] M is that the former makes it easier to generalize parts to arbitrary star-module such as ℍ ⊗[ℝ] M. Of course complexification is terrible name for this, and it's really just BaseChange at this point.

j-loreaux · comment · 2026-11-18

or would the Algebra K ℂ suffice?

Probably that would suffice yes, although I don't think it would be terribly (any?) more work to make it extend NormedAlgebra K ℂ.

  • With Monica's approach, the complexification of ℂ is ℂ^2 but with our approach it was ℂ (not defeq-ly, perhaps, but at least mathematically) so they seems to very different approaches. In particular, I don't see how this approach would allow for a somewhat uniform treatment of the continuous calculus, and it would oblige to fall back to a complex-continuous calculus vs a real one, no?

There are several things to say about this:

  1. There is no meaningful ContinuousFunctionalCalculus 𝕜 A ?p instance precisely because there is no predicate ?p : A → Prop that works for RCLike 𝕜 (because when 𝕜 := ℝ it needs to be IsSelfAdjoint and when 𝕜 := ℂ it needs to be IsStarNormal). There are a small handful of lemmas where we assume RCLike for cfc-related material, but it has to be the case that the predicate plays essentially no role in those lemmas.
  2. Note that ContinuousFunctionalCalculus is a Prop-valued class, so it doesn't really matter how we get a ContinuousFunctionalCalculus ℝ A IsSelfAdjoint class on a real vs. complex C⋆-algebra, we do not need them to "agree" at any transparency. So, Given RCLike 𝕜 and a 𝕜-C⋆-algebra A (also assuming it is a ℝ-algebra with IsScalarTower ℝ 𝕜 A), then we can complexify A to get Complexification A (≃ A × A), which is a ℂ-C⋆-algebra, and then we get ContinuousFunctionalCalculus ℝ (Complexification A) IsSelfAdjoint for free. Given a selfadjoint element a : A, if ↑a : Complexification A, then we can show that cfc (?f : ℝ → ℝ) ↑a always lives in Set.range (↑), and so we can restrict to get a ContinuousFunctionalCalculus ℝ A IsSelfAdjoint instance on our 𝕜-C⋆-algebra; hence no fracturing at this step.
  3. Probably you are not familiar with this, but there is a distinction between continuous functional calculi over ℝ-C⋆-algebras and over ℂ-C⋆-algebras. In particular, over a complex C⋆-algebra, and for an element a : A with is normal/selfadjoint/nonnegative, we can make sense of f(a) for any f : ℂ → ℂ/f : ℝ → ℝ/f : ℝ≥0 → ℝ≥0 which is continuous on the spectrum. However, for real C⋆-algebras, while the versions over ℝ or ℝ≥0 work the same, the version over ℂ for normal elements is different. In particular, you can only make sense of f(a) for f : ℂ → ℂ which are continuous on the ℂ-spectrum (of ↑a, of course, because ℂ-spectrum of a makes no sense) AND which satisfy f (star z) = star (f z) for all z ∈ spectrum ℂ ↑a (note: for ↑a : ℂ ⊗[ℝ] A, the spectrum is always self-conjugate, so this makes sense). Note that this distinction in the ℂ-valued function case over ℝ-C⋆-algebras means that ContinuousFunctionalCalculus is already not workable for normal elements in a non-complex C⋆-algebra. Anatole and I already knew this when designing this class, and mentioned this limitation in our paper.

Does this all make sense? Happy to expand if necessary.

j-loreaux · comment · 2026-11-30

@eric-wieser, @ADedecker, @faenuccio I'm interested in your opinions because I would like to get this moving. My (private) hope was to have it merged before the end of November, but that clearly won't happen. Nevertheless, I want to get complexification done whichever way we decide is better as soon as is reasonably possible.

In the absence of your comments, I'll probably start reviewing this as-is with the plan to pursue the ⊗[ℝ] approach.

faenuccio · on Mathlib/LinearAlgebra/Complexification/Basic.lean:105 (outdated) · 2026-12-01
  smul_add _ _ _ := by ext <;> simp <;> module
faenuccio · commented · 2026-12-01

Thanks, I've left several stylistical comments for the time being. In the next round (coming now) I'll focus more on the content.

faenuccio · comment · 2026-12-02

@themathqueen I know I'm taking a bit for the promised review about the content, but I'm overwhelmed the following 3 days. I'm on it and promise to finish my review by the beginning of next week.

Mathlib.lean +1 −0

public import Mathlib.LinearAlgebra.Complex.Determinant
5249public import Mathlib.LinearAlgebra.Complex.FiniteDimensional
5250public import Mathlib.LinearAlgebra.Complex.Module
5251public import Mathlib.LinearAlgebra.Complex.Orientation
5252public import Mathlib.LinearAlgebra.Complexification.Basic
5253public import Mathlib.LinearAlgebra.Contraction
5254public import Mathlib.LinearAlgebra.ConvexSpace
5255public import Mathlib.LinearAlgebra.ConvexSpace.AffineSpace

Mathlib/LinearAlgebra/Complexification/Basic.lean +342 −0 new file

1/-
2Copyright (c) 2026 Monica Omar. All rights reserved.
3Released under Apache 2.0 license as described in the file LICENSE.
4Authors: Monica Omar
5-/
6module
7
8public import Mathlib.LinearAlgebra.Complex.Module
9
10/-! # Complexification of spaces.
12In this file we define the complexificatin of spaces. We essentially extend a real space to
13a complex space, and extend operators to its complexification so we can use `ℂ`-results.
14This is realised as a structure with a "real part" and an "imaginary part".
15This way, we can informally think of `(x, y) : Complexification M` as `x + I • y`.
17In particular, `ℂ`-scalar multiplication is given by
18`α • (x, y) = (ℜ α • x - ℑ α • y, ℜ α • y + ℑ α • x)`.
20We also define multiplication and star structures on complexifications.
22## Implementation details
24We use products to describe complexifications as opposed to tensor products so that we can
25complexify normed spaces, C⋆-algebras, etc. With tensor products, this poses a slight problem.
themathqueen · 2026-11-05

technically it isn't products, it's a structure (need to change that)

and probably can justify further why this is a better choice, but maybe this is enough.

faenuccio · 2026-12-01

I agree it would be nicer if this is more justified, for future people wondering what problem is being mentioned here.

27We will show the equivalence between the complexification defined here and its tensor product
28description soon.
faenuccio · 2026-12-01

Is this a ##To Do ?

30## References
32[Steven Roman, *Advanced linear algebra*][roman_advanced_linear_algebra]
34-/
36public section
structure Complexification newL38–44
38/-- The complexification of a space. -/
39@[ext]
40structure Complexification (M : Type*) where
41 /-- The real part of a complexification. -/
42 re : M
43 /-- The imaginary part of a complexification. -/
44 im : M
46open Lean.PrettyPrinter.Delaborator in
def Complexification.delabMk newL47–50
47/-- This prevents `mk x.re y.im` being printed as `{ re := x.re, im := x.im }` by
48`delabStructureInstance`. -/
49@[app_delab Complexification.mk]
50meta def Complexification.delabMk : Delab := delabApp
52namespace Complexification
53variable {M : Type*}
faenuccio · 2026-12-01

variable {M : Type*}
lemma mk_re_im newL55–55
55@[simp] lemma mk_re_im (x : Complexification M) : mk x.re x.im = x := rfl
lemma re_mk newL56–56
56@[simp] lemma re_mk (x y : M) : (mk x y).re = x := rfl
lemma im_mk newL57–57
57@[simp] lemma im_mk (x y : M) : (mk x y).im = y := rfl
def equivProd newL59–62
59/-- The canonical equivalence between `Complexification M` and `M × M`. -/
60@[expose, simps apply symm_apply] def equivProd : Complexification M ≃ M × M where
61 toFun x := (x.re, x.im)
62 invFun x := mk x.fst x.snd
instance (anonymous instance) newL64–64
64instance [AddMonoid M] : AddMonoid (Complexification M) := equivProd.addMonoid
instance (anonymous instance) newL65–65
65instance [AddGroup M] : AddGroup (Complexification M) := equivProd.addGroup
instance (anonymous instance) newL66–66
66instance [AddCommMonoid M] : AddCommMonoid (Complexification M) := equivProd.addCommMonoid
instance (anonymous instance) newL67–67
67instance [AddCommGroup M] : AddCommGroup (Complexification M) := equivProd.addCommGroup
69variable [AddMonoid M]
lemma re_zero newL71–71
71@[simp] lemma re_zero : (0 : Complexification M).re = 0 := rfl
lemma im_zero newL72–72
72@[simp] lemma im_zero : (0 : Complexification M).im = 0 := rfl
lemma re_add newL73–73
73@[simp] lemma re_add (v w : Complexification M) : (v + w).re = v.re + w.re := rfl
lemma im_add newL74–74
74@[simp] lemma im_add (v w : Complexification M) : (v + w).im = v.im + w.im := rfl
lemma mk_zero_zero newL75–75
75@[simp] lemma mk_zero_zero : mk (0 : M) 0 = 0 := rfl
77variable {V : Type*} [AddCommGroup V]
lemma re_sub newL79–79
79@[simp] lemma re_sub (v w : Complexification V) : (v - w).re = v.re - w.re := rfl
lemma im_sub newL80–80
80@[simp] lemma im_sub (v w : Complexification V) : (v - w).im = v.im - w.im := rfl
lemma re_neg newL81–81
81@[simp] lemma re_neg (v : Complexification V) : (-v).re = -v.re := rfl
lemma im_neg newL82–82
82@[simp] lemma im_neg (v : Complexification V) : (-v).im = -v.im := rfl
lemma neg_mk newL83–83
83@[simp] lemma neg_mk (x y : V) : -mk x y = mk (-x) (-y) := rfl
lemma mk_add_mk newL85–85
85@[simp] lemma mk_add_mk (x y z w : M) : mk x y + mk z w = mk (x + z) (y + w) := rfl
lemma mk_sub_mk newL86–86
86@[simp] lemma mk_sub_mk (x y z w : V) : mk x y - mk z w = mk (x - z) (y - w) := rfl
88variable [Module ℝ V]
instance (anonymous instance) newL90–91
90instance : SMul ℂ (Complexification V) where
91 smul z v := .mk (z.re • v.re - z.im • v.im) (z.im • v.re + z.re • v.im)
lemma smul_def newL93–94
93lemma smul_def (z : ℂ) (v : Complexification V) :
94 z • v = .mk (z.re • v.re - z.im • v.im) (z.im • v.re + z.re • v.im) := rfl
lemma re_smul newL96–97
96@[simp] lemma re_smul (z : ℂ) (v : Complexification V) :
faenuccio · 2026-12-01

Both in the infoview and in the code, the re (and im) comes after the smul: so I'd call this smul_re and the next smul_im.

97 (z • v).re = z.re • v.re - z.im • v.im := rfl
lemma im_smul newL98–99
98@[simp] lemma im_smul (z : ℂ) (v : Complexification V) :
99 (z • v).im = z.im • v.re + z.re • v.im := rfl
instance (anonymous instance) newL101–107
101instance : Module ℂ (Complexification V) where
102 one_smul _ := by ext <;> simp
103 mul_smul _ _ _ := by ext <;> simp <;> module
104 smul_zero _ := by ext <;> simp
105 smul_add _ _ _ := by ext <;> simp <;> module
106 add_smul _ _ _ := by ext <;> simp <;> module
107 zero_smul _ := by ext <;> simp
lemma re_real_smul newL109–110
109@[simp] lemma re_real_smul (r : ℝ) (v : Complexification V) : (r • v).re = r • v.re := by
faenuccio · 2026-12-01

I would, as in the above lemmas, call this real_smul_re (and propagate this change further below to the im ones).

110 simp [← Complex.coe_smul]
lemma im_real_smul newL111–112
111@[simp] lemma im_real_smul (r : ℝ) (v : Complexification V) : (r • v).im = r • v.im := by
112 simp [← Complex.coe_smul]
lemma I_smul newL114–115
114@[simp] lemma I_smul (v : Complexification V) : Complex.I • v = mk (-v.im) v.re := by
115 ext <;> simp
lemma I_smul_mk newL117–117
117lemma I_smul_mk (x y : V) : Complex.I • mk x y = mk (-y) x := I_smul _
lemma mk_eq_add_I_smul newL119–120
119/-- `(x, y) = (x, 0) + I • (y, 0)`. -/
120lemma mk_eq_add_I_smul (x y : V) : mk x y = mk x 0 + Complex.I • mk y 0 := by simp
122variable (V) in
def reₗ newL123–127
123/-- The real part of a complexification of a real space as a real linear map. -/
124@[expose, simps] def reₗ : Complexification V →ₗ[ℝ] V where
125 toFun x := x.re
126 map_add' := by simp
127 map_smul' := by simp
129variable (V) in
def imₗ newL130–134
130/-- The imaginary part of a complexification of a real space as a real linear map. -/
131@[expose, simps] def imₗ : Complexification V →ₗ[ℝ] V where
132 toFun x := x.im
133 map_add' := by simp
134 map_smul' := by simp
136variable (V) in
def conj newL137–144
137/-- Conjugation on the complexification space, given by `(x, y) ↦ (x, -y)`. -/
138@[expose, simps -isSimp apply] def conj : Complexification V ≃ₗ⋆[ℂ] Complexification V where
139 toFun v := .mk v.re (-v.im)
140 invFun v := .mk v.re (-v.im)
141 map_add' := by simp [add_comm]
142 map_smul' _ _ := by ext <;> simp [add_comm]
143 left_inv _ := by simp
144 right_inv _ := by simp
lemma re_conj newL146–146
146@[simp] lemma re_conj (x) : (conj V x).re = x.re := rfl
lemma im_conj newL147–147
147@[simp] lemma im_conj (x) : (conj V x).im = -x.im := rfl
lemma symm_conj newL148–148
148@[simp] lemma symm_conj : (conj V).symm = conj V := rfl
lemma conj_conj newL149–149
149@[simp] lemma conj_conj (x) : conj V (conj V x) = x := by simp [conj_apply]
lemma conj_mk newL150–150
150@[simp] lemma conj_mk (x y : V) : conj V (.mk x y) = .mk x (-y) := rfl
lemma conj_I_smul newL152–152
152lemma conj_I_smul (x) : conj V (Complex.I • x) = -Complex.I • conj V x := by simp [conj_apply]
lemma conj_eq_self_iff newL154–155
154@[simp] lemma conj_eq_self_iff {x} : conj V x = x ↔ x.im = 0 := by
155 simp [Complexification.ext_iff, neg_eq_iff_add_eq_zero, ← two_smul ℝ]
def realLinearEquivComplex newL157–168
157/-- The complexification of `ℝ` is equivalent to `ℂ`. -/
158@[expose, simps apply symm_apply]
159def realLinearEquivComplex : Complexification ℝ ≃ₗ[ℂ] ℂ where
160 toFun x := x.re + x.im * Complex.I
161 invFun x := .mk x.re x.im
162 map_add' _ _ := by simp [add_mul]; grind
163 map_smul' z _ := by
164 rw [← Complex.re_add_im z]
165 simp [add_mul, mul_add, -Complex.re_add_im, mul_mul_mul_comm _ Complex.I]
166 grind
167 left_inv _ := by simp
168 right_inv _ := by simp
def _root_.Submodule.complexification newL170–176
170/-- Complexification of a submodule, i.e., `(a, b) ∈ K.complexification ↔ a ∈ K ∧ b ∈ K`. -/
faenuccio · 2026-12-01

Don't we want to create a new section Submodule for the following results?

171@[expose]
172def _root_.Submodule.complexification (K : Submodule ℝ V) : Submodule ℂ (Complexification V) where
173 carrier := { v | v.re ∈ K ∧ v.im ∈ K }
174 add_mem' := by aesop
175 zero_mem' := by simp
176 smul_mem' := by aesop
lemma _root_.Submodule.mem_complexification newL178–179
178@[simp] lemma _root_.Submodule.mem_complexification {K : Submodule ℝ V} {x : Complexification V} :
179 x ∈ K.complexification ↔ x.re ∈ K ∧ x.im ∈ K := .rfl
181variable (V) in
def inclusion newL182–187
182/-- The inclusion map of a space into its complexification as a linear map, given by
183`x ↦ (x, 0)`. -/
184@[expose, simps apply] def inclusion : V →ₗ[ℝ] Complexification V where
185 toFun x := .mk x 0
186 map_add' := by simp
187 map_smul' _ _ := by ext <;> simp
lemma _root_.Submodule.complexification_le_iff newL189–195
189lemma _root_.Submodule.complexification_le_iff {K : Submodule ℝ V}
190 {U : Submodule ℂ (Complexification V)} :
191 K.complexification ≤ U ↔ K ≤ (U.restrictScalars ℝ).comap (inclusion V) := by
192 refine ⟨fun h y hy ↦ by simpa using h (by simp [hy]), fun h x hx ↦ ?_⟩
193 rw [Submodule.mem_complexification] at hx
194 rw [← mk_re_im x, mk_eq_add_I_smul]
195 exact add_mem (by simpa using h hx.1) (U.smul_mem _ (by simpa using h hx.2))
lemma _root_.Submodule.complexification_gc newL197–200
197lemma _root_.Submodule.complexification_gc :
198 GaloisConnection (Submodule.complexification (V := V))
199 fun U ↦ (U.restrictScalars ℝ).comap (inclusion V) :=
200 fun _ _ ↦ Submodule.complexification_le_iff
lemma _root_.Submodule.comap_inclusion_complexification newL202–203
202@[simp] lemma _root_.Submodule.comap_inclusion_complexification (K : Submodule ℝ V) :
203 (K.complexification.restrictScalars ℝ).comap (inclusion V) = K := by ext; simp
lemma _root_.Submodule.complexification_mono newL205–206
205@[gcongr] lemma _root_.Submodule.complexification_mono {K L : Submodule ℝ V} (h : K ≤ L) :
206 K.complexification ≤ L.complexification := Submodule.complexification_gc.monotone_l h
lemma _root_.Submodule.complexification_le_complexification newL208–209
208@[simp] lemma _root_.Submodule.complexification_le_complexification {K L : Submodule ℝ V} :
209 K.complexification ≤ L.complexification ↔ K ≤ L := by simp [Submodule.complexification_le_iff]
lemma _root_.Submodule.complexification_bot newL211–212
211@[simp] lemma _root_.Submodule.complexification_bot : (⊥ : Submodule ℝ V).complexification = ⊥ :=
212 Submodule.complexification_gc.l_bot
lemma _root_.Submodule.complexification_top newL214–215
214@[simp] lemma _root_.Submodule.complexification_top :
215 (⊤ : Submodule ℝ V).complexification = ⊤ := by ext; simp
lemma _root_.Submodule.complexification_sup newL217–219
217lemma _root_.Submodule.complexification_sup (K L : Submodule ℝ V) :
218 (K ⊔ L).complexification = K.complexification ⊔ L.complexification :=
219 Submodule.complexification_gc.l_sup
lemma _root_.Submodule.complexification_inf newL221–223
221lemma _root_.Submodule.complexification_inf (K L : Submodule ℝ V) :
222 (K ⊓ L).complexification = K.complexification ⊓ L.complexification := by
223 ext; simp [and_and_and_comm]
lemma _root_.Submodule.complexification_inj newL225–226
225@[simp] lemma _root_.Submodule.complexification_inj {K L : Submodule ℝ V} :
226 K.complexification = L.complexification ↔ K = L := by simp [le_antisymm_iff]
lemma _root_.Submodule.complexification_comap_inclusion newL228–239
228lemma _root_.Submodule.complexification_comap_inclusion {U : Submodule ℂ (Complexification V)}
229 (h : ∀ v ∈ U, conj V v ∈ U) :
230 ((U.restrictScalars ℝ).comap (inclusion V)).complexification = U := by
231 ext x
232 simp only [Submodule.mem_complexification, Submodule.mem_comap, inclusion_apply,
233 Submodule.restrictScalars_mem]
faenuccio · 2026-12-01
  simp only [Submodule.mem_complexification, Submodule.mem_comap, Submodule.restrictScalars_mem]
234 refine ⟨fun h2 ↦ ?_, fun h2 ↦ ⟨?_, ?_⟩⟩ <;> rw [← mk_re_im x, mk_eq_add_I_smul]
faenuccio · 2026-12-01

Can we split this in two lines?

235 · exact add_mem h2.1 (Submodule.smul_mem _ _ h2.2)
236 · convert Submodule.smul_mem _ (2 : ℂ)⁻¹ (add_mem h2 (h _ h2))
237 simp [conj_apply, Complexification.ext_iff, ← two_smul ℝ]
faenuccio · 2026-12-01
    simp [Complexification.ext_iff, ← two_smul ℝ]
238 · convert Submodule.smul_mem _ (2 * Complex.I)⁻¹ (sub_mem h2 (h _ h2))
239 simp [Complexification.ext_iff, conj_apply, ← two_smul ℝ]
faenuccio · 2026-12-01
    simp [Complexification.ext_iff, ← two_smul ℝ]
lemma _root_.Submodule.exists_complexification_eq_iff newL241–249
241/-- A submodule `U` over the complexification of a real space is a complexified submodule
242(i.e., there exists a real submodule `S` such that `S.complexification = U`)
243iff `U` is closed under conjugation.
faenuccio · 2026-11-18

I confess this is very very minor, but I prefer "if and only if" rather than "iff" in docstrings, it's nicer to our readers.

245This is Chapter 1, Exercise 26 in [roman_advanced_linear_algebra]. -/
246lemma _root_.Submodule.exists_complexification_eq_iff {U : Submodule ℂ (Complexification V)} :
247 (∃ S : Submodule ℝ V, S.complexification = U) ↔ ∀ v ∈ U, conj V v ∈ U := by
248 refine ⟨fun ⟨S, hS⟩ v hv ↦ by simpa [← hS] using hv, fun h ↦ ?_⟩
249 exact ⟨_, Submodule.complexification_comap_inclusion h⟩
251section NonUnitalNonAssocRing
252variable {A : Type*} [NonUnitalNonAssocRing A]
faenuccio · 2026-12-01

variable {A : Type*} [NonUnitalNonAssocRing A]
instance (anonymous instance) newL254–255
254instance : Mul (Complexification A) where
255 mul x y := mk (x.re * y.re - x.im * y.im) (x.re * y.im + x.im * y.re)
lemma mul_def newL257–258
257lemma mul_def (x y : Complexification A) :
258 x * y = mk (x.re * y.re - x.im * y.im) (x.re * y.im + x.im * y.re) := rfl
lemma re_mul newL260–260
260@[simp] lemma re_mul (x y : Complexification A) : (x * y).re = x.re * y.re - x.im * y.im := rfl
faenuccio · 2026-12-01

As above, I would advocate for mul_re and the like below.

lemma im_mul newL261–261
261@[simp] lemma im_mul (x y : Complexification A) : (x * y).im = x.re * y.im + x.im * y.re := rfl
lemma mk_mul_mk newL262–262
262@[simp] lemma mk_mul_mk (a b c d : A) : mk a b * mk c d = mk (a * c - b * d) (a * d + b * c) := rfl
instance (anonymous instance) newL264–268
264instance : NonUnitalNonAssocRing (Complexification A) where
265 left_distrib := by simp [mul_def, mul_add]; grind
266 right_distrib := by simp [mul_def, add_mul]; grind
267 zero_mul := by simp [mul_def]
268 mul_zero := by simp [mul_def]
instance (anonymous instance) newL270–272
270instance [Module ℝ A] [IsScalarTower ℝ A A] :
faenuccio · 2026-12-01

In this and in the two instances below grind could be replaced by module.

271 IsScalarTower ℂ (Complexification A) (Complexification A) where
272 smul_assoc _ _ _ := by ext <;> simp [smul_sub, sub_mul, add_mul, smul_mul_assoc] <;> grind
instance (anonymous instance) newL274–276
274instance [Module ℝ A] [SMulCommClass ℝ A A] :
275 SMulCommClass ℂ (Complexification A) (Complexification A) where
276 smul_comm _ _ _ := by ext <;> simp [smul_sub, mul_sub, mul_add, mul_smul_comm] <;> grind
278end NonUnitalNonAssocRing
instance (anonymous instance) newL280–281
280instance {A : Type*} [NonUnitalRing A] : NonUnitalRing (Complexification A) where
281 mul_assoc _ _ _ := by simp [mul_def, mul_add, add_mul, sub_mul, mul_sub]; grind
instance (anonymous instance) newL283–285
283instance {A : Type*} [NonUnitalNonAssocCommRing A] :
284 NonUnitalNonAssocCommRing (Complexification A) where
285 mul_comm _ _ := by ext <;> simp <;> grind [mul_comm]
instance (anonymous instance) newL287–287
287instance {A : Type*} [NonUnitalCommRing A] : NonUnitalCommRing (Complexification A) where
289section
faenuccio · 2026-12-01

Can we give a name to this section?

290variable {A : Type*} [NonAssocRing A]
faenuccio · 2026-12-01

variable {A : Type*} [NonAssocRing A]
instance (anonymous instance) newL292–292
292instance : One (Complexification A) where one := mk 1 0
lemma one_def newL294–294
294lemma one_def : (1 : Complexification A) = mk 1 0 := rfl
lemma re_one newL295–295
295@[simp] lemma re_one : (1 : Complexification A).re = 1 := rfl
faenuccio · 2026-12-01

Once more, I'd go for one_re

lemma im_one newL296–296
296@[simp] lemma im_one : (1 : Complexification A).im = 0 := rfl
instance (anonymous instance) newL298–300
298instance : NonAssocRing (Complexification A) where
299 one_mul _ := by ext <;> simp
300 mul_one _ := by ext <;> simp
instance (anonymous instance) newL302–302
302instance {A : Type*} [NonAssocCommRing A] : NonAssocCommRing (Complexification A) where
faenuccio · 2026-12-01

Can you insert a new line after each of these instances? And likewise further below about the InvolutiveStar ones?

instance (anonymous instance) newL303–303
303instance {A : Type*} [Ring A] : Ring (Complexification A) where
instance (anonymous instance) newL304–304
304instance {A : Type*} [CommRing A] : CommRing (Complexification A) where
instance (anonymous instance) newL306–307
306instance {A : Type*} [Ring A] [Algebra ℝ A] : Algebra ℂ (Complexification A) :=
307 .ofModule' (by simp) (by simp)
lemma algebraMap_apply newL309–311
309lemma algebraMap_apply {A : Type*} [Ring A] [Algebra ℝ A] (x : ℂ) :
310 algebraMap ℂ (Complexification A) x = .mk (algebraMap ℝ A x.re) (algebraMap ℝ A x.im) := by
311 ext <;> simp [Algebra.algebraMap_eq_smul_one]
313end
315section star
faenuccio · 2026-12-01

Shouldn't this be section Star?

316variable {A : Type*} [NonUnitalNonAssocRing A] [StarRing A]
faenuccio · 2026-12-01

variable {A : Type*} [NonUnitalNonAssocRing A] [StarRing A]
instance (anonymous instance) newL318–318
318instance : Star (Complexification A) where star x := mk (star x.re) (-star x.im)
lemma star_def newL320–320
320lemma star_def (x : Complexification A) : star x = mk (star x.re) (-star x.im) := rfl
lemma re_star newL321–321
321@[simp] lemma re_star (x : Complexification A) : (star x).re = star x.re := rfl
lemma im_star newL322–322
322@[simp] lemma im_star (x : Complexification A) : (star x).im = -star x.im := rfl
lemma star_mk newL323–323
323@[simp] lemma star_mk (a b : A) : star (mk a b) = mk (star a) (-star b) := rfl
instance (anonymous instance) newL325–325
325instance : InvolutiveStar (Complexification A) where star_involutive _ := by simp [star_def]
instance instStarMul newL326–326
326instance instStarMul : StarMul (Complexification A) where star_mul := by simp [mul_def]
instance instStarAddMonoid newL327–328
327instance instStarAddMonoid : StarAddMonoid (Complexification A) where
328 star_add := by simp [star_def, add_comm]
instance (anonymous instance) newL329–329
329instance : StarRing (Complexification A) where __ := instStarAddMonoid; __ := instStarMul
instance (anonymous instance) newL331–332
331instance [Module ℝ A] [StarModule ℝ A] : StarModule ℂ (Complexification A) where
332 star_smul _ _ := by ext <;> simp [add_comm]
lemma star_I_smul newL334–335
334lemma star_I_smul [Module ℝ A] (x : Complexification A) :
335 star (Complex.I • x) = -(Complex.I • star x) := by simp
lemma star_conj newL337–338
337@[simp] lemma star_conj [Module ℝ A] (x : Complexification A) :
338 star (conj A x) = conj A (star x) := by simp [star_def, conj_apply]
340end star
342end Complexification

docs/references.bib +10 −0

@Book{ roigdomingues1992
5372 zbl = {0760.57001}
5375@Book{ roman_advanced_linear_algebra,
5376 author = {Roman, Steven},
5377 title = {Advanced linear algebra},
5378 series = {Graduate Texts in Mathematics},
5379 publisher = {Springer New York, NY},
5380 isbn = {978-0-387-72828-5},
5381 year = {2007},
5382 language = {English}
5385@Article{ rooij1970,
5386 title = {Non-Archimedean uniformities},
5387 author = {van Rooij, A. C. M.},
0/91 declarations checked

Your review, as Markdown

Paste it as a comment or a review on the PR. Line links to the head commit unfold into code snippets on GitHub.