Finite Green variational-energy interface
DefinitionFiniteGreenVariationalEnergyV1Defines 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.
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
Read-back
What the Lean code literally says, in plain math · gpt-5.6-sol
Defines a finite real inner-product cochain complex , specified adjoints, the degree-two Laplacian , vorticity and harmonic subspaces, and orthogonal projection onto . A DegreeTwoGreenOwner supplies a Green map satisfying two projected inverse laws, range and harmonic conditions, self-adjointness, and uniqueness. It then defines canonical and -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.
Confirmed by the mission captain (proposal self-audit).