Instruct: Identify the main and secondary category of Arxiv papers based on the titles and abstracts
Query: Zero-cost meta-programmed stateful functors in F*   Writing code is hard; proving it correct is even harder. As the scale of
verified software projects reaches new heights, the problem of efficiently
verifying large amounts of software becomes more and more salient. Nowhere is
this issue more evident than in the context of verified cryptographic
libraries. To achieve feature-parity and be competitive with unverified
cryptographic libraries, a very large number of algorithms and APIs need to be
verified. However, the task is oftentimes repetitive, and factoring out
commonality between algorithms is fraught with difficulties, requiring until
now a significant amount of manual effort.
  This paper shows how a judicious combination of known functional programming
techniques leads to an order-of-magnitude improvement in the amount of verified
code produced by the popular HACL* cryptographic library, without compromising
performance. We review three techniques that build upon each other, in order of
increasing sophistication. First, we use dependent types to crisply capture the
specification and state machine of a block algorithm, a cryptographic notion
that was until now only informally and imprecisely specified. Next, we rely on
partial evaluation to author a higher-order, stateful functor that transforms
any unsafe block API into a safe counterpart. Finally, we rely on elaborator
reflection to automate the very process of authoring a functor, using a
code-rewriting tactic. This culminates in a style akin to templatized C++ code,
but relying on a userland tactic and partial evaluation, rather than built-in
compiler support.

25
The categories of this paper are: patt-sol
19
The categories of this paper are: eess
6
The categories of this paper are: astro-ph
30
The categories of this paper are: q-alg
27
The categories of this paper are: comp-gas
0
The categories of this paper are: hep-ph
33
The categories of this paper are: plasm-ph
35
The categories of this paper are: mtrl-th
22
The categories of this paper are: chao-dyn
28
The categories of this paper are: alg-geom
7
The categories of this paper are: hep-th
4
The categories of this paper are: cond-mat
37
The categories of this paper are: supr-con
36
The categories of this paper are: cmp-lg
16
The categories of this paper are: stat
15
The categories of this paper are: nucl-ex