sideconditions: also traverse function clauses#204
Conversation
|
Maybe not the right approach, this affects the pose output, that’s probably not desirable. |
|
These As far as I can tell these are used only by the interpreter, so maybe they can be ignored for the purpose of mechanization? So maybe we need a tree shaking pass so that we can focus on the declarations relevant for the mechanization? |
|
Well, or inv functions add proof obligations for mechanisations, to show that they actually are inverses. ;) |
|
Sure, but one step at a time. I could also wait for Diego’s def-to-rel pass, which (if run before sidecondition introduction) would also solve present problem. |
The
totalizepass can causeTheEexpressions appear in the RHS of functions:Such
TheEcontaining branches should not be taken if the the value isnone, so we should add that as a side-condition in that pass. So this is is the new side-condition added here:(There are cleaner translations possible here, but at least that makes it correct)