In the definition of a structure (monoid, group, field a.s.o.) some author use the closure property, other authors do not.
For instance Beachy & Blair, Abstract Algebra, do not use the closure in the definition of group (3.1.1), but they use it in the definition of field (4.1.1).
Serge Lang, Algebra, do not use it, neither for monoid, nor for group, nor for ring.
To prove that something is a group or a ring or something else, we have to prove that the defined operations are closed. Thus the closure should be part of the definition.
I think that most authors consider that every binary operation is defined for each pair of elements.
Why should the closure be included in a definition? Or why not?