runner icon indicating copy to clipboard operation
runner copied to clipboard

Add Arend

Open ice1000 opened this issue 5 years ago • 3 comments
trafficstars

Please complete the following information about the language:

  • Name: Arend
  • Website: https://arend-lang.github.io/
  • Language Version: 1.8.0

The following are optional, but will help us add the language:

  • Test Frameworks: Like Agda -- not needed
  • How to install: clone the source and ./gradlew jarDep will give you a jar. This is very lightweight, it won't take you decades to build
  • How to compile/run: java -jar [cli-full.jar] [your arend file.ard]
  • Any comments: It supports HoTT in its very first version, it's evolving, it's by JetBrains, it has an official IntelliJ IDEA plugin

:+1: reaction might help.


  • [x] Build Arend v1.8.0 (cli-1.8.0-full.jar)
  • [ ] Figure out testing
    • [x] Commands (jar cli-1.8.0-full.jar --test?)
    • [ ] Postprocessing
  • [ ] Create container image
  • [ ] SVG logo for icon
  • [ ] CodeMirror mode

ice1000 avatar Jan 21 '20 17:01 ice1000

@ice1000 I'll need some examples like how @DonaldKellett did for Lean. It doesn't have to be a repo, but something similar will be awesome. I'll need examples for passing, failing, and any errors.

kazk avatar Apr 25 '20 04:04 kazk

You need this file arend.yaml at the project root:

langVersion: 1.3
sourcesDir: src
testsDir: test
binariesDir: .bin

Your project structure:

- /
  - arend.yaml
  - src
    - Solution.ard
  - test
    - Test.ard

Test.ard:

\import Solution

\lemma check : 1 + 1 = 2 => solution

Solution.ard (passing):

\lemma solution : 1 + 1 = 2 => idp

Solution.ard (failing), different types of failures:

\lemma solution : 1 + 1 = 2 => solution
\lemma solution : 1 + 1 = 3 => idp
-- Anticipated initial setup
\lemma solution : 1 + 1 = 2 => {?}

ice1000 avatar Apr 26 '20 14:04 ice1000

Well, I think I should give an example with the stdlib added

ice1000 avatar Apr 26 '20 14:04 ice1000