idris-1.3.4: Functional Programming Language with Dependent Types
LicenseBSD3
MaintainerThe Idris Community.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Idris.Core.ProofTerm

Description

 
Synopsis

Documentation

data ProofTerm Source #

Instances

Instances details
Show ProofTerm Source # 
Instance details

Defined in Idris.Core.ProofTerm

Methods

showsPrec :: Int -> ProofTerm -> ShowS

show :: ProofTerm -> String

showList :: [ProofTerm] -> ShowS

data Goal Source #

Constructors

GD 

updateSolvedTerm :: [(Name, Term)] -> Term -> Term Source #

Given a list of solved holes, fill out the solutions in a term

updateSolvedTerm' :: [(Name, Term)] -> Term -> (Term, Bool) Source #

Given a list of solved holes, fill out the solutions in a term. Return whether updates were performed, to facilitate sharing when there are no updates.

refocus :: Hole -> ProofTerm -> ProofTerm Source #

Refocus the proof term zipper on a particular hole, if it exists. If not, return the original proof term.

updsubst Source #

Arguments

:: Eq n 
=> n

The id to replace

-> TT n

The replacement term

-> TT n

The term to replace in

-> TT n 

As subst, in TT, but takes advantage of knowing not to substitute under Complete applications.

type Hole = Maybe Name Source #

type RunTactic' a = Context -> Env -> Term -> StateT a TC Term Source #

atHole :: Hole -> RunTactic' a -> Context -> Env -> ProofTerm -> StateT a TC (ProofTerm, Bool) Source #