Prompts: Shape Inference After the Boilerplate: A Literature Survey from OCANNL

The prompts below are the human-side contribution to “Shape Inference After the Boilerplate: A Literature Survey from OCANNL” — the questions, framing, constraints, and course-corrections that steered the writing. They are reproduced here to delineate which part of the work is Łukasz Stafiniak’s.


Can you do literature search for related work on shape inference?

This is very rich. I attach a comparison of OCANNL with another related paper: Jakub Bachurski, Alan Mycroft, and Dominic Orchard’s Structuring Arrays with Algebraic Shapes (ARRAY ’25). Can you draft a substantial article, as a separate Markdown file, for our blog with this literature survey from OCANNL’s perspective? I’m thinking of a paper in the 6000 to 8000 words range.

Quick question: the two Gradual Types papers are from different groups. Do they cover similar ground or is it worth going deeper on both of them?

I attach an extraction of the Refined Remora paper, the sources of the Gradual Tensor Shape Checking paper, and two sections of the Tensor Comprehensions paper. Can you expand the article with deeper dives on these sources?

A few issues or remarks.