Aug. 8th, 2016

http://www.haskellforall.com/2013/02/you-could-have-invented-comonads.html
Challenge Exercise: Prove that our original implementation of up' does not play nice with extend. In other words, find a counter-example that proves the following equation false:
extend (\t' -> p (up' t')) t = extend p (up' t)

What does he mean?

1. There is no need to look for counter-example, since it is false for any t, if we were to compare literally.

2. His previous statements about up' vs extend up were based on behavioural equality of the two, so motivating these challenges to find out which one was "correct". The behaviour of both sides is identical for all t. No? I tried even some cleverly placed undefined.

Profile

sassa_nf

February 2026

S M T W T F S
1234567
891011121314
15161718192021
222324252627 28

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 22nd, 2026 08:21 pm
Powered by Dreamwidth Studios