arXiv Science⌕ Search

arXiv subjects

Vaani Goenka

Publications and source records attributed to Vaani Goenka.

2 recordsLinked to original sources

Two Primes Suffice for Definable Graph Canonisation

We study inflationary fixed-point logic on finite simple graphs with unordered vertices and an ordered number sort. For a prime $r$, the quantifier $M_r$ tests whether the number of relations satisfying a formula is nonzero modulo $r$. For any distinct primes $p$ and $q$, the logic with $M_p$ and $M_q$ defines the adjacency matrix of a canonical copy on the number sort. On labelled inputs this matrix is computable in deterministic polynomial time with an oracle that tests whether the number of satisfying assignments of a Boolean circuit is nonzero modulo $p$. For each prime $p$, the logic with $M_p$ alone cannot define a canonical copy on all graphs. The primes also differ on Boolean queries. There is a single first-order formula $β(S)$ on vertex sets such that $M_q S β(S)$ is undefinable with $M_p$ alone whenever $p \ne q$. For a positive integer-valued function $g$, consider the class of all graphs $G$ with at most $g(|V(G)|)$ automorphisms. For each fixed prime $p$, the logic with $M_p$ canonises this class exactly when $g$ is bounded.

cs.LO↗

BOOP: Write Right Code

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.

cs.SE↗