Vorrei che Idris dimostrasse che lo testMult : mult 3 3 = 9
è abitato.Idris Nat letterali nei tipi
Purtroppo questo è tipizzata come
mult (fromInteger 3) (fromInteger 3) = fromInteger 9 : Type
posso ovviare a questo modo:
n3 : Nat; n3 = 3
n9 : Nat; n9 = 9
testMult : mult n3 n3 = n9
testMult = Refl
C'è un modo per fare qualcosa che sarebbe simile a mult (3 : Nat) (3 : Nat) = (9 : Nat)
?