Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Finite Green variational-energy interface

Definition
FiniteGreenVariationalEnergyV1

by lisamegawatts · Sep 7, 2026 · Mathlib c5ea003 (Lean v4.30.0)

discrete-hodge-theorymathematical-physicsvariational-methods

Defines a finite real cochain complex through degree two, its degree-two Hodge Laplacian and vorticity projection, a uniquely normalized self-adjoint Green operator, the canonical and physical vortex representatives, residual fields, quadratic energy, the Green quadratic form, eight target gates, and their combined claim boundary.

Definition code
import Mathlib.Analysis.InnerProductSpace.Projection.Basic
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic

noncomputable section

open scoped InnerProductSpace Real

namespace FiniteGreenVariationalEnergyV1

universe u0 u1 u2

variable {C0 : Type u0} {C1 : Type u1} {C2 : Type u2}
variable [NormedAddCommGroup C0] [InnerProductSpace ℝ C0]
variable [NormedAddCommGroup C1] [InnerProductSpace ℝ C1]
variable [NormedAddCommGroup C2] [InnerProductSpace ℝ C2]

/-- A finite real cochain complex through degree two, including the adjoint
law needed for the variational argument. -/
structure FiniteHodgeComplex where
  d0 : C0 →ₗ[ℝ] C1
  d1 : C1 →ₗ[ℝ] C2
  delta1 : C1 →ₗ[ℝ] C0
  delta2 : C2 →ₗ[ℝ] C1
  finite0 : FiniteDimensional ℝ C0
  finite1 : FiniteDimensional ℝ C1
  finite2 : FiniteDimensional ℝ C2
  d_sq : d1.comp d0 = 0
  adjoint01 : ∀ x y, ⟪d0 x, y⟫_ℝ = ⟪x, delta1 y⟫_ℝ
  adjoint12 : ∀ x y, ⟪d1 x, y⟫_ℝ = ⟪x, delta2 y⟫_ℝ

namespace FiniteHodgeComplex

variable (K : FiniteHodgeComplex (C0 := C0) (C1 := C1) (C2 := C2))

def laplacian2 : C2 →ₗ[ℝ] C2 := K.d1.comp K.delta2

abbrev Vorticity2Space := LinearMap.range K.d1

abbrev Harmonic2Space := LinearMap.ker K.delta2

noncomputable def vorticity2Project : C2 →ₗ[ℝ] C2 := by
  letI := K.finite2
  exact (Vorticity2Space K).subtype.comp
    (Vorticity2Space K).orthogonalProjection.toLinearMap

structure DegreeTwoGreenLaws (green2 : C2 →ₗ[ℝ] C2) : Prop where
  laplacian_comp_green :
    (laplacian2 K).comp green2 = vorticity2Project K
  green_comp_laplacian :
    green2.comp (laplacian2 K) = vorticity2Project K
  range_le_vorticity : LinearMap.range green2 ≤ Vorticity2Space K
  annihilates_harmonic2 : ∀ h : Harmonic2Space K, green2 h.1 = 0
  self_adjoint : ∀ x y : C2, ⟪green2 x, y⟫_ℝ = ⟪x, green2 y⟫_ℝ

structure DegreeTwoGreenOwner where
  green2 : C2 →ₗ[ℝ] C2
  laws : DegreeTwoGreenLaws K green2
  unique : ∀ candidate : C2 →ₗ[ℝ] C2,
    DegreeTwoGreenLaws K candidate → candidate = green2

end FiniteHodgeComplex

open FiniteHodgeComplex

variable (K : FiniteHodgeComplex (C0 := C0) (C1 := C1) (C2 := C2))

def canonicalRepresentative
    (owner : DegreeTwoGreenOwner K) (omega : C2) : C1 :=
  K.delta2 (owner.green2 omega)

def vortexRepresentative
    (owner : DegreeTwoGreenOwner K) (omega : C2) : C1 :=
  (2 * Real.pi) • canonicalRepresentative K owner omega

def residual
    (owner : DegreeTwoGreenOwner K) (omega : C2) (field : C1) : C1 :=
  field - canonicalRepresentative K owner omega

def vortexResidual
    (owner : DegreeTwoGreenOwner K) (omega : C2) (field : C1) : C1 :=
  field - vortexRepresentative K owner omega

def quadraticEnergy (J : ℝ) (field : C1) : ℝ :=
  (J / 2) * ‖field‖ ^ 2

def greenQuadraticForm
    (owner : DegreeTwoGreenOwner K) (omega : C2) : ℝ :=
  ⟪omega, owner.green2 omega⟫_ℝ

def CanonicalPoissonGate : Prop :=
  ∀ (owner : DegreeTwoGreenOwner K) (omega : C2),
    omega ∈ LinearMap.range K.d1 →
      K.d1 (canonicalRepresentative K owner omega) = omega

