JetBrains / JetBrains/Arend

Conditions referring to the current constructor?

Open
#288 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
756
Forks
31
PR merge metrics
No merged PRs in 30d

Description

![image](https://user-images.githubusercontent.com/16398479/108399998-b63a6900-7255-11eb-9c59-dbbdfffeedb7.png)

This one won't cause termination issue I guess.

```arend
\data IntAlt
| \infix 5 [-] (a b : Nat) \with {
suc a, suc b => a [-] b
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the provided Arend snippet and inspect the compiler's handling of conditions that refer to the current constructor. Determine whether the termination checker should reject or accept this case, then add or update a focused regression test covering the observed behavior.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.