Definition isUpperBound (E : hsubtype X) (ub : X) : UU := ∏ x : X, E x -> x <= ub.
Require Import UniMath.MoreFoundations.Tactics. Require Import UniMath.MoreFoundations.Sets. Require Import UniMath.MoreFoundations.Orders. Require Import UniMath.Algebra.BinaryOperations