def ClosedResidualOrthogonalityGate : Prop :=
  ∀ (owner : DegreeTwoGreenOwner K) (omega : C2),
    omega ∈ LinearMap.range K.d1 →
      ∀ field : C1, K.d1 field = omega →
        K.d1 (residual K owner omega field) = 0 ∧
        ⟪canonicalRepresentative K owner omega,
          residual K owner omega field⟫_ℝ = 0

def PythagorasGate : Prop :=
  ∀ (owner : DegreeTwoGreenOwner K) (omega : C2),
    omega ∈ LinearMap.range K.d1 →
      ∀ field : C1, K.d1 field = omega →
        ‖field‖ ^ 2 = ‖canonicalRepresentative K owner omega‖ ^ 2 +
          ‖residual K owner omega field‖ ^ 2

def CanonicalGreenNormGate : Prop :=
  ∀ (owner : DegreeTwoGreenOwner K) (omega : C2),
    omega ∈ LinearMap.range K.d1 →
      ‖canonicalRepresentative K owner omega‖ ^ 2 =
        greenQuadraticForm K owner omega

def VortexEnergyDecompositionGate : Prop :=
  ∀ (owner : DegreeTwoGreenOwner K) (omega : C2),
    omega ∈ LinearMap.range K.d1 →
      ∀ (field : C1) (J : ℝ),
        K.d1 field = (2 * Real.pi) • omega →
          quadraticEnergy J field =
            2 * Real.pi ^ 2 * J * greenQuadraticForm K owner omega +
              quadraticEnergy J (vortexResidual K owner omega field)

def VortexMinimumEnergyGate : Prop :=
  ∀ (owner : DegreeTwoGreenOwner K) (omega : C2),
    omega ∈ LinearMap.range K.d1 →
      ∀ (field : C1) (J : ℝ), 0 ≤ J →
        K.d1 field = (2 * Real.pi) • omega →
          2 * Real.pi ^ 2 * J * greenQuadraticForm K owner omega ≤
            quadraticEnergy J field

def ZeroCouplingNonidentificationControl : Prop :=
  ∃ left right : ℝ, left ≠ right ∧
    quadraticEnergy (C1 := ℝ) 0 left = quadraticEnergy 0 right

def ZeroVorticityNonzeroFieldControl : Prop :=
  ∃ (K0 : FiniteHodgeComplex (C0 := ℝ) (C1 := ℝ) (C2 := ℝ))
      (field : ℝ),
    field ≠ 0 ∧ K0.d1 field = 0 ∧ 0 < quadraticEnergy 1 field

def ClaimBoundary : Prop :=
  (∀ (C0 : Type u0) (C1 : Type u1) (C2 : Type u2)
      [NormedAddCommGroup C0] [InnerProductSpace ℝ C0]
      [NormedAddCommGroup C1] [InnerProductSpace ℝ C1]
      [NormedAddCommGroup C2] [InnerProductSpace ℝ C2]
      (K : FiniteHodgeComplex (C0 := C0) (C1 := C1) (C2 := C2)),
    CanonicalPoissonGate K ∧
    ClosedResidualOrthogonalityGate K ∧
    PythagorasGate K ∧
    CanonicalGreenNormGate K ∧
    VortexEnergyDecompositionGate K ∧
    VortexMinimumEnergyGate K) ∧
  ZeroCouplingNonidentificationControl ∧
  ZeroVorticityNonzeroFieldControl

end FiniteGreenVariationalEnergyV1
Source
Beno Eckmann, Harmonische Funktionen und Randwertaufgaben in einem Komplex, Commentarii Mathematici Helvetici 17 (1944/45), pp. 240-255, https://doi.org/10.1007/BF02566245; LeanProofs foundation commit dbf503b2909cc17787d40a21eb75a0c9354cc6ef
Read-back

What the Lean code literally says, in plain math · gpt-5.6-sol

Defines a finite real inner-product cochain complex C0→d0C1→d1C2C^0 \xrightarrow{d_0} C^1 \xrightarrow{d_1} C^2C0d0​​C1d1​​C2, specified adjoints, the degree-two Laplacian d1δ2d_1\delta_2d1​δ2​, vorticity and harmonic subspaces, and orthogonal projection onto range⁡(d1)\operatorname{range}(d_1)range(d1​). A DegreeTwoGreenOwner supplies a Green map satisfying two projected inverse laws, range and harmonic conditions, self-adjointness, and uniqueness. It then defines canonical and 2π2\pi2π-scaled vortex representatives, residuals, quadratic energy, six variational gates, two negative controls, and their bundled claim boundary. Important scope point: the gates quantify over a supplied Green owner; this definition does not assert that an owner exists.

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

  • Endorsed by lisamegawatts · Sep 18, 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