Zulip Chat Archive

Stream: lean4

Topic: unfolding do notation


Bolton Bailey (Jan 02 2024 at 08:07):

From #fpil

do let x  E1
   Stmt
   ...
   En

translates to

E1 >>= fun x =>
do Stmt
   ...
   En

Is there a way to unfold this in the infoview so that I can see what I'm proving?

Mario Carneiro (Jan 02 2024 at 08:09):

The pretty printer doesn't do that much in terms of re-folding do notation, it is just a sequence of bind applications

Mario Carneiro (Jan 02 2024 at 08:11):

if you set pp.notation false it will disable this but it will also disable a lot of other things so maybe it won't improve the situation

Bolton Bailey (Jan 02 2024 at 08:11):

Ok, thanks for the suggestion


Last updated: May 02 2025 at 03:31 UTC