Deducteam / lambdapi

Proof assistant based on the λΠ-calculus modulo rewriting
Other
269 stars 35 forks source link

Error when my inductive type have more than one parameter #989

Closed NotBad4U closed 1 year ago

NotBad4U commented 1 year ago

Hi! When I try to add a second parameter to the inductive type 𝕃, I get the error:

Cannot solve $130 β–‘ ≑ $130 β–‘

Here is a snippet of code to reproduce the problem:

symbol Prop : TYPE;
injective symbol Prf : Prop β†’ TYPE;
builtin "Prop" ≔ Prop;
builtin "P" ≔ Prf;

symbol Set : TYPE; 
injective symbol Ο„ : Set β†’ TYPE;

(a:Set) (b:Set) inductive 𝕃:TYPE ≔
| β–‘  : 𝕃 a b
| βΈ¬   : Ο„ a β†’ Ο„ b β†’ 𝕃 a b β†’ 𝕃 a b;

Thank you in advance!

amelieled commented 1 year ago

The following is the translation from the second type-checker (me): Ο„ b is not typable because b has type Prop and Ο„ has type Set β†’ TYPE.

NotBad4U commented 1 year ago

Sorry @amelieled I forgot to update the code in the issue (I just updated), there is an error even if b is a Set. @fblanqui is investigating the error.

NotBad4U commented 1 year ago

@fblanqui, any news about this bug? Maybe I can have a look if you give me some points to look at?

fblanqui commented 1 year ago

Sorry no. I am currently in Japan until June 11. I will try to look at that next week or when I am back.