openAI-math-dataset / lean /OAI /Computability /PerfectCompleteness /Machines /BinaryInputReduction.lean
Download lean/OAI/Computability/PerfectCompleteness/Machines/BinaryInputReduction.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.53 kB
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Computability/PerfectCompleteness/Machines/BinaryInputReduction.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/Computability/PerfectCompleteness/Machines/BinaryInputReduction.lean
-
curl -L -o BinaryInputReduction.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/Computability/PerfectCompleteness/Machines/BinaryInputReduction.lean
1.53 kB
| import OAI.Computability.PerfectCompleteness.Machines.BinaryRenameMachine | |
| import OAI.Computability.PerfectCompleteness.Machines.BinaryTotalInputMachine | |
| import OAI.Computability.UniqueGames.Machines.MachineLemmas | |
| namespace OAI | |
| section | |
| namespace PerfectCompleteness.BinaryInputReduction | |
| open Turing UniqueGamesTheorem.Foundations.Complexity | |
| noncomputable def computation : | |
| TM2ComputableInPolyTime (id : List Bool → List Bool) formulaBits BinaryLanguage.totalRename := by | |
| change TM2ComputableInPolyTime (id : List Bool → List Bool) formulaBits | |
| (fun input => BinaryOccurrenceRename.renamed (BinaryLanguage.totalParsed input)) | |
| exact MachineSequential.composeBits BinaryTotalInputMachine.computableInPolyTime | |
| BinaryRenameMachine.computableInPolyTime | |
| theorem computation_finiteAlphabet : MachineFiniteAlphabet.FiniteAlphabet computation.tm := | |
| MachineFiniteAlphabet.composeBits BinaryTotalInputMachine.computableInPolyTime | |
| BinaryRenameMachine.computableInPolyTime | |
| BinaryTotalInputMachine.computation_finiteAlphabet | |
| BinaryRenameMachine.computation_finiteAlphabet | |
| noncomputable def reduction : CookLevin.PolynomialThreeSATReduction BinaryLanguage.language where | |
| reduce := BinaryLanguage.totalRename | |
| computation := computation | |
| correct input := (BinaryLanguage.totalRename_satisfiable_iff input).symm | |
| theorem reduction_finiteAlphabet : MachineFiniteAlphabet.FiniteAlphabet reduction.computation.tm := | |
| computation_finiteAlphabet | |
| end PerfectCompleteness.BinaryInputReduction | |
| end | |
| end OAI | |