from util import *


@apply
def apply(lt, index=0):
    args, x = lt.of(Max < Expr)
    y = args[index]

    return Less(y, x)


@prove
def prove(Eq):
    x, y, z = Symbol(real=True, given=True)
    Eq << apply(Max(y, z) < x)

    Eq << ~Eq[1]

    #Eq <<= Eq[-1] & Eq[0]
    Eq <<= Eq[0] & Eq[-1]


if __name__ == '__main__':
    run()
# created on 2020-01-10
