Coder Social home page Coder Social logo

sergei-romanenko / agda-pythagoras Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ikedaisuke/pythagoras

5.0 2.0 0.0 55 KB

Pythagorean theorem (sqrt 2 is not rational). Rewritten in Agda2 from the original proof by Thierry Coquand.

Agda 81.25% Coq 18.75%

agda-pythagoras's Introduction

Sqrt 2 is not rational

Written by: Ikegami Daisuke [email protected]
Revised by: Sergei Romanenko [email protected]

The original proof (in Agda1/Alfa) is due to Thierry Coquand.

This version tries to exploit the the Agda standard library.

Links

Files

  • Cancellative.agda
    The definition of cancellative abelian monoid.

  • Theorem.agda
    The main theorem which is originally proved by Thierry Coquand: any prime cannot be a square of rational in cancellative abelian monoid.


  • 2Divides
    Some properties of natural numbers (with zero).

  • NatPlus.agda
    A set of natural numbers without zero.


  • Corollary.agda
    The set of the natural numbers without zero and multiplication forms a cancellative abelian monoid.
    Thus, the square root of two is irrational.

Miscellanea



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.