feat(Computability): define oracle computability and Turing degrees #20219
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 277 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.337
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #20219"
general
weight: 0.35
tannerduve
Some initial definitions introducing a model of oracle computability via partial recursive functions, define Turing reducibility and equivalence, and prove that Turing equivalence is an equivalence relation. Define the type of Turing degrees as equivalence classes under Turing equivalence. This PR includes:
RecursiveIn g f: An inductive definition representing that a partial functionfis recursive in oracleg.turing_reducible: A relation defining Turing reducibility between partial functions.turing_equivalent: A relation defining Turing equivalence between partial functions.TuringDegree: The type of Turing degrees, defined as equivalence classes underturing_equivalent.Implementation Notes
The type
RecursiveIn g fis inductively defined to include basic functions such aszero,succ, projections, and the oracleg, and is closed under pairing, composition, primitive recursion, and μ-recursion. Thejoinoperation combines two partial functions by mapping even and odd numbers to the respective functions.Notation
f ≤ᵀ g:fis Turing reducible tog.f ≡ᵀ g:fis Turing equivalent tog.f ⊔ g: The join of partial functionsfandg.In Progress
The work here is just the basic definitions for the theory being developed. Some current in-progress work involves proving the upper-semilattice structure of Turing degrees, proving the existence of a _relativized_ universal partial recursive function, and proving properties of the jump operator.
References
[Carneiro2018] Carneiro, Mario. Formalizing Computability Theory via Partial Recursive Functions. arXiv preprint arXiv:1810.08380, 2018.
[Odifreddi1989] Odifreddi, Piergiorgio. Classical Recursion Theory: The Theory of Functions and Sets of Natural Numbers, Vol. I. Springer-Verlag, 1989.
[Soare1987] Soare, Robert I. Recursively Enumerable Sets and Degrees. Springer-Verlag, 1987.
[Gu2015] Gu, Yi-Zhi. Turing Degrees. Institute for Advanced Study, 2015.
Tags
Computability, Oracle, Turing Degrees, Reducibility, Equivalence Relation