Built with Alectryon, running Coq+SerAPI v8.10.0+0.7.0. Coq sources are in this panel; goals and messages will appear in the other. Bubbles () indicate interactive fragments: hover for details, tap to reveal contents. Use Ctrl+↑ Ctrl+↓ to navigate, Ctrl+🖱️ to focus.
(************************************************************************)
(* * The Coq Proof Assistant / The Coq Development Team *)
(* v * INRIA, CNRS and contributors - Copyright 1999-2018 *)
(* <O___,, * (see CREDITS file for the list of authors) *)
(* \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) *)
(************************************************************************)
Library for binary natural numbers
Require Export BinNums. Require Export BinPos. Require Export BinNat. Require Export Nnat. Require Export Ndiv_def. Require Export Nsqrt_def. Require Export Ngcd_def. Require Export Ndigits. Require Export NArithRing.
N contains an order tactic for natural numbers
Note that N.order is domain-agnostic: it will not prove
1<=2 or x≤x+x, but rather things like x≤y → y≤x → x=y.
Local Open Scope N_scope. Section TestOrder.forall x y : N, x <= y -> y <= x -> x = yN.order. Qed. End TestOrder.forall x y : N, x <= y -> y <= x -> x = y