Skip to content

test: non-uniform parameter in nested inductive occurrence - #88

Merged
nomeata merged 2 commits into
masterfrom
joachim/nested-nonuniform-param-test
Jul 28, 2026
Merged

nomeata merged 2 commits into
masterfrom
joachim/nested-nonuniform-param-test

Conversation

@nomeata

@nomeata nomeata commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Adds a test for a nested inductive whose nested occurrence supplies a
constant (⟨false⟩) where the datatype's parameter should be, instead of
the parameter itself. The argument is type-correct, so it is not caught by
type-checking the nested application (leanprover/lean4#14577); a correct
checker must additionally verify the parameter actually acts as one.

Raised by @arthur-adjedj on leanprover/lean4#14577; related to
leanprover/lean4#14576.

Co-Authored-By: Claude Fable 5 [email protected]
Claude-Session: https://claude.ai/code/session_01D6eedjfpntSKyEKsNPBxb3

nomeata and others added 2 commits July 28, 2026 09:44
Adds a test for a nested inductive whose nested occurrence supplies a
constant (`⟨false⟩`) where the datatype's parameter should be, instead of
the parameter itself. The argument is type-correct, so it is not caught by
type-checking the nested application (leanprover/lean4#14577); a correct
checker must additionally verify the parameter actually acts as one.

Raised by @arthur-adjedj on leanprover/lean4#14577; related to
leanprover/lean4#14576.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01D6eedjfpntSKyEKsNPBxb3
@nomeata
nomeata enabled auto-merge (squash) July 28, 2026 10:32
@nomeata
nomeata merged commit 0390333 into master Jul 28, 2026
4 checks passed
@nomeata
nomeata deleted the joachim/nested-nonuniform-param-test branch July 28, 2026 10:44
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.

1 participant