turn equational axioms defining type classes into definitions #351
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
types: [opened, synchronize, edited, reopened] | |
push: | |
workflow_dispatch: | |
jobs: | |
isabelle_dedukti: | |
strategy: | |
fail-fast: false | |
matrix: | |
ocaml-version: [4.14.1] | |
dedukti-version: [2.7] | |
lambdapi-version: [2.3.1] | |
isabelle-version: [2023] | |
runs-on: ubuntu-latest | |
steps: | |
# actions/checkout must be done BEFORE avsm/setup-ocaml | |
- name: Checkout isabelle_dedukti | |
uses: actions/checkout@v4 | |
# - name: Set up cache | |
# id: cache | |
# uses: actions/cache@v3 | |
# with: | |
# path: | | |
# ~/.isabelle | |
# ~/kontroli-rs | |
# ~/Isabelle${{ matrix.isabelle-version }} | |
# ~/.opam | |
# key: cache-${{ runner.os }} | |
- name: Download Isabelle | |
# if: steps.cache.outputs.cache-hit != 'true' | |
run: | | |
wget -q https://isabelle.in.tum.de/website-Isabelle${{ matrix.isabelle-version }}/dist/Isabelle${{ matrix.isabelle-version }}_linux.tar.gz | |
tar -xzf Isabelle${{ matrix.isabelle-version }}_linux.tar.gz -C ~ | |
- name: Build isabelle_dedukti | |
run: | | |
~/Isabelle${{ matrix.isabelle-version }}/bin/isabelle components -u . | |
~/Isabelle${{ matrix.isabelle-version }}/bin/isabelle scala_build | |
- name: Patch Isabelle/HOL library | |
run: | | |
chmod -R +w ~/Isabelle${{ matrix.isabelle-version }}/src/HOL/ | |
patch -up0 -d ~/Isabelle${{ matrix.isabelle-version }}/src/HOL/ < HOL.patch | |
- name: Install opam | |
# if: steps.cache.outputs.cache-hit != 'true' | |
uses: avsm/setup-ocaml@v3 | |
with: | |
ocaml-compiler: ${{ matrix.ocaml-version }} | |
- name: Install dkcheck | |
run: opam install dedukti.${{ matrix.dedukti-version }} | |
- name: Install lambdapi | |
run: opam install lambdapi.${{ matrix.lambdapi-version }} | |
- name: Install kocheck | |
run: | | |
cd ~ | |
git clone https://github.com/01mf02/kontroli-rs.git | |
cd ~/kontroli-rs | |
cargo install --path kocheck | |
# - name: Generate and check lp output for HOL_Groups | |
# run: | | |
# cp STTfa.dk STTfa.lp lambdapi.pkg examples/HOL_Groups | |
# cd examples/HOL_Groups | |
# ~/Isabelle${{ matrix.isabelle-version }}/bin/isabelle build -b -d. HOL_Groups_wp | |
# ~/Isabelle${{ matrix.isabelle-version }}/bin/isabelle dedukti_session -d. -l HOL_Groups_wp | |
# eval $(opam env) | |
# lambdapi check HOL_Groups.lp | |
- name: Check dk output for HOL_Groups | |
run: | | |
cd examples | |
~/Isabelle${{ matrix.isabelle-version }}/bin/isabelle build -b -d. HOL_Groups_wp | |
~/Isabelle${{ matrix.isabelle-version }}/bin/isabelle dedukti_session -d. -r HOL_Groups_wp | |
eval $(opam env) | |
bash dkcheck_session_HOL_Groups_wp.sh | |
# mkdir -p kocheck | |
# ../../remove-requires.sh *.dk | |
# cd kocheck | |
# bash ../kocheck.sh | |
# dk dep *.dk > deps.mk | |
# make -f dedukti.mk |