Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Weinberg (1965): Minkowski products, relative velocity, soft angular functions A(q^)A(\hat q)A(q^​), B(q^)B(\hat q)B(q^​) and exponents AAA, BBB

Definition
Weinberg1965_Defs

by LG · Sep 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

infrared-divergencesmathematical-physicsquantum-electrodynamicsquantum-gravity

Shared definitions for the mission on S. Weinberg, Infrared Photons and Gravitons (1965). Units ℏ=c=1\hbar=c=1ℏ=c=1 and the paper's metric (footnote 7): for four-vectors p=(p,p0)p=(\mathbf p,p^0)p=(p,p0), q=(q,q0)q=(\mathbf q,q^0)q=(q,q0), p⋅q=p⋅q−p0q0p\cdot q=\mathbf p\cdot\mathbf q-p^0q^0p⋅q=p⋅q−p0q0, so p⋅p=−m2p\cdot p=-m^2p⋅p=−m2 on the mass shell.

The external lines of a process α→β\alpha\to\betaα→β are indexed by a finite set; line nnn has mass mnm_nmn​, three-momentum pn∈R3\mathbf p_n\in\mathbb R^3pn​∈R3, charge ene_nen​ and sign ηn=+1\eta_n=+1ηn​=+1 (outgoing) or −1-1−1 (incoming).

  1. Vec3 — Euclidean space R3\mathbb R^3R3.
  2. solidAngleIntegral F — ∫d2Ω F(q^)\int d^2\Omega\,F(\hat q)∫d2ΩF(q^​), the integral of FFF over the unit sphere S2S^2S2 against surface measure (total solid angle 4π4\pi4π).
  3. energy m p — the on-shell energy E=∣p∣2+m2E=\sqrt{|\mathbf p|^2+m^2}E=∣p∣2+m2​.
  4. mdot m₁ p₁ m₂ p₂ — the Minkowski product p1⋅p2=p1⋅p2−E1E2p_1\cdot p_2=\mathbf p_1\cdot\mathbf p_2-E_1E_2p1​⋅p2​=p1​⋅p2​−E1​E2​ of on-shell four-momenta.
  5. mdotNull m p q — p⋅q=p⋅q−E∣q∣p\cdot q=\mathbf p\cdot\mathbf q-E|\mathbf q|p⋅q=p⋅q−E∣q∣ for the null four-vector q=(q,∣q∣)q=(\mathbf q,|\mathbf q|)q=(q,∣q∣) of a soft photon or graviton.
  6. relVel — Eq. (2.17): βnm=[1−mn2mm2/(pn⋅pm)2]1/2\beta_{nm}=\bigl[1-m_n^2m_m^2/(p_n\cdot p_m)^2\bigr]^{1/2}βnm​=[1−mn2​mm2​/(pn​⋅pm​)2]1/2, the relative velocity of nnn and mmm in the rest frame of either.
  7. photonAngular — Eq. (2.15):
A(q^)=12(2π)3∑n,menemηnηm (pn⋅pm)[En−pn⋅q^][Em−pm⋅q^].A(\hat q)=\frac{1}{2(2\pi)^3}\sum_{n,m}\frac{e_ne_m\eta_n\eta_m\,(p_n\cdot p_m)}{[E_n-\mathbf p_n\cdot\hat q][E_m-\mathbf p_m\cdot\hat q]}.A(q^​)=2(2π)31​n,m∑​[En​−pn​⋅q^​][Em​−pm​⋅q^​]en​em​ηn​ηm​(pn​⋅pm​)​.
  1. photonIndex — Eq. (2.14): A=∫d2Ω A(q^)A=\int d^2\Omega\,A(\hat q)A=∫d2ΩA(q^​).
  2. gravitonAngular — Eq. (2.25):
