codewars / runner

Issue tracker for Code Runner
33 stars 8 forks source link

Add Arend #23

Open ice1000 opened 4 years ago

ice1000 commented 4 years ago

Please complete the following information about the language:

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


:+1: reaction might help.


kazk commented 4 years ago

@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.

ice1000 commented 4 years ago

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 commented 4 years ago

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