Skip to content

Conversation

@lenianiva
Copy link
Contributor

@lenianiva lenianiva commented Aug 6, 2025

This fixes #49 and removes old notations like List.get!.

The most important change is that the old code in LSpec.SlimCheck rely on constructions such as (n : Nat) -> Fin n.succ, which in turn relies on Fin.ofNat. However the semantics of Fin.ofNat has changed, to forall (n : Nat) [NeZero n] (a : Nat), Fin n, so I changed the relevant code in Sampleable.lean to this as well.

The upstream Nix flake in argumentcomputer/lean4-nix doesn't have a v4.21.0 manifest. lenianiva/lean4-nix has one though.

arthurpaulino
arthurpaulino previously approved these changes Aug 6, 2025
Copy link
Member

@arthurpaulino arthurpaulino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!!

@arthurpaulino
Copy link
Member

@samuelburnham the Nix-related CI job is failing. How do you think we should proceed?

@lenianiva
Copy link
Contributor Author

@samuelburnham the Nix-related CI job is failing. How do you think we should proceed?

If I change lean4-nix dependency to lenianiva/lean4-nix it will succeed.

Comment on lines -32 to -36
- uses: cachix/cachix-action@v14
with:
name: argumentcomputer
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: nix build
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that I enabled the Garnix app for this repo so we can try out caching the LSpec package there instead of Cachix

@samuelburnham samuelburnham enabled auto-merge (squash) August 8, 2025 20:36
@samuelburnham samuelburnham merged commit db76512 into argumentcomputer:main Aug 8, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lean 4.15.0 deprecated Fin.ofNat

3 participants