package inhabitation
- Alphabetic
- By Inheritance
- inhabitation
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
BoundedCombinatoryLogic extends AnyRef
Type inhabitation for bounded combinatory logic (BCL).
-
class
FiniteCombinatoryLogic extends AnyRef
Type inhabitation for finite combinatory logic (FCL)
-
type
InhabitationAlgorithm = (FiniteSubstitutionSpace, SubtypeEnvironment, Repository) ⇒ (Seq[Type]) ⇒ TreeGrammar
For a finitite substitution space, a subtype environment and a repository
Gamma, an inhabitation algorithm takes a sequence of types and returns a tree grammar, describing all inhabitants of these types.For a finitite substitution space, a subtype environment and a repository
Gamma, an inhabitation algorithm takes a sequence of types and returns a tree grammar, describing all inhabitants of these types. We have for alli ≤ k:Gamma |- M : tau_iiff M is a word of the language of the grammar returned by the algorithm applied toSeq(tau_1, tau_2, ..., tau_k). -
type
Repository = Map[String, Type]
Repositories map combinator names to types
-
case class
Tree(name: String, arguments: Tree*) extends Product with Serializable
A combinator expression.
A combinator expression.
- name
the name of the combinator in head position.
- arguments
arguments of the combinator.
-
type
TreeGrammar = Map[Type, Set[(String, Seq[Type])]]
Tree Grammars map types to sets of combinators and recursive targets, such that the combinator, when applied to arguments of the recursive target types, returns a value of the type on the left hand side
-
trait
TreeGrammarEnumeration extends AnyRef
Enumeration of all combinatory expressions derivable from a TreeGrammar.
Enumeration of all combinatory expressions derivable from a TreeGrammar. Use TreeGrammarEnumeration.apply to obtain an enumeration for any given
TreeGrammar.
Value Members
-
def
prettyPrintTreeGrammar(grammar: TreeGrammar): String
Returns a prettified String representation of the given tree grammar
-
object
BoundedCombinatoryLogic
Provides a type inhabitation algorithm for bounded combinatory logic (BCL).
-
object
FiniteCombinatoryLogic
Provides a type inhabitation algorithm for finite combinatory logic (FCL)
-
object
TreeGrammarEnumeration
Helper object to obtain enumerations.