key: cord-0060370-as6tmymh authors: Fukihara, Yōji; Katsumata, Shin-ya title: Generalized Bounded Linear Logic and its Categorical Semantics date: 2021-03-23 journal: Foundations of Software Science and Computation Structures DOI: 10.1007/978-3-030-71995-1_12 sha: 1a5ce5c0d8729bf97457145927113b5c792c8785 doc_id: 60370 cord_uid: as6tmymh We introduce a generalization of Girard et al.’s BLL called GBLL (and its affine variant GBAL). It is designed to capture the core mechanism of dependency in BLL, while it is also able to separate complexity aspects of BLL. The main feature of GBLL is to adopt a multi-object pseudo-semiring as a grading system of the !-modality. We analyze the complexity of cut-elimination in GBLL, and give a translation from BLL with constraints to GBAL with positivity axiom. We then introduce indexed linear exponential comonads (ILEC for short) as a categorical structure for interpreting the [Formula: see text]-modality of GBLL. We give an elementary example of ILEC using folding product, and a technique to modify ILECs with symmetric monoidal comonads. We then consider a semantics of BLL using the folding product on the category of assemblies of a BCI-algebra, and relate the semantics with the realizability category studied by Hofmann, Scott and Dal Lago. Girard's linear logic is a refinement of propositional logic by restricting weakening and contraction in proofs [15] . Linear logic also has an of-course modality !, which restores these structural rules to formulas of the form !A. Later, Girard et al. extended the !-modality with quantitative information so that usage of !-modal formulas in proofs can be quantitatively controlled [16] . This extension, called bounded linear logic (BLL for short), is successfully applied to a logical characterization of P-time computations. Their extension takes two steps. First, the !-modality is extended to the form ! r A, where the index r is an element of a semiring [16, Section 2.4] . The index r is called grade in modern terminology [11, 13] . This extension and its variants have been employed in various logics and programming languages [7, 30, 14, 26, 28] . The categorical structure corresponding to ! r A is identified as graded linear exponential comonad [7, 13, 22] . Second, the ! r -modality is further extended to the form ! x