Repository navigation
Phase 5: sort checking and the argument library - #7
Merged
Merged
Conversation
- Sort checker: every free name gets one type (individual, proposition, predicate over individuals/properties, property) across node formulas, proof lines, objections and definitions; runs before proof checking - Spec section on sorts; tests for inference and each class of clash - library/arguments/: Aquinas's First Way, the kalam cosmological argument (new, with two objections and replies) and the resurrection argument - examples/: modus ponens and a deliberately invalid argument showing the counterexample output - Gallery, playground, tests and README follow the new layout Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019WEmxyo9CRKSbjbEdCuJTG
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #6. Implements Phase 5 of
ROADMAP.md. The first-order proof rules landed in Phase 3, so this phase adds what was still missing.src/core/types.cpp, spec indocs/spec/language.md§6): every free name gets exactly one type (individual, proposition, predicate, or property) across node formulas, proof lines, objections and definitions. Arity clashes, applying an individual variable, multi-place predicates used as terms, identity between properties, and λ over non-individuals are all errors. It runs before proof checking, so the proof rules never see ill-sorted formulas.library/arguments/(feeds the gallery): Aquinas's First Way, the kalam cosmological argument (new, fully proved, with two objections and replies), and the resurrection argument.examples/: modus ponens, plus a deliberately invalid "affirming the consequent" that showscounterexample Rain = false, Wet = true.66 test cases pass; the WASM and Playwright smoke tests pass against the new layout.
Generated by Claude Code