B(q^)=8πG2(2π)3∑n,mηnηm {(pn⋅pm)2−12mn2mm2}[En−pn⋅q^][Em−pm⋅q^].B(\hat q)=\frac{8\pi G}{2(2\pi)^3}\sum_{n,m}\frac{\eta_n\eta_m\,\{(p_n\cdot p_m)^2-\tfrac12m_n^2m_m^2\}}{[E_n-\mathbf p_n\cdot\hat q][E_m-\mathbf p_m\cdot\hat q]}.B(q^​)=2(2π)38πG​n,m∑​[En​−pn​⋅q^​][Em​−pm​⋅q^​]ηn​ηm​{(pn​⋅pm​)2−21​mn2​mm2​}​.
  1. gravitonIndex — Eq. (2.24): B=∫d2Ω B(q^)B=\int d^2\Omega\,B(\hat q)B=∫d2ΩB(q^​).
  2. photonKernel β — the pair kernel of Eq. (2.16), β−1ln⁡1+β1−β\beta^{-1}\ln\frac{1+\beta}{1-\beta}β−1ln1−β1+β​ for β≠0\beta\ne0β=0, and its limiting value 222 at β=0\beta=0β=0.
  3. fWeinberg β — Eq. (4.6): f(β)=1+β22β(1−β2)1/2ln⁡1+β1−βf(\beta)=\dfrac{1+\beta^2}{2\beta(1-\beta^2)^{1/2}}\ln\dfrac{1+\beta}{1-\beta}f(β)=2β(1−β2)1/21+β2​ln1−β1+β​ for β≠0\beta\ne0β=0, and its limiting value 111 at β=0\beta=0β=0.

These are the angular functions and spectral indices AAA, BBB that control the infrared factors (λ/Λ)A(\lambda/\Lambda)^A(λ/Λ)A, (λ/Λ)B(\lambda/\Lambda)^B(λ/Λ)B of Eqs. (2.18), (2.27) and the soft emission spectra (2.51), (2.52).

Formalization Note The printed Eq. (4.6) carries an exponent 1/21/21/2 on the argument of the logarithm; with it, f(0)=12f(0)=\tfrac12f(0)=21​, which contradicts both Eq. (2.26) (via (4.5)) and the expansion (4.9) f=1+116β2+⋯f=1+\tfrac{11}{6}\beta^2+\cdotsf=1+611​β2+⋯. The definition drops that exponent, which is the reading consistent with (2.26), (4.5) and (4.9). The diagonal terms n=mn=mn=m have βnn=0\beta_{nn}=0βnn​=0; the kernels are extended there by their limits (222 and 111), as the paper's sums implicitly require.

Definition code
import Mathlib

/-!
# Weinberg (1965), *Infrared Photons and Gravitons* — definitions

Conventions of the paper (footnote 7): `ħ = c = 1`, and the Minkowski product of
four-vectors `p = (𝐩, p⁰)`, `q = (𝐪, q⁰)` is `p · q = 𝐩 · 𝐪 − p⁰ q⁰`, so a particle of
mass `m` has `p · p = −m²`.

The external lines of a process `α → β` are indexed by a finite type `ι`.  Line `n` carries
a mass `m n`, a three-momentum `p n ∈ ℝ³`, an energy `E_n = √(|𝐩_n|² + m_n²)` (on the mass
shell), a charge `e n`, and a sign `η n` (`+1` outgoing, `−1` incoming).

Solid-angle integrals `∫ d²Ω` are integrals over the unit sphere `S² ⊂ ℝ³` against the
surface-area measure (total mass `4π`), realised in Mathlib as `volume.toSphere`.
-/

namespace Weinberg1965

open MeasureTheory

/-- Three-dimensional Euclidean space `ℝ³` (spatial momenta and directions). -/
abbrev Vec3 : Type := EuclideanSpace ℝ (Fin 3)

/-- The solid-angle integral `∫ d²Ω F(q̂)` of a real function over the unit sphere
`S² ⊂ ℝ³`, taken with respect to the surface-area measure (total solid angle `4π`). -/
noncomputable def solidAngleIntegral (F : Vec3 → ℝ) : ℝ :=
  ∫ u : Metric.sphere (0 : Vec3) 1, F (u : Vec3) ∂(volume.toSphere)

/-- On-shell energy `E = √(|𝐩|² + m²)` of a particle of mass `m` and three-momentum `𝐩`. -/
noncomputable def energy (m : ℝ) (p : Vec3) : ℝ :=
  Real.sqrt (‖p‖ ^ 2 + m ^ 2)

