Skip to content

Stronger invariants in recursive tree computation in Indtypes#21593

Open
ppedrot wants to merge 4 commits intorocq-prover:masterfrom
ppedrot:recarg-indtypes-invariants
Open

Stronger invariants in recursive tree computation in Indtypes#21593
ppedrot wants to merge 4 commits intorocq-prover:masterfrom
ppedrot:recarg-indtypes-invariants

Conversation

@ppedrot
Copy link
Member

@ppedrot ppedrot commented Feb 5, 2026

We use a mix of dedicated ADTs and assertions to make explicit some hidden invariants in the computation of inductive positivity and recursive tree representation.

We know statically that the rel context and the rtree context are
synchronized. In particular they must have the same size.
The only reason we care about the value of the recarg_type is to check
whether we are looking at the inductive being defined or some other
nesting inductive type. We replace this by a proper ADT.
@ppedrot ppedrot added this to the 9.3+rc1 milestone Feb 5, 2026
@ppedrot ppedrot requested a review from a team as a code owner February 5, 2026 16:20
@ppedrot ppedrot added kind: cleanup Code removal, deprecation, refactorings, etc. request: full CI Use this label when you want your next push to trigger a full CI. labels Feb 5, 2026
@coqbot-app coqbot-app bot removed the request: full CI Use this label when you want your next push to trigger a full CI. label Feb 5, 2026
@yannl35133 yannl35133 self-assigned this Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind: cleanup Code removal, deprecation, refactorings, etc.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants