Giter VIP home page Giter VIP logo

setoids's Introduction

Setoids - Idris proofs for extensional equalities

Motivation of these proofs is next - only two identical objects can be equal in Idris, and it usually complicates other proofs. For example, we can think about Integer numbers as about pairs of two natural numbers (a, b):

X = a - b

Then two integer numbers (a, b) and (c, d) will be equal when

a + d = c + b

Such representation simplifies proofs of theorems for integer numbers, but two pairs can be not identical when corresponding integers are equal. And for overcome that difficulty we can use Setoids - sets with extensionally defined equality.

Contents

  • Algebraic structures - Semigroup, Monoid, Semiring, ...
  • Setoids - Natural numbers, built-in setoid
  • Extensional functions
  • Properties of relations and binary operations

Installation & Usage

To install setoids package, you should:

  1. Clone repository to folder
  2. Run idris --install setoids.ipkg

To use proofs and types from setoids in files import them as default modules and start Idris with command

idris -p setoids %FILE_NAME%

To use modules from setoids in REPL, import them using :module command

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.