Local existence and uniqueness for the initial value problem
ProvedMetodosNumericos.pvi_existence_uniquenessIf is continuous on a rectangle around and Lipschitz in there, then for some the problem , has a solution on taking values in the rectangle, and any two such solutions agree on that interval. This is Teorema 9.4.1, with the bounded partial derivative replaced by an explicit Lipschitz condition.
import Mathlib
namespace MetodosNumericos
theorem pvi_existence_uniqueness (f : ℝ → ℝ → ℝ) (x0 y0 a b L : ℝ) (ha : 0 < a) (hb : 0 < b)
(hcont : ContinuousOn (fun p : ℝ × ℝ => f p.1 p.2)
(Set.Icc (x0 - a) (x0 + a) ×ˢ Set.Icc (y0 - b) (y0 + b)))
(hlip : ∀ x ∈ Set.Icc (x0 - a) (x0 + a), ∀ u ∈ Set.Icc (y0 - b) (y0 + b),
∀ v ∈ Set.Icc (y0 - b) (y0 + b), |f x u - f x v| ≤ L * |u - v|) :
∃ h > 0,
(∃ phi : ℝ → ℝ, phi x0 = y0 ∧
(∀ x ∈ Set.Icc (x0 - h) (x0 + h), HasDerivAt phi (f x (phi x)) x) ∧
∀ x ∈ Set.Icc (x0 - h) (x0 + h), phi x ∈ Set.Icc (y0 - b) (y0 + b)) ∧
(∀ phi psi : ℝ → ℝ,
(phi x0 = y0 ∧ ∀ x ∈ Set.Icc (x0 - h) (x0 + h), HasDerivAt phi (f x (phi x)) x) →
(psi x0 = y0 ∧ ∀ x ∈ Set.Icc (x0 - h) (x0 + h), HasDerivAt psi (f x (psi x)) x) →
(∀ x ∈ Set.Icc (x0 - h) (x0 + h), phi x ∈ Set.Icc (y0 - b) (y0 + b)) →
(∀ x ∈ Set.Icc (x0 - h) (x0 + h), psi x ∈ Set.Icc (y0 - b) (y0 + b)) →
Set.EqOn phi psi (Set.Icc (x0 - h) (x0 + h))) := by sorry
end MetodosNumericosRead-back
What the Lean code literally says, in plain math · self-authored-by-drafting-agent (non-blind)
Disclosure: this read-back is not blind. It was written by the same agent that drafted the Lean statement, at the explicit instruction of the mission's human owner, and not by an independent auditor with fresh context.
For a function of two real variables and reals , , , , , the hypotheses are:
- is continuous on the rectangle relative to that set;
- for all and all , .
The conclusion asserts the existence of such that both of the following hold.
Existence. There is a function with , having derivative at every , and with for every such .
Uniqueness. For any two functions , that both satisfy the initial condition and the differential equation at every point of , and that both take values in on that interval, one has for every .
Uniqueness is agreement on the interval only; the functions may differ outside it. The differential equation is required at the endpoints as a two-sided derivative. The radius is asserted to exist without an explicit formula.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.