Giter Club home page Giter Club logo

Comments (3)

fabianhjr avatar fabianhjr commented on September 24, 2024

There are several current exercises that would be appropriate for idris, mainly the functional ones.

Some examples:

from idris.

NobbZ avatar NobbZ commented on September 24, 2024

Those exercises suite about every language, you won't need any of idris' special features to solve them.

And even with a lot of bending, I can't think of a way to solve those using dependent types, except for rna-transcription, but its just using Vect n a instead of List a.

Sure this can be used to introduce Vects for the first time.

I'd really like to see some exercises that actually do something with the benefits of dependent types.

hamming in its current for is a good start. By using Vect n a -> Vect n a -> Nat, we specify in the functions type that both inputs are of same length. Also this makes us able to omit clauses for hitting the end of the list for a single list early and idris still knows that its fine. I like this! If now we could also find a way to tell, that the returned Nat will be less than or equal to n… But perhaps that would complicate things too much, but it would show the capabilities of dependent types.

But to be honest, I think we need exercises that deal with proofs and rewrites and stuff. In any language with dependent or refined types, this is my biggest problem. Convincing the compiler that the obvious holds…

from idris.

yurrriq avatar yurrriq commented on September 24, 2024

Maybe we could borrow some stuff from Logical Foundations. There ought to be something useful in https://github.com/idris-hackers/software-foundations

from idris.

Related Issues (20)

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.