Conference Publications
Hardness of ‘Infinite Energy’ Puzzles. SOFSEM 2027. With Utkarsh Tiwari, Utkarsh Thanvi, Neeldhara Misra, and Armaan Sethi.
Bhartrhari’s Limitation Theorem. ICLA 2027. With Rhea.
pdf ·
abstract
In the Sambandha-samuddeśa of his Vākyapadīya (5th c. CE), Bhartṛhari argues that the relation between a word and its meaning cannot itself be signified. He then turns the claim on itself: to call the relation unsignifiable (avācya) is already to signify it. Herzberger and Herzberger named the passage “Bhartṛhari’s paradox” and read it as a genuine paradox; Houben read it as a paradox that Bhartṛhari solves. We argue that it is a theorem, not a paradox, and that this reconciles the two readings. Using a set-theoretic version of Lawvere’s fixed-point theorem, we show that the passage is a diagonal argument, of the same kind as Cantor’s theorem and the Liar. Its conclusion is a limitation theorem: no term of a language can signify that language’s own signification relation.
The Trust a Protocol Needs. ICISS 2026. With Bhumika Mittal.
arxiv ·
abstract
Protocol verifiers check whether a protocol meets a security goal under stated trust assumptions, such as that a key is never leaked, a value is fresh, or a channel is authentic. They do not say which of those assumptions the goal needs. Rowe, Guttman and Liskov asked for the weakest assumptions under which a protocol achieves a goal and left the question open. We answer it for assumptions about keys, values and channels. Call a run that violates the goal an attack, and the assumptions that would rule it out its stopping set. The least a protocol must trust to meet a goal is exactly the set of minimal ways to stop all of its minimal attacks. Several such sets may exist. The answer becomes unique once either/or assumptions are allowed, and it is a single set exactly when every minimal attack is stopped by a single assumption. A Galois connection between assumptions and goals explains why: a goal may end in “or”, but its hypothesis may not. The same structure gives the trust needed by a conjunction of goals and an exact condition under which composed protocols need no extra trust. To compute the answer, a loop asks a verifier whether a candidate suffices, records what stops each attack it reports, and recomputes the candidates. Deciding whether some trust of at most k assumptions suffices is NP-hard. With a bounded analyser of our own and with CPSA, the loop finds the weakest trust for 18 goals over ten protocols and their variants, and on each it agrees with evaluating every trust using the same verifier. The answers include an assumption that our model of the adopted fix of Kerberos PKINIT states but the client’s authentication of the server does not need, and channel assumptions under which Needham-Schroeder meets its goal in a bounded model.
Defining Purpose Limited Secrets. ICISS 2026. With Bhumika Mittal.
arxiv ·
abstract
A cryptographic secret is issued for a purpose but grants a capability, and the capability is usually larger. Deployed systems state the purpose in policy and enforce only the capability. We make the purpose a property of the secret. A mechanism sees operations, not reasons, so a scheme enforces an admissible set A(P) of operations that stands in for a declared intended use I; whether I captures the human purpose is a modeling obligation that marks where policy takes over. Against the same I we define three regimes: under confinement an operation outside the intended use is infeasible, under mediation a trusted component refuses it, and under accountability use beyond a stated bound is possible but attributed to the holder. The confinement games, for unpredictability and indistinguishability, coincide with the key-query forms of functional-signature unforgeability and constrained-PRF pseudorandomness and correspond to simulation-secure functional encryption within its feasibility boundary; stated against I, they also register a predicate that permits too much. A payment token uses all three regimes on one secret: it pays one capped charge at one merchant, can be narrowed but not widened, is checked by the merchant, and identifies the withdrawing account if spent twice. Attenuation unforgeability reduces to unforgeable signatures and a collision-resistant hash without random oracles; traceability and non-frameability hold under discrete log and unforgeable signatures in the random-oracle model. We present this framework as a common specification against which existing primitives are stated and compared.
Localising Stochasticity in Weighted Automata. FSTTCS 2026. With Smayan Agarwal.
arxiv ·
abstract
Weighted automata over the nonnegative reals form a fundamental model for quantitative languages. We show that, up to scaling, this model collapses to probabilistic automata. Concretely, we prove that every weighted automaton whose transition matrix has spectral radius strictly less than one can be normalised, by a semantics-preserving rescaling of transition weights, into an equivalent locally stochastic probabilistic automaton. Thus, finite-mass weighted automata and probabilistic automata coincide up to normalisation. The construction is effective and relies on Perron-Frobenius theory. We further characterise probabilistic automata by stochastic regular expressions equipped with a geometrically weighted star. Beyond the finite-mass setting, we show that the behaviour of an arbitrary weighted automaton admits a decomposition into an exponential growth rate and a normalised probabilistic component, separating quantitative growth from stochastic structure.
How Often Does Your Program Fail? ATVA 2026. Distinguished Paper. With Arnab Ray.
arxiv · slides ·
abstract
Software in production encounters inputs shaped by how it is used in practice. We study distribution-aware reliability estimation: given a program, its operational input distribution, and a condition of interest, determine how often that condition holds and certify the result with a guaranteed error bound. Symbolic and statistical methods offer two ways to answer this question. Symbolic methods reason about entire regions of the input space and can certify rates exactly, but often struggle with complex arithmetic or loops. Statistical methods instead sample inputs and apply concentration bounds. They are broadly applicable, but can require many samples when failures are rare. We bring these approaches together in a framework that includes both as special cases. Each estimator has three components: a mass estimator, a per-leaf confidence bound, and a symbolic closure rule. We prove that any instantiation satisfying three invariants returns an interval containing the true rate with confidence 1−δ, regardless of when it stops. The certified error has two parts: a statistical term, reduced by sampling, and a structural term, reduced by symbolic closure. Pure sampling and pure symbolic execution each reduce only one of these terms. Alternative choices of the components also allow the framework to support rare-event variance-reduction methods.
A Forced-Structure Reduction and Verifiable Bounds for Conway’s 99-Graph. CAISc 2026. Best Paper Award.
pdf · arxiv ·
abstract
Conway’s 99-graph problem asks whether a strongly regular graph with parameters srg(99,14,1,2) exists. We develop two complementary lines of attack. Fixing one vertex, the conditions λ=1 and μ=2 force its neighbourhood to be a perfect matching and determine every edge between that neighbourhood and the remaining vertices. For (99,14,1,2), the unresolved part is therefore a constrained 12-regular graph on 84 vertices. We encode this reduction in CP-SAT and validate it by recovering the unique srg(9,4,1,2). We also prove by exhaustive enumeration that no circulant graph on ℤ/99 satisfies more than 68.0% of the CAISc constraints, and we give a validated orbit formulation for prescribed automorphisms. We then study the partial-score search problem. Fourteen human-designed search configurations reached at most 69.43%. Separately, we supplied the scoring function to an evolutionary program-search system. It produced a degree-preserving 4-vertex-switch tabu search whose best verified artifact scores 70.73%. The generated move differs from those used in our own searches and crosses a plateau that was stable under them. These results do not resolve the existence problem, but they reduce the exact search space and improve the best verified partial construction found in our experiments.
Accessibility Beyond Accommodations. COMPUTE 2025. With Vaanee Tripathi.
arxiv · doi ·
abstract
Computer science education has evolved extensively; however, systemic barriers still prevent students with visual impairments from fully participating. While existing research has developed specialized programming tools and assistive technologies, these solutions remain fragmented and often require complex technical infrastructure, which limits their classroom implementation. Current approaches treat accessibility as individual accommodations rather than integral curriculum design, creating gaps in holistic educational support. This paper presents a comprehensive framework for redesigning introductory computer science curricula to provide equitable learning experiences for students with visual impairments without requiring specialized technical infrastructure. The framework outlines five key components that together contribute a systematic approach to curriculum accessibility: accessible learning resources with pre-distributed materials and tactile diagrams, in-class learning kits with hands-on demonstrations, structured support systems with dedicated teaching assistance, an online tool repository, and psychosocial support for classroom participation. Unlike existing tool-focused solutions, this framework addresses both technical and pedagogical dimensions of inclusive education while emphasizing practical implementation in standard university settings. The design is grounded in universal design principles and validated through expert consultation with accessibility specialists and disability services professionals, establishing foundations for future empirical evaluation of learning outcomes and student engagement while serving as a template for broader institutional adoption.
Ancient Algorithms for a Modern Curriculum. COMPUTE 2025.
pdf · arxiv ·
abstract
Despite ongoing calls for inclusive and culturally responsive pedagogy in computing education, the teaching of algorithms remains largely decontextualized. Foundational computer science courses often present algorithmic thinking as purely formal and ahistorical, emphasizing efficiency, correctness, and abstraction. When history is mentioned, it usually centers on the modern development of digital computers, highlighting figures such as Turing, von Neumann, and Babbage. This narrow view misrepresents the origins of algorithmic reasoning and perpetuates a Eurocentric worldview that undermines equity and representation in STEM. In contrast, algorithmic thinking predates electronic computers by millennia and has deep roots in ancient civilizations including India, China, Babylon, and Egypt. Our work responds to this gap by embedding algorithm instruction in broader historical and cultural contexts, with particular attention to classical Indian contributions.
BOOP: Write Right Code. COMPUTE 2025. With Vaani Goenka.
arxiv · doi ·
abstract
Novice programmers frequently adopt a syntax-specific and test-case-driven approach, writing code first and adjusting until programs compile and test cases pass, rather than developing correct solutions through systematic reasoning. AI coding tools exacerbate this challenge by providing syntactically correct but conceptually flawed solutions. In this paper, we address the question of developing correctness-first methodologies to enhance computational thinking in introductory programming education. To this end, we introduce BOOP (Blueprint, Operations, OCaml, Proof), a structured framework requiring four mandatory phases: formal specification, language-agnostic algorithm development, implementation, and correctness proof. This shifts focus from making the code to understanding the code is correct. BOOP was implemented at Ashoka University using a VS Code extension and preprocessor that enforces constraints. Initial evaluation shows improved algorithmic reasoning and reduced trial-and-error debugging. Students reported better edge case understanding and problem decomposition, though some initially found the format verbose. Instructors observed stronger foundational skills compared to traditional approaches, suggesting that structured correctness-first approaches may significantly improve students’ computational thinking abilities.
SocraticAI: Transforming LLMs into Guided CS Tutors Through Scaffolded Interaction. COMPUTE 2025. With Karthik Sunil.
pdf · arxiv ·
abstract
We present SocraticAI, a scaffolded AI tutoring system that integrates large language models (LLMs) into undergraduate Computer Science education through structured constraints rather than prohibition. The system enforces well-formulated questions, reflective engagement, and daily usage limits while providing Socratic dialogue scaffolds. Unlike traditional AI bans, our approach cultivates responsible and strategic AI interaction skills through technical guardrails, including authentication, query validation, structured feedback, and RAG-based course grounding. Initial deployment demonstrates that students progress from vague help-seeking to sophisticated problem decomposition within 2-3 weeks, with over 75% producing substantive reflections and displaying emergent patterns of deliberate, strategic AI use.
From Transformers to Weighted Automata: Towards Verification of Large Language Models. DATAMOD 2025. With Smayan Agarwal, Aslah Ahmad Faizi, and Shobhit Singh.
Mobius: Synthesizing Relational Queries with Recursive and Invented Predicates. OOPSLA 2023. With Nathaniel Sands, George Petrou, Rajeev Alur, Mayur Naik, and Mukund Raghothaman.
pdf · doi · ·
abstract
Synthesizing relational queries from data is challenging in the presence of recursion and invented predicates. We propose a fully automated approach to synthesize such queries. Our approach comprises of two steps: it first synthesizes a non-recursive query consistent with the given data, and then identifies recursion schemes in it and thereby generalizes to arbitrary data. This generalization is achieved by an iterative predicate unification procedure which exploits the notion of data provenance to accelerate convergence. In each iteration of the procedure, a constraint solver proposes a candidate query, and a query evaluator checks if the proposed program is consistent with the given data. The data provenance for a failed query allows us to construct additional constraints for the constraint solver and refine the search. We have implemented our approach in a tool named Mobius. On a suite of 21 challenging recursive query synthesis tasks, Mobius outperforms three state-of-the-art baselines Gensynth, ILASP, and Popper, both in terms of runtime and accuracy. We also demonstrate that the synthesized queries generalize well to unseen data.
bibtex
@article{Thakkar2023,
author = {Thakkar, Aalok and Sands, Nathaniel and Petrou, George and Alur, Rajeev and Naik, Mayur and Raghothaman, Mukund},
title = {Mobius: Synthesizing Relational Queries with Recursive and Invented Predicates},
year = {2023},
publisher = {Association for Computing Machinery},
volume = {7},
number = {OOPSLA2},
doi = {10.1145/3622847},
journal = {Proc. ACM Program. Lang.},
month = oct,
articleno = {271},
numpages = {24}
}
Relational Query Synthesis ⋈ Decision Tree Learning. VLDB 2023. With Aaditya Naik, Adam Stein, Rajeev Alur, and Mayur Naik.
pdf · doi · ·
abstract
We study the problem of synthesizing a core fragment of relational queries called select-project-join (SPJ) queries from input-output examples. Search-based synthesis techniques are suited to synthesizing projections and joins by navigating the network of relational tables but require additional supervision for synthesizing comparison predicates. On the other hand, decision tree learning techniques are suited to synthesizing comparison predicates when the input database can be summarized as a single labelled relational table. In this paper, we adapt and interleave methods from the domains of relational query synthesis and decision tree learning, and present an end-to-end framework for synthesizing relational queries with categorical and numerical comparison predicates. Our technique guarantees the completeness of the synthesis procedure and strongly encourages minimality of the synthesized program. We present Libra, an implementation of this technique and evaluate it on a benchmark suite of 1,475 instances of queries over 159 databases with multiple tables. Libra solves 1,361 of these instances in an average of 59 seconds per instance. It outperforms state-of-the-art program synthesis tools Scythe and PatSQL in terms of both the running time and the quality of the synthesized programs.
bibtex
@article{Thakkar2023VLDB,
author = {Thakkar, Aalok and Naik, Aaditya and Stein, Adam and Alur, Rajeev and Naik, Mayur},
title = {Relational Query Synthesis {\textbowtie} Decision Tree Learning},
year = {2023},
publisher = {VLDB Endowment},
volume = {17},
number = {2},
issn = {2150-8097},
doi = {10.14778/3626292.3626306},
journal = {Proc. VLDB Endow.},
month = oct,
pages = {250-263},
numpages = {14}
}
Example-Guided Synthesis of Relational Queries. PLDI 2021. With Aaditya Naik, Nathaniel Sands, Mukund Raghothaman, Mayur Naik, and Rajeev Alur.
pdf · app · doi · code · ·
abstract
Program synthesis tasks are commonly specified via input-output examples. Existing enumerative techniques for such tasks are primarily guided by program syntax and only make indirect use of the examples. We identify a class of synthesis algorithms for programming-by-examples, which we call Example-Guided Synthesis (EGS), that exploits latent structure in the provided examples while generating candidate programs. We present an instance of EGS for the synthesis of relational queries and evaluate it on 86 tasks from three application domains: knowledge discovery, program analysis, and database querying. Our evaluation shows that EGS outperforms state-of-the-art synthesizers based on enumerative search, constraint solving, and hybrid techniques in terms of synthesis time, quality of synthesized programs, and ability to prove unrealizability.
bibtex
@inproceedings{Thakkar2021,
author = {Thakkar, Aalok and Naik, Aaditya and Sands, Nathaniel and Alur, Rajeev and Naik, Mayur and Raghothaman, Mukund},
title = {Example-guided synthesis of relational queries},
year = {2021},
isbn = {9781450383912},
publisher = {Association for Computing Machinery},
doi = {10.1145/3453483.3454098},
booktitle = {PLDI 2021},
pages = {1110-1125},
numpages = {16},
series = {PLDI 2021}
}
Additive Collatz Trajectories. ICJMS 2016. With Mrunmay Jagadale.
arxiv · doi · ·
abstract
Collatz Conjecture (also known as Ulam’s conjecture and 3x+1 problem) concerns the behavior of the iterates of a particular function on natural numbers. A number of generalizations of the conjecture have been subjected to extensive study. This paper explores Additive Collatz Trajectories, a particular case of a generalization of Collatz conjecture and puts forward a sufficient and necessary condition for looping of Additive Collatz Trajectories, along with two minor results. An algorithm to compute the number of equivalence classes when natural numbers are quotiented by the limiting behavior of their corresponding trajectories is also proposed.
bibtex
@inproceedings{Thakkar2016,
author = {Jagadale, Mrunmay and Thakkar, Aalok},
title = {Additive Collatz Trajectories},
booktitle = {28th International Conference of The Jangjeon Mathematical Society},
year = {2016}
}