Derive inhabited and make ext grind-able - #1655
Open
petros-marko wants to merge 1 commit into
Open
Conversation
nilehmann
approved these changes
Jun 11, 2026
Member
Member
Author
Member
Author
Interesting, this works fine locally for me. Could you try it out @nilehmann? |
Member
|
@petros-marko is there anything pining the lean version? |
Member
Author
In |
Member
|
@petros-marko I ran on a fresh clone of
|
Member
Author
|
Ah, I thought that might happen. Adding in grind annotations for the extensionality theorems probably makes each call to grind slightly more expensive. |
Member
|
CI is not calling lean-demo:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Lean via elan
run: |
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh -s -- -y
echo "$HOME/.elan/bin" >> $GITHUB_PATH
- name: Install fixpoint
uses: ./.github/actions/install-fixpoint
env:
GITHUB_TOKEN:
${{ secrets.GITHUB_TOKEN }}
# Older versions hang
- name: Install Z3
uses: cda-tum/setup-z3@v1.6.6
with:
version: 4.15.3
- name: Rust Cache
uses: Swatinem/rust-cache@v2.8.0
- name: Install Flux
run: |
cargo x install
echo ~/.cargo/bin >> $GITHUB_PATH
- name: Clone flux-to-lean-demo
run: |
git clone https://github.com/flux-rs/flux-to-lean-demo
- name: Generate Lean Project
continue-on-error: true
working-directory: flux-to-lean-demo
run: |
cargo flux
- name: Copy proofs
working-directory: flux-to-lean-demo
run: |
cp -r LeanUserProofs/* lean_proofs/LeanProofs/User/
- name: Run lean
working-directory: flux-to-lean-demo
run: |
cd lean_proofs && lake build
- name: Check proofs in flux
run: |
cargo flux |
Member
|
hmmm, although it looks like it's doing the same |
Member
|
According to copilot |
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.

For structures emitted to lean
Inhabited(we already require type params to beInhabited)grind .annotation to the struct extensionality theorem