[First order logic] Well formed formula or term

Hello, I have trouble understanding why number 7 isnt a well formed formula. The one place predicate has another predicate inside it which has a constant and a constrained variable inside it. How is that not a well formed formula?

Thanks in advance!

Edit: forgot the image https://imgur.com/a/CYWRq0v

๐Ÿ‘︎ 6
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/HLokys
๐Ÿ“…︎ Nov 08 2019
๐Ÿšจ︎ report
Quantificational Logic problem of translating English sentence into a well-formed formula. Wondering if my answer is correct, even though it is different from the one in the solutions manual.

Translate "Everyone has a roommate who dislikes everyone."

Answer from the solution manual:

โˆ€xโˆƒy(R(x,y) โˆง โˆ€zยฌL(y,z))

where R(x,y) = x has a roommate y and L(y,x) = y likes x.

My answer:

โˆ€xโˆƒy(R(x,y) โˆง ยฌL(y,x)).

The only difference with mine is that I did not add the additional universal quantifier and bound variable โˆ€z. Do I need to add that? I thought that the first quantifier โˆ€x that is outside the parentheses should indicate that the "x" in "L(y,x)" is referring to everyone.

๐Ÿ‘︎ 4
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/PuppyLand95
๐Ÿ“…︎ Dec 24 2019
๐Ÿšจ︎ report
In predicate logic, can variables in a well formed formula every appear without a predicate?

I was wondering whether or not a variable in a sentence of predicate logic needs to be attached to a predicate. My motivation for this is that I am trying to understand how to say something such as "I exist" or "I think therefore I am" in predicate logic. Since we have a quantifier for existence, it seems redundant or incorrect to try to have another predicate for existence. I am struggling to see how I would write something like "I think therefore I am" in PL. My initial attempt would be something like: โˆƒx(Tx -> x), but this appears to be incorrect to me. If I try to then express the earlier sentence "I am" in PL, it would then look something like: โˆƒxx; this, however, does not appear to me to be well formed. So I am not sure exactly how I am supposed to talk simply about something existing without ascribing a predicate.

๐Ÿ‘︎ 2
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/cheeseisakindof
๐Ÿ“…︎ Dec 11 2019
๐Ÿšจ︎ report
Questions About Well Formed Formulas and Notation

If the stuff below doesn't make sense I also have it typed up here: http://mathb.in/27147

Well Formed Formula Questions:

Formula 1: An example of a formula that mixes propositions and predicates.

$\forall x (A \Rightarrow Bx)$ or something like $(A \Rightarrow Ba)$

I've seen formulas like this before, I was curious to know if mixing of propositions and predicates like this is normal or common? I know in at least one book that I've read this is acceptable but in other books it seems kind of vague.

Formula 2: A formula with a quantifier variable unrelated to the predicates variable.

$\forall x Ba$

I feel like there are several options for handling and interpreting a formula like this in plain english, in evaluating it as true or false, and in handling it in a derivation system. I was curious to know the most sensible and common ways to deal with it. It seems like quantifier rules would probably work fine if a formula like this is allowed.

Formula 3: A quantifier attached to a proposition rather than a predicate.

$\forall x B$

Formula 1 made me curious about this variation. I basically have the same questions for formula 2 as I do for this case, but I also wanted to know is B a predicate or a proposition here? How am I supposed to know the difference? It seems to me grammatically like a predicate is always a proposition but a proposition is not always a predicate.

How do things differ when you swap the universal quantifiers above for existential quantifiers (if it matters)?

Where can I read more about this stuff? Is this just linguistic/grammar issues?

Notation questions:

I've gotten some flak in the past for using the universal quantifier like $(x)Px$ and $(\forall x) Px$ instead of $\forall x Px$ as well as with the conditional using $A \supset B$ instead of $A \Rightarrow B$. I recognize that probably the more important issue is to be consistent with whichever notation I use but I wanted to get some clarification on what I should prefer or how to know which one I should pick?

Some Background Info:

The reason these questions came up for me is because I wrote a lisp program to spit out some first order practice arguments. The program works but I spent a good deal of time trying to decide if I should allow these cases as valid output.

๐Ÿ‘︎ 3
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/mysleepyself
๐Ÿ“…︎ Aug 12 2018
๐Ÿšจ︎ report
If a statement is considered 'valid', would it mean that it is a well-formed formula in the language of logic, or that it is just simply true?

This seems like an important semantic distinction to make.

๐Ÿ‘︎ 4
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/Cintique
๐Ÿ“…︎ Sep 14 2017
๐Ÿšจ︎ report
Can you explain like I'm five about what a well formed formula is in logic?

I have been reading up recently on predicate logic and the concept of a "well-formed formula". I honestly have no idea how to wrap my head around it. As far as I know, a sentence is considered a well-formed formula right? Can someone well-versed in logic explain to me like I'm 5 about this concept if possible?