/-- Minkowski product (footnote 7) of the on-shell four-momenta `(𝐩₁, E₁)` and `(𝐩₂, E₂)`
of particles of masses `m₁, m₂`: `p₁ · p₂ = 𝐩₁ · 𝐩₂ − E₁ E₂`. -/
noncomputable def mdot (m₁ : ℝ) (p₁ : Vec3) (m₂ : ℝ) (p₂ : Vec3) : ℝ :=
  inner ℝ p₁ p₂ - energy m₁ p₁ * energy m₂ p₂

/-- Minkowski product `p · q = 𝐩 · 𝐪 − E |𝐪|` of the on-shell four-momentum of a particle of
mass `m` and three-momentum `𝐩` with the null four-vector `q = (𝐪, |𝐪|)` (a soft photon or
graviton of three-momentum `𝐪`). -/
noncomputable def mdotNull (m : ℝ) (p : Vec3) (q : Vec3) : ℝ :=
  inner ℝ p q - energy m p * ‖q‖

/-- Eq. (2.17): the relative velocity of particles `n` and `m` in the rest frame of either,
`β_{nm} = [1 − m_n² m_m² / (p_n · p_m)²]^{1/2}`. -/
noncomputable def relVel (m₁ : ℝ) (p₁ : Vec3) (m₂ : ℝ) (p₂ : Vec3) : ℝ :=
  Real.sqrt (1 - m₁ ^ 2 * m₂ ^ 2 / (mdot m₁ p₁ m₂ p₂) ^ 2)

/-- Eq. (2.15): the photon angular function
`A(q̂) = (1 / (2(2π)³)) ∑_{n,m} e_n e_m η_n η_m (p_n · p_m) / ([E_n − 𝐩_n · q̂][E_m − 𝐩_m · q̂])`. -/
noncomputable def photonAngular {ι : Type*} [Fintype ι]
    (m : ι → ℝ) (p : ι → Vec3) (e η : ι → ℝ) (u : Vec3) : ℝ :=
  (1 / (2 * (2 * Real.pi) ^ 3)) *
    ∑ n, ∑ k, e n * e k * η n * η k * mdot (m n) (p n) (m k) (p k) /
      ((energy (m n) (p n) - inner ℝ (p n) u) * (energy (m k) (p k) - inner ℝ (p k) u))

/-- Eq. (2.14): the infrared-photon exponent `A = ∫ d²Ω A(q̂)`. -/
noncomputable def photonIndex {ι : Type*} [Fintype ι]
    (m : ι → ℝ) (p : ι → Vec3) (e η : ι → ℝ) : ℝ :=
  solidAngleIntegral (photonAngular m p e η)

/-- Eq. (2.25): the graviton angular function
`B(q̂) = (8πG / (2(2π)³)) ∑_{n,m} η_n η_m [(p_n · p_m)² − ½ m_n² m_m²] /
([E_n − 𝐩_n · q̂][E_m − 𝐩_m · q̂])`. -/
noncomputable def gravitonAngular {ι : Type*} [Fintype ι]
    (G : ℝ) (m : ι → ℝ) (p : ι → Vec3) (η : ι → ℝ) (u : Vec3) : ℝ :=
  (8 * Real.pi * G / (2 * (2 * Real.pi) ^ 3)) *
    ∑ n, ∑ k, η n * η k *
      ((mdot (m n) (p n) (m k) (p k)) ^ 2 - (1 / 2) * m n ^ 2 * m k ^ 2) /
      ((energy (m n) (p n) - inner ℝ (p n) u) * (energy (m k) (p k) - inner ℝ (p k) u))

/-- Eq. (2.24): the infrared-graviton exponent `B = ∫ d²Ω B(q̂)`. -/
noncomputable def gravitonIndex {ι : Type*} [Fintype ι]
    (G : ℝ) (m : ι → ℝ) (p : ι → Vec3) (η : ι → ℝ) : ℝ :=
  solidAngleIntegral (gravitonAngular G m p η)

