skip to main | skip to sidebar
Tehom

09 August 2011

Trade Logic: Missed a type ctor

Trade Logic: Missed a type constructor

I forgot one type constructor before, the one to construct the type of predicates. It was covered by "One of the exposed primitive types", but inadequately. It needs to can express a predicate's type parameters.

Rather than mixing applications and literal lists, or requiring list at the beginning of each list, I will use low-quote and write:

,(pred . Args)

where pred is the symbol pred and Args is a type (named or literal) augmented by mode annotations. This type accepts any predicate whose inputs are all equally or less strict than the respective parts of Args and whose outputs are all equally or more strict than the respective parts of Args. It would also reject predicates that had no equivalent mode.

For example, the type , (pred type +type) would accept/reject various predicates:

Arg1 typeArg2 typeDisposition
type intype outAccept
thing intype outAccept
thing inthing outReject
thing intype outAccept
thing intype inReject
type outtype outReject

I may need to do more for the interaction of the mode system and the type system here.

Posted by Tehom at 7:09 PM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: argument markets, trade logic, wild-ideas

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Followers

Blog Archive

  • ►  2014 (1)
    • ►  January (1)
  • ►  2013 (4)
    • ►  December (1)
    • ►  November (1)
    • ►  September (2)
  • ►  2012 (22)
    • ►  December (2)
    • ►  August (3)
    • ►  July (2)
    • ►  June (2)
    • ►  May (5)
    • ►  April (1)
    • ►  March (1)
    • ►  February (5)
    • ►  January (1)
  • ▼  2011 (59)
    • ►  December (4)
    • ►  October (3)
    • ►  September (9)
    • ▼  August (12)
      • git-svn with less pain
      • Simulated evolution of dark matter supports PDM
      • Crazy idea? Parallel Dark Matter
      • Trade Logic: Branching quantifiers 2
      • Trade Logic: Branching quantifiers 1
      • Trade logic: Objects are sampleable
      • Trade Logic: Missed a type ctor
      • Pseudo-quantification in Trade Logic
      • Trade Logic: Clarification on guarded conjunction
      • Trade Logic 2
      • Superpositionality answers Heidegger
      • Prosperity defined?
    • ►  July (1)
    • ►  June (5)
    • ►  May (6)
    • ►  April (1)
    • ►  March (4)
    • ►  February (6)
    • ►  January (8)
  • ►  2010 (57)
    • ►  December (6)
    • ►  November (6)
    • ►  October (5)
    • ►  September (14)
    • ►  August (5)
    • ►  July (4)
    • ►  May (1)
    • ►  April (5)
    • ►  March (4)
    • ►  February (2)
    • ►  January (5)

About Me

Tehom
View my complete profile