Repository navigation
Conversation
barni120400
reviewed
Nov 19, 2026
| the code of every `a` to the code of `f a`. The complexity of `f` relative to these encodings is | ||
| then the complexity of `g`. This is the notion of a realizer from computable analysis | ||
| [Weihrauch2000], for the special case that every value has exactly one name. -/ | ||
| def Realizes (g : List Bool → List Bool) (f : α → β) (encIn : α ↪ List Bool) |
Contributor
There was a problem hiding this comment.
When \alpha and \beta are the same type and the encodings are the same, it's exactly Function.Semiconj.
An example for this case is encNat.
I think we should use this equivalence in such cases to gain the mathlib API
Collaborator
Author
There was a problem hiding this comment.
I see the relation to Function.Semiconj but don't understand what you mean after that.
crei
force-pushed
the
crei/encoding_accessors
branch
2 times, most recently
from
November 26, 2026 13:50
98402ea to
3a754d7
Compare
crei
force-pushed
the
crei/encoding_accessors
branch
from
November 30, 2026 11:04
676c205 to
e0150a3
Compare
…default encodings Show that the accessors and constructors of the default encodings of pairs, sums, options, lists and natural numbers are computable by multi-tape Turing machines in linear time and without additional work space. The generic combinator `transduceOutput` runs a machine and pipes its output through a subsequential transducer. The result that delimiting the output costs time `2 * t + 1` is derived from it.
crei
force-pushed
the
crei/encoding_accessors
branch
from
November 30, 2026 11:31
e0150a3 to
0899588
Compare
crei
marked this pull request as ready for review
November 30, 2026 11:35
crei
requested review from
SamuelSchlesinger,
arademaker,
chenson2018,
ctchou,
fmontesi,
sorrachai and
thomaskwaring
as code owners
November 30, 2026 11:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proves the complexities of various functions related to the default encodings (List, Prod, Sum, Sigma, Nat, including the binary successor). The main technical addition is a combinator that applies a subsequential transducer to the output of a Turing machine. This allows us to easily derive the complexity of functions with slightly different encodings. This gives rise to the notion of
Realizes: A notion that allows us to exchange the encoding of a complexity result.AI was used to design this PR but all docstrings were rewritten or at least verified.