Zulip Chat Archive

Stream: metaprogramming / tactics

Topic: alternative normal form for push_neg


Heather Macbeth (Feb 12 2022 at 03:30):

Would it be possible to have some global (within a file, or for all files downstream of a certain file) setting which changes push_neg and contrapose! to use a different logical normal form? In the current implementation ¬ (p ∧ q) gets normalized to p → ¬ q (see here in source) and for teaching I'd love to permanently set it so that this is instead normalized to ¬ p ∨ ¬ q.

I can think of a few different mechanisms -- maybe it could be something you arrange with a flag in set_option? Maybe one could do something with local attribute?

Patrick Massot (Feb 12 2022 at 09:14):

Note that what you ask was the original behavior which was changed in https://github.com/leanprover-community/mathlib/pull/3362

Patrick Massot (Feb 12 2022 at 09:16):

It should be pretty easy to choose this with an option

Heather Macbeth (Sep 21 2022 at 21:34):

I finally got around to implementing this, in #16586.


Last updated: Dec 20 2023 at 11:08 UTC