Proving this non-empty set and binary operation is a group [duplicate]

Solution 1:

This result is false unless one assumes closure.

For example, let $P$ consist of any two distinct reflections of a regular polygon. Then, under the usual composition of symmetries, all the required conditions are satisfied but $P$ is not a group.