๐Ÿ‘︎ 4
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/ketchupkid
๐Ÿ“…︎ Jul 02 2017
๐Ÿšจ︎ report
Why the discrimination between "formulas" and "well-formed formulas"?

Why do we need the small supplementary "well-formed" when we say "formula" to indicate that the symbols are correctly arranged? When we say "sentence" regularly, we say just that (and assume no syntactical errors), so why do we not do that in PL?

๐Ÿ‘︎ 4
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/LastingFasting
๐Ÿ“…︎ Oct 16 2015
๐Ÿšจ︎ report
When Jung formed the theory it was meant as a pathology, not typology! There were no necessarily "types" like internet forums make them to be, since people could be well balanced. Typing a normal person is like diagnosing a healthy patient...
๐Ÿ‘︎ 10
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/throwbacktous1
๐Ÿ“…︎ Sep 29 2021
๐Ÿšจ︎ report
Predict the chemical formula for the ionic compound formed by Cuยฒโบ and Pยณโป

No idea what I'm doing

๐Ÿ‘︎ 3
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/idkwhat-im-doing101
๐Ÿ“…︎ Sep 26 2020
๐Ÿšจ︎ report
How do I Insert a new row with my formula copied as well

Hi I am a fairly new user. I have set up an income/expense spreadsheet on Google Sheets that tracks my fixed month to month expenses, daily expenses and future bank balances needed on upcoming dates to pay upcoming monthly bills. I am looking for help in 2 areas. First how do I insert a new row for daily expenses that also pastes the formula, and is there a way to populate a certain cell with the expense using a drop down menu.

๐Ÿ‘︎ 3
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/Leafman1967
๐Ÿ“…︎ Dec 14 2021
๐Ÿšจ︎ report
Am I doing this correctly? The question is: Predict the chemical formula for the ionic compound formed by Feยณโบ and Oยฒโป.

EDIT: thanks everyone for the helpful replies!

Not sure if this is the right steps to get to the answer.

Steps:

  1. O has 8 electrons, but loses 2 of them
  2. To balance out with Fe, Fe also needs 6 electrons.
  3. Chemical formula is Fe2O3

Would I also use the same steps for this question? Predict the chemical formula for the ionic compound formed by Caยฒโบ and ClOโ‚ƒโป

๐Ÿ‘︎ 11
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/MacNeewbie
๐Ÿ“…︎ Oct 03 2019
๐Ÿšจ︎ report
Obviously Epic won't tell us, but is there a formula for how the circle is formed?

Does it measure player activity in a certain place and center it around that area, or make sure it isn't centered around players that aren't moving so it won't favor them? I'm just curious.

๐Ÿ‘︎ 62
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/OwenOnReddit
๐Ÿ“…︎ Dec 05 2017
๐Ÿšจ︎ report
I have altered the D&D 5e character sheet by /u/Akaradrin to be wholly fillable form with formulas, as well as other changes, let me know what you think! dropbox.com/s/l2403ou0vbnโ€ฆ
๐Ÿ‘︎ 75
๐Ÿ’ฌ︎
๐Ÿ“…︎ Nov 17 2014
๐Ÿšจ︎ report
M/29/5'8" [305 > 185 = 120lb] (3 Years) - Hey, Im Charlie Jabaley, I gained weight / Starved Myself Down 100lbs ... Formed A Binge Eating Disorder ... Started Running Marathons... Gained 30 lbs during Marathon training and gained 20 lbs after going vegan. Finally Found My Formula! Life is Good Now
๐Ÿ‘︎ 441
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/ceocharlie
๐Ÿ“…︎ Dec 31 2017
๐Ÿšจ︎ report
8 non-english songs in the final. 5 came top 10. top 3 is %100 native, winner as well. โ€swedish formulaโ€ songs ended up in the bottom 10.

i think europe is seeking authenticity. edit: i really don't think any language sounds ugly! i'm turkish, it's a phonetic mess but i love turkish songs as much as serbian or german.

