WFFs
Well-formed formulas, abbreviated WFFs, are the strings that constitute the syntactically valid formulas of a formal language in logic. They are built from a given vocabulary, which may include propositional variables or predicate symbols, along with logical connectives and, in the case of first-order logic, quantifiers. The formation rules specify how to combine symbols into larger formulas, and only strings that follow these rules count as WFFs.
In propositional logic, WFFs are formed from atomic propositions such as p, q, r. If φ and ψ
In first-order logic, WFFs incorporate predicates and terms. An atomic WFF is something like P(a) or R(x,
WFFs are central to formal logic, underpinning syntax, semantics, proofs, and automated reasoning. They enable precise