See part III of my first book, The Machinery of Freedom: Guide to a Radical Capitalism, for a non-technical explanation. For a more elaborate discussion, including a form of market failure that would result in some inefficient legal rules, see my chapter "Anarchy and Efficient Law" in For and Against the State, edited by Jack Sanders and Jan Narveson, Rowman & Littlefield 1996.