๐Ÿ‘︎ 236
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/nomorestress
๐Ÿ“…︎ May 26 2021
๐Ÿšจ︎ report
Is there any decent comparisons of how well Formula E cars are lapping in comparison to other forms of motorsport?
๐Ÿ‘︎ 9
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/carn1x
๐Ÿ“…︎ Nov 07 2015
๐Ÿšจ︎ report
[Charania] Sources: NBA G League players have formed their own union with assistance from the NBPA. Approximately 80 percent of G League players signed union authorizations, well above the 50+ percent necessary for voluntary recognition. twitter.com/ShamsCharaniaโ€ฆ
๐Ÿ‘︎ 2k
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/mkgandkembafan
๐Ÿ“…︎ Jul 21 2020
๐Ÿšจ︎ report
Well formed loaf
๐Ÿ‘︎ 2k
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/jdyoung2421
๐Ÿ“…︎ Nov 29 2020
๐Ÿšจ︎ report
Ceramic Tile Mildew-Proof Tape PRECISE | CONVENIENT DESIGN. Ceramic Tile Mildew-Proof Gap Tape can be installed on most well-formed substrates if the walls are clean, smooth, dry, and free of dust, soap, grease, and acceptable drywall, clean and smooth tiles. Use it anywhere with its waterproof self zamtey.com/products/ceramโ€ฆ
๐Ÿ‘︎ 2
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/Ralfop
๐Ÿ“…︎ Jul 11 2021
๐Ÿšจ︎ report
Tired of the lousy Dems and also lousy GOP? Well no problem! I have formed a new political party, the Penis in Vagina party! AMA about my new party.
๐Ÿ‘︎ 32
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/clankbitch
๐Ÿ“…︎ Jan 21 2021
๐Ÿšจ︎ report
E is a carboxylic acid with the formula C4H8O2 and I was wondering how I could write the equation with aqueous sodium carbonate. We learned that a carboxylic acid and a carbonate compound form a salt + water + carbon dioxide. But I don't know how the salt is formed (if it has less carbon or hydrogen
๐Ÿ‘︎ 2
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/SuperDavination
๐Ÿ“…︎ Sep 05 2019
๐Ÿšจ︎ report
A "well-connected" Chicago family attempted to block off public park land in front of their home to use as a private front yard. The city tore up the hedges and residents formed a drum circle on the land. v.redd.it/0bpz7sq9kl851
๐Ÿ‘︎ 704
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/anzl
๐Ÿ“…︎ Jul 03 2020
๐Ÿšจ︎ report
Netflix and Nickelodeon have formed a multi-year deal to produce original animated feature films and television series, based both on the Nickelodeon library of characters as well as all-new IP twitter.com/seewhatsnext/โ€ฆ
๐Ÿ‘︎ 3k
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/shabuluba
๐Ÿ“…︎ Nov 13 2019
๐Ÿšจ︎ report
My well formed senior loaf (Harvey, almost 19 years old)
๐Ÿ‘︎ 2k
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/Vesper_92
๐Ÿ“…︎ Jul 16 2020
๐Ÿšจ︎ report
my Hoya Burtoniae has formed a sport variegated vine and is now throwing a penducle out! at this rate it might as well bloom unicorns lol! reddit.com/gallery/km1vsk
๐Ÿ‘︎ 155
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/ofmiceormen
๐Ÿ“…︎ Dec 28 2020
๐Ÿšจ︎ report
String is not well-formed utf-16

Hi,

In my app I'm trying to retrieving json data from an API and displaying it as Text widgets. And I just found out some texts cannot be displayed such as the one I'm coming across like this one: รฎโ—sellโ™ฅpotato ๐Ÿ™ผโซทโซธโฉŽ

Then the exception String is not well-formed utf-16 is throwed.

Is there anyway that I can ensure the decoded string from api is well-formed utf-16(removing/replacing those special emoji characters is fine) or is there anyway that I can turn it into well-formed utf-16?

Edit:

My code flow starts as getting json data from api:

dynamic res;
  try {
    var response = await http.get(Uri.parse(url));
    response.statusCode == HttpStatus.ok
        ? res = fromjson(response.body)
        : print('something wrong');
  } catch (exception) {}
  return res;

for json parsing, I used this website, and in my real code, it looks like this

So I used json.decode to to decode the json data, and the data is a list of maps(of type <Record>).

And the json url is here, where the error string is the map at index 54 of which the playerName key.

And it is that key value I'm trying to put inside a Text Widget, which causes the exception

๐Ÿ‘︎ 2
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/Exusiai735
๐Ÿ“…︎ Apr 27 2021
๐Ÿšจ︎ report
Vortex of air formed by a Formula 1 car gfycat.com/EverlastingForโ€ฆ
๐Ÿ‘︎ 105
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/BottasWMR
๐Ÿ“…︎ Apr 30 2016
๐Ÿšจ︎ report
Overall Equation For Diprotic Acid Reaction (Easiest Way) + 3 Hints on how to figure out the formula of any salt formed from Acid base reactions ๐Ÿ˜๐Ÿ˜ m.youtube.com/watch?v=86Yโ€ฆ
๐Ÿ‘︎ 3
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/PassAlevelsForFree
๐Ÿ“…︎ Oct 07 2018
๐Ÿšจ︎ report
A very well formed loaf reddit.com/gallery/kasvch
๐Ÿ‘︎ 414
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/lenathealien
๐Ÿ“…︎ Dec 11 2020
๐Ÿšจ︎ report
Is the latent heat of fusion of water altered with different crystalline structures of ice? (Ice formed under very high pressure vs STP) If so, is there a formula?

The thought is, because ice formed under high pressure cannot optimize for hydrogen bonds (why it normally expands when frozen), that it would require less energy to undergo the phase transition

๐Ÿ‘︎ 3
๐Ÿ’ฌ︎
๐Ÿ‘ค︎ u/Viriality
๐Ÿ“…︎ Jul 24 2018
๐Ÿšจ︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.