nPC7M7XLEv / current /formal_lean_6b7ccf1e /NegativeControl.lean
DineshAI's picture
Add Lean kernel verification for Claims 1 2 and 6
819b602 verified
Raw
History Blame Contribute Delete
338 Bytes
import CDOTProofs
set_option autoImplicit false
-- Deliberately false sign reversal. A sound kernel must reject this file.
example (θ u v : ℝ) (hθ0 : 0 ≤ θ) (hθ1 : θ ≤ 1) :
θ * u ^ 2 + (1 - θ) * v ^ 2
(θ * u + (1 - θ) * v) ^ 2 := by
nlinarith [CDOTFormal.claim1_squared_residual_jensen θ u v hθ01]