Skip to content

Add support for checking inductive types and constructors#7

Closed
GasStationManager wants to merge 1 commit intomainfrom
claude/add-error-exit-code-SE59N
Closed

Add support for checking inductive types and constructors#7
GasStationManager wants to merge 1 commit intomainfrom
claude/add-error-exit-code-SE59N

Conversation

@GasStationManager
Copy link
Owner

  • Add equivCtor to check constructor equivalence (name, type, levelParams, induct, cidx, numParams, numFields, isUnsafe)
  • Add equivInduct to check inductive type equivalence, including checking each constructor via equivCtor using lookup functions
  • Update processFileDeclarations to include "inductive" and "constructor"
  • Add CheckFailure.inductCheck and CheckFailure.ctorCheck cases
  • Update checkTargets to handle inductives and constructors

- Add equivCtor to check constructor equivalence (name, type, levelParams,
  induct, cidx, numParams, numFields, isUnsafe)
- Add equivInduct to check inductive type equivalence, including checking
  each constructor via equivCtor using lookup functions
- Update processFileDeclarations to include "inductive" and "constructor"
- Add CheckFailure.inductCheck and CheckFailure.ctorCheck cases
- Update checkTargets to handle inductives and constructors
GasStationManager pushed a commit that referenced this pull request Mar 6, 2026
…om PR #7)

- Add equivCtor to check constructor equivalence
- Add equivInduct to check inductive type equivalence with constructor lookup
- Add CheckFailure.inductCheck and CheckFailure.ctorCheck cases
- Update processFileDeclarations to include inductive and constructor
- Update checkTargets to handle inductives (with full hashmap lookup for constructors)
- Constructor check added to Info.toFailureMode for simple cases

Rebased onto current main (post file-split refactor).
@GasStationManager
Copy link
Owner Author

Superseded by #18, which rebases this work onto the current main (post file-split refactor) and adds import superset security checks. Merged.

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.

2 participants