build: remove lean4checker#49
Draft
stephen-huan wants to merge 2 commits into
Draft
Conversation
lean4checker is deprecated and can be replaced with Lean.Replay from the Lean repository since Lean v4.28.0.
Author
|
Small nit, but if you actually run the instructions then you'll create a |
Author
|
Hmm, it seems to break pattern matching. If I have the following def is_even : Nat -> Bool
| 0 => true
| 1 => false
| n + 2 => is_even n
termination_by structural n => n
theorem test {n : Nat} (h : ∃ k, n = 2 * k) : is_even n = true :=
sorrydef is_even : Nat -> Bool
| 0 => true
| 1 => false
| n + 2 => is_even n
termination_by structural n => n
theorem test {n : Nat} (h : ∃ k, n = 2 * k) : is_even n = true := by
fun_induction is_even with
| case1 => decide
| case2 => omega
| case3 n ih => match h with
| ⟨k, _⟩ => exact ih ⟨k - 1, by omega⟩Then I get the following error. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lean4checker is deprecated and can be replaced with
Lean.Replayfrom the Lean repository.Passes
lean --run runtests.leanwith actual landrun on Linux. Tested onLean (version 4.29.1, commit v4.29.1, Release)from NixOS. The elan toolchain gives me the following error which I haven't tracked down yet.(almost surely a nixos issue, e.g. I get
[landrun:error] 2026/06/04 03:16:18 Failed to detect library dependencies: fork/exec /nix/store/pf30k3mg7n6bibc1k6609gyq7glk00k2-glibc-2.42-61-bin/bin/ldd: no such file or directorywith no/bin/sh. These changes should not depend on the toolchain as long as it's past 4.28.0)