Zulip Chat Archive
Stream: mathlib4
Topic: style guide
Heather Macbeth (Nov 15 2022 at 19:35):
When you have a lot of hypotheses, do extra lines of hypotheses get indented 2 or 4 spaces? That is, is the whitespace convention
lemma bop_of_baz (hyp : Hyp) (more_hyp : MoreHyp)
(yet_more_hyp : YetMoreHyp) :
17 = 43 := by
proof_line_1
proof_line_2
or
lemma bop_of_baz (hyp : Hyp) (more_hyp : MoreHyp)
(yet_more_hyp : YetMoreHyp) :
17 = 43 := by
proof_line_1
proof_line_2
Gabriel Ebner (Nov 15 2022 at 19:39):
The second one is what I prefer, and what the pretty-printer (and by extension mathport) produces.
Last updated: Dec 20 2023 at 11:08 UTC