Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

V-01 complex calculus: ccontr, cpdC, cdir, cmat, rcontr

Definition
Atlas_EinsteinMaxwell_NP_Basic

by He Wang · Oct 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

einstein-maxwellexact-spacetime-atlas-vexact-vacuum-atlasgeneral-relativitynewman-penrose

V-01 complex calculus: ccontr, cpdC, cdir, cmat, rcontr

Complex-bilinear contraction ccontr (no conjugation), real contraction rcontr, complex coordinate partial cpdC (slice derivative, junk 0 off differentiability as A1 pd), complex direction cdir Z f = Σ Z^μ cpdC μ f, cmat = complexified metric matrix.

中文摘要 V-01 复演算:双线性缩并、复坐标偏导、复方向导数。

Registry: PHYSICS_BOUNDARY §K (V-01) K1–K3, K5, K7.

Definition code
-- Generated by scripts/release05/gen_platform_tree.py (ATLAS-RELEASE-05) by skeleton subtraction from Atlas/EinsteinMaxwell/NP/Basic.lean
-- definition bundle: kept ExactVacuumAtlas.EinsteinMaxwell.NP.ccontr, ExactVacuumAtlas.EinsteinMaxwell.NP.cdir, ExactVacuumAtlas.EinsteinMaxwell.NP.cmat, ExactVacuumAtlas.EinsteinMaxwell.NP.cpdC, ExactVacuumAtlas.EinsteinMaxwell.NP.rcontr
import Mathlib
import Definitions.Def_Atlas_Core_Basic
import Definitions.Def_Atlas_EinsteinMaxwell_Basic
/-! # Complex contractions and complex-valued coordinate derivatives (ATLAS-V-01)

B3 local layer, registered in `mission/PHYSICS_BOUNDARY.md` §K. Dimension-generic (`Fin n`, total dimension `n`).

* `rcontr T x u v = Σ_{μ,ν} T_{μν}(x) u^μ v^ν` — real bilinear contraction of a real covariant rank-2 field
  (`Metric n` or `TwoForm n`; both are `Fin n → Fin n → Pt n → ℝ`).
* `ccontr T x u v = Σ_{μ,ν} (T_{μν}(x) : ℂ) u^μ v^ν` — its **complex-bilinear** extension to complex vectors. This
  is the contraction used for null frames (no complex conjugation anywhere).
* `hcontr T x u v = Σ (T_{μν}(x) : ℂ) conj(u^μ) v^ν` — the Hermitian (sesquilinear) form. It is **not** used by the
  frame theory; it exists only for the negative control `Atlas.EinsteinMaxwell.NP.Control`.
* `cpdC i f x` — derivative of the real one-variable slice `u ↦ f (x with xᵢ := u)` of a complex-valued function of
  the **real** coordinates (Mathlib `deriv` over `ℝ` with values in `ℂ`); same slice convention as the registered
  `pd` (A1). No holomorphy is assumed or used.
* `cdir Z f x = Σ_μ Z^μ cpdC μ f x` — derivative along a complex coordinate vector `Z`: the complex-linear
  combination of the real coordinate derivatives.

Bridges proved here: `ccontr` of real vectors is the cast of `rcontr`; `ccontr` is complex-bilinear; `cpdC` of a
cast real function is the cast of `pd` (unconditionally); for a slice-differentiable `f`,
`cpdC f = pd (Re f) + i pd (Im f)`; `cdir` with real components on a real function is the cast of the real
directional derivative; the matrix form `(Eᵀ G E)_{AB} = ccontr g (E·A) (E·B)`. -/

open Complex
open scoped ComplexConjugate Matrix ContDiff

namespace ExactVacuumAtlas.EinsteinMaxwell.NP

/-- Real bilinear contraction `Σ_{μ,ν} T_{μν}(x) u^μ v^ν`. -/
noncomputable def rcontr {n : ℕ} (T : Fin n → Fin n → Pt n → ℝ) (x : Pt n) (u v : Fin n → ℝ) : ℝ :=
  ∑ μ, ∑ ν, T μ ν x * u μ * v ν

/-- Complex-bilinear contraction `Σ_{μ,ν} T_{μν}(x) u^μ v^ν` of complex vectors (no conjugation). -/
noncomputable def ccontr {n : ℕ} (T : Fin n → Fin n → Pt n → ℝ) (x : Pt n) (u v : Fin n → ℂ) : ℂ :=
  ∑ μ, ∑ ν, (T μ ν x : ℂ) * u μ * v ν

/-- Complex-valued slice derivative `∂ᵢ f (x)` of `f : ℝⁿ → ℂ` (real variable, complex values). -/
noncomputable def cpdC {n : ℕ} (i : Fin n) (f : Pt n → ℂ) (x : Pt n) : ℂ :=
  deriv (fun u : ℝ => f (Function.update x i u)) (x i)

/-- Derivative along a complex coordinate vector: `Z(f) = Σ_μ Z^μ ∂_μ f`. -/
noncomputable def cdir {n : ℕ} (Z : Fin n → ℂ) (f : Pt n → ℂ) (x : Pt n) : ℂ :=
  ∑ μ, Z μ * cpdC μ f x

/-- The complexification of a real field matrix at `x`. -/
noncomputable def cmat {n : ℕ} (T : Fin n → Fin n → Pt n → ℝ) (x : Pt n) : Matrix (Fin n) (Fin n) ℂ :=
  (metricMatrix T x).map (fun t : ℝ => (t : ℂ))

variable {n : ℕ}

/-! ### Contractions -/

/-! ### Complex-valued coordinate derivatives -/

/-! ### `cpdC` and `cdir` are genuine derivatives -/

end ExactVacuumAtlas.EinsteinMaxwell.NP
Source
He Wang, Exact Spacetime Atlas V: From Linearized Einstein–Maxwell Equations to Kerr–Newman Radiation Systems. Local source, no public repository; commit b8cd107a558e153ed41fb4972ac5315499d14778; Atlas/EinsteinMaxwell/NP/Basic.lean; SHA-256 3184e822393774658e9dbd428b3f36a62b4f0cf55ad3811cb01f7aee446cf286. Registered definitions: mission/PHYSICS_BOUNDARY.md (§K–§M); literature: P. Hintz, arXiv:2609.33661 (v1); Mark–Yang–Zimmerman–Chen, arXiv:1409.5800 (v1).
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by He Wang · Oct 24, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me