Repository navigation
Phase 3: logic checking (truth tables and natural deduction) - #5
Merged
Merged
Conversation
- docs/spec/proofs.md: justification forms, proof structure, rule catalogue (propositional, derived, quantifier, identity, S5 modal, definitions) - Logic core: alpha-equivalence, capture-avoiding substitution with beta-reduction for property variables, instance matching, definition expansion, fully-modalized test, fragment classification - Truth-table entailment with counterexamples for unjustified propositional inferences - Fitch-style proof checker: scopes, closed-subproof citation, fresh-name side conditions, strict (box) subproofs admitting only fully modalized formulas; 'by rule' as a one-step proof - Aquinas example now carries complete first-order proofs - Validator rejects recursive or forward-referencing definitions - 39 textbook exercises and rule/structure misuse tests 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 #4. Implements Phase 3 of
ROADMAP.md.docs/spec/proofs.md: how each kind of justification is checked, proof structure, and the full rule catalogue.C does not follow from P1, P2: counterexample A = false, B = true.box { }subproofs that only admit fully modalized formulas, andby ruleas a one-step proof.Change from the plan: the checker already covers the full rule set (quantifiers, identity, S5, property variables). The Aquinas example needs quantifier rules to pass at all, and the substitution machinery is shared. Phase 5 now focuses on sort/type checking and the library formalizations. Recorded in the roadmap.
Also found and fixed in this phase:
The parser fuzzer ran 206k inputs through the checker without crashes.
Generated by Claude Code