7:2 B. Dinis and ´
E. Miquey Vol. 19:2
Leibniz, Euler and Cauchy, to name but a few (see e.g. [
KS13
,
BBE+18
,
BBG+20
]). In
particular, in Leibniz’s Calculus one may recognize calculation rules – sometimes called the
Leibniz rules [
Lut87
,
Cal92
,
DvdB19
] – which correspond to heuristic intuitions for how the
infinitesimals should operate under calculations: the sum and product of infinitesimals is
infinitesimal, the product of a limited number (i.e. not infinitely large) with an infinitesimal
is infinitesimal,...
In [
Rob61
,
Rob66
] Robinson showed that, in the setting of model theory, it is possible
to extend usual mathematical sets (
N
,
R
, etc.) witnessing the existence of new elements,
the so-called nonstandard individuals. In this way, it is possible to deal consistently with
infinitesimal and infinitely large numbers via ultraproducts and ultrapowers, in a way that
is consistent with the Leibniz rules. Since the extended structures are nonstandard models
of the original structures, this new setting was dubbed nonstandard analysis.
These constructions are meant to simplify doing mathematics: notions like limits or
continuity can for instance be given a simpler form in nonstandard analysis. Later in
the 70s, Nelson developed a syntactical approach to nonstandard analysis, introducing in
particular three key principles: Idealization, Standardization and Transfer [
Nel77
]. The
validity of these principles for constructive mathematics has been studied in different
settings, in particular, following some pioneer work by Moerdijk, Palmgren and Avigad
[
Moe95
,
MP97
,
Avi05
] in nonstandard intuitionistic arithmetic, several recent works, inspired
by Nelson’s approach, lead to interpretations of nonstandard theories in intuitionistic
realizability models [BBS12, DF17, HvdB17, DG18].
The very first ideas of realizability are to be found in the Brouwer-Heyting-Kolmogorov
interpretation [
Hey34
,
Kol32
], which identifies evidences and computing proofs (the realizers).
Realizability was designed by Kleene to interpret the computational content of the proofs
of Heyting arithmetic [
Kle45
], and was later extended to more expressive frameworks
[
G¨o58
,
Kre51
,
Kri09
]. While the Curry-Howard isomorphism focuses on a syntactical
correspondence between proofs and programs, realizability rather deals with the (operational)
semantics of programs: a realizer of a formula
A
is a program which computes adequately
with the specification that
A
provides. As such, realizability constitutes a technique to
develop new models of a wide class of theories (from Heyting arithmetic to Zermelo-Fraenkel
set theory), whose algebraic structures has been studied in [vO08, Kri16, Miq20].
With the development of his classical realizability, Krivine evidences the fact that
extending the
λ
-calculus with new programming instructions may result in getting new
reasoning principles:
call/cc
to get classical logic [
Gri90
,
Kri09
],
quote
for dependent choice
[
Kri01
], etc. In this paper, we follow this path to show how the addition of a monotonic
reference allows us to get a realizability interpretation for nonstandard analysis. The
realizability interpretation proposed here can be understood as a computational interpretation
of the ultraproduct construction in [
LR75
], where the value of the reference indicates the
slice of the product in which the computation takes place. In particular, we obtain a realizer
for the Idealization principle whose computational behaviour increases the reference in the
manner of a diagonalization process. Our setting turns out to be semi-intuitionistic since it
allows to deduce a rather non-trivial realizer for a nonstandard version of the nonconstructive
Lesser Limited Principle of Omniscience [BR87].
Outline.
We start this paper by recalling the main ideas of the ultraproduct construction
(Section 2) and the definition of a standard realizability interpretation for second-order
Heyting arithmetic (Section 3). We then introduce stateful computations and our notion of