{"slug":"archived-q1057-58ed7e9b6ca8","identifier":"archived-q1057-58ed7e9b6ca8","title":"XOR Self-Inverse","author":"Maclain Hunter","sourceSha256":"58ed7e9b6ca841f3d468ab5fa6085ba089acb15df13ea37f7fec47e3c9f87b2e","sourceKind":"archived-authored-source","recordedAt":null,"recordedAtMeaning":"Database registration time, not a claim of original handwritten authorship.","originalAuthoredAt":null,"formalizedAt":"2026-10-03T10:37:05.082Z","checkedAt":"2026-10-03T10:42:53.902Z","status":"partial","axiomFree":true,"axioms":[],"theoremNames":["HunterAuthored.exponent_xor_self_positive"],"units":[{"id":"exponent_xor_self_positive","sourceStatement":"{\n  \"name\": \"XOR Self-Inverse\",\n  \"formal\": \"∀a ∈ MCBExponent: state(XOR(a,a)) = +1\",\n  \"proof\": \"(|a| + |a|) mod 2 = 0, and (-1)^0 = +1\",\n  \"implementation\": \"mcbExponentXOR(a: MCBExponent, b: MCBExponent): MCBExponent\"\n}","sourceOffset":0,"scope":"The authored parity of the sum of magnitudes, defined by an unbounded even/odd recurrence, has positive self-output. This is a signed exponent-state operation, not Boolean XOR substitution.","status":"candidate","variables":[],"premises":[],"conclusion":"See the exact typed Lean theorem","leanStatement":"def evenNat : Nat → Bool\n  | 0 => true\n  | n + 1 => !(evenNat n)\ntheorem even_add (a b : Nat) : evenNat (a + b) = (evenNat a == evenNat b) := by\n  induction b with\n  | zero =>\n    change evenNat a = (evenNat a == true)\n    cases evenNat a <;> rfl\n  | succ b ih =>\n    calc\n      evenNat (a + (b + 1)) = !(evenNat (a + b)) := rfl\n      _ = !(evenNat a == evenNat b) := congrArg Bool.not ih\n      _ = (evenNat a == !(evenNat b)) := by cases evenNat a <;> cases evenNat b <;> rfl\ndef exponentXorState (a b : Int) : Int :=\n  if evenNat (a.natAbs + b.natAbs) then 1 else -1\ntheorem exponent_xor_self_positive (a : Int) : exponentXorState a a = 1 := by\n  unfold exponentXorState\n  rw [even_add]\n  cases evenNat a.natAbs <;> rfl\n#print axioms exponent_xor_self_positive\n","kernelStatus":"verified","axioms":[],"axiomFree":true,"reportedTheorem":"HunterAuthored.exponent_xor_self_positive"}],"files":{"source.json":{"sha256":"e39a5442d01b952df5cd6a5defdd25e3fd0328932b55ced536322874d99f46a1","bytes":774},"Proof.lean":{"sha256":"43020d17ffaae1627a953b657c4e1b2b5a471bc35f19ee95fe4cdae54a891470","bytes":1033},"lean-check.txt":{"sha256":"5c48e53f06f145df62d5d1a8aedfa00efd24d384d14ad3e2b7b20a49987a569e","bytes":130}},"boundary":"Lean establishes the listed formal statements and dependencies. The exact authored source, Ground, known premise meanings, application validation and empirical evidence remain separately typed. No unencoded section is certified by a neighboring theorem.","currentSourceSha256":"58ed7e9b6ca841f3d468ab5fa6085ba089acb15df13ea37f7fec47e3c9f87b2e","timestamp":"2026-10-03T10:42:55.000Z","timestampAuthority":"https://www.freetsa.org","manifestSha256":"6e4e8d5c750a86f20e8f987a742b4eb2f588563a5f23a438ab84950f16eec8c4","url":"/proof-verification/archived-q1057-58ed7e9b6ca8","jsonUrl":"/proof-verification/archived-q1057-58ed7e9b6ca8.json","leanUrl":"/proof-verification/archived-q1057-58ed7e9b6ca8.lean","graph":{"@context":"https://schema.org","@type":"SoftwareSourceCode","@id":"https://4p-engine.com/proof-verification/archived-q1057-58ed7e9b6ca8#lean","name":"Lean 4 witness: XOR Self-Inverse","url":"https://4p-engine.com/proof-verification/archived-q1057-58ed7e9b6ca8","dateCreated":"2026-10-03T10:37:05.082Z","dateModified":"2026-10-03T10:42:53.902Z","creator":{"@type":"Organization","name":"Replit Agent"},"programmingLanguage":{"@type":"ComputerLanguage","name":"Lean","version":"Lean (version 4.7.0, commit v4.7.0, Release)"},"author":{"@type":"Organization","name":"Replit Agent"},"description":"Lean establishes the listed formal statements and dependencies. The exact authored source, Ground, known premise meanings, application validation and empirical evidence remain separately typed. No unencoded section is certified by a neighboring theorem.","isBasedOn":{"@type":"CreativeWork","name":"XOR Self-Inverse","author":{"@type":"Person","name":"Maclain Hunter"},"url":"https://4p-engine.com/proof-knowledge/archived-q1057-58ed7e9b6ca8","identifier":"archived-q1057-58ed7e9b6ca8"},"encoding":{"@type":"MediaObject","encodingFormat":"text/plain","contentUrl":"https://4p-engine.com/proof-verification/archived-q1057-58ed7e9b6ca8.lean"},"subjectOf":{"@type":"DigitalDocument","name":"Independently verified RFC 3161 existence timestamp","dateCreated":"2026-10-03T10:42:55.000Z","url":"https://4p-engine.com/proof-verification/timestamp.json"},"additionalProperty":[{"@type":"PropertyValue","name":"verificationStatus","value":"partial"},{"@type":"PropertyValue","name":"axiomFree","value":"true"},{"@type":"PropertyValue","name":"axiomDependencies","value":"[]"},{"@type":"PropertyValue","name":"theorems","value":"[\"HunterAuthored.exponent_xor_self_positive\"]"},{"@type":"PropertyValue","name":"sourceSha256","value":"58ed7e9b6ca841f3d468ab5fa6085ba089acb15df13ea37f7fec47e3c9f87b2e"},{"@type":"PropertyValue","name":"releaseManifestSha256","value":"6e4e8d5c750a86f20e8f987a742b4eb2f588563a5f23a438ab84950f16eec8c4"},{"@type":"PropertyValue","name":"sourceRecordedAt","value":"null"},{"@type":"PropertyValue","name":"sourceDateMeaning","value":"Database registration time, not a claim of original handwritten authorship."},{"@type":"PropertyValue","name":"originalAuthoredAt","value":"null"},{"@type":"PropertyValue","name":"timestampAuthority","value":"https://www.freetsa.org"},{"@type":"PropertyValue","name":"timestampScope","value":"Independent cryptographic existence timestamp for the manifest and its content-addressed artifacts. Not legal notarization, an authorship adjudication, or a retroactive timestamp for handwritten work."},{"@type":"PropertyValue","name":"governingGround","value":"Logic / Logos / God"},{"@type":"PropertyValue","name":"formalizationAttribution","value":"Machine formalization by Replit Agent of Maclain Hunter's unchanged authored source"}]}}