Skip to content

Document first-order syntax support - #1354

Merged
dmeoli merged 2 commits into
aimacode:masterfrom
dajiaohuang:c1-881-fol-syntax-guide
Nov 20, 2026
Merged

dmeoli merged 2 commits into
aimacode:masterfrom
dajiaohuang:c1-881-fol-syntax-guide

Conversation

@dajiaohuang

Copy link
Copy Markdown
Contributor

Closes #1349.

Summary

  • Explain that expr() builds the repository's Expr representation and is not a parser for the full first-order grammar.
  • Clarify the shared call representation for relation-like atoms and function-like terms, Python structural equality versus logical equality, and the definite-clause/implicit-universal scope of FolKB.
  • Add synthetic examples showing expression trees and a query substitution.

Validation

  • Parsed the notebook JSON and executed the two added synthetic cells against the checked-out aima.logic; outputs matched the notebook.
  • git diff --check passed.
  • Did not run the full notebook or test suite; CI was not queried.

Only notebooks/logic.ipynb was changed. The notebook's generated .py mirror was left untouched. The examples are original and do not reproduce textbook passages.

@dmeoli

dmeoli commented Nov 20, 2026

Copy link
Copy Markdown
Member

thanks, everything the section says is right
the connectives and the handling of ==> are already explained at the top of the notebook, so I rewrote it as a table from the grammar of Figure 8.3 to expr, which is what #1349 asks

@dmeoli
dmeoli merged commit cd63fa9 into aimacode:master Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Clarify Figure 8.3 first-order logic syntax

2 participants