/-- The photon pair kernel of Eq. (2.16): `β⁻¹ ln((1+β)/(1−β))` for `β ≠ 0`, extended by its
limiting value `2` at `β = 0` (the value relevant for the diagonal terms `n = m`). -/
noncomputable def photonKernel (β : ℝ) : ℝ :=
  if β = 0 then 2 else β⁻¹ * Real.log ((1 + β) / (1 - β))

/-- Eq. (4.6), in the form consistent with Eqs. (2.26), (4.5) and (4.9) (the printed exponent
`1/2` on the argument of the logarithm is dropped):
`f(β) = (1 + β²) / (2β(1 − β²)^{1/2}) · ln((1+β)/(1−β))` for `β ≠ 0`, extended by its limiting
value `1` at `β = 0`. -/
noncomputable def fWeinberg (β : ℝ) : ℝ :=
  if β = 0 then 1
  else (1 + β ^ 2) / (2 * β * Real.sqrt (1 - β ^ 2)) * Real.log ((1 + β) / (1 - β))

end Weinberg1965
Source
S. Weinberg, Infrared Photons and Gravitons, Phys. Rev. 140, B516 (1965), https://doi.org/10.1103/PhysRev.140.B516, Sec. II (Eqs. (2.14)–(2.17), (2.24)–(2.25)), footnote 7; Sec. IV (Eq. (4.6))
Read-back

What the Lean code literally says, in plain math · Aristotle (Harmonic) — non-blind, same agent as drafter

Non-blind read-back — not independent testimony. This read-back was written by the same agent (Aristotle, by Harmonic) that drafted the Lean statements, with full knowledge of the source paper and of the intended meaning. It is not a blind audit and must not be mistaken for independent testimony; an independent blind read-back is still recommended before the proposal is submitted.

The file declares, in the namespace Weinberg1965:

  1. Vec3\mathrm{Vec3}Vec3 := the Euclidean space R3\mathbb R^3R3 (with its standard inner product and Lebesgue measure).
  2. For F:R3→RF:\mathbb R^3\to\mathbb RF:R3→R, solidAngleIntegral(F)=∫S2F(u) dσ(u)\mathrm{solidAngleIntegral}(F)=\int_{S^2}F(u)\,d\sigma(u)solidAngleIntegral(F)=∫S2​F(u)dσ(u), where S2S^2S2 is the unit sphere and σ\sigmaσ is Mathlib's surface measure volume.toSphere on it (total mass 3⋅43π=4π3\cdot\tfrac43\pi=4\pi3⋅34​π=4π). If FFF restricted to S2S^2S2 is not integrable, the value is 000.
  3. energy(m,p)=∣p∣2+m2\mathrm{energy}(m,\mathbf p)=\sqrt{|\mathbf p|^2+m^2}energy(m,p)=∣p∣2+m2​ (real square root; the argument is always ≥0\ge0≥0).
  4. mdot(m1,p1,m2,p2)=p1⋅p2−energy(m1,p1) energy(m2,p2)\mathrm{mdot}(m_1,\mathbf p_1,m_2,\mathbf p_2)=\mathbf p_1\cdot\mathbf p_2-\mathrm{energy}(m_1,\mathbf p_1)\,\mathrm{energy}(m_2,\mathbf p_2)mdot(m1​,p1​,m2​,p2​)=p1​⋅p2​−energy(m1​,p1​)energy(m2​,p2​).
  5. mdotNull(m,p,q)=p⋅q−energy(m,p) ∣q∣\mathrm{mdotNull}(m,\mathbf p,\mathbf q)=\mathbf p\cdot\mathbf q-\mathrm{energy}(m,\mathbf p)\,|\mathbf q|mdotNull(m,p,q)=p⋅q−energy(m,p)∣q∣.
  6. relVel(m1,p1,m2,p2)=1−m12m22/mdot(… )2\mathrm{relVel}(m_1,\mathbf p_1,m_2,\mathbf p_2)=\sqrt{1-m_1^2m_2^2/\mathrm{mdot}(\dots)^2}relVel(m1​,p1​,m2​,p2​)=1−m12​m22​/mdot(…)2​; if mdot=0\mathrm{mdot}=0mdot=0 the quotient is 000 (so the value is 111), and if the radicand is negative the value is 000.
  7. For a finite index type ι\iotaι, m,e,η:ι→Rm,e,\eta:\iota\to\mathbb Rm,e,η:ι→R, p:ι→R3\mathbf p:\iota\to\mathbb R^3p:ι→R3 and u∈R3u\in\mathbb R^3u∈R3:
