GithubHelp home page GithubHelp logo

thery / twosquare Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 138 KB

A proof of Fermat's theorem on sum of two squares with mathcom using gaussian integers.

Makefile 0.35% Coq 99.65%
coq-formalization sum-of-squares fermat-theorem coq

twosquare's Introduction

twoSquare

Docker CI

A proof of Fermat's theorem on sum of two squares. It is the proof that uses gaussian integers. This is done in ssreflect. It contains two files :


gauss_int.v : the definition of gaussian integers

fermat2.v : the proof of Fermat's theorem


The final statement reads:

From mathcomp.contrib.sum_of_two_square Require Import fermat2.

Check sum2stest.

sum2stest :

reflect (forall p, prime p -> odd p -> p %| n -> odd (logn p n) -> p %% 4 = 1) (n is a sum_of_two_square).

Meta

Building and installation instructions

To build and install manually, do:

git clone https://github.com/thery/twoSquare.git
cd twoSquare
make   # or make -j <number-of-cores-on-your-machine> 
make install

twosquare's People

Contributors

thery avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

palmskog

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.