(**************************************************************)
(*   Copyright Dominique Larchey-Wendling [*]                 *)
(*                                                            *)
(*                             [*] Affiliation LORIA -- CNRS  *)
(**************************************************************)
(*      This file is distributed under the terms of the       *)
(*         CeCILL v2 FREE SOFTWARE LICENSE AGREEMENT          *)
(**************************************************************)
(* A Coq computable reduction from n-registers MM termination to 2-registers MMA termination. Beware that the semantics of MMA is a bit different than the semantics of MM:  the DEC instruction jumps when not zero instead of when zero  Compare mm_sss  (ILL/Mm/mm_defs.v) and     mma_sss (MM/mma_defs.v)  The reduction goes via regular FRACTRAN termination *)
From Undecidability.Shared.Libs.DLW Require Import Utils.utils Vec.pos Vec.vec.
From Undecidability.Shared.Libs.DLW.Code Require Import sss.
From Undecidability.MinskyMachines Require Import MM FRACTRAN_to_MMA2.
From Undecidability.FRACTRAN Require Import FRACTRAN MM_FRACTRAN.
Set Implicit Arguments.

Corollary MM_MMA2_HALTING : MM_HALTING ⪯ MMA2_HALTING.