A function $f\colon X\to \mathbb R$ is called convex if
$$\forall (x,y)\in X^2,\quad \forall t\in[0,1],\quad f(tx+(1-t)y)\leqslant tf(x)+(1-t)f(y).$$
Intuitively, it would seem that if we only impose that condition for $t=\frac 12$ we would get the same set of convex functions.
For a continuous function, I believe this is true (the following drawing convinced me):
My problem is that I was not able to find a counter-example, even for a discontinuous function.
I do believe there exists one though.
So what would be a function $\varphi$ which would verified (i) but not (ii) ?
$$(i) \quad \forall (x,y)\in X^2,\quad \varphi\left(\frac {x+y}2\right)\leqslant \frac{\varphi(x)+ \varphi(y)}2.$$
$$(ii) \quad \forall (x,y)\in X^2,\quad \forall t\in[0,1],\quad \varphi(tx+(1-t)y)\leqslant t \varphi(x)+(1-t) \varphi(y).$$
