Skip to content

Add test for Inhabited at Prop/SProp (#63) - #64

Open
JasonGross wants to merge 1 commit into
rocq-community:masterfrom
theorem-labs:test-inhabited-sprop
Open

Add test for Inhabited at Prop/SProp (#63)#64
JasonGross wants to merge 1 commit into
rocq-community:masterfrom
theorem-labs:test-inhabited-sprop

Conversation

@JasonGross

Copy link
Copy Markdown
Member

Summary

  • Adds a regression test for Lean's Inhabited cannot be faithfully imported when instantiated at Prop (mapped to SProp) #63: Lean's Inhabited' instantiated at Prop (mapped to SProp) must still support projection and dependent elimination.
  • Includes .lean source, lean4export dump, and .v test that exercises Check test, Check test_eta, match-based projection, and propositional eta via destruct.
  • The test is expected to fail until the Rocq kernel supports dependent elimination without eta for primitive records with irrelevant fields.

Test plan

🤖 Generated with Claude Code

Exercise projection and dependent elimination on a single-constructor
record whose field becomes irrelevant at SProp. Currently expected to
fail until the Rocq kernel supports dependent elimination without eta.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JasonGross
JasonGross force-pushed the test-inhabited-sprop branch from 64ff97d to a1f1c3a Compare April 22, 2026 20:26
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