🏛️ Atlas✒️Formalizations.Reusable.Logic view on GitHub ↗4 theorems
/-Copyright (c) 2026 Carles Marín. All rights reserved.Released under Apache 2.0 license as described in the file LICENSE.Authors: Carles Marín-/module public import Formalizations.Logic.SynapseGate /-!# Reusable layer: decision gates Stable interfaces for the SYNAPSE receipt's decision rule. These theorems certify thespecified rule; they do not establish the truth of an input claim or the correctness ofthe process that assigns obligation statuses.-/ @[expose] public section namespace Formalizations.Reusable /-- Acceptance requires every declared obligation to pass and the priority flag to be false. -/theorem synapse_accept_iff (obl : List SynapseGate.Estado) (p : Bool) :    SynapseGate.decidir obl p = .aceptada ↔      (p = false ∧ ∀ e ∈ obl, e = .pasa) :=  SynapseGate.decidir_aceptada_iff obl p /-- A failed obligation is exactly the condition for rejection. -/theorem synapse_reject_iff (obl : List SynapseGate.Estado) (p : Bool) :    SynapseGate.decidir obl p = .rechazada ↔ .falla ∈ obl :=  SynapseGate.decidir_rechazada_iff obl p /-- Pointwise improvement preserves acceptance; degradation preserves rejection. -/theorem synapse_gate_monotone (obl obl' : List SynapseGate.Estado) (p : Bool)    (h : List.Forall₂ (fun a b => SynapseGate.rango a ≤ SynapseGate.rango b) obl obl') :    (SynapseGate.decidir obl p = .aceptada → SynapseGate.decidir obl' p = .aceptada) ∧    (SynapseGate.decidir obl' p = .rechazada → SynapseGate.decidir obl p = .rechazada) :=  SynapseGate.monotonia obl obl' p h /-- A sound gate cannot accept an input sharing its entire observable view with a false input. -/theorem synapse_indistinguishable_not_accepted {M V : Type} (view : M → V) (gate : M → Bool)    (hview : ∀ m₁ m₂, view m₁ = view m₂ → gate m₁ = gate m₂)    (truth : M → Prop) (hsound : ∀ m, gate m = true → truth m)    (m₁ m₂ : M) (hv : view m₁ = view m₂) (hfalse : ¬ truth m₂) :    gate m₁ = false :=  SynapseGate.indistinguibles_no_aceptan view gate hview truth hsound m₁ m₂ hv hfalse end Formalizations.Reusable