Exercise 2.18 (Scott 1981, PRG-19, ยง2) โ the "spacing" map h : ๐น โ ๐น #
EXERCISE 2.18. What is the meaning in words of the approximable mapping
h : ๐น โ ๐น, whereh(0x) = 00 h(x)andh(1x) = 10 h(x)for allx โ |๐น|? Ishan isomorphism? Does there exist a mapk : ๐น โ ๐นwherek โ h = I_๐น, and iskone-one?
Meaning in words. h spaces the sequence out: it copies each input symbol
b and inserts a
0 immediately after it. So the input bit b becomes the block b0, and h
doubles the length of
every sequence, planting a 0 in every odd position (0-indexed positions 1, 3, 5, โฆ).
We follow the Example24.runMap template: a guaranteed-output function on finite
prefixes drives the
neighbourhood relation X h Y โ โ ฯ, X = ฯฮฃ* โง Y โ ๐น โง (hOut ฯ)ฮฃ* โ Y.
hOut ฯโ the doubling ofฯ(eachb โฆ b0);hMap : ApproximableMap B B.kOut ฯโ the left inverse on prefixes: keep the first bit of every complete pair, drop the inserted0;kMap : ApproximableMap B B. Key identity:kOut (hOut ฯ) = ฯ.kMap_comp_hMapโk โ h = I_๐น(so the requiredkexists).kMap_not_injectiveโkis not one-one:โ(0ฮฃ*)andโ(1ฮฃ*)both map toโฅ(the first bit of a length-1 prefix is an incomplete pair, hence dropped).hMap_not_surjectiveโhis not an isomorphism: it is not surjective (e.g.โ(01ฮฃ*)is not in the range, sincehonly produces sequences with0in every odd position).his injective (it has the left inversek), so it is injective-but-not-surjective.
Choice-free (#print axioms โ {propext, Quot.sound}): everything is decidable
list surgery.
The guaranteed output of h on a finite prefix: each symbol b becomes the
block b0.
Equations
Instances For
Prefix-monotonicity of hOut. ฯ <+: ฯ' โ hOut ฯ <+: hOut ฯ'.
The guaranteed output of k on a finite prefix: keep the first bit of every
complete pair,
discard the inserted 0. A trailing odd bit is an incomplete pair, hence dropped.
Equations
Instances For
k inverts h on prefixes. kOut (hOut ฯ) = ฯ.
Prefix-monotonicity of kOut. ฯ <+: ฯ' โ kOut ฯ <+: kOut ฯ'.
The elementwise value of hMap on the finite element โ(ฯฮฃ*) is โ((hOut ฯ)ฮฃ*).
The elementwise value of kMap on the finite element โ(ฯฮฃ*) is โ((kOut ฯ)ฮฃ*).
k โ h = I, k not injective, h not surjective. #
Exercise 2.18 โ k โ h = I_๐น. The composite recovers the identity:
reading kOut (hOut ฯ) = ฯ
through the cone relations.
Exercise 2.18 โ k is not one-one. โ(0ฮฃ*) and โ(1ฮฃ*) are distinct
finite elements that
k collapses to โฅ (a length-1 prefix is an incomplete pair, so its bit is
dropped).
Exercise 2.18 โ h is not an isomorphism. It is not surjective: โ(01ฮฃ*)
is not in the
range (any preimage x satisfies x = k(h(x)), forcing h(x) = โ(00ฮฃ*) โ โ(01ฮฃ*)).