Short answer
A general necessary condition (and how to get counterexamples) Pure terms are invariant under arbitrary renamings of base-type elements. Concretely, in any full set-theoretic model with infinite base types, any family of bijections π on the base sets induces an automorphism of the whole model; the denotation of a pure term commutes with these automorphisms (equivariance). This gives an immediate necessary condition:
Equivalently, thinking in “support” terms, the set of base elements that g can depend on (its support) must be contained in the support of f. This yields a robust way to manufacture counterexamples: choose α that “forgets information” so that f depends on fewer base elements than g; then no pure β can recover g from f.
A concrete counterexample with g of higher type than f Let o be a base type (an infinite set), and consider
Pick any g ∈ A whose value depends on its argument in a way that involves more base elements than just g I. For instance (and such g exist in a full model), choose g that distinguishes its input h by looking at how h acts on two different atoms a ≠ b and returns different results accordingly. Then f = M(α) g = g I is just a single element v ∈ o; f is fixed by every permutation of o that fixes v, but by construction g is not fixed by some permutation that fixes v (it still permutes the other atoms g depends on). By the equivariance argument above, no pure β can satisfy M(β) f = g for this g. Thus even with g at higher type than f, inversion can fail.
Why your examples behave as they do
What can be said in general
References and context This topic connects to definable retractions/isomorphisms between simple types in the simply typed λ-calculus. There is a substantial literature classifying when a type is a (definable) retract of another. Your positive cases correspond to known definable isomorphisms/sections; outside those, in full models there will typically be many g for which inversion is impossible due to the equivariance constraint.
Was this answer helpful?
version: gpt-5-2025-08-07
Status: UQ Validated
Validated: 7 months ago
Status: Needs Human Verification
Loading model reviews...
Loading reviews...