SearcharxivSearch

arXiv subjects

Gordon Stewart

Publications and source records attributed to Gordon Stewart.

4 recordsLinked to original sources

Inductive Reasoning for Coinductive Types

We present AlgCo (Algebraic Coinductives), a practical framework for inductive reasoning over commonly used coinductive types such as conats, streams, and infinitary trees with finite branching factor. The key idea is to exploit the notion of algebraic complete partial order from domain theory to define continuous operations over coinductive types via primitive recursion on ``dense'' collections of their elements, enabling a convenient strategy for reasoning about algebraic coinductives by straightforward proofs by induction. We implement the AlgCo framework in Coq and demonstrate its power by verifying a stream variant of the sieve of Eratosthenes, a regular expression library based on coinductive trie encodings of formal languages, and expected value semantics for coinductive sampling processes over discrete probability distributions in the random bit model.

cs.LO

Formally Verified Samplers From Probabilistic Programs With Loops and Conditioning

We present Zar: a formally verified compiler pipeline from discrete probabilistic programs with unbounded loops in the conditional probabilistic guarded command language (cpGCL) to proved-correct executable samplers in the random bit model. We exploit the key idea that all discrete probability distributions can be reduced to unbiased coin-flipping schemes. The compiler pipeline first translates a cpGCL program into choice-fix trees, an intermediate representation suitable for reduction of biased probabilistic choices. Choice-fix trees are then translated to coinductive interaction trees for execution within the random bit model. The correctness of the composed translations establishes the sampling equidistribution theorem: compiled samplers are correct wrt. the conditional weakest pre-expectation semantics of cpGCL source programs. Zar is implemented and fully verified in the Coq proof assistant. We extract verified samplers to OCaml and Python and empirically validate them on a number of illustrative examples.

cs.PL

Science with the $AstroSat$ Soft X-ray Telescope: an overview

The Soft X-ray Telescope (SXT) aboard the $AstroSat$ satellite is the first Indian X-ray telescope in space. It is a modest size X-ray telescope with a charge coupled device (CCD) camera in the focal plane, which provides X-ray images in the $\sim 0.3-8.0$ keV band. A forte of SXT is in providing undistorted spectra of relatively bright X-ray sources, in which it excels some current large CCD-based X-ray telescopes. Here, we highlight some of the published spectral and timing results obtained using the SXT data to demonstrate the capabilities and overall performance of this telescope.

astro-ph.HE

Training Ensembles to Detect Adversarial Examples

We propose a new ensemble method for detecting and classifying adversarial examples generated by state-of-the-art attacks, including DeepFool and C&W. Our method works by training the members of an ensemble to have low classification error on random benign examples while simultaneously minimizing agreement on examples outside the training distribution. We evaluate on both MNIST and CIFAR-10, against oblivious and both white- and black-box adversaries.

cs.LG