All Projects → scott-fleischman → agda-from-nothing

scott-fleischman / agda-from-nothing

Licence: other
A workshop on learning Agda with minimal prerequisites.

Programming Languages

Agda
84 projects
Makefile
30231 projects

Projects that are alternatives of or similar to agda-from-nothing

frp agda
Functional Reactive Programming with Agda
Stars: ✭ 22 (-70.27%)
Mutual labels:  agda
agda-pkg
apkg - package manager for Agda
Stars: ✭ 30 (-59.46%)
Mutual labels:  agda
cain
Category theory applied to functional programming (undergraduate project)
Stars: ✭ 27 (-63.51%)
Mutual labels:  agda
cat
A formalization of category theory in cubical Agda
Stars: ✭ 50 (-32.43%)
Mutual labels:  agda
AutoInAgda
Proof automation – for Agda, in Agda.
Stars: ✭ 38 (-48.65%)
Mutual labels:  agda
org-agda-mode
An Emacs mode for working with Agda code in an Org-mode like fashion, more or less.
Stars: ✭ 14 (-81.08%)
Mutual labels:  agda
SymmetryBookFormalization
Univalent mathematics in Agda
Stars: ✭ 117 (+58.11%)
Mutual labels:  agda
cubical-1lab
A formalised, cross-linked reference resource for mathematics done in Homotopy Type Theory
Stars: ✭ 93 (+25.68%)
Mutual labels:  agda
agda-presburger
Deciding Presburger arithmetic in agda
Stars: ✭ 26 (-64.86%)
Mutual labels:  agda
dicy
A builder for LaTeX, knitr, literate Agda, literate Haskell and Pweave that automatically builds dependencies.
Stars: ✭ 22 (-70.27%)
Mutual labels:  agda
agda-mode
Accessing Agda's interaction mode via command line & external tactic for Agda.
Stars: ✭ 26 (-64.86%)
Mutual labels:  agda
tt-in-cubical
Type Theory in Type Theory using Cubical Agda
Stars: ✭ 12 (-83.78%)
Mutual labels:  agda
agda-mode-vscode
agda-mode on VS Code
Stars: ✭ 112 (+51.35%)
Mutual labels:  agda
TypeTopology
Logical manifestations of topological concepts, and other things. This version adopts the univalent point of view.
Stars: ✭ 132 (+78.38%)
Mutual labels:  agda
MtacAR
Mtac in Agda
Stars: ✭ 29 (-60.81%)
Mutual labels:  agda
universe-of-syntax
A universe of scope- and type-safe syntaxes (syntices?). Includes generic implementation of type-preserving renaming/substitution with all the proofs you could possibly need.
Stars: ✭ 16 (-78.38%)
Mutual labels:  agda
ConsHoTT
Constructive Interpretations of HoTT
Stars: ✭ 33 (-55.41%)
Mutual labels:  agda
agda
The theory of algebraic graphs formalised in Agda
Stars: ✭ 67 (-9.46%)
Mutual labels:  agda
gentle-intro-to-reflection
A slow-paced introduction to reflection in Agda. ---Tactics!
Stars: ✭ 58 (-21.62%)
Mutual labels:  agda
msla2014
wherein I implement several substructural logics in Agda
Stars: ✭ 24 (-67.57%)
Mutual labels:  agda

Agda from Nothing

A workshop on learning Agda with minimal prerequisites.

Installing Agda

The exercises are written for Agda 2.5.1.

Official Agda installation instructions

On Mac

You may find stack more reliable than cabal to build Agda.

  1. Install stack
  2. In a terminal run: stack install --resolver nightly-2016-05-08 Agda
  3. Install Aquamacs
  4. In a terminal run: agda-mode setup
  5. (Restart Aquamacs)

Docker

Docker with Emacs and exercises

I created a Docker image with Agda, Emacs and the exercises. See scottfleischman/agda-from-nothing

docker run -it scottfleischman/agda-from-nothing

Note The Mac Terminal has issues sending common control sequences such as Control+Comma. It may be better to do a full install as above, or use Docker with Agda as below with a local editor and agda-mode.

Docker with Agda only

See banacorn/docker-agda.

Emacs Keybindings

See the Agda docs for all of the keybindsings. Here are ones I commonly use. Note C- means Control+.

Global (can be used anywhere)

  • C-c C-l — Load file. I use this constantly.
  • C-c C-f — Move to next goal (forward)
  • C-c C-b — Move to previous goal (backwards)
  • C-c C-d — Infer (deduce) type. Type in any expression and it infers the type.
  • C-c C-n — Compute normal form. In other words, reduces the expression as much as possible.
  • C-g — Quit what command sequence you started.

In a hole/goal

  • C-c C-c — Case split. Type in an argument name and it creates lines for each possible case. It works with multiple arguments.
  • C-u C-c C-Comma — Show unnormalized goal type and context.
  • C-u C-u C-c C-Comma — Show fully normalized goal type and context.
  • C-c C-Space — Give (fill goal). Type checks the expression you typed in the hole, and if successful fills the hole.
  • C-c C-r — Refine. Partial give: makes new holes for missing arguments.
    • If you've entered an expression in the hole, it will fill in the hole with that expression and make new holes for any missing arguments.
    • If you haven't entered anything in the hole, and if the hole is constrained to one constructor, it fills in the hole with that constructor and makes new holes for each of the constructor's arguments.
  • C-c C-a — Automatic Proof Search (Auto). Tries to fill the hole with any solution. Note—this may not be a correct solution if the types aren't precise enough to constrain the term to only correct ones. Note also that it often fails to find a solution.

Unicode characters

  • \r- or \to for
  • \== for
  • \==n for
  • \all for
  • \<= for
  • \<=n for
  • \ell for
  • \lambda or \Gl for λ
  • \' for
  • \:: for (it looks like two colons, but it is a single Unicode character)
  • \_0 for (subscript 0)
  • \_1 for (and so on)
  • \^0 for (superscript 0)
  • \^1 for ¹ (and so on)
  • \in for
  • \ni for
  • \lub for (least upper bound; max)
  • \Pi for Π
  • \Sigma or \GS for Σ
  • To see info on a character under the cursor, use C-u C-x Equals

Resources

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].