lean4 icon indicating copy to clipboard operation
lean4 copied to clipboard

feat: add `inductive.autoPromoteIndices` option

Open arthur-adjedj opened this issue 11 months ago • 2 comments

This PR partly addresses #3458, by adding an option autoPromoteIndices to turn off the promotion of fixed indices to parameters. The actual fix for the issue is in a separate PR #3591.

Because nested inductive datatypes parameters cannot contain local variables, it is often desirable for a fixed index to not be promoted, as to allow free variables in that place. See example in 3458_1.lean

arthur-adjedj avatar Mar 04 '24 11:03 arthur-adjedj

Mathlib CI status (docs):

awaiting-review

arthur-adjedj avatar Mar 06 '24 23:03 arthur-adjedj