Necessary condition (1.17):
ProvedVectorCalculus.conservative_partialDeriv_symmIf a vector field on is the gradient of a twice continuously differentiable potential , then its components satisfy the symmetry relation
because both sides are the mixed second partial derivative of and the order of partial differentiation is immaterial for sufficiently well-behaved functions. This is the standard test (1.17) used to rule out conservativity.
import Definitions.Def_VectorCalculus_grad
namespace VectorCalculus
theorem conservative_partialDeriv_symm {n : ℕ} (F : (Fin n → ℝ) → (Fin n → ℝ))
(φ : (Fin n → ℝ) → ℝ) (hφ : ContDiff ℝ 2 φ) (hFφ : ∀ y, F y = grad φ y)
(i j : Fin n) (y : Fin n → ℝ) :
partialDeriv (fun z => F z j) i y = partialDeriv (fun z => F z i) j y := by sorry
end VectorCalculus
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic)
Provenance: non-blind read-back, not independent testimony. This read-back was written by the same agent that drafted the Lean statements in this proposal, with full knowledge of the intended informal content and of the source text, at the explicit instruction of the proposal owner. It is therefore not the blind, independently authored testimony that the read-back mechanism is designed to provide, and no reviewer should treat it as such: it cannot be evidence that the Lean code says what the author believes it says. Please audit the Lean code directly against the cited source.
Fix a natural number , with the functions from an -element index type into . Let be a function, let be of class (twice continuously differentiable in the Fréchet sense on all of ), and assume that for every point the vector equals the vector of coordinatewise partial derivatives of at , the -th of which is the ordinary derivative at of the one-variable function . Let and be arbitrary indices, not assumed distinct, and let be an arbitrary point. The conclusion is
where each side is again a coordinatewise one-variable derivative: the left-hand side is the derivative at of the function sending to the -th component of evaluated at with its -th coordinate replaced by , and symmetrically on the right, with the convention that a non-existent derivative is .
No continuity or differentiability is assumed of itself beyond what follows from its pointwise identification with the gradient of ; the hypothesis is on alone, and it is a global hypothesis on all of . The case is included and is trivially true. For there are no indices and the statement is vacuous.