openAI-math-dataset / lean /OAI /MathematicalPhysics /NavierStokes /ForcedComputation /Programs /FiniteMachineHaltingDischarge.lean
Download lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Programs/FiniteMachineHaltingDischarge.lean from roseking/openAI-math-dataset: direct link, hf CLI and curl.
- Browser
- Download file 976 Bytes
-
https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Programs/FiniteMachineHaltingDischarge.lean
- Command line
-
hf download hf://datasets/roseking/openAI-math-dataset/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Programs/FiniteMachineHaltingDischarge.lean
-
curl -L -o FiniteMachineHaltingDischarge.lean https://huggingface.co/datasets/roseking/openAI-math-dataset/resolve/main/lean/OAI/MathematicalPhysics/NavierStokes/ForcedComputation/Programs/FiniteMachineHaltingDischarge.lean
976 Bytes
| import OAI.MathematicalPhysics.NavierStokes.ForcedComputation.Programs.FixedInterpreter | |
| import OAI.MathematicalPhysics.NavierStokes.ForcedComputation.Programs.MachineDecisionInput | |
| namespace OAI | |
| /-! Discharge of the finite-table undecidability input, using the fixed | |
| universal interpreter and Mathlib's proved halting theorem. -/ | |
| namespace ForcedComputation | |
| theorem finiteMachineHaltingUndecidable : FiniteMachineHaltingUndecidable := by | |
| rintro ⟨d, hd, hcorrect⟩ | |
| obtain ⟨M, input, hi, hM⟩ := FiniteMachine.exists_fixed_universal_machine | |
| apply ComputablePred.halting_problem 0 | |
| apply ComputablePred.computable_iff.mpr | |
| refine ⟨fun c : Nat.Partrec.Code => d (M, input (Encodable.encode c)), | |
| hd.comp ((Computable.const M).pair (hi.comp Computable.encode)), ?_⟩ | |
| funext c | |
| apply propext | |
| have h := (hcorrect (M, input (Encodable.encode c)) (hM _).1).trans (hM _).2 | |
| simpa only [Denumerable.ofNat_encode] using h.symm | |
| end ForcedComputation | |
| end OAI | |