free-compiler-0.3.0.0: A Haskell to Coq compiler.

Safe HaskellNone
LanguageHaskell2010

FreeC.Backend.Coq.Converter.FuncDecl.Rec.WithSections

Description

This module contains functions for converting mutually recursive functions with constant arguments by moving the constant arguments into a Section sentence.

A Section sentence must be used in case of higher-order functions to tell Coq that the function does not change. Otherwise Coq cannot determine that functions using higher order functions terminate in some cases.

Synopsis

Documentation

convertRecFuncDeclsWithSection :: [ConstArg] -> [FuncDecl] -> Converter [Sentence] Source #

Converts recursive function declarations and adds a Section sentence for the given constant arguments.