(************************************************************************)
(*         *      The Rocq Prover / The Rocq Development Team           *)
(*  v      *         Copyright INRIA, CNRS and contributors             *)
(* <O___,, * (see version control and CREDITS file for authors & dates) *)
(*   \VV/  **************************************************************)
(*    //   *    This file is distributed under the terms of the         *)
(*         *     GNU Lesser General Public License Version 2.1          *)
(*         *     (see LICENSE file for the text of the license)         *)
(************************************************************************)
(** Some additional properties of [even], [odd]. *)
Module Type NParityProp (Import N : NAxiomsSig')(Import NP : NSubProp N).
Include NZParityProp N N NP.

(* Specifications: *)
Lemma odd_pred n : n~=0 -> odd (P n) = even n.
Lemma even_pred n : n~=0 -> even (P n) = odd n.
Lemma even_sub n m : m<=n -> even (n-m) = Bool.eqb (even n) (even m).
Lemma odd_sub n m : m<=n -> odd (n-m) = xorb (odd n) (odd m).
End NParityProp.