Proved
VectorCalculus.lineIntegral_gradLet be a continuously differentiable scalar field on and let be a continuously differentiable curve. Then the line integral of the gradient field along between parameter values and depends only on the endpoints:
This is the chain rule followed by the fundamental theorem of calculus, and it is the forward half of the chapter's main claim.
import Definitions.Def_VectorCalculus_lineIntegral import Definitions.Def_VectorCalculus_grad
namespace VectorCalculus
theorem lineIntegral_grad {n : ℕ} (φ : (Fin n → ℝ) → ℝ) (hφ : ContDiff ℝ 1 φ)
(x : ℝ → (Fin n → ℝ)) (hx : ContDiff ℝ 1 x) (a b : ℝ) :
lineIntegral (grad φ) x a b = φ (x b) - φ (x a) := 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 realised as the functions from an -element index type into . Let be a function from to which is continuously differentiable (of class , in the Fréchet sense, on all of ), let be a function from to which is likewise of class on all of , and let and be arbitrary real numbers, with no order relation imposed between them. The assertion is
where denotes the ordinary derivative at of the one-variable function obtained from by replacing its -th coordinate argument by and fixing the others, and the derivative of is taken coordinatewise.
The integral is oriented: if the left-hand side is the negative of the integral from to , consistent with the right-hand side changing sign; if both sides are . The sum over ranges over all coordinates, and for the left side is while the right side is with the unique point of the zero-dimensional space, hence also .