Philip Wadler
2018-08-07 11:36:07 UTC
If I write the code
\begin{code}
_â€??_ : â (m n : â) â Dec (m †n)
zero â€?? n = yes zâ€n
suc m �? zero = no λ()
suc m �? suc n with m �? n
... | yes mâ€n = yes (sâ€s mâ€n)
... | no ¬mâ€n = no λ{ (sâ€s mâ€n) â ¬mâ€n mâ€n }
\end{code}
and execute
2 �? 4
then I get the answer
no (λ { (sâ€s mâ€n) â (λ { (sâ€s mâ€n) â (λ ()) 1 mâ€n }) mâ€n })
What is with the extra 1?? How should I file a bug report? Cheers, -- P
. \ Philip Wadler, Professor of Theoretical Computer Science,
. /\ School of Informatics, University of Edinburgh
. / \ and Senior Research Fellow, IOHK
. http://homepages.inf.ed.ac.uk/wadler/
Too brief? Here's why: http://www.emailcharter.org/
\begin{code}
_â€??_ : â (m n : â) â Dec (m †n)
zero â€?? n = yes zâ€n
suc m �? zero = no λ()
suc m �? suc n with m �? n
... | yes mâ€n = yes (sâ€s mâ€n)
... | no ¬mâ€n = no λ{ (sâ€s mâ€n) â ¬mâ€n mâ€n }
\end{code}
and execute
2 �? 4
then I get the answer
no (λ { (sâ€s mâ€n) â (λ { (sâ€s mâ€n) â (λ ()) 1 mâ€n }) mâ€n })
What is with the extra 1?? How should I file a bug report? Cheers, -- P
. \ Philip Wadler, Professor of Theoretical Computer Science,
. /\ School of Informatics, University of Edinburgh
. / \ and Senior Research Fellow, IOHK
. http://homepages.inf.ed.ac.uk/wadler/
Too brief? Here's why: http://www.emailcharter.org/