Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions aletheia/templates/agda/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
sudo apt-get install -y --no-install-recommends agda

- name: Typecheck (this is the build)
run: agda src/@@MOD_CAMEL@@.agda
run: agda --safe --without-K --cubical-compatible src/@@MOD_CAMEL@@.agda

- name: Typecheck the proofs
run: agda src/Properties.agda
run: agda --safe --without-K --cubical-compatible src/Properties.agda
4 changes: 2 additions & 2 deletions aletheia/templates/agda/Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ default:

# Typecheck the main module. In Agda, typechecking IS the build.
build:
agda src/@@MOD_CAMEL@@.agda
agda --safe --without-K --cubical-compatible src/@@MOD_CAMEL@@.agda

# NOTE: there is no `run` recipe. This is a proof library, not a program:
# there is no executable to run, and inventing one would be a fake gate.
Expand All @@ -26,7 +26,7 @@ build:
# Typecheck the proof suite. There is no separate test runner: a proof
# that does not typecheck fails, which is the strongest form of "test".
test:
agda src/Properties.agda
agda --safe --without-K --cubical-compatible src/Properties.agda

# Verify RSR compliance using the estate checker
verify:
Expand Down
2 changes: 2 additions & 0 deletions aletheia/templates/agda/src/@@MOD_CAMEL@@.agda
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
-- Self-contained by design: only Agda.Builtin is imported, so there is no
-- standard-library dependency to fetch. Replace these with your own
-- definitions and theorems.
{-# OPTIONS --safe --without-K --cubical-compatible #-}

module @@MOD_CAMEL@@ where

open import Agda.Builtin.Nat using (Nat; zero; suc; _+_)
Expand Down
2 changes: 2 additions & 0 deletions aletheia/templates/agda/src/Properties.agda
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
-- This module is a *consumer* of the core library: it proves new facts
-- from the exported lemmas, so a regression in the core shows up here as
-- a typecheck failure rather than passing unnoticed.
{-# OPTIONS --safe --without-K --cubical-compatible #-}

module Properties where

open import Agda.Builtin.Nat using (Nat; zero; suc; _+_)
Expand Down
Loading