User Tools

Site Tools


best_practices

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
best_practices [2011/07/20 13:06]
131.246.161.187 [Parentheses]
best_practices [2012/04/13 15:36] (current)
paddy [Parentheses]
Line 14: Line 14:
 You might also run into problems by implicitly put parentheses (by precedence rules). ​ You might also run into problems by implicitly put parentheses (by precedence rules). ​
  
-As an example, consider quantifiers:​ Is $\forall x. P x \vee Q$ to be read as $\forall x. (P x \vee Q)$ or as $(\forall x. P x) \vee Q$? One might expect the latter ​(which is commonly done in mathematics) ​but Isabelle does the former. ​+As an example, consider quantifiers:​ Is $\forall x. P\; x \vee Q$ to be read as $\forall x. (P\; x \vee Q)$ or as $(\forall x. P\; x) \vee Q$? One might expect the latterbut Isabelle does the former.
  
 If in doubt, check [Isabelle → Settings → Display → Show Brackets] and find out what exactly happens. If in doubt, check [Isabelle → Settings → Display → Show Brackets] and find out what exactly happens.
 ===== Modelling ===== ===== Modelling =====
 ==== Sets and Functions ==== ==== Sets and Functions ====
-Sets and (boolean) functions are equivalent. However, using both worlds in parallel, e.g. using sometimes $P x$ and sometimes $x \in P$ or even $\{x. P x\}$, you might run into issues during proofs as Isabelle has to perform certain steps in order to switch from one point of view to the other. Therefore you better choose wether to express your statements in predicate or in set notation and stick with it.+Sets and (boolean) functions are equivalent. However, using both worlds in parallel, e.g. using sometimes $P\; x$ and sometimes $x \in P$ or even $\{x. P\; x\}$, you might run into issues during proofs as Isabelle has to perform certain steps in order to switch from one point of view to the other. Therefore you better choose wether to express your statements in predicate or in set notation and stick with it.
best_practices.1311159970.txt.gz · Last modified: 2011/07/20 13:06 by 131.246.161.187