From 7ede4519cc89fef27cdac28bdfc6493cd01bae86 Mon Sep 17 00:00:00 2001 From: Enzo Crance Date: Fri, 5 Jan 2024 16:53:32 +0100 Subject: [PATCH] :memo: Example int Zp --- artifact-doc/TUTORIAL.md | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/artifact-doc/TUTORIAL.md b/artifact-doc/TUTORIAL.md index e6e6812..3a8ab1e 100644 --- a/artifact-doc/TUTORIAL.md +++ b/artifact-doc/TUTORIAL.md @@ -73,28 +73,19 @@ The `peano_bin_nat.v` file contains this example but remarks that the isomorphis #### Modular arithmetic (`int_to_Zp.v`) -todo - - +(forall x y, x + y = y + x)%Zmodp. +``` +As `int` is defined in the MathComp library, this property is already proved and comes under the name `addC`. We can therefore close the goal and get commutativity of addition over `Zmodp` "for free". #### Bitwise arithmetic (`Vector_tuple.v`)