Logit-Boundary Geometric Belief Interfaces and Sparse Sheaf-Enclave Protocols: A Self-Contained Substrate for Secure Network Electronic Health Record (EHR) Interoperability
Summary
This arXiv paper proposes a mathematical and engineering architecture, the Geometric Belief Interface, for secure EHR interoperability using logit boundaries and sheaf-enclave protocols, with a narrow benchmark showing zero coverage for a 4B model.
View Cached Full Text
Cached at: 08/12/26, 08:22 AM
# Logit-Boundary Geometric Belief Interfaces and Sparse Sheaf-Enclave Protocols: A Self-Contained Substrate for Secure Network Electronic Health Record (EHR) Interoperability
Source: [https://arxiv.org/html/2608.10300](https://arxiv.org/html/2608.10300)
\(June 30, 2026 Revised August 10, 2026\)
###### Abstract
Electronic health\-record interoperability is a boundary problem: legacy systems, generative models, terminology services, identity systems, and human reviewers may each expose rich internal states, while operational exchange requires a narrow shared interface of typed claims, bounded uncertainty, provenance, and explicit admission or abstention\. This paper develops a mathematical and engineering architecture for that interface\. The organizing idea is the*logit boundary*: a discovery model may propose pre\-threshold scores over a local categorical decision, but a deterministic judgment substrate decides whether the proposal is admissible, requires review, or must be quarantined before any Fast Healthcare Interoperability Resources \(FHIR\) transaction is constructed\. The resulting Geometric Belief Interface \(GBI\) combines finite boundary semantics, local Dirichlet evidence, cellular\-sheaf and mapping\-cone diagnostics, advisory geometric audit charts, and a Decentralized Cryptographic Sheaf\-Enclave \(DCSE\) protocol sketch for fail\-closed deployment\. The framework does not establish clinical truth, global representation alignment, or end\-to\-end clinical safety; it defines certificate\-producing checks at a model\-to\-system boundary\. A companion frozen synthetic benchmark, GBI BoundaryBench v0\.1, evaluated Qwen3\-4B\-Instruct\-2507 on 256 held\-out tasks across three evidence modes \(768 canonical executions\)\. All executions completed, but none produced an output accepted by the benchmark contract: 369 were rejected during safe parsing and 399 during schema validation, yielding zero coverage and deterministic quarantine\. This empirical result is deliberately narrow—one 4B open\-weight model under one frozen interface—and is reported as evidence about the admission boundary, not as a general claim about LLM capability or clinical safety\. A Julia appendix verifies selected numerical certificates using standard libraries\. For codebase, reference[https://github\.com/AlvinSpivey/GBI\-BoundaryBench](https://github.com/AlvinSpivey/GBI-BoundaryBench)\.
Submitted to arXiv under the arXiv\.org perpetual, non\-exclusive license 1\.0\. Research manuscript\. Not a clinical decision system, medical device, or authorization for autonomous EHR write\-back\.
###### Contents
1. [1The organizing picture: logits as the clinical boundary](https://arxiv.org/html/2608.10300#S1)1. [1\.1Reader map](https://arxiv.org/html/2608.10300#S1.SS1)
2. [2Logit topology for bounded clinical discovery](https://arxiv.org/html/2608.10300#S2)1. [2\.1Exact logit equivalence and probe\-visible quotients](https://arxiv.org/html/2608.10300#S2.SS1) 2. [2\.2Affine readout and the pre\-threshold boundary](https://arxiv.org/html/2608.10300#S2.SS2) 3. [2\.3Cross\-model interpretation](https://arxiv.org/html/2608.10300#S2.SS3) 4. [2\.4A numerical example: affine equivalence](https://arxiv.org/html/2608.10300#S2.SS4) 5. [2\.5Softmax dynamics and top\-kkloss](https://arxiv.org/html/2608.10300#S2.SS5) 6. [2\.6Component logits: prisms of model interpretation](https://arxiv.org/html/2608.10300#S2.SS6) 7. [2\.7Logit space as a non\-autonomous dynamical system](https://arxiv.org/html/2608.10300#S2.SS7) 8. [2\.8What the universal logit topology contributes](https://arxiv.org/html/2608.10300#S2.SS8)
3. [3Finite boundary semantics](https://arxiv.org/html/2608.10300#S3)1. [3\.1Data Semantic Representation](https://arxiv.org/html/2608.10300#S3.SS1)
4. [4Condensed\-mathematics motivation and operational probes](https://arxiv.org/html/2608.10300#S4)
5. [5Neuro\-symbolic partitioning: discovery and judgment](https://arxiv.org/html/2608.10300#S5)
6. [6Local hierarchical Dirichlet evidence](https://arxiv.org/html/2608.10300#S6)1. [6\.1Local categorical decisions](https://arxiv.org/html/2608.10300#S6.SS1) 2. [6\.2Evidence boxes and dynamic atom registries](https://arxiv.org/html/2608.10300#S6.SS2) 3. [6\.3Numerical conditioning](https://arxiv.org/html/2608.10300#S6.SS3)1. [6\.3\.1Expanded: Numerical Conditioning in the Dirichlet Fisher Metric](https://arxiv.org/html/2608.10300#S6.SS3.SSS1)
7. [7Finite sheaves and mapping\-cone diagnostics](https://arxiv.org/html/2608.10300#S7)1. [7\.1Cellular sheaves in one page](https://arxiv.org/html/2608.10300#S7.SS1) 2. [7\.2Mapping cones](https://arxiv.org/html/2608.10300#S7.SS2) 3. [7\.3Graceful degradation](https://arxiv.org/html/2608.10300#S7.SS3)
8. [8Geometry for audit and state charts](https://arxiv.org/html/2608.10300#S8)1. [8\.1Higher\-dimensional hyperellipsoid certificates](https://arxiv.org/html/2608.10300#S8.SS1) 2. [8\.2Geometry for Audit and State Charts](https://arxiv.org/html/2608.10300#S8.SS2)
9. [9Decentralized Cryptographic Sheaf\-Enclave protocol](https://arxiv.org/html/2608.10300#S9)1. [9\.1Protocol objects](https://arxiv.org/html/2608.10300#S9.SS1) 2. [9\.2Operational policy contract and domain portability](https://arxiv.org/html/2608.10300#S9.SS2) 3. [9\.3TEE execution and sparse verification](https://arxiv.org/html/2608.10300#S9.SS3) 4. [9\.4BFT identity logging and fallback](https://arxiv.org/html/2608.10300#S9.SS4) 5. [9\.5Zero\-knowledge consistency attestations](https://arxiv.org/html/2608.10300#S9.SS5)
10. [10Complete EHR interoperability application at scale](https://arxiv.org/html/2608.10300#S10)1. [10\.1Example: penicillin allergy and amoxicillin](https://arxiv.org/html/2608.10300#S10.SS1) 2. [10\.2Example: metformin without renal context\[22\]](https://arxiv.org/html/2608.10300#S10.SS2) 3. [10\.3FHIR resources used](https://arxiv.org/html/2608.10300#S10.SS3)
11. [11Empirical admission\-boundary evaluation: GBI BoundaryBench v0\.1](https://arxiv.org/html/2608.10300#S11)
12. [12Summary: hallucination containment and external validity](https://arxiv.org/html/2608.10300#S12)1. [12\.1Where hallucination is blocked](https://arxiv.org/html/2608.10300#S12.SS1)1. [12\.1\.1The logit layer is treated as evidence, not authority](https://arxiv.org/html/2608.10300#S12.SS1.SSS1) 2. [12\.1\.2The boundary algebra restricts what the model is allowed to say](https://arxiv.org/html/2608.10300#S12.SS1.SSS2) 3. [12\.1\.3The model proposal is checked against external validity](https://arxiv.org/html/2608.10300#S12.SS1.SSS3) 2. [12\.2What kind of hallucination this prevents](https://arxiv.org/html/2608.10300#S12.SS2) 3. [12\.3What kind of hallucination it does not prevent](https://arxiv.org/html/2608.10300#S12.SS3) 4. [12\.4Example: penicillin allergy](https://arxiv.org/html/2608.10300#S12.SS4) 5. [12\.5Example: metformin without renal context\[22\]](https://arxiv.org/html/2608.10300#S12.SS5) 6. [12\.6Admissibility as a layered operational criterion](https://arxiv.org/html/2608.10300#S12.SS6)
13. [AComplete, Executable Reference Implementation in Julia](https://arxiv.org/html/2608.10300#A1)
14. [BValidation, System Metrics, and Operational Boundaries](https://arxiv.org/html/2608.10300#A2)1. [B\.1Verification Protocols](https://arxiv.org/html/2608.10300#A2.SS1) 2. [B\.2Performance and Reliability Metrics](https://arxiv.org/html/2608.10300#A2.SS2) 3. [B\.3Strategic Boundaries and Fail\-Closed Constraints](https://arxiv.org/html/2608.10300#A2.SS3)
15. [References](https://arxiv.org/html/2608.10300#bib)
## 1The organizing picture: logits as the clinical boundary
A neural model does not usually expose its full internal state\. Open\-weight inference can expose full pre\-threshold logits, while hosted APIs may expose only top\-kklog probabilities or the generated output\. We use the*logit boundary*as the conceptual output boundary and require the receipt to record exactly which evidence was actually available; unavailable logits are never reconstructed or treated as observed\. When full logits are available, they are pre\-threshold scores assigned to a finite set of possible outputs\. For a clinical parser, those outputs might be
\{exact,equivalent,narrower,broader,conflict,unmapped\}\.\\\{\\texttt\{exact\},\\texttt\{equivalent\},\\texttt\{narrower\},\\texttt\{broader\},\\texttt\{conflict\},\\texttt\{unmapped\}\\\}\.For an allergy classifier, they might be
\{confirmed\-active,unconfirmed,refuted,historical\-resolved\}\.\\\{\\texttt\{confirmed\-active\},\\texttt\{unconfirmed\},\\texttt\{refuted\},\\texttt\{historical\-resolved\}\\\}\.The logit vector is not a fact\. It is a numerical proposal over a local categorical boundary\. The architecture in this paper treats it exactly that way\.
The practical division of labor is:
untrusted discovery model⟶logit receipt⟶deterministic judgment engine\.\\boxed\{\\text\{untrusted discovery model\}\}\\quad\\longrightarrow\\quad\\boxed\{\\text\{logit receipt\}\}\\quad\\longrightarrow\\quad\\boxed\{\\text\{deterministic judgment engine\}\}\.The discovery model may be an LLM, a rules parser, an embedding model, or a specialist clinical classifier\. It proposes local categorical scores\. The judgment engine checks identity, terminology version, provenance, temporal scope, sheaf consistency, and policy\. Only then may the system update evidence or construct a FHIR transaction\.
This logit\-boundary language makes the architecture easier to communicate\. It gives neural, symbolic, and distributed components a common interface:
finite categories\+scores\+calibration\+provenance\.\\text\{finite categories\}\+\\text\{scores\}\+\\text\{calibration\}\+\\text\{provenance\}\.The topology and geometry enter after this boundary is fixed\. They are not asked to prove clinical truth by themselves\.
### 1\.1Reader map
The mathematical stack is as follows:
logit topologyhow neural outputs become finite boundary evidence,finite semanticshow local clinical propositions are typed,Dirichlet evidencehow uncertainty is calibrated over local categories,sheaf diagnosticshow local claims fail to glue globally,geometric chartshow high\-risk contradictions are visualized, not decided,DCSE protocolshow identity and audit certificates are replicated safely,FHIR applicationhow the whole system behaves in EHR interoperability\.\\begin\{array\}\[\]\{ll\}\\text\{logit topology\}&\\text\{how neural outputs become finite boundary evidence\},\\\\ \\text\{finite semantics\}&\\text\{how local clinical propositions are typed\},\\\\ \\text\{Dirichlet evidence\}&\\text\{how uncertainty is calibrated over local categories\},\\\\ \\text\{sheaf diagnostics\}&\\text\{how local claims fail to glue globally\},\\\\ \\text\{geometric charts\}&\\text\{how high\-risk contradictions are visualized, not decided\},\\\\ \\text\{DCSE protocols\}&\\text\{how identity and audit certificates are replicated safely\},\\\\ \\text\{FHIR application\}&\\text\{how the whole system behaves in EHR interoperability\}\.\\end\{array\}
## 2Logit topology for bounded clinical discovery
The Universal Representation Hypothesis motivates testing whether diverse neural architectures trained on identical or overlapping data distributions exhibit comparable task\-facing structure; the framework here does not assume global manifold congruence\. Even when models share task and data constraints, their internal geometry is not identifiable from output agreement alone\.
At the logit boundary, downstream behavioral equivalence is treated as an observable interface condition\. Identical correct predictions establish agreement only of selected outputs; exact pre\-threshold\-logit agreement is the stronger condition defined below\. Neither condition alone implies homeomorphic or diffeomorphic alignment of hidden representations, preservation of distances or neighborhoods, or a shared semantic hierarchy\. The bounded claim used here is therefore only that models can be compared through the output quantities they expose on a specified stimulus set\.
### 2\.1Exact logit equivalence and probe\-visible quotients
Let modelsAAandBBhave hidden spacesℋA=ℝDA\\mathcal\{H\}\_\{A\}=\\mathbb\{R\}^\{D\_\{A\}\}andℋB=ℝDB\\mathcal\{H\}\_\{B\}=\\mathbb\{R\}^\{D\_\{B\}\}with affine readouts\(WA,bA\)\(W\_\{A\},b\_\{A\}\)and\(WB,bB\)\(W\_\{B\},b\_\{B\}\)\. The comparison below is intentionally restricted to an evaluated stimulus set𝒳\\mathcal\{X\}\.
###### Definition 2\.1\(Exact logit equivalence\)\.
ModelsAAandBBare exactly logit\-equivalent on𝒳\\mathcal\{X\}if
WAhA\(x\)\+bA=WBhB\(x\)\+bB,∀x∈𝒳\.W\_\{A\}h\_\{A\}\(x\)\+b\_\{A\}=W\_\{B\}h\_\{B\}\(x\)\+b\_\{B\},\\qquad\\forall x\\in\\mathcal\{X\}\.This is stronger than agreement of argmax predictions or softmax probabilities\.
###### Theorem 2\.1\(Affine reconstruction on the evaluated set\)\.
If the two models are exactly logit\-equivalent on𝒳\\mathcal\{X\}andWB∈ℝM×DBW\_\{B\}\\in\\mathbb\{R\}^\{M\\times D\_\{B\}\}has full column rank, then
hB\(x\)=WB\+WAhA\(x\)\+WB\+\(bA−bB\),x∈𝒳,h\_\{B\}\(x\)=W\_\{B\}^\{\+\}W\_\{A\}h\_\{A\}\(x\)\+W\_\{B\}^\{\+\}\(b\_\{A\}\-b\_\{B\}\),\\qquad x\\in\\mathcal\{X\},whereWB\+=\(WB⊤WB\)−1WB⊤W\_\{B\}^\{\+\}=\(W\_\{B\}^\{\\top\}W\_\{B\}\)^\{\-1\}W\_\{B\}^\{\\top\}\.
###### Proof\.
Exact logit equivalence gives
WBhB\(x\)=WAhA\(x\)\+bA−bB\.W\_\{B\}h\_\{B\}\(x\)=W\_\{A\}h\_\{A\}\(x\)\+b\_\{A\}\-b\_\{B\}\.Multiplication by the left inverseWB\+W\_\{B\}^\{\+\}yields the stated reconstruction becauseWB\+WB=IDBW\_\{B\}^\{\+\}W\_\{B\}=I\_\{D\_\{B\}\}\. ∎
The theorem is a statement about the observed stimulus set\. It does not imply that the induced linear map is invertible, that it extends uniquely beyond𝒳\\mathcal\{X\}, or that hidden\-state distances, neighborhoods, topology, or semantic organization are preserved\.
###### Definition 2\.2\(Probe\-visible quotient\)\.
For a linear probe familyV⊆ℋ∗V\\subseteq\\mathcal\{H\}^\{\*\}, define
K\(V\)=\{h∈ℋ:ℓ\(h\)=0for everyℓ∈V\},Z\(V\)=ℋ/K\(V\)\.K\(V\)=\\\{h\\in\\mathcal\{H\}:\\ell\(h\)=0\\text\{ for every \}\\ell\\in V\\\},\\qquad Z\(V\)=\\mathcal\{H\}/K\(V\)\.For a readout matrixWW, takingVVto be the span of its rows removes directions that are invisible to that readout\.
Thus, output agreement supplies a bounded observable comparison object\. It does not by itself establish clinical correctness or global cross\-model representation alignment\.
### 2\.2Affine readout and the pre\-threshold boundary
In modern deep learning architectures, the terminal layer functions as a map that projects latent representations onto a categorical space\. Leth\(x\)∈ℋ⊂ℝDh\(x\)\\in\\mathcal\{H\}\\subset\\mathbb\{R\}^\{D\}define the hidden representation vector of an input stimulusx∈𝒳x\\in\\mathcal\{X\}within aDD\-dimensional Hilbert spaceℋ\\mathcal\{H\}, commonly termed the residual stream or embedding manifold\. The transformation mapping this hidden state to the pre\-threshold logit spaceℒ⊂ℝM\\mathcal\{L\}\\subset\\mathbb\{R\}^\{M\}, whereM=\|𝒱\|M=\|\\mathcal\{V\}\|represents the cardinality of the model’s vocabulary or target category set, is defined by the affine readout map:
L\(h\(x\)\)=WU⋅h\(x\)\+bL\(h\(x\)\)=W\_\{U\}\\cdot h\(x\)\+bwhereWU∈ℝM×DW\_\{U\}\\in\\mathbb\{R\}^\{M\\times D\}denotes the linear unembedding weight matrix andb∈ℝMb\\in\\mathbb\{R\}^\{M\}represents the bias vector\. Stated again, for simplicity, we’re letting
h\(x\)∈ℋ≅ℝDh\(x\)\\in\\mathcal\{H\}\\cong\\mathbb\{R\}^\{D\}be a hidden representation of a stimulus, such as a note fragment, medication string, or context window\. A model’s readout head maps this hidden state to logits
L\(h\(x\)\)=Wh\(x\)\+b∈ℝM,L\(h\(x\)\)=Wh\(x\)\+b\\in\\mathbb\{R\}^\{M\},whereW∈ℝM×DW\\in\\mathbb\{R\}^\{M\\times D\},b∈ℝMb\\in\\mathbb\{R\}^\{M\}, andMMis the number of local categories\. The associated probability vector then becomes
pi=softmax\(L\)i=exp\(Li/τ\)∑j=1Mexp\(Lj/τ\),p\_\{i\}=\\operatorname\{softmax\}\(L\)\_\{i\}=\\frac\{\\exp\(L\_\{i\}/\\tau\)\}\{\\sum\_\{j=1\}^\{M\}\\exp\(L\_\{j\}/\\tau\)\},with temperatureτ\>0\\tau\>0\. When full logits are available, retaining both logits and the associated probability vector preserves information that hard thresholding would discard\. When they are unavailable, the receipt records the lower\-information evidence mode explicitly rather than fabricating logits\.
###### Definition 2\.3\(Logit receipt\)\.
A*logit receipt*for a local decision consists of
R=\(C,L,p,τ,k,m,ρ\),R=\(C,L,p,\\tau,k,m,\\rho\),whereC=\{c1,…,cM\}C=\\\{c\_\{1\},\\ldots,c\_\{M\}\\\}is the local category set,L∈ℝML\\in\\mathbb\{R\}^\{M\}are logits,p=softmax\(L/τ\)p=\\operatorname\{softmax\}\(L/\\tau\),kkis the top\-kktruncation level if any,mmis model metadata, andρ\\rhois cryptographic provenance binding the input, terminology bundle, prompt, model version, and runtime policy\.
A receipt is evidence, not authority\. For providers that do not expose full logits, the envelope records the available output\-only or top\-kkevidence and marks unavailable fields as unavailable\. The judgment engine may ignore a receipt, quarantine it, ask a human to review it, or convert supported evidence into a Dirichlet update \(see Section[6](https://arxiv.org/html/2608.10300#S6)\)\.
### 2\.3Cross\-model interpretation
Exact logit agreement is a property of an evaluated output boundary, not a proof that two models implement the same internal representation or that either model is clinically correct\. When only probabilities are observed, the common\-logit\-shift symmetry of softmax must also be accounted for\. When a readout is rank deficient, the natural comparison is the readout image, or equivalently the quotient by readout\-invisible directions\. Transporting a behavioral or safety probe between architectures requires an explicitly identified inter\-model correspondence and validation on the target model; the quotient construction alone does not imply zero\-label probe portability\.
### 2\.4A numerical example: affine equivalence
TakeD=3D=3,M=6M=6\. LetWBW\_\{B\}be full column rank, choose an affine transformT,vT,v, and set
WA=WBT,bA=WBv\+bB\.W\_\{A\}=W\_\{B\}T,\\qquad b\_\{A\}=W\_\{B\}v\+b\_\{B\}\.Then
WAhA\+bA=WB\(ThA\+v\)\+bB\.W\_\{A\}h\_\{A\}\+b\_\{A\}=W\_\{B\}\(Th\_\{A\}\+v\)\+b\_\{B\}\.A numerical verification of this construction gives
‖LA−LB‖2≈1\.49×10−15,\\\|L\_\{A\}\-L\_\{B\}\\\|\_\{2\}\\approx 1\.49\\times 10^\{\-15\},which is consistent with floating\-point roundoff in the worked example\. This is ordinary linear algebra, but it is conceptually important: exact logit agreement supplies a shared observable boundary for local categorical behavior on the evaluated stimulus set; it does not establish hidden\-state isomorphism beyond the assumptions above\.
### 2\.5Softmax dynamics and top\-kkloss
Logits are smooth; hard decisions are not\. Asτ→0\\tau\\to 0,
softmax\(L/τ\)⟶eargmaxiLi,\\operatorname\{softmax\}\(L/\\tau\)\\longrightarrow e\_\{\\arg\\max\_\{i\}L\_\{i\}\},which collapses a continuous score vector to a vertex of the simplex\. For clinical review this matters\. Top\-kkdisplay can hide rare but safety\-critical alternatives\.
For the example
L=\(4\.0,2\.7,1\.4,0\.7,−0\.2,−1\.0\),L=\(4\.0,2\.7,1\.4,0\.7,\-0\.2,\-1\.0\),Using natural logarithms, the entropy values below are in nats:
τH\(softmax\(L/τ\)\)maxipi1\.000\.8852190\.7115300\.500\.2938430\.9247090\.200\.0112930\.9984960\.050\.0000001\.000000\.\\begin\{array\}\[\]\{c\|c\|c\}\\tau&H\(\\operatorname\{softmax\}\(L/\\tau\)\)&\\max\_\{i\}p\_\{i\}\\\\ \\hline\\cr 1\.00&0\.885219&0\.711530\\\\ 0\.50&0\.293843&0\.924709\\\\ 0\.20&0\.011293&0\.998496\\\\ 0\.05&0\.000000&1\.000000\.\\end\{array\}The top\-3 tail mass atτ=1\\tau=1is about0\.04170\.0417\. A hard top\-3 truncation sets nonzero probabilities to zero, makingDKL\(P∥P\(3\)\)D\_\{\\rm KL\}\(P\\\|P^\{\(3\)\}\)infinite\. Therefore a clinical logit receipt must include full\-spectrum logits when feasible, or at least tail mass, calibration, and a clear statement of discarded alternatives\.
### 2\.6Component logits: prisms of model interpretation
If a model exposes component activations, the logit boundary can be decomposed\. Suppose an approximate residual expansion has the form
h\(L\)=h\(0\)\+∑ℓ=1La\(ℓ\)\+∑ℓ=1Lm\(ℓ\),h^\{\(L\)\}=h^\{\(0\)\}\+\\sum\_\{\\ell=1\}^\{L\}a^\{\(\\ell\)\}\+\\sum\_\{\\ell=1\}^\{L\}m^\{\(\\ell\)\},wherea\(ℓ\)a^\{\(\\ell\)\}is an attention\-block contribution andm\(ℓ\)m^\{\(\\ell\)\}is an MLP contribution\. Because the readout is affine,
L=Wh\(0\)\+∑ℓ=1LWa\(ℓ\)\+∑ℓ=1LWm\(ℓ\)\+b\.L=Wh^\{\(0\)\}\+\\sum\_\{\\ell=1\}^\{L\}Wa^\{\(\\ell\)\}\+\\sum\_\{\\ell=1\}^\{L\}Wm^\{\(\\ell\)\}\+b\.This gives a practical audit primitive\[[31](https://arxiv.org/html/2608.10300#bib.bib31)\]\. A clinical model can report not only that\|"the"proposed category is in conflict”—, but also which model components pushed the logit toward that category\. The GBI does not need to believe these explanations\. It can store them as extra receipt fields and subject them to the same deterministic review\.
### 2\.7Logit space as a non\-autonomous dynamical system
Autoregressive and interactive models are input\-driven dynamical systems\. In a simplified discrete form,
ht\+1=Φt\(ht,xt\),Lt=Wht\+b,pt=softmax\(Lt/τ\)\.h\_\{t\+1\}=\\Phi\_\{t\}\(h\_\{t\},x\_\{t\}\),\\qquad L\_\{t\}=Wh\_\{t\}\+b,\\qquad p\_\{t\}=\\operatorname\{softmax\}\(L\_\{t\}/\\tau\)\.For intuition, one may define category potentials
Uc\(h\)=−Lc\(h\)\.U\_\{c\}\(h\)=\-L\_\{c\}\(h\)\.A high logit is a low potential well\. Sequential inputs move the wells, so the trajectory may drift between basins\. A two\-dimensional illustrative system can exhibit the same qualitative effect—for example, a category switch while entropy remains high—but the present appendix does not implement that dynamical example\. This is exactly the setting where deterministic clinical judgment is needed; a smooth logit trajectory can still cross a discrete decision boundary\.
### 2\.8What the universal logit topology contributes
The logit\-topology framing contributes four concrete design rules\. First, compare AI systems at their output boundary, not by assuming their hidden states have the same coordinates\. Second, treat hidden\-state alignment as quotient alignment through probe\-visible subspaces\. Third, preserve full\-spectrum or tail\-mass evidence because top\-kkdisplays may hide safety\-relevant alternatives\. Fourth, treat neural outputs as dynamical proposals that must be judged by finite semantics, sheaf diagnostics, identity certificates, and FHIR policy\.
## 3Finite boundary semantics
From Section[2\.2](https://arxiv.org/html/2608.10300#S2.SS2), we defined an individual logit affine readout mapL\(h\(x\)\)=WU⋅h\(x\)\+bL\(h\(x\)\)=W\_\{U\}\\cdot h\(x\)\+b, whereWU∈ℝM×DW\_\{U\}\\in\\mathbb\{R\}^\{M\\times D\}denoted the linear unembedding weight matrix andb∈ℝMb\\in\\mathbb\{R\}^\{M\}represented the bias vector\.
In the regimeD≪MD\\ll M,rank\(WU\)≤D\\operatorname\{rank\}\(W\_\{U\}\)\\leq D\. The affine image isL\(ℋ\)=b\+Im\(WU\)L\(\\mathcal\{H\}\)=b\+\\operatorname\{Im\}\(W\_\{U\}\), whose dimension isrank\(WU\)\\operatorname\{rank\}\(W\_\{U\}\)rather than necessarilyDD\.
Mathematically, this projection partitions the latent embedding spaceℋ\\mathcal\{H\}into two orthogonal vector subspaces: the active row space ofWUW\_\{U\}and the null space or kernel, defined as:
ker\(WU\)=\{v∈ℝD∣WUv=0\}\\ker\(W\_\{U\}\)=\\\{v\\in\\mathbb\{R\}^\{D\}\\mid W\_\{U\}v=0\\\}Any variation in the latent hidden representationh\(x\)h\(x\)that lies withinker\(WU\)\\ker\(W\_\{U\}\)is annihilated during the transformation, exerting zero influence on the output logit vector\. This kernel constitutes a functionally latent, “probe\-invisible” subspace\.
The probe\-visible quotient space relates to the logits spectrum of all available neural networks through the foundational geometric principle ofreadout equivalenceand coordinate\-free representation mapping\.
For any neural network, the terminal hidden stateh\(x\)∈Hh\(x\)\\in His projected onto theMM\-dimensional logit spaceℒ\\mathcal\{L\}via an affine readout head, defined as:
L\(h\(x\)\)=WU⋅h\(x\)\+bL\(h\(x\)\)=W\_\{U\}\\cdot h\(x\)\+bBecause neural networks differ arbitrarily in their initialization, parameterization, and layer\-wise architectures, their internal hidden coordinates are not directly comparable\. However, the logit spectrum serves as a shared, behaviorally observable interface through which different networks can be compared\.
If we define a probe familyVVas the linear span of the readout directions \(the rows of the unembedding matrixWUW\_\{U\}\), the hidden dimensions that do not affect the output logits constitute the probe\-invisible subspace,K\(V\)=ker\(WU\)K\(V\)=\\ker\(W\_\{U\}\)\. Factoring out this null space leaves theprobe\-visible quotient space:
Z\(V\)=H/K\(V\)=H/ker\(WU\)Z\(V\)=H/K\(V\)=H/\\ker\(W\_\{U\}\)This quotient space relates to the logit spectrum of all available neural networks through three key mathematical and operational principles:
1. 1\.The Canonical Linear Isomorphism By the first isomorphism theorem, the readout linear mapWi:Hi→ℝMW\_\{i\}:H\_\{i\}\\to\\mathbb\{R\}^\{M\}induces a canonical linear isomorphism W¯i:Hi/ker\(Wi\)⟶im\(Wi\),\[h\]⟼Wih\.\\bar\{W\}\_\{i\}:H\_\{i\}/\\ker\(W\_\{i\}\)\\longrightarrow\\operatorname\{im\}\(W\_\{i\}\),\\qquad\[h\]\\longmapsto W\_\{i\}h\.Thus the probe\-visible quotient is canonically identified with the image of the readout linear map; no undefined dual space is required\.
2. 2\.Affine Equivalence Under Output Agreement Under exact output agreement, the earlier affine reconstruction is justified when the relevant readout has full column rank\. Without that assumption, quotienting identifies readout\-invisible directions, but output agreement alone does not establish an invertible hidden\-state transformation between models\. Softmax also has a common\-logit\-shift symmetry that should be treated explicitly when probabilities rather than logits are compared\.
3. 3\.Cross\-Model Probe Portability and Transfer Because the full hidden stateHHcontains model\-specific probe\-invisible directions, transferring a probe between hidden spaces may fail unless an inter\-model correspondence is identified and validated\.
A shared probe\-visible quotient can serve as a candidate comparison object, but transporting a safety or behavioral monitor between architectures requires an explicitly identified inter\-model map and target\-model validation\. Zero\-label portability is not implied by the quotient construction alone\.
### 3\.1Data Semantic Representation
This means that a clinical interoperability substrate cannot begin with vague natural language\. It needs a small typed boundary\.
###### Definition 3\.1\(Boundary algebra\)\.
A boundary algebra is a finite Boolean algebraBB\. Its atoms are
At\(B\)=\{a1,…,aN\},\\operatorname\{At\}\(B\)=\\\{a\_\{1\},\\ldots,a\_\{N\}\\\},and every element ofBBis a union of atoms\.
###### Definition 3\.2\(Model\-relative semantics\)\.
LetWWbe a set of possible clinical worlds,TTa time domain, andLLa location or facility domain\. A semantics forBBis a Boolean homomorphism
\[\[⋅\]\]ℳ:B→𝒫\(W×T×L\),\[\\\!\[\\cdot\]\\\!\]\_\{\\mathcal\{M\}\}:B\\to\\mathcal\{P\}\(W\\times T\\times L\),so that
\[\[b∧c\]\]\\displaystyle\[\\\!\[b\\wedge c\]\\\!\]=\[\[b\]\]∩\[\[c\]\],\\displaystyle=\[\\\!\[b\]\\\!\]\\cap\[\\\!\[c\]\\\!\],\[\[b∨c\]\]\\displaystyle\[\\\!\[b\\vee c\]\\\!\]=\[\[b\]\]∪\[\[c\]\],\\displaystyle=\[\\\!\[b\]\\\!\]\\cup\[\\\!\[c\]\\\!\],\[\[¬b\]\]\\displaystyle\[\\\!\[\\neg b\]\\\!\]=\(W×T×L\)∖\[\[b\]\]\.\\displaystyle=\(W\\times T\\times L\)\\setminus\[\\\!\[b\]\\\!\]\.
This semantics is model\-relative\. It does not prove reality\. It says exactly what the system means when it states, for example, that an allergy is active during a half\-open time interval\[t0,t1\)\[t\_\{0\},t\_\{1\}\)at a facility\.
## 4Condensed\-mathematics motivation and operational probes
Classical point\-set topology treats a space as a set of points with open subsets\. Condensed mathematics changes the perspective: a space is tested by maps from compact totally disconnected spaces\[[1](https://arxiv.org/html/2608.10300#bib.bib1),[2](https://arxiv.org/html/2608.10300#bib.bib2)\]\. For a compactly generated Hausdorff spaceXX, one writes
X¯\(S\)=C0\(S,X\)\\underline\{X\}\(S\)=C^\{0\}\(S,X\)for a profinite probeSS\.
The intuition is simple\. A single point may not reveal the topology of a system\. A convergent sequence can\. Letℝδ\\mathbb\{R\}\_\{\\delta\}be the real numbers with the discrete topology and let
f:ℝδ→ℝf:\\mathbb\{R\}\_\{\\delta\}\\to\\mathbb\{R\}be the identity map of sets\. Algebraically, it looks bijective\. Topologically, it is not an isomorphism\. Use the profinite convergent sequence
ℕ∞=ℕ∪\{∞\}\.\\mathbb\{N\}\_\{\\infty\}=\\mathbb\{N\}\\cup\\\{\\infty\\\}\.For the cokernel statement below, regardℝδ\\mathbb\{R\}\_\{\\delta\}andℝ\\mathbb\{R\}as topological abelian groups and form the associated condensed abelian groups; the cokernel is taken in that additive category, not in plain set\-valued condensed spaces\. Then
Cok\(f¯\)\(ℕ∞\)≅\{convergent real sequences\}\{eventually constant real sequences\},\\operatorname\{Cok\}\(\\underline\{f\}\)\(\\mathbb\{N\}\_\{\\infty\}\)\\cong\\frac\{\\\{\\text\{convergent real sequences\}\\\}\}\{\\\{\\text\{eventually constant real sequences\}\\\}\},which is nonzero\. The probe detects the mismatch\.
In software, we cannot execute infinite profinite objects\. We implement*operational profinite probes*: finite, clock\-bounded audit loops that approximate the same testing philosophy\.
###### Definition 4\.1\(Operational profinite probe\)\.
An operational profinite probe is a finite sequence
P=\(s0→s1→⋯→sn\)P=\(s\_\{0\}\\to s\_\{1\}\\to\\cdots\\to s\_\{n\}\)of version\-pinned tests, such as terminology snapshots, identity claims, policy versions, or FHIR capability states\. A probe passes if every transition preserves the declared boundary invariants\.
This is an engineering analogy motivated by condensed\-mathematics probing: the system is tested by structured families of contexts rather than isolated examples\. The finite operational probe defined here is not claimed to approximate a condensed object in a formal convergence sense, and no condensed\-mathematics theorem is used as a clinical safety guarantee\.
## 5Neuro\-symbolic partitioning: discovery and judgment
The architecture separates two roles\.
##### Ars inveniendi: discovery\.
An LLM, parser, embedding model, or classifier may read free text and emit logit receipts\. It is an untrusted compiler from messy input to typed proposals\. Its output must include model version, prompt digest, terminology version, full or bounded\-tail logits, and provenance\.
##### Ars iudicandi: judgment\.
A deterministic engine checks whether the receipt is admissible\. It performs type checking, terminology validation, Dirichlet evidence update, sheaf consistency diagnostics, identity\-log verification, and FHIR transaction construction\. The judgment engine is the only component allowed to create commit\-ready clinical payloads\.
The boundary between the two layers is a signed JSON\-LD envelope:
ℰ=\(subject,interval,facility,category set,L,p,ρ,policy\)\.\\mathcal\{E\}=\(\\text\{subject\},\\text\{interval\},\\text\{facility\},\\text\{category set\},L,p,\\rho,\\text\{policy\}\)\.This envelope can be reviewed by humans, tested by finite probes, and attached to FHIRProvenanceorAuditEventrecords\[[15](https://arxiv.org/html/2608.10300#bib.bib15),[16](https://arxiv.org/html/2608.10300#bib.bib16)\]\.
## 6Local hierarchical Dirichlet evidence
A Dirichlet\-multinomial \(also called a Dirichlet compound multinomial\) is a probability distribution used to model categorical count data that exhibits overdispersion \(more variance than a standard model would expect\)\.
To understand the Dirichlet\-multinomial, think of it as a two\-step hierarchical process:
1. 1\.The Dirichlet Step: Instead of assuming all observations come from one fixed set of underlying probabilities, we assume that the underlying probability vector \(the chances of a specific event occurring\) is continuously changing or uncertain\. We draw this probability vector from a Dirichlet distribution\.
2. 2\.The Multinomial Step: Once we have our specific probability vector, we use it to generate our discrete counts using a Multinomial distribution\.
A standard multinomial distribution assumes all data is generated from one fixed, known set of probabilities\. Because of this, it can often underestimate the true variability of real\-world data \(a problem calledoverdispersion\)\.
By injecting uncertainty about the probabilities themselves \(using the Dirichlet step\), the Dirichlet\-multinomial allows for much wider variance\. It accounts for instances where groups or subjects vary much more widely in their categorical counts than a simple multinomial would predict\. At the logit boundary of statistical artificial intelligence methods, this wider variance persists\.
### 6\.1Local categorical decisions
A Dirichlet distribution belongs on a local categorical simplex\. Let
C=\{c1,…,cK\}C=\\\{c\_\{1\},\\ldots,c\_\{K\}\\\}be mutually exclusive and exhaustive alternatives for one decision\. Then
p∈ΔK−1=\{p∈ℝ≥0K:∑i=1Kpi=1\},p\\in\\Delta^\{K\-1\}=\\left\\\{p\\in\\mathbb\{R\}\_\{\\geq 0\}^\{K\}:\\sum\_\{i=1\}^\{K\}p\_\{i\}=1\\right\\\},and
p∼Dir\(α\),α∈ℝ\>0K\.p\\sim\\operatorname\{Dir\}\(\\alpha\),\\qquad\\alpha\\in\\mathbb\{R\}\_\{\>0\}^\{K\}\.The Fisher information matrix inα\\alpha\-coordinates is
I\(α\)ij=ψ1\(αi\)δij−ψ1\(α0\),α0=∑iαi,I\(\\alpha\)\_\{ij\}=\\psi\_\{1\}\(\\alpha\_\{i\}\)\\delta\_\{ij\}\-\\psi\_\{1\}\(\\alpha\_\{0\}\),\\qquad\\alpha\_\{0\}=\\sum\_\{i\}\\alpha\_\{i\},whereψ1\\psi\_\{1\}is the trigamma function\.
### 6\.2Evidence boxes and dynamic atom registries
A fixed evidence box
αi∈\[ε,A\]\\alpha\_\{i\}\\in\[\\varepsilon,A\]prevents boundary singularities\. However, clinical terminologies split and merge\. A rigid category set can create schema lock\-in\. We therefore use a hierarchical Dirichlet\-multinomial registry\.
At timett, letCtC\_\{t\}be the active category set\. When a new categorycK\+1c\_\{K\+1\}appears, the registry assigns
αK\+1=αnew\>0\\alpha\_\{K\+1\}=\\alpha\_\{\\rm new\}\>0and records the terminology version and parent category\. This avoids division by zero and makes category growth auditable\.
### 6\.3Numerical conditioning
The verification script compares
α=\(2,3,4,5\)\\alpha=\(2,3,4,5\)with
α=\(0\.01,3,4,5\)\.\\alpha=\(0\.01,3,4,5\)\.The first has condition number about20\.4620\.46\. The second has condition number about4\.55×1054\.55\\times 10^\{5\}\. This is the practical reason for an evidence box: near\-boundary exclusion can make Fisher geometry numerically unstable\.
#### 6\.3\.1Expanded: Numerical Conditioning in the Dirichlet Fisher Metric
For aKK\-category Dirichlet distribution with parameter
α=\(α1,…,αK\)∈ℝ\>0K,α0=∑i=1Kαi,\\alpha=\(\\alpha\_\{1\},\\ldots,\\alpha\_\{K\}\)\\in\\mathbb\{R\}\_\{\>0\}^\{K\},\\qquad\\alpha\_\{0\}=\\sum\_\{i=1\}^\{K\}\\alpha\_\{i\},the Fisher information matrix inα\\alpha\-coordinates is
gij\(α\)=ψ1\(αi\)δij−ψ1\(α0\),g\_\{ij\}\(\\alpha\)=\\psi\_\{1\}\(\\alpha\_\{i\}\)\\delta\_\{ij\}\-\\psi\_\{1\}\(\\alpha\_\{0\}\),whereψ1\\psi\_\{1\}is the trigamma function\. Equivalently,
g\(α\)=diag\(ψ1\(α1\),…,ψ1\(αK\)\)−ψ1\(α0\)𝟏𝟏⊤\.g\(\\alpha\)=\\operatorname\{diag\}\\big\(\\psi\_\{1\}\(\\alpha\_\{1\}\),\\ldots,\\psi\_\{1\}\(\\alpha\_\{K\}\)\\big\)\-\\psi\_\{1\}\(\\alpha\_\{0\}\)\\mathbf\{1\}\\mathbf\{1\}^\{\\top\}\.
The condition number is
κ2\(g\)=λmax\(g\)λmin\(g\)\.\\kappa\_\{2\}\(g\)=\\frac\{\\lambda\_\{\\max\}\(g\)\}\{\\lambda\_\{\\min\}\(g\)\}\.
The verification script compares two parameter vectors:
α\(a\)=\(2,3,4,5\),\\alpha^\{\(a\)\}=\(2,3,4,5\),and
α\(b\)=\(0\.01,3,4,5\)\.\\alpha^\{\(b\)\}=\(0\.01,3,4,5\)\.
For the moderate interior pointα\(a\)=\(2,3,4,5\)\\alpha^\{\(a\)\}=\(2,3,4,5\), one obtains approximately
ψ1\(α\(a\)\)=\(0\.644934,0\.394934,0\.283823,0\.221323\),\\psi\_\{1\}\(\\alpha^\{\(a\)\}\)=\(0\.644934,\\;0\.394934,\\;0\.283823,\\;0\.221323\),and
ψ1\(α0\)=ψ1\(14\)≈0\.074040\.\\psi\_\{1\}\(\\alpha\_\{0\}\)=\\psi\_\{1\}\(14\)\\approx 0\.074040\.The eigenvalues ofg\(α\(a\)\)g\(\\alpha^\{\(a\)\}\)are approximately
\(0\.029494,0\.254435,0\.361568,0\.603356\)\.\(0\.029494,\\;0\.254435,\\;0\.361568,\\;0\.603356\)\.Therefore
κ2\(g\(α\(a\)\)\)=0\.6033560\.029494≈20\.46\.\\kappa\_\{2\}\(g\(\\alpha^\{\(a\)\}\)\)=\\frac\{0\.603356\}\{0\.029494\}\\approx 20\.46\.
For the near\-boundary point
α\(b\)=\(0\.01,3,4,5\),\\alpha^\{\(b\)\}=\(0\.01,3,4,5\),the first trigamma value is enormous:
ψ1\(0\.01\)≈10001\.621\.\\psi\_\{1\}\(0\.01\)\\approx 10001\.621\.This follows from the asymptotic behavior
ψ1\(x\)∼1x2asx↓0\.\\psi\_\{1\}\(x\)\\sim\\frac\{1\}\{x^\{2\}\}\\qquad\\text\{as \}x\\downarrow 0\.Thus
ψ1\(0\.01\)≈1\(0\.01\)2=104,\\psi\_\{1\}\(0\.01\)\\approx\\frac\{1\}\{\(0\.01\)^\{2\}\}=10^\{4\},up to lower\-order terms\.
The resulting eigenvalues are approximately
\(0\.021986,0\.254705,0\.362908,10001\.5344\)\.\(0\.021986,\\;0\.254705,\\;0\.362908,\\;10001\.5344\)\.Hence
κ2\(g\(α\(b\)\)\)=10001\.53440\.021986≈4\.55×105\.\\kappa\_\{2\}\(g\(\\alpha^\{\(b\)\}\)\)=\\frac\{10001\.5344\}\{0\.021986\}\\approx 4\.55\\times 10^\{5\}\.
If an implementation adopts a condition\-number budget, the lower evidence\-box boundε\\varepsiloncan be selected by solving for the smallest value that keepsκ2\(g\)\\kappa\_\{2\}\(g\)below that budget over the declared parameter region\. In the one\-dimensional sweep\[ε,3,4,5\]\[\\varepsilon,3,4,5\], a budget of10410^\{4\}is crossed nearε≈0\.066\\varepsilon\\approx 0\.066\. This number is illustrative rather than a universal certification threshold\. The Appendix[A](https://arxiv.org/html/2608.10300#A1)deliberately evaluatesα1=0\.01\\alpha\_\{1\}=0\.01as a near\-boundary stress case; the reference script does not itself enforce an operational evidence box\.
Additionally, this is the practical reason for an evidence box\. As anyαi\\alpha\_\{i\}approaches zero, the Dirichlet Fisher geometry becomes extremely anisotropic\. A small movement in the nearly excluded category direction has enormous Fisher cost, while other directions remain at ordinary scale\. Numerical optimization then becomes stiff: gradient steps, Newton solves, natural gradient updates, and uncertainty propagation can become dominated by the singular boundary coordinate\.
It is more accurate to call this a*near\-boundary sparsity*or*near\-boundary exclusion*effect, rather than ordinary certainty\. In a Dirichlet model,αi≪1\\alpha\_\{i\}\\ll 1places strong mass near the simplex facepi=0p\_\{i\}=0\. The category is nearly excluded, and the Fisher metric becomes singular at that face\.
The evidence box
αi∈\[ε,A\]\\alpha\_\{i\}\\in\[\\varepsilon,A\]keeps every parameter away from zero and infinity\. Sinceψ1\\psi\_\{1\}is continuous and positive on compact subsets of\(0,∞\)\(0,\\infty\), the Fisher matrix then has finite eigenvalue bounds:
0<λ∗\(K,ε,A\)≤λmin\(g\(α\)\)≤λmax\(g\(α\)\)≤λ∗\(K,ε,A\)<∞\.0<\\lambda\_\{\*\}\(K,\\varepsilon,A\)\\leq\\lambda\_\{\\min\}\(g\(\\alpha\)\)\\leq\\lambda\_\{\\max\}\(g\(\\alpha\)\)\\leq\\lambda^\{\*\}\(K,\\varepsilon,A\)<\\infty\.Therefore,
κ2\(g\(α\)\)≤λ∗\(K,ε,A\)λ∗\(K,ε,A\)<∞\.\\kappa\_\{2\}\(g\(\\alpha\)\)\\leq\\frac\{\\lambda^\{\*\}\(K,\\varepsilon,A\)\}\{\\lambda\_\{\*\}\(K,\\varepsilon,A\)\}<\\infty\.
The evidence box is not merely a numerical trick\. It is a certificate that every categorical evidence state remains inside a computationally stable region of the Fisher–Dirichlet manifold\.
## 7Finite sheaves and mapping\-cone diagnostics
Finite sheaves provide a structured way to represent local data constraints and their compatibility\. In the intended EHR setting, a contradiction should be localized before a governed write is constructed, so that independent work items can be routed separately when policy permits\. These diagnostics do not override the atomic semantics of a FHIR transaction Bundle; any stalk\-level quarantine must occur before transaction construction or across separately scoped transactions or batch work\.
### 7\.1Cellular sheaves in one page
A finite cellular sheaf assigns a vector space to each cell and a linear restriction map to each incidence\[[5](https://arxiv.org/html/2608.10300#bib.bib5)\]\. In this paper, every stalk is a finite\-dimensional real inner\-product vector space\. This is essential because Laplacians require adjoints\.
LetXXbe a finite cell complex andℱ\\mathcal\{F\}a sheaf onXX\. The cochain space is
Ck\(X;ℱ\)=⨁σ∈Xkℱ\(σ\)\.C^\{k\}\(X;\\mathcal\{F\}\)=\\bigoplus\_\{\\sigma\\in X\_\{k\}\}\\mathcal\{F\}\(\\sigma\)\.The coboundaryδk:Ck→Ck\+1\\delta^\{k\}:C^\{k\}\\to C^\{k\+1\}is assembled from restriction maps\. The Hodge Laplacian is
Δk=\(δk−1\)\(δk−1\)∗\+\(δk\)∗δk\.\\Delta^\{k\}=\(\\delta^\{k\-1\}\)\(\\delta^\{k\-1\}\)^\{\*\}\+\(\\delta^\{k\}\)^\{\*\}\\delta^\{k\}\.Its kernel represents cohomology\[[5](https://arxiv.org/html/2608.10300#bib.bib5)\]:
kerΔk≅Hk\(X;ℱ\)\.\\ker\\Delta^\{k\}\\cong H^\{k\}\(X;\\mathcal\{F\}\)\.
### 7\.2Mapping cones
Letφ:ℱ→𝒢\\varphi:\\mathcal\{F\}\\to\\mathcal\{G\}be a sheaf morphism\. The mapping cone measures how farφ\\varphiis from gluing consistently\[[6](https://arxiv.org/html/2608.10300#bib.bib6)\]\. Its cochains are
Cq\(Coneφ\)=Cq\+1\(X;ℱ\)⊕Cq\(X;𝒢\),C^\{q\}\(\\operatorname\{Cone\}\\varphi\)=C^\{q\+1\}\(X;\\mathcal\{F\}\)\\oplus C^\{q\}\(X;\\mathcal\{G\}\),with differential
dcone\(x,y\)=\(−dℱx,φx\+d𝒢y\)\.d\_\{\\rm cone\}\(x,y\)=\(\-d\_\{\\mathcal\{F\}\}x,\\varphi x\+d\_\{\\mathcal\{G\}\}y\)\.The cone Laplacian has a null space of relative obstructions\.
###### Definition 7\.1\(Trace cell energy\)\.
LetΠλ\\Pi\_\{\\lambda\}be the orthogonal projector onto the obstruction null space of a cone Laplacian, and letΠσ\\Pi\_\{\\sigma\}be the projector onto a stalk subspace\. Define
Eσ=tr\(ΠλΠσ\)\.E\_\{\\sigma\}=\\operatorname\{tr\}\(\\Pi\_\{\\lambda\}\\Pi\_\{\\sigma\}\)\.
###### Proposition 7\.1\(Basis invariance\)\.
The quantityEσE\_\{\\sigma\}is invariant under orthogonal rotation of any basis chosen for the obstruction subspace\.
###### Proof\.
Only the projectorΠλ=UU⊤\\Pi\_\{\\lambda\}=UU^\{\\top\}matters\. ReplacingUUbyUQUQforQ∈O\(m\)Q\\in O\(m\)gives
UQQ⊤U⊤=UU⊤\.UQQ^\{\\top\}U^\{\\top\}=UU^\{\\top\}\.Thereforetr\(ΠλΠσ\)\\operatorname\{tr\}\(\\Pi\_\{\\lambda\}\\Pi\_\{\\sigma\}\)is unchanged\. ∎
### 7\.3Graceful degradation
For a FHIR Bundle submitted withtype=transaction, atomic rollback remains the transaction semantic\[[15](https://arxiv.org/html/2608.10300#bib.bib15)\]\. Stalk\-level quarantine is applied before constructing that atomic transaction, or across independently scoped transactions or batch work\. If
Eσ\>θquarantine,E\_\{\\sigma\}\>\\theta\_\{\\rm quarantine\},only the affected stalk is quarantined\. Other independent stalks may proceed if policy allows\.
The executable appendix includes a*projector\-based toy obstruction surrogate*with three coordinate stalks,
Allergy,MedicationRequest,RenalLab\.\\text\{Allergy\},\\quad\\text\{MedicationRequest\},\\quad\\text\{RenalLab\}\.After orthonormalizing the printed obstruction basis, the trace energies are
stalkEσtoy gateAllergy0\.019778eligibleMedicationRequest1\.977750quarantineRenalLab0\.002472eligible\.\\begin\{array\}\[\]\{c\|c\|c\}\\text\{stalk\}&E\_\{\\sigma\}&\\text\{toy gate\}\\\\ \\hline\\cr\\text\{Allergy\}&0\.019778&\\text\{eligible\}\\\\ \\text\{MedicationRequest\}&1\.977750&\\text\{quarantine\}\\\\ \\text\{RenalLab\}&0\.002472&\\text\{eligible\}\.\\end\{array\}These values illustrate basis\-invariant localization, but the script does not construct a sheaf morphism, a mapping\-cone differential, or a mapping\-cone Hodge Laplacian\. Therefore this numerical table is not evidence that a deployed mapping\-cone diagnostic has been validated\. “Eligible” means only that an independent work item could proceed to later policy gates; it does not mean partial success inside a single atomic FHIR transaction\.
## 8Geometry for audit and state charts
The EHR label adjudicator’s interface shows a tabular contradiction report: stalk energies, offending restrictions, terminology versions, and provenance\. The clinical decision is made from discrete facts and policy\. These reports are generated from version\-pinned mappings, restriction checks, and provenance available to the adjudication workflow\.
Using Higher\-dimensional hyperellipsoids, identity certificates and audit certificates are generated digitally and used to support the authenticity, accountability, and security of EHR systems\. They act as the digital passport and tamper\-evident logbook for clinical data\. Identity certificates are cryptographic credentials assigned to a specific patient\.
Audit certificates are tamper\-evident records or cryptographically signed metadata logs used to record and examine system activity involving patient information\. An implementation may record user identity, timestamp, affected resource or action, source/device context, and provenance according to institutional policy and applicable requirements\. HIPAA Security Rule audit controls require mechanisms to record and examine activity in systems that use or contain electronic protected health information\[[19](https://arxiv.org/html/2608.10300#bib.bib19)\]; this manuscript does not claim that HIPAA universally mandates the exact field set or timestamp granularity stated in the superseded text\. Such logs support security, compliance, and forensic review\.
### 8\.1Higher\-dimensional hyperellipsoid certificates
For annn\-dimensional state chart, the correct quasiconformal object is an orientation\-preserving homeomorphism\[[3](https://arxiv.org/html/2608.10300#bib.bib3),[4](https://arxiv.org/html/2608.10300#bib.bib4)\]
f:Ω⊂ℝn→Ω′⊂ℝnf:\\Omega\\subset\\mathbb\{R\}^\{n\}\\to\\Omega^\{\\prime\}\\subset\\mathbb\{R\}^\{n\}withf∈Wloc1,nf\\in W^\{1,n\}\_\{\\rm loc\}and
‖Df\(x\)‖n≤KJf\(x\)a\.e\.\\\|Df\(x\)\\\|^\{n\}\\leq KJ\_\{f\}\(x\)\\quad\\text\{a\.e\.\}At differentiability points,Df\(x\)Df\(x\)maps infinitesimal spheres to ellipsoids\. If the singular values are
σ1≥⋯≥σn\>0,\\sigma\_\{1\}\\geq\\cdots\\geq\\sigma\_\{n\}\>0,then a practical certificate is
Hf\(x\)=σ1σn\.H\_\{f\}\(x\)=\\frac\{\\sigma\_\{1\}\}\{\\sigma\_\{n\}\}\.A safety\-critical implementation must also check positive Jacobian, boundary behavior, inverse residuals, and stratum preservation\.
For the matrix
A=\[1\.200\.1000\.200\.800\.0500\.101\.10\],A=\\begin\{bmatrix\}1\.20&0\.10&0\\\\ 0\.20&0\.80&0\.05\\\\ 0&0\.10&1\.10\\end\{bmatrix\},the script computes singular values approximately
\(1\.254966,1\.110695,0\.737507\),\(1\.254966,1\.110695,0\.737507\),so
H≈1\.701632,J≈1\.028000,KO=σ13J≈1\.922661\.H\\approx 1\.701632,\\qquad J\\approx 1\.028000,\\qquad K\_\{O\}=\\frac\{\\sigma\_\{1\}^\{3\}\}\{J\}\\approx 1\.922661\.
### 8\.2Geometry for Audit and State Charts
The geometry of these certificates can be useful or validation and interpretability\. The EHR label adjudicator can display a tabular contradiction report containing:
\(stalk energiesEσ,offending restriction maps,terminology versions,source and target code systems,FHIR resource identifiers,Provenance references,policy rule identifiers,recommended abstention or review action\)\.\\left\(\\begin\{array\}\[\]\{l\}\\text\{stalk energies \}E\_\{\\sigma\},\\\\ \\text\{offending restriction maps\},\\\\ \\text\{terminology versions\},\\\\ \\text\{source and target code systems\},\\\\ \\text\{FHIR resource identifiers\},\\\\ \\text\{Provenance references\},\\\\ \\text\{policy rule identifiers\},\\\\ \\text\{recommended abstention or review action\}\\end\{array\}\\right\)\.
The clinical decision is made from discrete facts, policy, and human authority\. The chart may orient the reviewer, but it should not authorize a write\.
Reports are generated deterministically by comparing candidate local sections against the version\-pinned reference EHR and terminology sheaves\. Formally, let
ϵ:ℱcand⟶𝒲ref\\epsilon:\\mathcal\{F\}\_\{\\mathrm\{cand\}\}\\longrightarrow\\mathcal\{W\}\_\{\\mathrm\{ref\}\}be the grounding morphism from candidate clinical assertions to the authoritative reference sheaf\. The mapping\-cone LaplacianLCL\_\{C\}exposes relative inconsistencies\. For each clinical stalkσ\\sigma, the trace energy
Eσ=tr\(ΠλΠσ\)E\_\{\\sigma\}=\\operatorname\{tr\}\(\\Pi\_\{\\lambda\}\\Pi\_\{\\sigma\}\)measures how much of the obstruction space is supported on that stalk\.
If the visual chart distortion satisfies
K\>Ktabular,K\>K\_\{\\mathrm\{tabular\}\},for exampleKtabular=1\.5K\_\{\\mathrm\{tabular\}\}=1\.5, the system shows the tabular contradiction report, but is not admissible as clinical assertion\. This is a useful tool for certified adjudicators, clinical decision makers, and policy makers alone—not a definitive statement of what should or should not occur\.
Thus, the decision path is
candidate claim→identity, terminology, provenance, and policy checks\\displaystyle\\quad\\color\[rgb\]\{\.5,\.5,\.5\}\\definecolor\[named\]\{pgfstrokecolor\}\{rgb\}\{\.5,\.5,\.5\}\\pgfsys@color@gray@stroke\{\.5\}\\pgfsys@color@gray@fill\{\.5\}\\xrightarrow\{\\hskip 28\.45274pt\}\\text\{\\color\[rgb\]\{0,0,0\}\\definecolor\[named\]\{pgfstrokecolor\}\{rgb\}\{0,0,0\}\\pgfsys@color@gray@stroke\{0\}\\pgfsys@color@gray@fill\{0\}identity, terminology, provenance, and policy checks\}→mapping\-cone contradiction report\\displaystyle\\qquad\\qquad\\color\[rgb\]\{\.5,\.5,\.5\}\\definecolor\[named\]\{pgfstrokecolor\}\{rgb\}\{\.5,\.5,\.5\}\\pgfsys@color@gray@stroke\{\.5\}\\pgfsys@color@gray@fill\{\.5\}\\xrightarrow\{\\hskip 28\.45274pt\}\\text\{\\color\[rgb\]\{0,0,0\}\\definecolor\[named\]\{pgfstrokecolor\}\{rgb\}\{0,0,0\}\\pgfsys@color@gray@stroke\{0\}\\pgfsys@color@gray@fill\{0\}mapping\-cone contradiction report\}→human adjudication or abstention\\displaystyle\\qquad\\qquad\\qquad\\qquad\\color\[rgb\]\{\.5,\.5,\.5\}\\definecolor\[named\]\{pgfstrokecolor\}\{rgb\}\{\.5,\.5,\.5\}\\pgfsys@color@gray@stroke\{\.5\}\\pgfsys@color@gray@fill\{\.5\}\\xrightarrow\{\\hskip 28\.45274pt\}\\text\{\\color\[rgb\]\{0,0,0\}\\definecolor\[named\]\{pgfstrokecolor\}\{rgb\}\{0,0,0\}\\pgfsys@color@gray@stroke\{0\}\\pgfsys@color@gray@fill\{0\}human adjudication or abstention\}→FHIR transaction only if all gates pass\.\\displaystyle\\qquad\\qquad\\qquad\\qquad\\qquad\\qquad\\color\[rgb\]\{\.5,\.5,\.5\}\\definecolor\[named\]\{pgfstrokecolor\}\{rgb\}\{\.5,\.5,\.5\}\\pgfsys@color@gray@stroke\{\.5\}\\pgfsys@color@gray@fill\{\.5\}\\xrightarrow\{\\hskip 28\.45274pt\}\\text\{\\color\[rgb\]\{0,0,0\}\\definecolor\[named\]\{pgfstrokecolor\}\{rgb\}\{0,0,0\}\\pgfsys@color@gray@stroke\{0\}\\pgfsys@color@gray@fill\{0\}FHIR transaction only if all gates pass\.\}
The chart is advisory\. The tabular contradiction report is authoritative for review\.
## 9Decentralized Cryptographic Sheaf\-Enclave protocol
A centralized permit\-before\-action safety\-receipt layer is one relevant comparison point for fail\-closed clinical AI integration\. U\.S\. Patent 12,633,414 B1 describes a safety\-receipt layer interposed between an EHR and AI\-assisted clinical decision support, with a canonical context envelope, policy evaluation, permit outcomes, and receipt generation\[[20](https://arxiv.org/html/2608.10300#bib.bib20)\]\. The discussion here is a high\-level technical comparison only; it is not a claim chart, a legal opinion, or a conclusion about patent scope, validity, infringement, or comparative novelty\.
The DCSE design explored here studies a different systems decomposition: distributed non\-equivocation/consensus, trusted\-execution checks, and sheaf\-based consistency certificates are composed at the admission boundary before governed write\-back\. The contribution claimed in this manuscript is the architecture and its explicit separation of model proposal from deterministic admission checks, not a legal conclusion that the design is patentably novel over any cited reference\.
The DCSE protocol sketch contains the following interconnected components:
HETEROGENEOUS EHR ENCLAVES\(Modular EHR Enclave, Central EHR Enclave, COTS Systems\)HARDWARE\-ENFORCED TEE BOUNDARY CONVERGENCE GATE• Runs a specified TEE\-assisted non\-equivocation/BFT profile• Runs small deterministic trust\-boundary checks inside TEEs; dense linear algebra remains outsideCOHOMOLOGICAL CONSISTENCY EVALUATION ENGINE• Maps incoming transaction records to cellular sheaf spaces on posets• Computes a degree\-appropriate mapping\-cone Hodge diagnostic• Isolates data stalks where local trace energyEσ\>θE\_\{\\sigma\}\>\\thetaCOMMIT TRANSACTION• Outputs a signed consistency attestation; ZK is an optional future extension• Commits a validated atomic transaction or separately scoped transaction\(s\)SURGICAL QUARANTINE• Degrades anomalous stalks into an isolated sandbox container• Quarantines before atomic transaction construction, or routes independent work separatelyFHIR Transaction Bundle\(Untrusted Ingestion\)Consensus\-VerifiedSecure AssemblyConsistent State\(Eσ≤θE\_\{\\sigma\}\\leq\\theta\)Inconsistent Stalk Only\(Eσ\>θE\_\{\\sigma\}\>\\theta\)
1. 1\.Hardware\-Enforced, TEE\-Assisted Consensus: DCSE places small, deterministic trust\-boundary checks inside hardware\-secured TEEs at participating nodes\[[12](https://arxiv.org/html/2608.10300#bib.bib12),[13](https://arxiv.org/html/2608.10300#bib.bib13)\]\. An optimistic TEE\-assisted non\-equivocation profile may reduce protocol overhead\[[8](https://arxiv.org/html/2608.10300#bib.bib8)\], while the conservative fallback uses classical3f\+13f\+1\-style BFT assumptions\[[7](https://arxiv.org/html/2608.10300#bib.bib7),[9](https://arxiv.org/html/2608.10300#bib.bib9)\]\. The manuscript does not claim a generic2f\+12f\+1resilience threshold or sub\-millisecond latency without a specified protocol, threat model, and benchmark\. Dense SVD, QR, and eigensolvers remain outside the enclave as described below\.
2. 2\.Homological Inconsistency Gating: Rather than executing only static policy\-graph rules, DCSE can compile incoming candidate clinical updates into a topological poset representing a cellular sheaf\. The mathematical design defines a mapping\-cone complex and degree\-appropriate Hodge Laplacian; dense construction or eigensolution may occur outside the enclave, with the enclave verifying sparse residuals or signed certificates\. The toy numerical appendix uses a projector\-based obstruction surrogate, which must not be identified with a mapping\-cone Laplacian unless it is constructed from the cone differential\. Localized obstruction support is summarized by the basis\-invariant trace cell energy: Eσ=tr\(ΠλΠσ\)E\_\{\\sigma\}=\\text\{tr\}\(\\Pi\_\{\\lambda\}\\Pi\_\{\\sigma\}\)whereΠλ\\Pi\_\{\\lambda\}is the projector onto the null space \(representing cohomological obstructions\) andΠσ\\Pi\_\{\\sigma\}is the stalk projector\.
3. 3\.Stalk\-Level Surgical Degradation \(Algebraic Grafting\): DCSE proposes stalk\-level quarantine before constructing an atomic FHIR transaction, or across separately scoped transactions\. WhenEσE\_\{\\sigma\}exceeds the quarantine threshold, the affected stalk is isolated from the candidate write set\. If a FHIR Bundle is submitted withtype=transaction, its atomic semantics are preserved: the bundle commits as a whole or rolls back as a whole\[[15](https://arxiv.org/html/2608.10300#bib.bib15)\]\. Quarantined data are excluded or routed separately rather than partially committed from the same transaction\. This manuscript does not characterize the patent’s claim scope as requiring whole\-transaction rollback without claim\-level analysis\.
4. 4\.Zero\-Knowledge Consistency Attestation: A future deployment may attach a zero\-knowledge proof to a hardware\-attested consistency result\. Such a proof would certify only the specified finite computation and policy predicate without revealing the private witness; it would not assert medical truth\.
##### Technical distinctions in the design space\.
The following points describe architectural differences rather than legal novelty:
- •Centralized receipt gating vs\. distributed verification: DCSE combines a TEE\-assisted non\-equivocation/BFT profile with a conservative BFT fallback; exact resilience depends on the selected protocol and threat model\[[9](https://arxiv.org/html/2608.10300#bib.bib9)\]\.
- •Policy evaluation vs\. consistency diagnostics: in addition to deterministic policy checks, DCSE proposes cellular\-sheaf consistency diagnostics\. A deployed implementation must construct the actual mapping\-cone differential before calling a derived Laplacian or obstruction space a mapping\-cone certificate\.
- •Candidate\-work quarantine vs\. transaction atomicity: candidate items may be quarantined before FHIR transaction construction or routed into separately scoped work\. A submitted FHIR transaction retains all\-or\-nothing semantics\[[15](https://arxiv.org/html/2608.10300#bib.bib15)\]\.
- •Optional privacy\-preserving attestation: zero\-knowledge proof machinery is future work and would attest only to a specified finite computation and policy predicate, not to medical truth\.
### 9\.1Protocol objects
A DCSE node maintains:
\(B,V,Θ,ℱ,𝒲,ℒ,𝒫\)\.\(B,V,\\Theta,\\mathcal\{F\},\\mathcal\{W\},\\mathcal\{L\},\\mathcal\{P\}\)\.These objects separate model evidence from enterprise authority:
BB: boundary algebra\.The finite typed universe of assertions and actions that a model or agent is permitted to propose\. It prevents arbitrary free\-form output from silently becoming an authoritative enterprise fact\.
VV: versioned semantic bundle\.The terminology, ontology, schema, code\-system, mapping, message\-format, and other controlled\-vocabulary versions that define the meaning of a proposal at evaluation time\.
Θ\\Theta: evidence registry\.The calibrated local categorical evidence state\. In the construction used here, this includes hierarchical Dirichlet evidence\. A model probability or logit can update evidence only through declared rules; it is not authority by itself\.
ℱ\\mathcal\{F\}: candidate/local state\.The proposed local assertions, mappings, records, actions, or work items whose compatibility is being evaluated\.
𝒲\\mathcal\{W\}: authoritative grounding state\.Version\-pinned systems of record, signed source data, approved registries, trusted references, human adjudications, and other external evidence against which the candidate state is judged\.
ℒ\\mathcal\{L\}: identity/provenance ledger\.The immutable history used to bind a proposal to the correct subject, entity, case, or work item and to detect protocol equivocation\. Ledger consistency proves provenance and non\-equivocation properties, not the truth of an identity match by itself\.
𝒫\\mathcal\{P\}: runtime admissibility policy\.The versioned enterprise contract that maps verified facts, failures, dependencies, authority, and operational context to allowed actions such as admit, quarantine, abstain, expert review, or reject\.
### 9\.2Operational policy contract and domain portability
The policy object𝒫\\mathcal\{P\}is the most deployment\-specific component\. A useful operational decomposition is
𝒫=\(𝒜,𝒢,𝒯,𝒟,ℋ,𝒬,ℛ,Λ,ℰ,ℱb\),\\mathcal\{P\}=\(\\mathcal\{A\},\\mathcal\{G\},\\mathcal\{T\},\\mathcal\{D\},\\mathcal\{H\},\\mathcal\{Q\},\\mathcal\{R\},\\Lambda,\\mathcal\{E\},\\mathcal\{F\}\_\{b\}\),where𝒜\\mathcal\{A\}is the allowed action set;𝒢\\mathcal\{G\}contains hard gating predicates;𝒯\\mathcal\{T\}contains thresholds, freshness limits, and temporal\-validity windows;𝒟\\mathcal\{D\}specifies dependency rules and dependency closure;ℋ\\mathcal\{H\}specifies human authority, dual\-control, or named\-review requirements;𝒬\\mathcal\{Q\}defines quarantine scope;ℛ\\mathcal\{R\}defines recovery and escalation;Λ\\Lambdaspecifies liveness and degraded\-operation constraints;ℰ\\mathcal\{E\}defines signed exception and override rules; andℱb\\mathcal\{F\}\_\{b\}defines failover behavior when required services or evidence are unavailable\. A policy instance should also be attributable through fields such as
\(policy\_id,version,effective\_time,authority,hash\)\.\(\\texttt\{policy\\\_id\},\\texttt\{version\},\\texttt\{effective\\\_time\},\\texttt\{authority\},\\texttt\{hash\}\)\.This decomposition is an engineering contract, not an additional mathematical theorem\. The invariant is that every admissibility decision is reproducible under an explicit policy version rather than inferred ad hoc from model confidence\.
The verification architecture is therefore portable while the domain semantics are not\. Table[1](https://arxiv.org/html/2608.10300#S9.T1)illustrates how the same tuple can be instantiated in three enterprise settings without claiming that a healthcare benchmark can be copied unchanged into another sector\.
Table 1:Illustrative domain translations of the GBI/DCSE protocol objects\. The architecture is shared; semantics, authoritative evidence, and policy are domain\-specific\.##### Liveness without violating atomicity\.
Localized quarantine is a pre\-commit work\-item mechanism, not permission to partially commit an operation whose underlying system requires atomicity\. In a financial workflow, for example, one disputed payment or legal\-entity mapping can be excluded from a candidate settlement batch and routed for review while independent verified work continues if institutional policy permits\. In a government workflow, one ambiguous entity association can be quarantined while unrelated mission work remains live\. The same rule appears in the EHR setting: an inadmissible stalk is excluded or separately routed before an atomic FHIR transaction is constructed\.
##### Human review and automation bias\.
The review surface should expose the deterministic reasons for inadmissibility—for example candidate value, authoritative evidence, source freshness, schema or terminology version, authority, dependencies, provenance, policy rule, and required action—rather than reduce review to a model confidence number\. Geometric charts can remain advisory, while a scannable tabular contradiction record is the authoritative review artifact\.
##### Customer\-deployed diagnostic evaluation\.
A versioned evaluation package can be executed locally against an enterprise’s actual model, agent, retrieval, data\-interface, and policy stack\. The output is then a customer\-specific empirical failure surface rather than only a generic leaderboard score or proxy estimate\. Failure slices can inform a data\-development roadmap: expert labeling, synthetic or counterfactual examples, evaluator and grader development, retrieval changes, benchmark expansion, or post\-training environments, followed by re\-evaluation\. This diagnostic loop is vendor\-neutral; it identifies where intervention may add value without predetermining the intervention or provider\.
### 9\.3TEE execution and sparse verification
Trusted execution environments are useful for confidentiality and attestation\[[12](https://arxiv.org/html/2608.10300#bib.bib12),[13](https://arxiv.org/html/2608.10300#bib.bib13)\], but enclaves are not a place to run arbitrary dense numerical workloads\. The DCSE design places small, deterministic checks inside the enclave:
- •signature and nonce verification,
- •sparse residual checks such as‖Lx‖\\\|Lx\\\|,
- •hash\-chain validation,
- •policy evaluation,
- •certificate signing\.
Dense SVD, QR, and large eigensolvers are performed outside the enclave or replaced with sparse certified residual checks\. A WASM/WAMR\-style packaging can enforce heap, I/O, and syscall budgets for deterministic enclave modules\.
### 9\.4BFT identity logging and fallback
TEE\-assisted protocols using a unique sequential identifier generator can reduce communication\[[8](https://arxiv.org/html/2608.10300#bib.bib8)\]in optimistic settings, but hardware counters can fail\. Therefore the identity ledger has two modes\.
##### Fast path\.
If attestation and supported monotonic\-counter or equivalent trusted freshness services are healthy, the node may use a TEE\-assisted non\-equivocation profile\[[13](https://arxiv.org/html/2608.10300#bib.bib13),[14](https://arxiv.org/html/2608.10300#bib.bib14)\]\.
##### Fallback path\.
On counter failure, enclave restart, attestation loss, or equivocation evidence, authoritative clinical writes halt and the system falls back to conservative3f\+13f\+1\-style BFT assumptions\[[7](https://arxiv.org/html/2608.10300#bib.bib7),[9](https://arxiv.org/html/2608.10300#bib.bib9)\]\. The fallback may be implemented by a mechanized BFT protocol family\[[10](https://arxiv.org/html/2608.10300#bib.bib10),[11](https://arxiv.org/html/2608.10300#bib.bib11)\]\. This protects clinical safety from a single hardware\-counter failure\.
The ledger proves protocol\-level non\-equivocation, not patient identity truth\. Clinical identity remains an external validity predicate\.
### 9\.5Zero\-knowledge consistency attestations
A future deployment may attach a zero\-knowledge proof that a specified finite verification computation and policy predicate passed without revealing the private witness\. A schematic statement is
∃w:VerifyConeCertificate\(c,w\)=1∧Policy\(w\)=pass,\\exists\\,w:\\ \\operatorname\{VerifyConeCertificate\}\(c,w\)=1\\quad\\land\\quad\\operatorname\{Policy\}\(w\)=\\texttt\{pass\},where the public inputccbinds the transaction digest, policy version, and verification parameters\. If vanishing of a particular cohomology group is part of the certificate, that property must be encoded by a concrete finite computation or residual check; the expressionH1\(Coneφ\)=0H^\{1\}\(\\operatorname\{Cone\}\\varphi\)=0is not itself a witness predicate\. The proof would attest only to the encoded computation, not to medical truth\.
## 10Complete EHR interoperability application at scale
The motivating setting is a large federated clinical network with legacy RPMS/VistA\-like records, local site dictionaries, terminology services, FHIR\-capable endpoints, identity\-reconciliation needs, and human review\[[23](https://arxiv.org/html/2608.10300#bib.bib23),[24](https://arxiv.org/html/2608.10300#bib.bib24)\]\. The Indian Health Service \(IHS\) is used here as a public interoperability context, not as a deployment claim, endorsement, or statement that this architecture is part of PATH EHR\. The proposed substrate would sit between systems as a fail\-closed co\-processor rather than replace the EHR\.
The complete pipeline for this case would be:
1. 1\.Capability discovery\.Query the destination FHIR server’s capability statement and record supported resources, interactions, versioning, security, and transaction behavior\[[15](https://arxiv.org/html/2608.10300#bib.bib15)\]\.
2. 2\.Identity gate\.Resolve source and destination patient identifiers through a BFT\-backed identity\-decision log\. If identity confidence or protocol safety fails, halt\.
3. 3\.Discovery parse\.An LLM or parser emits logit receipts over local categories, such as medication mapping status or allergy state\.
4. 4\.Boundary type check\.The judgment engine checks category sets, timestamps, facility scope, terminology bundle, and provenance\.
5. 5\.Evidence update\.Accepted receipts update local hierarchical Dirichlet registries\.
6. 6\.Sheaf diagnostic\.Mapping\-cone stalk energies identify contradictions\.
7. 7\.Reviewer presentation\.High\-risk contradictions are shown as tables first\. Charts are optional secondary aids\.
8. 8\.Commit or abstain\.Safe human\-approved changes are sent as FHIR transactions with Provenance and AuditEvent\. Failures return OperationOutcome and quarantine data\[[15](https://arxiv.org/html/2608.10300#bib.bib15),[16](https://arxiv.org/html/2608.10300#bib.bib16),[17](https://arxiv.org/html/2608.10300#bib.bib17)\]\.
### 10\.1Example: penicillin allergy and amoxicillin
Suppose the source record contains an active confirmed high\-criticality penicillin allergy\. A clinician proposes amoxicillin\[[21](https://arxiv.org/html/2608.10300#bib.bib21)\]\. The parser emits a medication\-allergy logit receipt over
\{no\-conflict,possible\-conflict,confirmed\-conflict,unknown\}\.\\\{\\texttt\{no\-conflict\},\\texttt\{possible\-conflict\},\\texttt\{confirmed\-conflict\},\\texttt\{unknown\}\\\}\.The judgment engine checks a version\-pinned clinical terminology and policy bundle; if that bundle classifies the proposed order as conflicting with the recorded allergy state and the sheaf diagnostic exceeds its review threshold, the system treats the candidate write as inadmissible\. It emits\[[17](https://arxiv.org/html/2608.10300#bib.bib17)\]:
OperationOutcome\(severity=error, code=business\-rule\)\.\\texttt\{OperationOutcome\(severity=error, code=business\-rule\)\}\.No medication transaction is committed unless a named clinician performs an explicit override with Provenance\[[16](https://arxiv.org/html/2608.10300#bib.bib16)\]\.
### 10\.2Example: metformin without renal context\[[22](https://arxiv.org/html/2608.10300#bib.bib22)\]
Suppose a metformin order is proposed and the version\-pinned local clinical policy requires qualifying renal context, but no qualifying renal observation is available\. The local category is
\{renal\-context\-present,renal\-context\-expired,renal\-context\-missing\}\.\\\{\\texttt\{renal\-context\-present\},\\texttt\{renal\-context\-expired\},\\texttt\{renal\-context\-missing\}\\\}\.Under that version\-pinned policy, a high posterior mass onrenal\-context\-missingroutes the candidate medication request to quarantine or review rather than authorizing a write\. The system may commit a Provenance record of the abstention but not the medication update\.
### 10\.3FHIR resources used
The core implementation uses\[[15](https://arxiv.org/html/2608.10300#bib.bib15),[16](https://arxiv.org/html/2608.10300#bib.bib16),[17](https://arxiv.org/html/2608.10300#bib.bib17)\]:
Patientidentity\-bound subject,MedicationRequestcandidate medication orders,AllergyIntoleranceallergy state,Observationlabs such as eGFR,Provenanceevidence lineage and signatures,AuditEventsecurity audit trail,OperationOutcomestructured fail\-closed response\.\\begin\{array\}\[\]\{ll\}\\texttt\{Patient\}&\\text\{identity\-bound subject\},\\\\ \\texttt\{MedicationRequest\}&\\text\{candidate medication orders\},\\\\ \\texttt\{AllergyIntolerance\}&\\text\{allergy state\},\\\\ \\texttt\{Observation\}&\\text\{labs such as eGFR\},\\\\ \\texttt\{Provenance\}&\\text\{evidence lineage and signatures\},\\\\ \\texttt\{AuditEvent\}&\\text\{security audit trail\},\\\\ \\texttt\{OperationOutcome\}&\\text\{structured fail\-closed response\}\.\\end\{array\}
## 11Empirical admission\-boundary evaluation: GBI BoundaryBench v0\.1
The architecture above motivates a separate empirical question: can a model proposal cross a frozen structured\-admissibility boundary without access to the trusted answer package? GBI BoundaryBench v0\.1 is a synthetic legacy\-EHR benchmark built for that purpose\[[25](https://arxiv.org/html/2608.10300#bib.bib25)\]\. It is a companion evaluation artifact, not a clinical validation study of DCSE\.
The frozen held\-out package contains 256 tasks spanning eight task families\. A single open\-weight model,Qwen/Qwen3\-4B\-Instruct\-2507, was evaluated under three preregistered evidence modes:output\_only,token\_top\_k, andfull\_category\_evidence\. The model\-execution host contained the answer\-key\-free model inputs and cryptographically pinned manifests, but not the trusted held\-out references\. Raw outputs were frozen before trusted scoring\.
Across the three canonical runs there were256×3=768256\\times 3=768completed executions\. The frozen scorer accepted zero model result records\. The status distribution was
369safe\_parse\_rejectand399safe\_schema\_reject,369\\ \\texttt\{safe\\\_parse\\\_reject\}\\qquad\\text\{and\}\\qquad 399\\ \\texttt\{safe\\\_schema\\\_reject\},with the same per\-mode split of 123 parse rejects and 133 schema rejects\. Thus coverage was0, the invalid\-output rate was1\.01\.0, all 768 executions were quarantined by the benchmark policy, and selective risk is undefined because no output entered the accepted set\.
This is a result about the interface and one frozen model/configuration, not a general statement about LLM capability, healthcare safety, or the usefulness of richer evidence in other settings\. In this run, additional model\-side evidence access did not improve verified completion because failures occurred earlier at the parse/schema admissibility boundary\. The experiment therefore illustrates the system\-level distinction emphasized throughout this paper: successful neural inference is not equivalent to an admissible downstream action\.
The public repository releases the architecture, aggregate scored results, figures, and provenance hashes while withholding hidden held\-out references and raw held\-out responses so that future blind evaluations remain possible\[[25](https://arxiv.org/html/2608.10300#bib.bib25)\]\.
## 12Summary: hallucination containment and external validity
The precise safety claim of the framework is not that a neural model is prevented from hallucinating internally\. A model may still produce a high\-confidence but unsupported proposal\. The claim precisely is:
The framework prevents unsupported model outputs from being silently promoted intoauthoritative clinical facts or EHR writes\.\\boxed\{\\begin\{tabular\}\[\]\{c\}The framework prevents unsupported model outputs from being silently promoted into\\\\ authoritative clinical facts or EHR writes\.\\end\{tabular\}\}
Thus, the architecture provides*hallucination containment and admission control*, though not hallucination elimination\.
### 12\.1Where hallucination is blocked
The system has several gates\. A hallucination may occur at the LLM or logit layer, but it must pass deterministic validity checks before it can affect clinical state\.
#### 12\.1\.1The logit layer is treated as evidence, not authority
The model emits logits
L\(h\)=Wh\+b,p=softmax\(L/τ\)\.L\(h\)=Wh\+b,\\qquad p=\\operatorname\{softmax\}\(L/\\tau\)\.
The output is not interpreted as:
“the model says this, therefore it is true\.”It is interpreted as:
“the model proposes a categorical evidence vector over a bounded decision\.”
A safe logit receipt should include
\(L1,…,LK\),pi=exp\(Li/τ\)∑jexp\(Lj/τ\),H\(p\),Δ=L\(1\)−L\(2\),DKL\(pfull∥ptruncated\)\.\(L\_\{1\},\\ldots,L\_\{K\}\),\\qquad p\_\{i\}=\\frac\{\\exp\(L\_\{i\}/\\tau\)\}\{\\sum\_\{j\}\\exp\(L\_\{j\}/\\tau\)\},\\qquad H\(p\),\\qquad\\Delta=L\_\{\(1\)\}\-L\_\{\(2\)\},\\qquad D\_\{\\mathrm\{KL\}\}\(p\_\{\\mathrm\{full\}\}\\\|p\_\{\\mathrm\{truncated\}\}\)\.
High entropy, small margin, large tail loss, or cross\-model disagreement means
do not commit; route to review\.
The logit layer can expose uncertainty and instability, but it does not establish admissibility or external validity\.
#### 12\.1\.2The boundary algebra restricts what the model is allowed to say
The model cannot emit arbitrary prose directly as an authoritative clinical assertion\. It must map into a finite boundary decision such as:
\{exact,equivalent,narrower,broader,conflict,unmapped\}\\\{\\text\{exact\},\\text\{equivalent\},\\text\{narrower\},\\text\{broader\},\\text\{conflict\},\\text\{unmapped\}\\\}or,
\{no allergy documented,confirmed allergy,unconfirmed allergy,refuted\}\.\\\{\\text\{no allergy documented\},\\text\{confirmed allergy\},\\text\{unconfirmed allergy\},\\text\{refuted\}\\\}\.
This turns free\-form generation into a typed proposal over a small categorical interface\. Thus the first defense is:
No free\-form clinical assertion can directly become a database update\.\\boxed\{\\text\{No free\-form clinical assertion can directly become a database update\.\}\}
#### 12\.1\.3The model proposal is checked against external validity
The operational admission gate is the external\-validity predicate
EV:B×W→\{0,1\},EV:B\\times W\\to\\\{0,1\\\},whereBBis the finite boundary algebra andWWis the measurable world/evidence space\.
Operationally,EVEVis a terminating Boolean procedure over authoritative evidence, not an LLM judgment\.
In the EHR setting,
W=\(patient identity log,FHIR resources,signed terminology bundle,Provenance,AuditEvent,policy rules,human adjudications\)\.W=\\left\(\\begin\{array\}\[\]\{l\}\\text\{patient identity log\},\\\\ \\text\{FHIR resources\},\\\\ \\text\{signed terminology bundle\},\\\\ \\text\{Provenance\},\\\\ \\text\{AuditEvent\},\\\\ \\text\{policy rules\},\\\\ \\text\{human adjudications\}\\end\{array\}\\right\)\.
A clinical claimb∈Bb\\in Bis accepted only if
This is an operational admissibility test relative to an institutionally defined evidence model; it is not a declaration of ground\-truth medical certainty\.
A more explicit semantics is:
\[\[b\]\]ℳ⊆𝒲×𝒯×ℒ×𝒱×𝒫,\[\[b\]\]\_\{\\mathcal\{M\}\}\\subseteq\\mathcal\{W\}\\times\\mathcal\{T\}\\times\\mathcal\{L\}\\times\\mathcal\{V\}\\times\\mathcal\{P\},where,
𝒲=clinical evidence state,\\mathcal\{W\}=\\text\{clinical evidence state\},𝒯=time interval,\\mathcal\{T\}=\\text\{time interval\},ℒ=care setting, facility, or source system,\\mathcal\{L\}=\\text\{care setting, facility, or source system\},𝒱=terminology version,\\mathcal\{V\}=\\text\{terminology version\},and,
𝒫=provenance and authority chain\.\\mathcal\{P\}=\\text\{provenance and authority chain\}\.
The system accepts a proposed assertion only when its witness lies inside the interpretation:
\(w,t,ℓ,v,p\)∈\[\[b\]\]ℳ\.\(w,t,\\ell,v,p\)\\in\[\[b\]\]\_\{\\mathcal\{M\}\}\.
### 12\.2What kind of hallucination this prevents
The framework prevents many operationally dangerous hallucinations from becoming authoritative clinical state\.
Table 2:Operational hallucination containment mechanisms\.The central design invariant is:
The substrate emits typed certificates, not autonomous clinical decisions\.\\boxed\{\\text\{The substrate emits typed certificates, not autonomous clinical decisions\.\}\}
On precondition failure, it emits anOperationOutcome, records Provenance, and refuses authoritative write\-back\.
### 12\.3What kind of hallucination it does not prevent
The framework does not prevent a model from internally forming a false but coherent story\. A model can still produce
p\(equivalent mapping\)=0\.98p\(\\text\{equivalent mapping\}\)=0\.98for a bad mapping\.
A model can still produce a fluent explanation\. A model can still be wrong in a way that is internally consistent\.
The architecture blocks that proposal only if the claim fails some external test:
or creates a sheaf obstruction,
or lacks provenance,
Prov\(b\)=∅,\\operatorname\{Prov\}\(b\)=\\varnothing,or violates policy,
Policy\(b\)=0\.\\operatorname\{Policy\}\(b\)=0\.
Therefore,
GBI/DCSE is not hallucination elimination\. It is hallucination containment and admission control\.
The following two examples are synthetic policy\-gating illustrations, not medication recommendations or clinical decision support\.
### 12\.4Example: penicillin allergy
Suppose an LLM proposes:
“Amoxicillin is safe for this patient\.”
The framework does not ask whether the sentence sounds plausible\. It atomizes the proposal into a boundary claim
b=“amoxicillin order is compatible with active allergy profile\.”b=\\text\{\`\`amoxicillin order is compatible with active allergy profile\.''\}
It then checks the authoritative state
w=\{Patient X identity accepted,AllergyIntolerance: penicillin allergy,clinicalStatus=active,verificationStatus=confirmed,criticality=high,RxNorm/SNOMED terminology bundle\}\[[21](https://arxiv.org/html/2608.10300#bib.bib21)\]\.w=\\left\\\{\\begin\{array\}\[\]\{l\}\\text\{Patient X identity accepted\},\\\\ \\text\{AllergyIntolerance: penicillin allergy\},\\\\ \\text\{clinicalStatus=active\},\\\\ \\text\{verificationStatus=confirmed\},\\\\ \\text\{criticality=high\},\\\\ \\text\{RxNorm/SNOMED terminology bundle\}\\end\{array\}\\right\\\}\\cite\[cite\]\{\[\\@@bibref\{\}\{fda\_amoxil\}\{\}\{\}\]\}\.
If the sheaf consistency check finds conflict on the allergy–medication compatibility relation, the substrate emits abusiness\-ruleOperationOutcomeand commits no clinical transaction\.
The hallucination is not prevented at generation time\. It is prevented from becoming a clinical write\.
### 12\.5Example: metformin without renal context\[[22](https://arxiv.org/html/2608.10300#bib.bib22)\]
Suppose the model says:
“The proposed metformin order is appropriate\.”
The system asks:
EV\(metformin order allowed,w\)=1?EV\(\\text\{metformin order allowed\},w\)=1?
If the version\-pinned clinical policy requires a qualifying renal\-function observation\[[22](https://arxiv.org/html/2608.10300#bib.bib22)\]and no observation satisfying that policy’s terminology and validity window is available, the necessary witness is missing\.
The system emits a warning or requiredOperationOutcome, records the abstention, and does not commit the medication order\. Absence of evidence is not silently filled by the model\.
### 12\.6Admissibility as a layered operational criterion
The substrate’s acceptance criterion is operational:
AdmissibleGBI\(b\)=1⟺there exists an admissible witnesswsuch thatEV\(b,w\)=1\.\\operatorname\{Admissible\}\_\{\\mathrm\{GBI\}\}\(b\)=1\\quad\\Longleftrightarrow\\quad\\text\{there exists an admissible witness \}w\\text\{ such that \}EV\(b,w\)=1\.
An admissible witness is not a logit\. It is a bundle
w=\(identity certificate,FHIR resource,terminology version,provenance signature,temporal interval,policy rule,optional human adjudication\)\.w=\\left\(\\begin\{array\}\[\]\{l\}\\text\{identity certificate\},\\\\ \\text\{FHIR resource\},\\\\ \\text\{terminology version\},\\\\ \\text\{provenance signature\},\\\\ \\text\{temporal interval\},\\\\ \\text\{policy rule\},\\\\ \\text\{optional human adjudication\}\\end\{array\}\\right\)\.
The layers have distinct roles:
logits propose,\\text\{logits propose\},Dirichlet evidence calibrates,\\text\{Dirichlet evidence calibrates\},sheaves check consistency,\\text\{sheaves check consistency\},BFT checks non\-equivocation,\\text\{BFT checks non\-equivocation\},FHIR and Provenance check source authority,\\text\{FHIR and Provenance check source authority\},human review handles residual ambiguity\.\\text\{human review handles residual ambiguity\}\.
No single layer establishes medical truth\. The operational admission decision is the composition of external\-validity predicates over institutionally authoritative records and policy\.
##### The Proposal\.
The system does not claim to eliminate hallucinations inside neural models\. A neural model may emit a high\-confidence but unsupported proposal\. The GBI/DCSE architecture prevents such proposals from becoming authoritative clinical state unless they are witnessed by the external validity predicate over signed identity, terminology, provenance, temporal, and policy objects\. In this sense, the architecture provides hallucination containment: it converts unsupported model outputs into abstentions, review tasks, orOperationOutcomerecords, rather than FHIR commits\.
##### Model\-relative admissibility\.
Admissibility is model\-relative\. A boundary assertionbbis admissible to the substrate only relative to a declared institutional modelℳ\\mathcal\{M\}consisting of accepted identity facts, version\-pinned terminology, FHIR resources, temporal validity windows, provenance signatures, policy rules, and human adjudications\. The substrate can be wrong ifℳ\\mathcal\{M\}is wrong; it cannot repair corrupted source records or incomplete institutional policy\. Its guarantee is traceability of accepted claims to declared admissible witnesses and policies, not that those witnesses perfectly mirror the world\.
## Appendix AComplete, Executable Reference Implementation in Julia
The executable source is reproduced below and is also supplied as arXiv ancillary material inanc/gbi\_dcse\_arxiv\_revised\.jl\. Run it directly in a Julia environment\. It requires only the standardLinearAlgebraandPrintflibraries\. The appendix implements numerical certificates and a toy projector\-based stalk\-obstruction surrogate; it is not the enterprise policy object𝒫\\mathcal\{P\}, a FHIR writer, an enclave, or a clinical decision system\.
usingLinearAlgebra
usingPrintf
constMAPPING\_STATUS\_LABELS=\("exact","equivalent","narrower","broader","conflict","unmapped"\)
constFISHER\_MIN\_EIGENVALUE=1e\-6
constQUARANTINE\_THRESHOLD=0\.80
constKTABULAR=1\.5
constPSD\_TOL=1e\-10
functioncondensed\_probe\_demo\(\)
seq=\[1\.0/iforiin1:20\]
tail\_variation=maximum\(abs\.\(seq\[end\-4:end\]\.\-seq\[end\]\)\)
return\(
eventually\_constant=tail\_variation<1e\-12,
tail\_variation=tail\_variation,
\)
end
functionentropy\_bits\(p::AbstractVector\{<:Real\}\)::Float64
entropy=0\.0
@inboundsforxinp
xf=Float64\(x\)
ifxf\>0\.0
entropy\-=xf\*log2\(xf\)
end
end
returnentropy
end
functionapprox\_trigamma\(x::Float64\)::Float64
x\>0\.0\|\|throw\(DomainError\(x,"trigammaapproximationrequiresx\>0"\)\)
y=x
acc=0\.0
whiley<8\.0
acc\+=1\.0/\(y\*y\)
y\+=1\.0
end
inv\_y=1\.0/y
inv2=inv\_y\*inv\_y
inv3=inv2\*inv\_y
inv5=inv2\*inv3
inv7=inv2\*inv5
inv9=inv2\*inv7
returnacc\+inv\_y\+0\.5\*inv2\+inv3/6\.0\-inv5/30\.0\+
inv7/42\.0\-inv9/30\.0
end
functionfisher\_dirichlet\(alpha::AbstractVector\{<:Real\}\)::Matrix\{Float64\}
k=length\(alpha\)
k\>0\|\|throw\(ArgumentError\("alphamustbenon\-empty"\)\)
alpha\_sum=0\.0
@inboundsforainalpha
af=Float64\(a\)
af\>0\.0\|\|throw\(DomainError\(af,"Dirichletalphavaluesmustbe\>0"\)\)
alpha\_sum\+=af
end
base=\-approx\_trigamma\(alpha\_sum\)
metric=fill\(base,k,k\)
@inboundsforiineachindex\(alpha\)
metric\[i,i\]\+=approx\_trigamma\(Float64\(alpha\[i\]\)\)
end
returnmetric
end
f\_map\(z::ComplexF64,theta::Float64\)::ComplexF64=z\*z\+theta\*conj\(z\)
functionwirtinger\_exact\(z::ComplexF64,theta::Float64\)
return2\.0\*z,ComplexF64\(theta,0\.0\)
end
functionwirtinger\_fd\(z::ComplexF64,theta::Float64,h::Float64\)
fx=\(f\_map\(z\+h,theta\)\-f\_map\(z\-h,theta\)\)/\(2\.0\*h\)
fy=\(f\_map\(z\+im\*h,theta\)\-f\_map\(z\-im\*h,theta\)\)/\(2\.0\*h\)
return0\.5\*\(fx\-im\*fy\),0\.5\*\(fx\+im\*fy\)
end
functionhyperellipsoid\_certificate\(A::AbstractMatrix\{<:Real\}\)
A64=Matrix\{Float64\}\(A\)
singular\_values=svdvals\(A64\)
sigma\_min=minimum\(singular\_values\)
sigma\_max=maximum\(singular\_values\)
jacobian=det\(A64\)
sigma\_min\>0\.0\|\|throw\(DomainError\(sigma\_min,"matrixmustbefullrank"\)\)
jacobian\>0\.0\|\|throw\(DomainError\(jacobian,"matrixmusthavepositiveJacobian"\)\)
return\(
singular\_values=singular\_values,
axis\_eccentricity=sigma\_max/sigma\_min,
jacobian=jacobian,
outer\_distortion=sigma\_max^size\(A64,1\)/jacobian,
\)
end
functionorthonormal\_columns\(M::AbstractMatrix\{<:Real\}\)::Matrix\{Float64\}
M64=Matrix\{Float64\}\(M\)
rows,cols=size\(M64\)
cols<=rows\|\|throw\(ArgumentError\("matrixmusthaveatleastasmanyrowsascolumns"\)\)
factor=qr\(M64\)
returnMatrix\(factor\.Q\)\[:,1:cols\]
end
functionappendix\_raw\_obstructions\(\)
return\[0\.100\.10;
0\.10\-0\.10;
1\.001\.00;
1\.00\-1\.00;
0\.050\.00;
0\.000\.05\]
end
functionmapping\_cone\_certificate\(
raw\_obstructions::AbstractMatrix\{<:Real\};
threshold::Float64=QUARANTINE\_THRESHOLD,
\)
U=orthonormal\_columns\(raw\_obstructions\)
projector=U\*transpose\(U\)
laplacian=Matrix\{Float64\}\(I,size\(projector,1\),size\(projector,2\)\)
laplacian\.\-=projector
stalk\_ranges=\(
\("Allergy",1:2\),
\("MedicationRequest",3:4\),
\("RenalLab",5:6\),
\)
energies=map\(stalk\_ranges\)do\(name,idxs\)
energy=sum\(projector\[i,i\]foriinidxs\)
\(name=name,energy=energy,decision=energy\>threshold?"QUARANTINE":"COMMIT"\)
end
return\(
basis=U,
projector=projector,
laplacian=laplacian,
eigenvalues=eigvals\(Symmetric\(laplacian\)\),
energies=energies,
\)
end
functionrun\_self\_check\(\)
alpha=\[2\.0,3\.0,4\.0,5\.0\]
metric=fisher\_dirichlet\(alpha\)
@assertissymmetric\(metric\)
@assertminimum\(eigvals\(Symmetric\(metric\)\)\)\>FISHER\_MIN\_EIGENVALUE
boundary\_alpha=\[0\.01,3\.0,4\.0,5\.0\]
boundary\_metric=fisher\_dirichlet\(boundary\_alpha\)
@assertminimum\(eigvals\(Symmetric\(boundary\_metric\)\)\)\>FISHER\_MIN\_EIGENVALUE
z=1\.0\+1\.0im
theta=0\.35
fz\_exact,fzb\_exact=wirtinger\_exact\(z,theta\)
fz\_fd,fzb\_fd=wirtinger\_fd\(z,theta,1e\-5\)
@assertisapprox\(fz\_exact,fz\_fd;rtol=1e\-10,atol=1e\-10\)
@assertisapprox\(fzb\_exact,fzb\_fd;rtol=1e\-10,atol=1e\-10\)
A=\[1\.200\.100\.0;0\.200\.800\.05;0\.00\.101\.10\]
cert=hyperellipsoid\_certificate\(A\)
@assertcert\.axis\_eccentricity\>=1\.0
@assertcert\.outer\_distortion\>=1\.0
raw=appendix\_raw\_obstructions\(\)
cone=mapping\_cone\_certificate\(raw\)
@assertisapprox\(cone\.basis’\*cone\.basis,Matrix\{Float64\}\(I,2,2\);atol=1e\-12\)
@assertissymmetric\(cone\.laplacian\)
@assertminimum\(cone\.eigenvalues\)\>=\-PSD\_TOL
angle=0\.73
rotation=\[cos\(angle\)\-sin\(angle\);sin\(angle\)cos\(angle\)\]
rotated\_projector=\(cone\.basis\*rotation\)\*transpose\(cone\.basis\*rotation\)
@assertnorm\(cone\.projector\-rotated\_projector\)<=1e\-12
returntrue
end
functionrun\_report\(\)
println\("========================================================================"\)
println\("GBI/DCSEMATHEMATICALCO\-PROCESSORVERIFICATIONRUN"\)
println\("========================================================================"\)
probe=condensed\_probe\_demo\(\)
println\("\\nCondensedoperationalprobe:"\)
println\("Sequence1/neventuallyconstant?",probe\.eventually\_constant\)
@printf\("Tailvariationoverlastfiveterms:%\.6f\\n",probe\.tail\_variation\)
status\_alpha=\[1\.0,14\.0,1\.0,1\.0,3\.0,1\.0\]
status\_p=status\_alpha\./sum\(status\_alpha\)
println\("\\nLocalmapping\-statusevidence:"\)
println\("Labels:",MAPPING\_STATUS\_LABELS\)
println\("Posteriormeanp:",round\.\(status\_p;digits=4\)\)
@printf\("Entropy:%\.4fbits\\n",entropy\_bits\(status\_p\)\)
alpha\_a=\[2\.0,3\.0,4\.0,5\.0\]
alpha\_b=\[0\.01,3\.0,4\.0,5\.0\]
for\(label,alpha\)in\(\("Interior",alpha\_a\),\("Boundary",alpha\_b\)\)
metric=fisher\_dirichlet\(alpha\)
ev=eigvals\(Symmetric\(metric\)\)
@printf\("\\n%salpha:%s\\n",label,alpha\)
println\("Eigenvalues:",round\.\(ev;digits=4\)\)
@printf\("Conditionnumber:%\.2f\\n",maximum\(ev\)/minimum\(ev\)\)
end
z=1\.0\+1\.0im
theta=0\.35
fz,fzb=wirtinger\_exact\(z,theta\)
A=\[1\.200\.100\.0;0\.200\.800\.05;0\.00\.101\.10\]
ellipsoid=hyperellipsoid\_certificate\(A\)
println\("\\nScalingmatrixA:",A\)
println\("Singularvalues:",round\.\(ellipsoid\.singular\_values;digits=4\)\)
@printf\("AxiseccentricityH:%\.4f\\n",ellipsoid\.axis\_eccentricity\)
@printf\("JacobiandetJ:%\.4f\\n",ellipsoid\.jacobian\)
@printf\("OuterdistortionKo:%\.4f\\n",ellipsoid\.outer\_distortion\)
raw\_obstructions=appendix\_raw\_obstructions\(\)
cone=mapping\_cone\_certificate\(raw\_obstructions\)
println\("\\nEigenvaluesofconeLaplacianLc:",round\.\(cone\.eigenvalues;digits=4\)\)
println\("Stalkobstructionenergies:"\)
foritemincone\.energies
@printf\("%\-18senergy=%\.4f\-\>%s\\n",item\.name,item\.energy,item\.decision\)
end
println\("========================================================================"\)
end
functiontrigamma\_kernel\(values::AbstractVector\{Float64\}\)::Float64
acc=0\.0
@inboundsforxinvalues
acc\+=approx\_trigamma\(x\)
end
returnacc
end
functionwirtinger\_exact\_kernel\(points::AbstractVector\{ComplexF64\},theta::Float64\)::Float64
acc=0\.0
@inboundsforzinpoints
fz,fzb=wirtinger\_exact\(z,theta\)
acc\+=abs2\(fz\)\+abs2\(fzb\)
end
returnacc
end
functionwirtinger\_fd\_kernel\(points::AbstractVector\{ComplexF64\},theta::Float64,h::Float64\)::Float64
acc=0\.0
@inboundsforzinpoints
fz,fzb=wirtinger\_fd\(z,theta,h\)
acc\+=abs2\(fz\)\+abs2\(fzb\)
end
returnacc
end
functionbenchmark\_call\(label::String,f::Function,reps::Int;ops\_per\_rep::Int=1\)
f\(\)
GC\.gc\(\)
last\_result=nothing
guarded\_f=Base\.inferencebarrier\(f\)
elapsed=@elapsedbegin
for\_in1:reps
last\_result=Base\.inferencebarrier\(guarded\_f\(\)\)
end
end
@printf\(
"%\-34s%10\.3fus/op\(%dreps,%dops/rep\)\\n",
label,
elapsed\*1e6/\(reps\*ops\_per\_rep\),
reps,
ops\_per\_rep,
\)
returnlast\_result
end
functionrun\_benchmarks\(\)
println\("BenchmarksexcludeJuliastartup/compilationcostanduseBasetimingonly\."\)
alpha=\[2\.0,3\.0,4\.0,5\.0\]
theta=0\.35
A=\[1\.200\.100\.0;0\.200\.800\.05;0\.00\.101\.10\]
raw=appendix\_raw\_obstructions\(\)
trigamma\_values=collect\(range\(0\.25,12\.0;length=512\)\)
points=ComplexF64\[
ComplexF64\(cos\(t\),sin\(t\)\)fortinrange\(0\.1,2\.9;length=512\)
\]
benchmark\_call\(
"approx\_trigamma",
\(\)\-\>trigamma\_kernel\(trigamma\_values\),
10\_000;
ops\_per\_rep=length\(trigamma\_values\),
\)
benchmark\_call\("fisher\_dirichlet",\(\)\-\>fisher\_dirichlet\(alpha\),200\_000\)
benchmark\_call\(
"wirtinger\_exact",
\(\)\-\>wirtinger\_exact\_kernel\(points,theta\),
50\_000;
ops\_per\_rep=length\(points\),
\)
benchmark\_call\(
"wirtinger\_fd",
\(\)\-\>wirtinger\_fd\_kernel\(points,theta,1e\-5\),
50\_000;
ops\_per\_rep=length\(points\),
\)
benchmark\_call\("hyperellipsoid\_certificate",\(\)\-\>hyperellipsoid\_certificate\(A\),100\_000\)
benchmark\_call\("mapping\_cone\_certificate",\(\)\-\>mapping\_cone\_certificate\(raw\),100\_000\)
end
functionmain\(args=ARGS\)
run\_self\_check\(\)
if"\-\-benchmark"inargs
run\_benchmarks\(\)
else
run\_report\(\)
end
end
ifabspath\(PROGRAM\_FILE\)==@\_\_FILE\_\_
main\(\)
end
## Appendix BValidation, System Metrics, and Operational Boundaries
### B\.1Verification Protocols
To ensure the DCSE\-GBI co\-processor is deployed safely, engineering teams must execute a three\-tiered validation plan before writing back any transactions to a production EHR:
1. 1\.Mathematical Validation: - •*Assertion 1:*The Boolean\-algebra implementation should be stress\-tested over at least2162^\{16\}randomized join/meet/complement operations, including atom\-disjointness and closure checks\. This is an implementation test, not a proof of the algebraic specification\. - •*Assertion 2:*For a declared evidence boxEK,ϵ,AE\_\{K,\\epsilon,A\}, numerical validation should sweep corners and adversarial near\-boundary cases and requireλmin\(I\(α\)\)\\lambda\_\{\\min\}\(I\(\\alpha\)\)to exceed an implementation tolerance such as10−610^\{\-6\}\. The tolerance is an engineering criterion, not a theorem that follows from a finite sample alone\. - •*Assertion 3:*When an actual mapping\-cone Laplacian is constructed, the implementation should verify symmetry and positive semi\-definiteness to numerical tolerance\. Trace\-based stalk energies should also be checked under randomized orthogonal basis rotations; the toy appendix demonstrates basis invariance for its projector surrogate, not a full mapping\-cone implementation\.
2. 2\.Systems Validation: - •*Attestation Verification:*Deploy the system in a staging environment and inject invalid, expired, or modified remote attestation claims\[[13](https://arxiv.org/html/2608.10300#bib.bib13)\]\. Verify that invalid or stale attestation causes the governed write path to fail closed\. Key revocation should be tested only in deployments whose key\-management design actually uses attestation\-bound database keys\. - •*Consensus Fault Injector:*Simulate network partition and validator crash faults to test the liveness and safety invariants of the non\-equivocating Byzantine state logs\. For any selected BFT protocol, test the protocol\-specific resilience and quorum conditions\. Under the usual classical3f\+13f\+1model, toleratingffByzantine faults requires the active replica population to satisfyn≥3f\+1n\\geq 3f\+1\[[7](https://arxiv.org/html/2608.10300#bib.bib7),[9](https://arxiv.org/html/2608.10300#bib.bib9)\]; falling below the required threshold must halt authoritative writes\. - •*Rollback Conformance:*Inject a corrupted medication order nested within a multi\-resource FHIR transaction bundle\. Verify that the target FHIR gateway rejects the transaction atomically and returns an appropriateOperationOutcome; capture the failed attempt in the deployment’s audit/provenance path according to policy\. Unrelated resources outside the submitted transaction should remain unchanged\.
3. 3\.Clinical Validation: - •*Retrospective Playback:*A future clinical validation program should preregister a sufficiently powered retrospective or shadow\-mode cohort, with expert adjudication and subgroup analysis, before any clinical deployment claim\. A nominal target such as10,00010\{,\}000encounters may be useful for planning, but sample size must be justified by prevalence, target confidence intervals, and the intended claims rather than fixed by this manuscript\.
### B\.2Performance and Reliability Metrics
The following values are proposed engineering targets for validation and benchmarking; they are not presented here as externally certified thresholds or empirically established safety guarantees:
Table 3:Proposed Operational Performance and Reliability Targets
### B\.3Strategic Boundaries and Fail\-Closed Constraints
The DCSE\-GBI framework is a fail\-closed clinical co\-processor, not an autonomous practitioner\. It is designed to safely restrict data transitions rather than deduce patient care paths\. Operational teams must strictly enforce the following execution limits:
- •Boundary 1:The co\-processor must immediately halt and deny write permissions if patient identity resolution yields an ambiguous match, regardless of demographic similarity scores\.
- •Boundary 2:Unsigned, unpinned, or stale terminology updates must automatically trigger an administrative freeze, preventing clinical lookups from executing under obsolete mapping semantics\.
- •Boundary 3:The visual audit chart’s linear distortion coefficientKKacts solely as a notification tool to assist manual human review\. High visual distortion must never be interpreted as proof of logical inconsistency\. A quarantine decision must follow the declared deterministic policy over validated identity, terminology, provenance, temporal, dependency, and consistency checks; mapping\-cone\-derived energies may be one input only when an actual cone construction has been implemented and validated\.
## References
- \[1\]D\. Clausen and P\. Scholze,*Condensed Mathematics and Complex Geometry*, arXiv:2605\.11731, 2026\.[https://arxiv\.org/abs/2605\.11731](https://arxiv.org/abs/2605.11731)\.
- \[2\]P\. Scholze,*Lectures on Condensed Mathematics*, arXiv:2605\.03658, 2026\.[https://arxiv\.org/abs/2605\.03658](https://arxiv.org/abs/2605.03658)\.
- \[3\]Y\. G\. Reshetnyak,*Space Mappings with Bounded Distortion*, Translations of Mathematical Monographs, American Mathematical Society, 1989\.
- \[4\]J\. Väisälä,*Lectures onnn\-Dimensional Quasiconformal Mappings*, Lecture Notes in Mathematics, vol\. 229, Springer, 1971\.
- \[5\]J\. Hansen and R\. Ghrist, “Toward a spectral theory of cellular sheaves,”*Journal of Applied and Computational Topology*, vol\. 3, pp\. 315–358, 2019\. doi:10\.1007/s41468\-019\-00038\-7\.
- \[6\]C\. A\. Weibel,*An Introduction to Homological Algebra*, Cambridge University Press, 1994\.
- \[7\]M\. Castro and B\. Liskov, “Practical Byzantine Fault Tolerance,” in*Proceedings of the 3rd Symposium on Operating Systems Design and Implementation \(OSDI ’99\)*, USENIX Association, pp\. 173–186, 1999\.[https://www\.usenix\.org/conference/osdi\-99/practical\-byzantine\-fault\-tolerance](https://www.usenix.org/conference/osdi-99/practical-byzantine-fault-tolerance)\.
- \[8\]G\. S\. Veronese, M\. Correia, A\. N\. Bessani, L\. C\. Lung, and P\. Verissimo, “Efficient Byzantine Fault\-Tolerance,”*IEEE Transactions on Computers*, vol\. 62, no\. 1, pp\. 16–30, 2013\. doi:10\.1109/TC\.2011\.221\.
- \[9\]M\. J\. Amiri, C\. Wu, D\. Agrawal, A\. El Abbadi, B\. T\. Loo, and M\. Sadoghi,*The Bedrock of Byzantine Fault Tolerance: A Unified Platform for BFT Protocol Design and Implementation*, arXiv:2205\.04534, 2022\.[https://arxiv\.org/abs/2205\.04534](https://arxiv.org/abs/2205.04534)\.
- \[10\]Q\. Zhao, G\. Pîrlea, K\. Grzeszkiewicz, S\. Gilbert, and I\. Sergey, “Compositional Verification of Composite Byzantine Protocols,” in*Proceedings of the 2024 ACM SIGSAC Conference on Computer and Communications Security \(CCS ’24\)*, pp\. 34–48, 2024\. doi:10\.1145/3658644\.3690355\.
- \[11\]Q\. Zhao, G\. Pîrlea, K\. Grzeszkiewicz, S\. Gilbert, and I\. Sergey,*Bythos: Compositional Verification of Composite Byzantine Protocols—Research Artifact*, Zenodo, 2024\. doi:10\.5281/zenodo\.12787570\.
- \[12\]Intel Corporation,*Intel Software Guard Extensions \(Intel SGX\)*, Developer Documentation and Overview, accessed August 8, 2026\.[https://www\.intel\.com/content/www/us/en/developer/tools/software\-guard\-extensions/overview\.html](https://www.intel.com/content/www/us/en/developer/tools/software-guard-extensions/overview.html)\.
- \[13\]Intel Corporation,*Attestation Services for Intel Software Guard Extensions*, accessed August 8, 2026\.[https://www\.intel\.com/content/www/us/en/developer/tools/software\-guard\-extensions/attestation\-services\.html](https://www.intel.com/content/www/us/en/developer/tools/software-guard-extensions/attestation-services.html)\.
- \[14\]Intel Corporation, “What Is the Role of the Intel Software Guard Extensions Platform Services Enclave \(PSE\) and How Is It Invoked?” Intel Support Article 000058691, reviewed August 6, 2021\.[https://www\.intel\.com/content/www/us/en/support/articles/000058691/software/intel\-security\-products\.html](https://www.intel.com/content/www/us/en/support/articles/000058691/software/intel-security-products.html)\.
- \[15\]HL7 International,*FHIR Release 4: RESTful API*\.[https://hl7\.org/fhir/R4/http\.html](https://hl7.org/fhir/R4/http.html)\.
- \[16\]HL7 International,*FHIR Release 4: Provenance Resource*\.[https://hl7\.org/fhir/R4/provenance\.html](https://hl7.org/fhir/R4/provenance.html)\.
- \[17\]HL7 International,*FHIR Release 4: OperationOutcome Resource*\.[https://hl7\.org/fhir/R4/operationoutcome\.html](https://hl7.org/fhir/R4/operationoutcome.html)\.
- \[18\]HL7 International,*SMART App Launch Implementation Guide*, version 2\.2\.0\.[https://hl7\.org/fhir/smart\-app\-launch/](https://hl7.org/fhir/smart-app-launch/)\.
- \[19\]U\.S\. Department of Health and Human Services, “Audit Controls,” 45 C\.F\.R\. §164\.312\(b\) \(2026\)\.[https://www\.ecfr\.gov/current/title\-45/subtitle\-A/subchapter\-C/part\-164/subpart\-C/section\-164\.312](https://www.ecfr.gov/current/title-45/subtitle-A/subchapter-C/part-164/subpart-C/section-164.312)\.
- \[20\]Y\. B\. Lee,*Safety Receipt Layer for Permit\-Before\-Action Gating of AI\-Assisted Clinical Decision Support Interventions*, U\.S\. Patent No\. 12,633,414 B1, May 19, 2026\.
- \[21\]U\.S\. Food and Drug Administration,*AMOXIL \(Amoxicillin\): Prescribing Information*, NDA 050542, Supplement 032, 2024\.[https://www\.accessdata\.fda\.gov/drugsatfda\_docs/label/2024/050542s032lbl\.pdf](https://www.accessdata.fda.gov/drugsatfda_docs/label/2024/050542s032lbl.pdf)\.
- \[22\]U\.S\. National Library of Medicine,*DailyMed: Metformin Hydrochloride Tablets, Full Prescribing Information*, current U\.S\. labeling, accessed August 8, 2026\.[https://dailymed\.nlm\.nih\.gov/dailymed/drugInfo\.cfm?setid=59a4ccda\-5487\-4ac4\-9373\-0c0fc8b7c88b](https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=59a4ccda-5487-4ac4-9373-0c0fc8b7c88b)\.
- \[23\]Indian Health Service,*PATH EHR, IHS Health Information Technology Modernization Program*, accessed August 10, 2026\.[https://www\.ihs\.gov/HIT/path\-ehr/](https://www.ihs.gov/HIT/path-ehr/)\.
- \[24\]Indian Health Service,*RPMS EHR Technical Overview*, accessed August 10, 2026\.[https://www\.ihs\.gov/ehr/technicaloverview/](https://www.ihs.gov/ehr/technicaloverview/)\.
- \[25\]A\. Spivey,*GBI BoundaryBench v0\.1: Programmatic Verification of Legacy\-EHR Transformations*, public research showcase and aggregate results, 2026\.[https://github\.com/AlvinSpivey/GBI\-BoundaryBench](https://github.com/AlvinSpivey/GBI-BoundaryBench)\.
- \[26\]R\. Jordan, D\. Kinderlehrer, and F\. Otto, “The variational formulation of the Fokker–Planck equation,”*SIAM Journal on Mathematical Analysis*, vol\. 29, no\. 1, pp\. 1–17, 1998\.
- \[27\]B\. O\. Koopman, “Hamiltonian systems and transformation in Hilbert space,”*Proceedings of the National Academy of Sciences*, vol\. 17, no\. 5, pp\. 315–318, 1931\.
- \[28\]N\. Tishby, F\. C\. Pereira, and W\. Bialek, “The information bottleneck method,” in*Proceedings of the 37th Annual Allerton Conference on Communication, Control, and Computing*, 1999\.
- \[29\]H\. Edelsbrunner and J\. Harer,*Computational Topology: An Introduction*, American Mathematical Society, 2010\.
- \[30\]N\. Elhage et al\., “Toy Models of Superposition,”*Transformer Circuits Thread*, Anthropic, 2022\.
- \[31\]Nostalgebraist, “Interpreting GPT: The Logit Lens,” 2020\.Similar Articles
Towards Error-Free EHRs: Reasoning-Intensive Consistency Verification Between Clinical Notes and Structured Tables in Electronic Health Records
This paper introduces EHR-ReasonCon, a reasoning-intensive benchmark for consistency verification between clinical notes and structured tables in electronic health records, and EHR-Inspector, an LLM-based framework that achieves state-of-the-art performance in detecting discrepancies.
Designing Safety-Constrained LLM Systems for Public Health Information Access
This paper presents the design and implementation of a safety-constrained LLM system for maternal and child health resource navigation, using a multi-layered architecture with domain-restricted RAG and boundary enforcement to ensure safety and reliability.
ECG-InterpBench: Benchmarking the Interpretability of ECG Foundation Models with Matched-Scale Sparse Autoencoders
ECG-InterpBench is a new benchmark that systematically evaluates the interpretability of ECG foundation model representations using matched-scale sparse autoencoders, covering reconstruction fidelity, clinical concept accessibility, and reproducibility across 450 cells.
BELIEF: Structured Evidence Modeling and Uncertainty-Aware Fusion for Biomedical Question Answering
BELIEF is a structured evidence modeling and uncertainty-aware fusion framework for biomedical question answering that converts retrieved documents into evidence objects and combines symbolic Dempster-Shafer reasoning with LLM-based inference. Experiments on PubMedQA, MedQA, and MedMCQA show BELIEF achieves state-of-the-art results in the majority of settings.
EHRBench: An Automated and Reliable EHR-based Benchmark for Clinical Decision Making with LLMs
EHRBench is an automated and reliable benchmark for evaluating LLMs on clinical decision-making tasks using real-world electronic health records, covering nearly 1M QA items across diagnosis, treatment, and prognosis tasks.