Convex Functions in ACL2(r)