Those are pretty poor definitions of law, because they only address statutory law, and there are many other kinds of law.
The definition of law that I believe encompasses all kinds (it is from define: law in google search):
noun /lô/ laws, plural 1. The system of rules that a particular country or community recognizes as regulating the actions of its members and may enforce by the imposition of penalties - - they were taken to court for breaking the law - - a license is required by law - - law enforcement 1. An individual rule as part of such a system - - an initiative to tighten up the laws on pornography |
|---|
This definition is broader and fits for all kinds of legal systems, instead of the ones that you provided.