Formalising LPOs and invariants in Coq by H. Korver