MHB Solving Your Problem: Troubleshooting Mistakes in Code

AI Thread Summary
The discussion centers on the correct interpretation of quantifiers in logical statements, specifically regarding the scope of quantifiers in mathematical expressions. A key point raised is the convention that the scope of a quantifier is often considered maximal, meaning it extends as far to the right as possible. For example, the expression "for all y, if y is an Animal, then x loves y" is interpreted as "for all y, (Animal(y) implies Loves(x, y))" rather than "if for all y, Animal(y), then Loves(x, y)." This maximal scope interpretation is not universally accepted, as some textbooks advocate for a minimal scope approach. The discussion emphasizes the importance of understanding these conventions to avoid misinterpretation in logical reasoning.
shivajikobardan
Messages
637
Reaction score
54
https://lh6.googleusercontent.com/gIpHfdMTJMBg2-cMkBWqVQYyAUKTwBCzc30JXJ054wfj06IBGeeXFdHd1-VO0J6EFrssOlAe3ntqJaVHSakLZAK8x4BI6pRL5Lb0JWUdDEuaxAm4NPAiUMvtOSLqjrOkH8r0VOv7

https://lh3.googleusercontent.com/HharKN7rVu5NqPPR9lnd4nHr1fASlCPYNvc7zkLqrhrXMRJQVI_fgsL2Vu-Zgls2ycL8QUgF6IRNIAENcyw9E5KslY-UvkOma_dT__Mcozf_dQ66aLWPvxX58qhEq37H96KUUg6F

https://lh4.googleusercontent.com/_zbkQuNFRy7N3B_u0Oz1ESBh19xov4y98iWyeWuy6-m9He33SWC3BGEnYSDjii8r-_1zmiUKeakvLZSq1dBjQ4JZugG6Z6_TLd4u0_WjGUXh8KUZm1xY2LNVd8GHrRQ8ZJh7mjQV

As you can see I am not getting correct result. What have I messed up? I want to learn it.

https://slideplayer.com/slide/4942120/
Here is full slide in case anyone wants to refer to it.
 
Technology news on Phys.org
The slides use the convention that the scope of a quantifier is maximal, i.e., it extends as far to the right as possible. In particular, $\forall y\,\text{Animal}(y)\Rightarrow \text{Loves}(x, y)$ means $\forall y\,(\text{Animal}(y)\Rightarrow \text{Loves}(x, y))$ and not $(\forall y\,\text{Animal}(y))\Rightarrow \text{Loves}(x, y)$, as you wrote in the first photo. This convention is not universal, however. Quite a few textbooks view the scope of a quantifier as being as small as possible.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top