Mikan is a proof assistant for cubical type theory.
  • Haskell 60.7%
  • Agda 26.8%
  • TeX 5.3%
  • HTML 3.9%
  • Emacs Lisp 2%
  • Other 1.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Stefano Volpe 76a45405e7
All checks were successful
Build and deploy user manual / user-manual (push) Successful in 1m11s
Build mikan and haddocks / build (push) Successful in 15m10s
fix: forbid references to module parameters in display pragma RHSes in the scope checker (#209)
Closes #135. The output of the code snippet in OP is:

```
DisplayFormPanic.agda:8.3-26: warning:
References to module parameters in DISPLAY pragmas are not
supported.
when scope checking the declaration
  {-# DISPLAY bad = a #-}

DisplayFormPanic.agda:8.21-22: error:
Not in scope:
  a at DisplayFormPanic.agda:8.21-22
    (did you mean 'A'?)
when scope checking a
```

Reviewed-on: #209
2026-10-26 17:59:57 +01:00
.forgejo Forgejo actions 2026-10-13 13:59:37 +02:00
.woodpecker Fix preview undeployment CI workflow 2026-09-29 18:06:51 +02:00
benchmark rename Set to Type 2026-05-27 16:57:02 +02:00
cubical@fe3394eba7 Update std-lib and cubical submodules 2026-04-18 17:16:36 +02:00
doc fix: forbid references to module parameters in display pragma RHSes in the scope checker (#209) 2026-10-26 17:59:57 +01:00
mk chore: remove more references to stack 2026-04-26 00:18:59 -04:00
notes doc: update the index, overview, team and contributing pages 2026-09-29 16:11:30 +02:00
src fix: forbid references to module parameters in display pragma RHSes in the scope checker (#209) 2026-10-26 17:59:57 +01:00
test fix: forbid references to module parameters in display pragma RHSes in the scope checker (#209) 2026-10-26 17:59:57 +01:00
.editorconfig Add an EditorConfig file 2026-02-25 15:06:39 +01:00
.gitignore Remove modalities 2026-05-10 01:06:02 +02:00
.gitmodules chore: remove stdlib 2026-04-21 22:46:37 -03:00
.hlint.yaml Follow hlint suggestion: redundant case 2024-08-16 18:06:43 +02:00
.mailmap Update .mailmap 2025-04-07 13:58:03 +02:00
cabal.project chore: enable tests in cabal.projects 2026-10-12 22:57:11 +02:00
cabal.project.ghc-9.14.1 chore: enable tests in cabal.projects 2026-10-12 22:57:11 +02:00
cabal.project.tc chore: enable tests in cabal.projects 2026-10-12 22:57:11 +02:00
CHANGELOG.md fix: forbid references to module parameters in display pragma RHSes in the scope checker (#209) 2026-10-26 17:59:57 +01:00
CODE_OF_CONDUCT.md chore: start rebranding 2026-04-20 08:43:29 -03:00
CONTRIBUTING.md docs: flesh out README 2026-06-18 16:33:38 -03:00
fix-whitespace.yaml Add *.agda-lib to fix-whitespace.yaml 2025-06-30 17:10:37 +02:00
flake.lock chore: bump nixpkgs to 26.05, tasty to >= 1.5.4 2026-10-21 12:43:11 -04:00
flake.nix chore: bump nixpkgs to 26.05, tasty to >= 1.5.4 2026-10-21 12:43:11 -04:00
HACKING.md chore: more rebranding 2026-05-21 15:35:29 +02:00
LICENSE docs: branding 2026-09-29 21:26:31 -03:00
Makefile chore: remove examples/ 2026-04-28 20:45:36 +02:00
Mikan.cabal chore: bump nixpkgs to 26.05, tasty to >= 1.5.4 2026-10-21 12:43:11 -04:00
README.md README: fix header path 2026-10-01 15:18:15 +02:00
weeder.toml Remove global and local rewrite rules (#68) 2026-05-04 18:18:18 +02:00

Mikan logo & header

Mikan (/miˈkɑːn/ mee-KAHN, after the Japanese name for Citrus unshiu) is a free and libre interactive proof assistant for cubical type theory, featuring a computational interpretation of univalence among a variety of schemas for inductive and coinductive definitions. Proofs are constructed incrementally in a flexible concrete syntax based on mixfix operators, and organised through an expressive system of parametrised modules. Mikan is a part of the 1Lab project.

Mikan was forked from the dependently-typed programming language Agda during development of upstream version 2.9.0; specifically, the last commit that is part of upstream history is a96a3920. You can learn more about the motivation for the fork in the original announcement. An up-to-date FAQ is hosted on the 1Lab.

Installation

The recommended way of installing Mikan is using the Nix flake. Our continuous integration populates a Cachix binary cache with a ready-to-use build of the latest commit on the main branch. Install Nix and Cachix, then run:

$ cachix use mikan  # enable our binary cache
$ nix profile add . # actually install Mikan

Mikan is primarily used through its interactive Emacs mode, which, at the moment, is compatible with agda2-mode version 2.9.0. The Mikan executable ships with a compatible version of its Emacs mode. Make sure your init files contain the following:

; tell agda2-mode to call the mikan executable
(customize-set-variable 'agda2-program-name "mikan")
; load the emacs mode.
(load-file (let ((coding-system-for-read 'utf-8))
  (shell-command-to-string "mikan --emacs-mode locate")))

Manual compilation

Mikan is an ordinary Haskell package, which can be built and installed with Cabal. However, Cabal installation requires additional first-time setup steps to copy the data files (the Emacs mode and built-in modules) into the proper place. Run:

$ cabal update # if necessary
$ cabal install -foptimise-heavily exe:mikan

$ mikan --setup # unpack data files

For practical use, the optimise-heavily build flag is mandatory.