1/ In this post I am working in MLTT, with function extensionality as an oracle ...
Martin Escardo @MartinEscardo@mathstodon.xyz
1/
In this post I am working in MLTT, with function extensionality as an oracle (which is available, as a mechanism, in cubical type theory, of which MLTT is a subset).
Fix a natural number k, and let `D k` be the type of natural number sequences that (1) are bounded by k, and (2) are non-strictly decreasing (so, in particular, they may be eventually constant).
Of course the type `D k` is infinite if k > 0.
Let also 𝟚 be the two-element type 𝟙 + 𝟙, where I will write 0 and 1 for its two elements, by an abuse of notation :-).
Claim. There is a function A : (D k → 𝟚) → 𝟚 such that for any p : D k → 𝟚, we have that A p = 1 iff p α = 1 for all α : D k.
By "there is" here I mean that I can write down a definition of `A` in MLTT, even in Agda, together with a proof of the claim.
The surprise here, only for people interested in constructive mathematics, is that "we can check infinitely many cases in finite time".
The case k = 1 was published in the Journal of Symbolic Logic in 2011, and, although this was not said explicitly, the general case proved there includes the above case.
But I never wrote down the above in TypeTopology explicitly (although it is subsumed by what is already there).
The type of decreasing sequences of natural numbers bounded by k is exhaustively searchable in MLTT + funext.
If you don't like funext, you can instead work with setoids and restrict p : D k → 𝟚 above to be "extesional", meaning that for any two pointwise equal elements of `D k` it returns the same result in 𝟚.
This result is classically trivial (just use excluded middle), but constructively interesting (and maybe even surprising?).