Code Monkey home page Code Monkey logo

agda-2020-21's Introduction

Binds cheatsheet

Top level

action spacemacs vscode
Reload and typecheck SPC m l C-c C-l
Restart Agda SPC m x r C-c C-r
Compute expression SPC m n C-c C-n

In hole

action spacemacs vscode
Auto (agsy) SPC m a C-c C-a
Ask for goal, and context SPC m , C-c C-,
Ask for goal, context, and expression in hole SPC m . C-c C-.
Try to use given expr to fill hole ("give") SPC m SPC C-c C-SPC
Introduce arguments SPC m c C-c C-c
Case split (asks for input or names in the hole) SPC m c C-c C-c
Introduce copattern (don't enter a name) SPC m c C-c C-c
Attempt to introduce "contructor"* ("refine") SPC m r C-c C-r
Try to use function in hole, adding holes for args SPC m r C-c C-r

* "contructor" here means a couple of things

  • literally a constructor for a type, whose types matches - if ambiguous, the refine won't succeed
  • a lambda with as many arguments as possible - this is actually technically a constructor, for the function type (->)
  • a record with the required fields for the current type, with holes for the field values
  • !VERY USEFUL! - if you have a function name in the hole, if the return type matches the goal, the function will be introduced with holes for its arguments

Resources

The instructions for vscode should be almost the same, except you install agda-mode instead

Other materials

Some git repos for agda courses:

Nice exercises and approach (imo), with the huge bonus of having recorded video lectures.

PLFA - A loose adaptation of the popular Coq based book to Agda.

Good for a gentle introduction, and some exercises. Also for lambda calculus related things in Agda.

Agda in a browser

You can get a set up emacs agda environment in your browser at this website: https://agdapad.quasicoherent.io/

Additionally, if you send someone the link to the same session, you can work together.

agda-2020-21's People

Contributors

googleson78 avatar triffon avatar tsvetelinkostadinv avatar

Watchers

 avatar

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.