File size: 338 Bytes
819b602
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
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]