src/HOL/Library/EfficientNat.thy
changeset 19041 1a8f08f9f8af
parent 18851 9502ce541f01
child 19137 f92919b141b2
equal deleted inserted replaced
19040:88d25a6c346a 19041:1a8f08f9f8af
    66 code_syntax_const 0 :: nat
    66 code_syntax_const 0 :: nat
    67   ml (target_atom "(0:IntInf.int)")
    67   ml (target_atom "(0:IntInf.int)")
    68   haskell (target_atom "0")
    68   haskell (target_atom "0")
    69 
    69 
    70 code_syntax_const Suc
    70 code_syntax_const Suc
    71   ml (infixl 8 "_ + 1")
    71   ml (target_atom "(__ + 1)")
    72   haskell (infixl 6 "_ + 1")
    72   haskell (target_atom "(__ + 1)")
    73 
    73 
    74 text {*
    74 text {*
    75 Case analysis on natural numbers is rephrased using a conditional
    75 Case analysis on natural numbers is rephrased using a conditional
    76 expression:
    76 expression:
    77 *}
    77 *}