Source: Logic at d80392c15f07.
OSR v1 files#
v1/ holds the propositional rules of this repository in the OSR v1
interchange format (Specification, docs/osr-v1.md). These files are
generated, never edited by hand:
| File | Content |
|---|---|
v1/logic.osr.json | All 39 rules: OpenMath patterns over logic1 and quant1 (as OMBIND), profiles, and verification records in the boolean domain. |
v1/logic.report.json | Machine-readable audit: metrics, the rules not migrated, and the termination proof of every profile. |
v1/logic.report.md | The same audit for humans. |
Where they come from#
OpenSymbolicRules/Leanstates each rule and proves it (OSR/Logic.lean): both sides have the same truth value for every assignment of the variables, with thelogic1connectives interpreted on Lean’sBool.OpenSymbolicRules/Verificationpublishes the export underreports/<source digest>/and can rebuild it independently.- This repository copies the published files. The CI checks that they validate against the v1 schema, share one source digest, and are byte-identical to the published report.
Differences from v0.1#
The v0.1 files in rules/ and inferences/ remain for the v0.1 loader of
OpenSymbolicRules.jl. In v1:
- all 39 rules are proved and certified in the
booleandomain (carriersetname2#Boolean). Quantifiers range over the truth values, as in the v0.1 tests, and bind one variable (v0.1 binds a sequence; a sequence is a chain of binders); FreeQside conditions becomeindependentmatching constraints: the subterm matched by the metavariable must not mention the bound variable, which an engine checks syntactically;- the profiles
default,to_cnfandto_dnfare proved to terminate under the reference strategy (LeanOSR.Logic.default_terminates,cnf_terminates,dnf_terminates); - the profiles are sound and terminating, not complete: v0.1 has
p ∧ ¬p ⟶ falsebut not¬p ∧ p ⟶ false, sop xor pnormalizes to¬p ∧ p; - the inference rules (resolution) are not part of v1.
Updating#
just update-v1 <Verification>/reports/<digest>Then update the Verification commit pinned in the CI workflow.