aboutsummaryrefslogtreecommitdiff
path: root/theories/Numbers/Natural/Axioms/NPlus.v
diff options
context:
space:
mode:
Diffstat (limited to 'theories/Numbers/Natural/Axioms/NPlus.v')
-rw-r--r--theories/Numbers/Natural/Axioms/NPlus.v16
1 files changed, 7 insertions, 9 deletions
diff --git a/theories/Numbers/Natural/Axioms/NPlus.v b/theories/Numbers/Natural/Axioms/NPlus.v
index 63cc8a40f5..0ae12df979 100644
--- a/theories/Numbers/Natural/Axioms/NPlus.v
+++ b/theories/Numbers/Natural/Axioms/NPlus.v
@@ -1,25 +1,23 @@
Require Export NAxioms.
-Module Type PlusSignature.
+Module Type NPlusSignature.
Declare Module Export NatModule : NatSignature.
-(* We use Export here because if we have an access to plus,
-then we need also an access to S and N *)
-Open Local Scope NScope.
+Open Local Scope NatScope.
Parameter Inline plus : N -> N -> N.
-Notation "x + y" := (plus x y) : NScope.
+Notation "x + y" := (plus x y) : NatScope.
Add Morphism plus with signature E ==> E ==> E as plus_wd.
Axiom plus_0_n : forall n, 0 + n == n.
Axiom plus_Sn_m : forall n m, (S n) + m == S (n + m).
-End PlusSignature.
+End NPlusSignature.
-Module PlusProperties (Export PlusModule : PlusSignature).
+Module NPlusProperties (Import NPlusModule : NPlusSignature).
Module Export NatPropertiesModule := NatProperties NatModule.
-Open Local Scope NScope.
+Open Local Scope NatScope.
Theorem plus_0_r : forall n, n + 0 == n.
Proof.
@@ -199,4 +197,4 @@ rewrite plus_Sn_m in H. apply S_inj in H.
apply plus_eq_0 in H; split; [apply S_wd | ]; tauto.
Qed.
-End PlusProperties.
+End NPlusProperties.