feat(Cslib/Logics/LinearLogic/CLL/PhaseSemantics/Basic.lean): phase semantics of linear logic #64
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 235 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.327
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #64"
general
weight: 0.35
tannerduve
Phase semantics for Classical Linear Logic
This file develops the phase semantics for Classical Linear Logic (CLL), providing an
algebraic interpretation of linear logic propositions in terms of phase spaces.
Phase semantics is a denotational semantics for linear logic where
propositions are interpreted as subsets of a commutative monoid, and logical operations
correspond to specific set-theoretic operations.
Main definitions
PhaseSpace: A commutative monoid equipped with a distinguished subset ⊥PhaseSpace.orthogonal: The orthogonalX⫠of a set XPhaseSpace.isFact: A fact is a set that equals its biorthogonal closureFact: The type of facts in a phase spaceFact.neg: The negation/dual of a fact (Gᗮ)Fact.tensor,Fact.parr: The multiplicative connectives (⊗, ⅋)Fact.linImpl: Linear implication between facts (⊸)Fact.withh,Fact.oplus: The additive connectives (&, ⊕)Fact.bang,Fact.quest: The exponentials (!, ʔ)PhaseSpace.I: The set of idempotents belonging to 1PhaseSpace.interpProp: Interpretation of CLL propositions as facts in a phase spaceMain results
PhaseSpace.triple_orth: The triple orthogonal equals the orthogonal (X⫠⫠⫠ = X⫠)PhaseSpace.biorthogonalClosure: The biorthogonal operation forms a closure operatorPhaseSpace.orth_iUnion: Orthogonal of union equals intersection of orthogonalsPhaseSpace.sInf_isFact: Facts are closed under arbitrary intersectionsPhaseSpace.biorth_least_fact: The biorthogonal closure gives the smallest fact containing a setFact.tensor_of_par,Fact.par_of_tensor: De Morgan duality between tensor and parTODO
References
[J.-Y. Girard, Linear logic][Girard1987]
[J.-Y. Girard, Linear Logic: its syntax and semantics*][Girard1995]