Skip to content
Open
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
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,31 @@ Type **"auto 👍"** to test whether auto is set up.
* ``cvc5``
* ``zipperposition`` portfolio mode

## Hacking

### Building native `.so` plugins (`:dynlib`)

Lean-auto builds a number of native dynamic libraries (`:dynlib` targets).
During `lake build` you may see errors like:

```
collect2: fatal error: cannot find ‘ld’
compilation terminated.
error: external command 'gcc' exited with code 1
```

This means that the system linker (`ld`) is missing from your environment.

#### Fix on Nix/NixOS

On nixos `nix profile add nixpkgs#gcc nixpkgs#binutils` doesnt work. Use instead

```bash
nix profile add nixpkgs#llvmPackages.bintools
```

After that, `lake build` should succeed.

## Troubleshooting
* ``Monomorphization failed because ...``:
Try adding `set_option auto.mono.ignoreNonQuasiHigherOrder true` before you invoke `auto`
Expand Down Expand Up @@ -109,4 +134,4 @@ Type **"auto 👍"** to test whether auto is set up.
* `ciInstDefEq`: Definitional equality resulting from instance relations between ``ConstInst``s
* `termLikeDefEq`: Definitional equality resulting from definitional equalities between term-like subexpressions
* `❰<term>❱`: User-provided lemma `<term>`
* `queryNative::<func_name>`: Proved by native prover
* `queryNative::<func_name>`: Proved by native prover