Skip to content

Commit

Permalink
Inf: remove builtins (#10)
Browse files Browse the repository at this point in the history
- add .github/dependabot.yml
- .github/workflows/main.yml: update github action versions
- U/Inf: remove the use of builtins 0 and +1
  • Loading branch information
fblanqui authored Jan 25, 2025
1 parent 1f705d4 commit 74a7bcd
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2

updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
on:
pull_request:
types: [opened, synchronize, edited, reopened]
types: [opened, synchronize, reopened]
push:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
lambdapi-version: [lambdapi, lambdapi.2.5.0, lambdapi.2.4.1, lambdapi.2.4.0, lambdapi.2.3.1, lambdapi.2.3.0, lambdapi.2.2.1, lambdapi.2.2.0, lambdapi.2.1.0, lambdapi.2.0.0]
lambdapi-version: [lambdapi, lambdapi.2.5.1, lambdapi.2.5.0, lambdapi.2.4.1, lambdapi.2.4.0, lambdapi.2.3.1, lambdapi.2.3.0, lambdapi.2.2.1, lambdapi.2.2.0, lambdapi.2.1.0, lambdapi.2.0.0]
runs-on: ubuntu-latest
steps:
- name: Check out library
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Install ocaml and opam
uses: ocaml/setup-ocaml@v2
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 4.14.0
ocaml-compiler: 4.14.2
# lambdapi.2.3.0 dependencies require ocaml < 5.0.0
- name: Install required libraries
run: sudo apt-get install -y libev-dev
- name: Setup opam for testing the development version
Expand Down
8 changes: 4 additions & 4 deletions U/Inf.lp
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
require open Logic.U.Set Logic.U.Prop;

constant symbol zero : El ι; builtin "0" ≔ zero;
constant symbol zero : El ι;

constant symbol succ : El ι → El ι; builtin "+1" ≔ succ;
constant symbol succ : El ι → El ι;

symbol pred : El ι → El ι;

rule pred 00
rule pred zerozero
with pred (succ $x) ↪ $x;

symbol positive : El ι → Prop;

rule positive 0 ↪ ⊥
rule positive zero ↪ ⊥
with positive (succ _) ↪ ⊤;

0 comments on commit 74a7bcd

Please sign in to comment.