Zulip Chat Archive
Stream: mathlib4
Topic: noncomputable section breaks section end?
Arien Malec (Feb 01 2023 at 22:18):
I have !4#1995 that breaks on invalid 'end', name mismatch
; if I comment out noncomputable section
, I get a matched begin/end pair (but I have to manually mark everything noncomputable
Arien Malec (Feb 01 2023 at 22:19):
section Foo
noncomputable section
end Foo
Reid Barton (Feb 01 2023 at 22:19):
noncomputable
is a modifier for a section
Reid Barton (Feb 01 2023 at 22:19):
i.e. it should be noncomputable section Foo / end Foo
Arien Malec (Feb 01 2023 at 22:20):
Yeah, that was the fix...
Arien Malec (Feb 01 2023 at 22:21):
I guess mathport renames noncomputable theory
to noncomputable section
Arien Malec (Feb 01 2023 at 22:25):
So
section foo
noncomputable theory
-- blah
end foo
gets translated to
section Foo
noncomputable section
-- blah
end Foo
which breaks.
Gabriel Ebner (Feb 02 2023 at 02:06):
I think we all expected that noncomputable theory only comes once at the beginning of the file.
Last updated: Dec 20 2023 at 11:08 UTC