photonAngular(u)=12(2π)3∑n∈ι∑k∈ιenekηnηk mdotnk(En−pn⋅u)(Ek−pk⋅u),\mathrm{photonAngular}(u)=\frac{1}{2(2\pi)^3}\sum_{n\in\iota}\sum_{k\in\iota}\frac{e_ne_k\eta_n\eta_k\,\mathrm{mdot}_{nk}}{(E_n-\mathbf p_n\cdot u)(E_k-\mathbf p_k\cdot u)},photonAngular(u)=2(2π)31​n∈ι∑​k∈ι∑​(En​−pn​⋅u)(Ek​−pk​⋅u)en​ek​ηn​ηk​mdotnk​​,

with En=energy(mn,pn)E_n=\mathrm{energy}(m_n,\mathbf p_n)En​=energy(mn​,pn​); a term whose denominator is 000 contributes 000. 8. photonIndex=solidAngleIntegral(photonAngular)\mathrm{photonIndex}=\mathrm{solidAngleIntegral}(\mathrm{photonAngular})photonIndex=solidAngleIntegral(photonAngular). 9. For additionally G∈RG\in\mathbb RG∈R:

gravitonAngular(u)=8πG2(2π)3∑n∑kηnηk(mdotnk2−12mn2mk2)(En−pn⋅u)(Ek−pk⋅u)\mathrm{gravitonAngular}(u)=\frac{8\pi G}{2(2\pi)^3}\sum_{n}\sum_{k}\frac{\eta_n\eta_k\bigl(\mathrm{mdot}_{nk}^2-\tfrac12m_n^2m_k^2\bigr)}{(E_n-\mathbf p_n\cdot u)(E_k-\mathbf p_k\cdot u)}gravitonAngular(u)=2(2π)38πG​n∑​k∑​(En​−pn​⋅u)(Ek​−pk​⋅u)ηn​ηk​(mdotnk2​−21​mn2​mk2​)​

(zero denominators again give 000), and gravitonIndex=solidAngleIntegral(gravitonAngular)\mathrm{gravitonIndex}=\mathrm{solidAngleIntegral}(\mathrm{gravitonAngular})gravitonIndex=solidAngleIntegral(gravitonAngular). 10. photonKernel(β)=2\mathrm{photonKernel}(\beta)=2photonKernel(β)=2 if β=0\beta=0β=0, otherwise β−1ln⁡1+β1−β\beta^{-1}\ln\frac{1+\beta}{1-\beta}β−1ln1−β1+β​ (Lean's ln⁡\lnln satisfies ln⁡x=ln⁡∣x∣\ln x=\ln|x|lnx=ln∣x∣ and ln⁡0=0\ln0=0ln0=0, and x/0=0x/0=0x/0=0, so for β=1\beta=1β=1 the value is 000 and for ∣β∣>1|\beta|>1∣β∣>1 it is β−1ln⁡∣1+β1−β∣\beta^{-1}\ln\bigl|\frac{1+\beta}{1-\beta}\bigr|β−1ln​1−β1+β​​). 11. fWeinberg(β)=1\mathrm{fWeinberg}(\beta)=1fWeinberg(β)=1 if β=0\beta=0β=0, otherwise 1+β22β1−β2ln⁡1+β1−β\dfrac{1+\beta^2}{2\beta\sqrt{1-\beta^2}}\ln\dfrac{1+\beta}{1-\beta}2β1−β2​1+β2​ln1−β1+β​ (same junk conventions; for ∣β∣≥1|\beta|\ge1∣β∣≥1 the square root is 000 and the whole value is 000).

No hypotheses are attached to the definitions: masses may be zero or negative, and η\etaη and eee are arbitrary reals.

Human review
  • Endorsed by Shuze Chen · Sep 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by LG · Sep 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me