You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a static build of the master branch of Narya. The executable 'narya' should run on any Linux machine. You may want to place it in a 'bin' directory that is in your PATH.
1
+
This is a static build of the master branch of Narya, an experimental proof assistant for higher-dimensional type theory.
2
2
3
-
To install the recommended ProofGeneral interactive mode, follow the following steps:
3
+
The executable 'narya' should run on any Linux machine. Place it in a directory that is in your PATH. On some flavors of Linux, the directory `~/bin` is automatically in your path if it exists, so the first thing to try would be
4
4
5
-
1. Install Emacs <https://www.gnu.org/software/emacs/> and ProofGeneral. The recommended way to install ProofGeneral is from MELPA <https://melpa.org/> using Emacs' package manager, as described at the ProofGeneral page <https://proofgeneral.github.io/>.
5
+
mkdir -p ~/bin
6
+
cp narya ~/bin
6
7
7
-
2. Find the ProofGeneral installation directory, which may be something like "$HOME/.emacs.d/elpa/proof-general-XXXXXXXX-XXXX".
8
+
Then restart your shell (i.e. terminal or command prompt) and try running 'narya'. If that doesn't work, try logging out and back in again. If that still doesn't work, try something like the following commands:
8
9
9
-
3. In this directory, create a subdirectory called "narya" and copy (or, better, symlink) the ".el" files from this directory into that subdirectory.
10
+
export PATH="$HOME/bin:$PATH"
11
+
echo export PATH="\$HOME/bin:\$PATH" >>~/.bashrc
10
12
11
-
4. Then edit the file "proof-site.el" in the subdirectory "generic" of the ProofGeneral installation directory and add a line containing
13
+
and then once again restart your shell, or log out and back in again.
12
14
13
-
(narya "Narya" "ny" nil (".nyo"))
15
+
To install the recommended ProofGeneral interactive mode, first make sure Emacs is installed, and then run the supplied shell script 'install-pg.sh' from this directory:
14
16
15
-
to the list of proof assistants in the definition of the variable "proof-assistant-table-default".
17
+
./install-pg.sh
16
18
17
-
5. If there is a byte-compiled Emacs Lisp file "proof-site.elc" in the "generic" directory, either delete it, or re-create it from your edited "proof-site.el" using "M-x byte-compile-file".
18
-
19
-
6. Restart Emacs.
19
+
If that doesn't work, please report a bug at https://github.com/gwaithimirdain/narya. In the meantime, you can follow the instructions in the Narya documentation for installing ProofGeneral manually (https://narya.readthedocs.io/en/latest/installation.html#proofgeneral-emacs-mode). You will need to repeat this every time Emacs, ProofGeneral, or Narya is updated.
Copy file name to clipboardExpand all lines: docs/source/installation.rst
+19-6Lines changed: 19 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ Static binary
6
6
7
7
A statically compiled binary, built automatically from the up-to-date development version, can be downloaded from `GitHub Pages <https://gwaithimirdain.github.io/narya/releases/narya-master-static.tar.gz>`_. This ought to work on any Linux computer, and might work on other operating systems as well (e.g. using `Windows Subsystem for Linux <https://learn.microsoft.com/en-us/windows/wsl/install>`_ on Windows). Please report your experiences!
8
8
9
-
You will still need to manually install Emacs, ProofGeneral, and the Narya :ref:`ProofGeneral mode`. The static distribution includes the necessary Emacs Lisp files and instructions.
9
+
The static binary distribution also includes the recommended Narya :ref:`ProofGeneral mode` and a shell script that should install it, along with ProofGeneral, on any Linux computer. You'll need to install `Emacs <https://www.gnu.org/software/emacs/>`_ yourself first.
10
10
11
11
12
12
Compiling from source
@@ -60,10 +60,10 @@ Alternatively, instead of running ``dune install``, you can run the executable d
60
60
61
61
If any of the above steps don't work for you, or if you have any other problems or encounter any bugs, please let us know by `opening an issue on GitHub <https://github.com/gwaithimirdain/narya/issues/new/choose>`_.
62
62
63
-
With nix
64
-
--------
63
+
Compiling with nix
64
+
------------------
65
65
66
-
Narya can also be developed and installed with nix.
66
+
Narya can also be developed and installed with `Nix <https://nixos.org/>`_.
67
67
68
68
1. Get a version of nix with `flakes <https://nixos.wiki/wiki/flakes>`_ enabled, for instance via `determinate nix <https://github.com/DeterminateSystems/nix-installer>`_.
69
69
@@ -74,15 +74,28 @@ Narya can also be developed and installed with nix.
74
74
ProofGeneral (Emacs) mode
75
75
-------------------------
76
76
77
-
The recommended mode of use of Narya is with its `ProofGeneral <https://proofgeneral.github.io/>`_ Emacs mode (for further description of this, see :ref:`ProofGeneral mode`). Unfortunately, ProofGeneral doesn't make it asy for users to add new proof assistant modes. The steps to install Narya's ProofGeneral mode are:
77
+
The recommended mode of use of Narya is with its `ProofGeneral <https://proofgeneral.github.io/>`_ Emacs mode (for further description of this, see :ref:`ProofGeneral mode`). Unfortunately, ProofGeneral doesn't make it easy for users to add new proof assistant modes. The static binary distribution includes a shell script that tries to automate this process, which you can also run from its directory in the source tree:
78
+
79
+
.. code-block:: bash
80
+
81
+
cd dist
82
+
./install-pg.sh
83
+
84
+
If this doesn't work for you, you can follow these steps to install Narya's ProofGeneral mode manually.
78
85
79
86
1. Install `Emacs <https://www.gnu.org/software/emacs/>`_ and ProofGeneral. The recommended way to install ProofGeneral is from `MELPA <https://melpa.org/>`_ using Emacs' package manager, as described at the `ProofGeneral page <https://proofgeneral.github.io/>`_.
80
87
81
88
2. Find the ProofGeneral installation directory, which may be something like ``$HOME/.emacs.d/elpa/proof-general-XXXXXXXX-XXXX``.
82
89
83
90
3. In this directory, create a subdirectory called ``narya`` and copy (or, better, symlink) the files in the proofgeneral directory of the Narya repository into that subdirectory.
84
91
85
-
4. Then edit the file ``proof-site.el`` in the subdirectory ``generic`` of the ProofGeneral installation directory and add a line containing ``(narya "Narya" "ny" nil (".nyo"))`` to the list of proof assistants in the definition of the variable ``proof-assistant-table-default``.
92
+
4. Then edit the file ``proof-site.el`` in the subdirectory ``generic`` of the ProofGeneral installation directory and add this line line
93
+
94
+
.. code-block:: none
95
+
96
+
(narya "Narya" "ny" nil (".nyo"))
97
+
98
+
to the list of proof assistants in the definition of the variable ``proof-assistant-table-default``.
86
99
87
100
5. If there is a byte-compiled Emacs Lisp file ``proof-site.elc`` in the ``generic`` directory, either delete it, or re-create it from your edited ``proof-site.el`` using ``M-x byte-compile-file``.
0 commit comments