• Home
  • Search
  • Polynomial Size Analysis of First-Order Shapely Functions
  • Cite Icon39
  • https://doi.org/10.2168/lmcs-5(2:10)2009Copy DOI Icon

Polynomial Size Analysis of First-Order Shapely Functions

Show More
  • Abstract
  • Highlights & Summary
  • PDF
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

We present a size-aware type system for first-order shapely function definitions. Here, a function definition is called shapely when the size of the result is determined exactly by a polynomial in the sizes of the arguments. Examples of shapely function definitions may be implementations of matrix multiplication and the Cartesian product of two lists. The type system is proved to be sound w.r.t. the operational semantics of the language. The type checking problem is shown to be undecidable in general. We define a natural syntactic restriction such that the type checking becomes decidable, even though size polynomials are not necessarily linear or monotonic. Furthermore, we have shown that the type-inference problem is at least semi-decidable (under this restriction). We have implemented a procedure that combines run-time testing and type-checking to automatically obtain size dependencies. It terminates on total typable function definitions.

Loading PDF

Similar Papers
  • Supplementary Content

Co-Contextual Type Systems: Contextless Deductive Reasoning for Correct Incremental Type Checking

  • Mar 02, 2020
  • TUbilio (Technical University of Darmstadt)
  • Edlira Kuci
  • Research Article
  • Citations3

Relating typability and expressiveness in finite-rank intersection type systems (extended abstract)

  • Sep 01, 1999
  • ACM SIGPLAN Notices
  • Assaf J Kfoury +3
  • PDF
  • Research Article
  • Citations8

Knowing when to ask: sound scheduling of name resolution in type checkers derived from declarative specifications

  • Nov 13, 2020
  • Proceedings of the ACM on Programming Languages
  • Arjen Rouvoet +4
  • Research Article
  • Citations1

FAST COMPUTATION OF DIRECT EXPONENTIATION TO SPEED UP IMPLEMENTATION OF DYNAMIC BLOCK CIPHERS

  • Dec 22, 2022
  • Journal of Computer Science and Cybernetics
  • Luong Tran Thi
  • Research Article
  • Citations24

Out-of-core implementation for accelerator kernels on heterogeneous clouds

  • Sep 13, 2017
  • The Journal of Supercomputing
  • Hamidreza Khaleghzadeh +3
  • Book Chapter
  • Citations3

On object extension

  • Jan 01, 1998
  • Luigi Liquori
  • Book Chapter

Type Checking Parametrised Programs and Specifications in ASL + FPC

  • Jan 01, 2003
  • David Aspinall
  • Conference Article
  • Citations17

Compositional Non-Interference for Fine-Grained Concurrent Programs

  • May 01, 2021
  • Lirias (KU Leuven)
  • Dan Frumin +2
  • Conference Article
  • Citations64

Unifying type checking and property checking for low-level code

  • Jan 21, 2009
  • Jeremy Condit +3
  • Conference Article
  • Citations5

Policy-enforced linking of untrusted components

  • Sep 01, 2003
  • Eunyoung Lee +1
  • Single Book
  • Citations138

Practical Foundations for Programming Languages

  • Mar 05, 2016
  • Robert Harper
  • Conference Article
  • Citations9

Typing the wild in Erlang

  • Sep 29, 2018
  • Nachiappan Valliappan +1
  • Research Article
  • Citations7

Algorithmic type checking for a pi-calculus with name matching and session types

  • May 29, 2013
  • The Journal of Logic and Algebraic Programming
  • Marco Giunti
  • Conference Article
  • Citations7

Multi-Stage Memory Efficient Strassen's Matrix Multiplication on GPU

  • Dec 01, 2021
  • Arjun Gopala Krishnan +1
  • Book Chapter
  • Citations1

Ramied Recurrence with Dependent Types

  • Jan 01, 2001
  • Norman Danner
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.