1 / 7

Semantics of FO Formulas

Semantics of FO Formulas. Semantics. Given a vocabulary R 1 , …, R k A model is D = (D, R 1 D , …, R k D ) D = a set, called domain, or universe R i D  D  D  ...  D, (ar(R i ) times) i = 1,...,k. Semantics. Given: A model D = (D, R 1 D , ..., R k D ) A formula 

huey
Download Presentation

Semantics of FO Formulas

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Semantics of FO Formulas

  2. Semantics • Given a vocabulary R1, …, Rk • A model is D = (D, R1D, …, RkD) • D = a set, called domain, or universe • RiD D  D  ...  D, (ar(Ri) times) i = 1,...,k

  3. Semantics • Given: • A model D = (D, R1D, ..., RkD) • A formula  • A substitution s : {x1, x2, ...}  D • We define next the relation:meaning “D satisfies with s” D |= [s]

  4. Semantics If (s(t1), ..., s(tn))  RD D |= (R(t1, ..., tn)) [s] D |= (t= t’) [s] If s(t) = s(t’)

  5. Semantics D |= (  ’) [s] If D |= ()[s] and D |= (’) [s] D |= (  ’) [s] If D |= ()[s] or D |= (’) [s] D |= (’) [s] If not D |= ()[s]

  6. First Order Logic: Semantics If for all s’ s.t. s(y) = s’(y) for all variables y other than x, D |= ()[s’] D |= (x.) [s] D |= (x.) [s] If for some s’ s.t. s(y) = s’(y) for all variables y other than x, D |= ()[s’]

  7. FO and Databases • FO:a sentence  is true in D if D |=  • Databases:a formula  with free variables x1, ..., xn defines the query:(D) = {(s(x1), ..., s(xn)) | D |= [s]}

More Related