Construction of the potential: for
ProvedVectorCalculus.grad_lineIntegral_potentialLet be a continuous vector field on whose line integral around every closed curve vanishes. Define a scalar field by integrating from the origin to the point along the straight segment , :
Then at every point. This is the converse construction of §1.3.2, where the potential is built by integrating the field along a curve from the origin — the hypothesis of vanishing circulation being what makes the choice of curve immaterial.
import Definitions.Def_VectorCalculus_lineIntegral import Definitions.Def_VectorCalculus_grad
namespace VectorCalculus
theorem grad_lineIntegral_potential {n : ℕ} (F : (Fin n → ℝ) → (Fin n → ℝ))
(hF : Continuous F)
(hclosed : ∀ (x : ℝ → (Fin n → ℝ)) (a b : ℝ), a ≤ b → ContDiff ℝ 1 x → x a = x b →
lineIntegral F x a b = 0) (y : Fin n → ℝ) :
grad (fun z => lineIntegral F (fun t => t • z) 0 1) y = F 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 , and let be continuous. Assume further that for every function of class on all of and all reals with , the oriented integral
equals . Let be arbitrary and define the scalar function
the line integral of along the straight parametrised path (scalar multiple of ) taken between the parameter values and . The conclusion is the equality of vectors
where is the ordinary derivative at of the one-variable function obtained from by replacing its -th coordinate argument by and holding the others fixed, with the convention that a non-existent derivative is .
The specific path used in the definition of is the straight segment from the origin to the point, parametrised affinely over ; no other path enters the conclusion. The hypothesis of vanishing circulation is stated for globally curves only. The conclusion is asserted at the single but arbitrary point , as an equality of the two vectors, so it in particular asserts that each of those derivatives exists whenever the corresponding component of is nonzero. For the claim is the trivial equality in the zero-dimensional space.