You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second assertion here fails, probably due to SMT encoding for effectful arrows. But it seems like this could be made to work easily, int is not a function (effectul or otherwise).
A proof of concept of the inversion lemma I would like to prove, but I cannot because of this issue.
moduleInversiontypetyp=|TUnit:typ|TInt:typ|TArr:typ->typ->typ|TSum:typ->typ->typletrecelab_typ(t:typ):Type0=matchtwith|TUnit->unit|TInt->int|TArrt1t2->(elab_typt1->Dv(elab_typt2))|TSumt1t2->either(elab_typt1)(elab_typt2)letrecinversion(a:typ)(b:typ):Lemma(requires(elab_typa==elab_typb))(ensures(a==b))=matcha,bwith|TUnit,TUnit->()|TInt,TInt->()|TSumt1t2,TSumt1't2'->beginassume(elab_typt1==elab_typt1');inversiont1t1';assume(elab_typt2==elab_typt2');inversiont2t2'end|TArrxy,TArrx'y'->assume(elab_typx==elab_typx');inversionxx';assume(elab_typy==elab_typy');inversionyy'|_,_->admit()(* other cases are impossible because of the pre-condition*)
The second assertion here fails, probably due to SMT encoding for effectful arrows. But it seems like this could be made to work easily,
int
is not a function (effectul or otherwise).@andricicezar
The text was updated successfully, but these errors were encountered: