<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Documentation on OpenSymbolicRules</title><link>https://opensymbolicrules.github.io/domains/logic/documentation/</link><description>Recent content in Documentation on OpenSymbolicRules</description><generator>Hugo</generator><language>en</language><atom:link href="https://opensymbolicrules.github.io/domains/logic/documentation/index.xml" rel="self" type="application/rss+xml"/><item><title>Overview</title><link>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5/</guid><description>&lt;p&gt;Source: &lt;a href="https://github.com/OpenSymbolicRules/Logic/blob/d80392c15f075d5959226cc76a91119833c9afa9/README.md"&gt;Logic at &lt;code&gt;d80392c15f07&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h1 id="opensymbolicrules-logic"&gt;OpenSymbolicRules Logic&lt;a class="anchor" href="#opensymbolicrules-logic"&gt;#&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;This repository provides an OpenSymbolicRules (OSR) rule set for Boolean&#10;simplification and propositional logic. It is language-neutral: each rule&#10;uses OSR expression syntax and declares its operator meaning with OpenMath.&lt;/p&gt;&#10;&lt;h2 id="contents"&gt;Contents&lt;a class="anchor" href="#contents"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Boolean identity and idempotence rules.&lt;/li&gt;&#10;&lt;li&gt;Negation normal form and complement rules.&lt;/li&gt;&#10;&lt;li&gt;Implication and equivalence expansion to core connectives.&lt;/li&gt;&#10;&lt;li&gt;NAND, NOR, XOR, and XNOR expansion to core connectives.&lt;/li&gt;&#10;&lt;li&gt;Explicit &lt;code&gt;to_cnf&lt;/code&gt; and &lt;code&gt;to_dnf&lt;/code&gt; profiles for distributive normalisation.&lt;/li&gt;&#10;&lt;li&gt;An explicit &lt;code&gt;resolution&lt;/code&gt; inference profile for sound clause derivation.&lt;/li&gt;&#10;&lt;li&gt;Lexically scoped universal and existential quantifier negation, scope, and&#10;vacuous-quantification rules, with a specification of capture-avoiding&#10;substitution for their binders.&lt;/li&gt;&#10;&lt;li&gt;Executable fixtures for every rule.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;The current rules are intentionally oriented towards smaller expressions. This&#10;keeps simplification terminating and avoids rewrite loops such as expanding an&#10;expression and immediately applying its inverse identity.&lt;/p&gt;</description></item><item><title>Boolean rules</title><link>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-11ed65e92074ec6766ea63774dbe0c57dc37d518dfb87488f85e0d8acfbe8212/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-11ed65e92074ec6766ea63774dbe0c57dc37d518dfb87488f85e0d8acfbe8212/</guid><description>&lt;p&gt;Source: &lt;a href="https://github.com/OpenSymbolicRules/Logic/blob/d80392c15f075d5959226cc76a91119833c9afa9/docs/boolean-rules.md"&gt;Logic at &lt;code&gt;d80392c15f07&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h1 id="boolean-rules"&gt;Boolean rules&lt;a class="anchor" href="#boolean-rules"&gt;#&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;The initial Boolean rule set covers the simplifications that are both common&#10;and safe to apply repeatedly:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;identity: &lt;code&gt;p ∨ false&lt;/code&gt; and &lt;code&gt;p ∧ true&lt;/code&gt; become &lt;code&gt;p&lt;/code&gt;;&lt;/li&gt;&#10;&lt;li&gt;annihilation: &lt;code&gt;p ∨ true&lt;/code&gt; becomes &lt;code&gt;true&lt;/code&gt; and &lt;code&gt;p ∧ false&lt;/code&gt; becomes &lt;code&gt;false&lt;/code&gt;;&lt;/li&gt;&#10;&lt;li&gt;idempotence: &lt;code&gt;p ∨ p&lt;/code&gt; and &lt;code&gt;p ∧ p&lt;/code&gt; become &lt;code&gt;p&lt;/code&gt;;&lt;/li&gt;&#10;&lt;li&gt;complements: &lt;code&gt;p ∨ ¬p&lt;/code&gt; becomes &lt;code&gt;true&lt;/code&gt; and &lt;code&gt;p ∧ ¬p&lt;/code&gt; becomes &lt;code&gt;false&lt;/code&gt;;&lt;/li&gt;&#10;&lt;li&gt;double negation: &lt;code&gt;¬¬p&lt;/code&gt; becomes &lt;code&gt;p&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;absorption: &lt;code&gt;p ∨ (p ∧ q)&lt;/code&gt; and &lt;code&gt;p ∧ (p ∨ q)&lt;/code&gt; become &lt;code&gt;p&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;negation normal form: De Morgan&amp;rsquo;s laws push &lt;code&gt;Not&lt;/code&gt; through &lt;code&gt;And&lt;/code&gt; and &lt;code&gt;Or&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;derived connectives: implication and equivalence reduce to &lt;code&gt;And&lt;/code&gt;, &lt;code&gt;Or&lt;/code&gt;, and&#10;&lt;code&gt;Not&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;compound connectives: NAND, NOR, XOR, and XNOR reduce to core connectives.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;For binary &lt;code&gt;And&lt;/code&gt; and &lt;code&gt;Or&lt;/code&gt; trees, rules whose result depends on an operand&#10;position are included in both operand orders. A consumer therefore does not&#10;need to canonicalize commutative expressions before applying this rule set.&lt;/p&gt;</description></item><item><title>Capture-avoiding substitution</title><link>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-2023e36ddb99364443c1357bd249b31b73611bc501d8efa5a1878d72452b7ac8/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-2023e36ddb99364443c1357bd249b31b73611bc501d8efa5a1878d72452b7ac8/</guid><description>&lt;p&gt;Source: &lt;a href="https://github.com/OpenSymbolicRules/Logic/blob/d80392c15f075d5959226cc76a91119833c9afa9/docs/substitution.md"&gt;Logic at &lt;code&gt;d80392c15f07&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h1 id="capture-avoiding-substitution"&gt;Capture-avoiding substitution&lt;a class="anchor" href="#capture-avoiding-substitution"&gt;#&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;This document specifies what a consumer of the quantifier rules must implement&#10;before instantiation or quantifier elimination can be added. It defines scope,&#10;alpha-equivalence, and capture-avoiding substitution for OSR expressions, and&#10;states which quantifier rules those definitions make expressible.&lt;/p&gt;&#10;&lt;h2 id="binding-forms"&gt;Binding forms&lt;a class="anchor" href="#binding-forms"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;&lt;code&gt;Forall&lt;/code&gt; and &lt;code&gt;Exists&lt;/code&gt; are the binding forms of this rule set:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[&lt;span style="color:#e6db74"&gt;&amp;#34;Forall&amp;#34;&lt;/span&gt;, [&lt;span style="color:#e6db74"&gt;&amp;#34;x&amp;#34;&lt;/span&gt;, &lt;span style="color:#e6db74"&gt;&amp;#34;y&amp;#34;&lt;/span&gt;], &lt;span style="color:#960050;background-color:#1e0010"&gt;body&lt;/span&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The second element is the binder: a non-empty list of plain identifiers. It is a&#10;declaration, not a use — the identifiers in it are not occurrences of anything.&#10;The third element is the body, and the binder scopes over it.&lt;/p&gt;</description></item><item><title>OSR v1 files</title><link>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-a9f51aa6be870334fdc20c99c5d086d3186c5ff2f7c383a9e58c23d316c2981b/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-a9f51aa6be870334fdc20c99c5d086d3186c5ff2f7c383a9e58c23d316c2981b/</guid><description>&lt;p&gt;Source: &lt;a href="https://github.com/OpenSymbolicRules/Logic/blob/d80392c15f075d5959226cc76a91119833c9afa9/docs/osr-v1.md"&gt;Logic at &lt;code&gt;d80392c15f07&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h1 id="osr-v1-files"&gt;OSR v1 files&lt;a class="anchor" href="#osr-v1-files"&gt;#&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;&lt;code&gt;v1/&lt;/code&gt; holds the propositional rules of this repository in the OSR v1&#10;interchange format (Specification, &lt;code&gt;docs/osr-v1.md&lt;/code&gt;). These files are&#10;generated, never edited by hand:&lt;/p&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;File&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;Content&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;v1/logic.osr.json&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;All 39 rules: OpenMath patterns over &lt;code&gt;logic1&lt;/code&gt; and &lt;code&gt;quant1&lt;/code&gt; (as &lt;code&gt;OMBIND&lt;/code&gt;), profiles, and verification records in the &lt;code&gt;boolean&lt;/code&gt; domain.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;v1/logic.report.json&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Machine-readable audit: metrics, the rules not migrated, and the termination proof of every profile.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;code&gt;v1/logic.report.md&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;The same audit for humans.&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&lt;h2 id="where-they-come-from"&gt;Where they come from&lt;a class="anchor" href="#where-they-come-from"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;code&gt;OpenSymbolicRules/Lean&lt;/code&gt; states each rule and proves it (&lt;code&gt;OSR/Logic.lean&lt;/code&gt;):&#10;both sides have the same truth value for every assignment of the variables,&#10;with the &lt;code&gt;logic1&lt;/code&gt; connectives interpreted on Lean&amp;rsquo;s &lt;code&gt;Bool&lt;/code&gt;.&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;OpenSymbolicRules/Verification&lt;/code&gt; publishes the export under&#10;&lt;code&gt;reports/&amp;lt;source digest&amp;gt;/&lt;/code&gt; and can rebuild it independently.&lt;/li&gt;&#10;&lt;li&gt;This repository copies the published files. The CI checks that they&#10;validate against the v1 schema, share one source digest, and are&#10;byte-identical to the published report.&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;h2 id="differences-from-v01"&gt;Differences from v0.1&lt;a class="anchor" href="#differences-from-v01"&gt;#&lt;/a&gt;&lt;/h2&gt;&#10;&lt;p&gt;The v0.1 files in &lt;code&gt;rules/&lt;/code&gt; and &lt;code&gt;inferences/&lt;/code&gt; remain for the v0.1 loader of&#10;OpenSymbolicRules.jl. In v1:&lt;/p&gt;</description></item><item><title>Propositional resolution</title><link>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-0d6a4639cc203ce8fbe15459be938437df1b998adc336996496e179253d0a9e6/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-0d6a4639cc203ce8fbe15459be938437df1b998adc336996496e179253d0a9e6/</guid><description>&lt;p&gt;Source: &lt;a href="https://github.com/OpenSymbolicRules/Logic/blob/d80392c15f075d5959226cc76a91119833c9afa9/docs/resolution.md"&gt;Logic at &lt;code&gt;d80392c15f07&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h1 id="propositional-resolution"&gt;Propositional resolution&lt;a class="anchor" href="#propositional-resolution"&gt;#&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;The &lt;code&gt;resolution&lt;/code&gt; inference profile derives consequences from pairs of clauses.&#10;It does not rewrite or discard its premises.&lt;/p&gt;&#10;&lt;p&gt;For example, from &lt;code&gt;p ∨ q&lt;/code&gt; and &lt;code&gt;¬p ∨ r&lt;/code&gt;, binary resolution derives &lt;code&gt;q ∨ r&lt;/code&gt;.&#10;The pivot proposition and its negation are complementary; the remaining&#10;literals form the resolvent.&lt;/p&gt;&#10;&lt;p&gt;Unit resolution is also available. From &lt;code&gt;p&lt;/code&gt; and &lt;code&gt;¬p ∨ q&lt;/code&gt;, it derives &lt;code&gt;q&lt;/code&gt;.&#10;The rule file includes both literal positions in binary clauses and both premise&#10;orders so consumers do not need to reorder a clause before unit propagation.&lt;/p&gt;</description></item><item><title>Propositional semantic verification</title><link>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-112510d0301b9a2e7b8c59c84bb6e5e05c5dc828984aab47a81587534a6e675d/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-112510d0301b9a2e7b8c59c84bb6e5e05c5dc828984aab47a81587534a6e675d/</guid><description>&lt;p&gt;Source: &lt;a href="https://github.com/OpenSymbolicRules/Logic/blob/d80392c15f075d5959226cc76a91119833c9afa9/docs/semantic-verification.md"&gt;Logic at &lt;code&gt;d80392c15f07&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h1 id="propositional-semantic-verification"&gt;Propositional semantic verification&lt;a class="anchor" href="#propositional-semantic-verification"&gt;#&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;The semantic verifier evaluates every propositional rewrite rule over all&#10;Boolean valuations of its wildcards. It rejects a rule when its pattern and&#10;result differ for any valuation.&lt;/p&gt;&#10;&lt;p&gt;It also verifies that each test expression is logically equivalent to its&#10;expected result, and that every resolution inference conclusion is entailed by&#10;its premises. Quantifier expressions are evaluated over the Boolean domain&#10;with lexical scope and shadowing.&lt;/p&gt;</description></item><item><title>Quantifiers</title><link>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-37e5c9053c5aaaaac37a18e10fb78361ab882203f089dbf9216ae25b5e8144df/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-37e5c9053c5aaaaac37a18e10fb78361ab882203f089dbf9216ae25b5e8144df/</guid><description>&lt;p&gt;Source: &lt;a href="https://github.com/OpenSymbolicRules/Logic/blob/d80392c15f075d5959226cc76a91119833c9afa9/docs/quantifiers.md"&gt;Logic at &lt;code&gt;d80392c15f07&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h1 id="quantifiers"&gt;Quantifiers&lt;a class="anchor" href="#quantifiers"&gt;#&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;Quantified OSR expressions use an explicit lexical binding form:&lt;/p&gt;&#10;&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-json" data-lang="json"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;[&lt;span style="color:#e6db74"&gt;&amp;#34;Forall&amp;#34;&lt;/span&gt;, [&lt;span style="color:#e6db74"&gt;&amp;#34;x&amp;#34;&lt;/span&gt;], &lt;span style="color:#960050;background-color:#1e0010"&gt;body&lt;/span&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;Forall&lt;/code&gt; and &lt;code&gt;Exists&lt;/code&gt; map to &lt;code&gt;openmath:quant1#forall&lt;/code&gt; and&#10;&lt;code&gt;openmath:quant1#exists&lt;/code&gt;. Their variable list is non-empty, contains plain&#10;identifiers only, and scopes over the body. A nested binder may shadow an outer&#10;variable; consumers must preserve this scope and alpha-rename bound variables&#10;when a host representation requires it.&lt;/p&gt;&#10;&lt;p&gt;The initial rules push negation through a quantifier:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;code&gt;¬∀x.P&lt;/code&gt; becomes &lt;code&gt;∃x.¬P&lt;/code&gt;;&lt;/li&gt;&#10;&lt;li&gt;&lt;code&gt;¬∃x.P&lt;/code&gt; becomes &lt;code&gt;∀x.¬P&lt;/code&gt;.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;They retain the original bound-variable list exactly.&lt;/p&gt;</description></item><item><title>Rule identities</title><link>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-f82cad58bbc38914d5b003b0f34fbea8cd083ad39bda947018bbb191cf0cf845/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-f82cad58bbc38914d5b003b0f34fbea8cd083ad39bda947018bbb191cf0cf845/</guid><description>&lt;p&gt;Source: &lt;a href="https://github.com/OpenSymbolicRules/Logic/blob/d80392c15f075d5959226cc76a91119833c9afa9/docs/rule-identities.md"&gt;Logic at &lt;code&gt;d80392c15f07&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h1 id="rule-identities"&gt;Rule identities&lt;a class="anchor" href="#rule-identities"&gt;#&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;Every rule file has a stable &lt;code&gt;identity&lt;/code&gt;. A rule is identified across this&#10;profile by the pair &lt;code&gt;identity:id&lt;/code&gt;, where &lt;code&gt;id&lt;/code&gt; is the positive integer local to&#10;its rule file. The identity is deliberately independent of a file&amp;rsquo;s taxonomy&#10;&lt;code&gt;section&lt;/code&gt; so that taxonomy can evolve without changing references to rules.&lt;/p&gt;</description></item><item><title>Rule provenance</title><link>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-511ee509a686d00fb3f7021e3e8e070e59e575c05eca32d179df09e658aa19b8/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://opensymbolicrules.github.io/domains/logic/documentation/pages/doc-511ee509a686d00fb3f7021e3e8e070e59e575c05eca32d179df09e658aa19b8/</guid><description>&lt;p&gt;Source: &lt;a href="https://github.com/OpenSymbolicRules/Logic/blob/d80392c15f075d5959226cc76a91119833c9afa9/docs/provenance.md"&gt;Logic at &lt;code&gt;d80392c15f07&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h1 id="rule-provenance"&gt;Rule provenance&lt;a class="anchor" href="#rule-provenance"&gt;#&lt;/a&gt;&lt;/h1&gt;&#10;&lt;p&gt;Every logic rule declares a machine-readable &lt;code&gt;provenance&lt;/code&gt; object. It records&#10;the acquisition method and one or more stable source locators. &lt;code&gt;references&lt;/code&gt;,&#10;when present, remains reserved for mathematical bibliography.&lt;/p&gt;</description></item></channel></rss>