Documentation
  • Introduction
  • Why Ampersand?
    • The Business Rules Manifesto and Ampersand
  • Tutorial
    • Example system: Enrollment
    • Conceptual Model: Enrollment
    • Your tool: RAP4
    • Making your first Ampersand script
  • Reactive programming
  • The language Ampersand
    • How to read syntax statements
    • Truth
    • Atoms
    • The CONCEPT statement
    • The RELATION statement
    • The MEANING statement
    • The PURPOSE statement
    • The CLASSIFY statement
    • The RULE statement
    • Terms
      • Semantics
      • Semantics in logic
        • Primitive terms
        • Boolean operators
        • Relational operators
        • Residual operators
      • Semantics in natural language
        • Primitive terms in natural language
        • Boolean operators in natural language
        • Relational operators in natural language
        • Residual operators in natural language
      • Semantics in sets
        • Primitive terms in set theory
        • Boolean operators in set theory
        • Relational operators in set theory
      • Semantics of terms, defined algebraically
        • Boolean operators in algebra
        • Relational operators in algebra
      • Semantics visualized
        • Semantics of boolean operators visualized
        • Semantics of relational operators visualized
        • Semantics of residuals visualized
    • Context
    • Module
    • Best Practices
    • Syntactical Conventions
      • The CONCEPT statement
      • The RELATION statement
      • The RULE statement
      • The CONTEXT statement
      • The INCLUDE statement
      • Explanation
      • Patterns
      • Population
        • Population in spreadsheets
      • The PURPOSE statement
      • The IDENT statement
      • The TABLE statement
      • Language support
    • The INCLUDE statement
    • Patterns
    • Services
      • Example: Client
      • Example: Login
      • Syntax and meaning
      • Explanation
      • Layout of user interfaces
        • Your own widgets (HTML and CSS)
      • CRUD
    • Population
      • Population in spreadsheets
    • The ENFORCE statement
    • The IDENT statement
    • The TABLE statement
    • Language support
    • Current date
    • The Preprocessor
    • Design considerations
  • Running the Ampersand compiler
    • Configuration
    • Commands (vs. 4.0.0 and later)
    • Options (up to vs. 3.17.4)
  • Architecture of an Ampersand Application
    • Backend framework
    • Hooks
    • Extensions
      • The ExecEngine
  • Deploying your Ampersand script
    • Compiler
    • Deploy your own web application on your laptop
    • Prototype multi-stage build
    • Prototype database
  • Reusing Available Modules
    • Modules
    • Security
    • SIAM (Sessions, Identity and Access Management) Module
  • Exercises
    • Delivery
    • VOG (in Dutch)
  • Installing Ampersand
    • Deploying your Prototype
    • Installing the tools manually
  • Modeling
    • Domain Driven Design
    • Data modeling
    • Legal modeling
    • Architecture modeling
    • Metamodeling
    • Limitations of Ampersand
  • Configuring your application
  • The Excel Importer
  • Plans
    • Current State
    • NoSQL storage
    • API documentation
    • OWL and RDFS input
    • Refactor the front-end
  • Research
Powered by GitBook
On this page
  • How to type boolean operators in your script
  • Other explanation
Export as PDF
  1. The language Ampersand
  2. Terms
  3. Semantics in logic

Residual operators

PreviousRelational operatorsNextSemantics in natural language

Last updated 6 years ago

are used when "" is involved.

  • right residual : a (r\s) b ⇔ ∀x:x r a→x s ba\ (r\backslash s)\ b\ \Leftrightarrow\ \forall x: x\ r\ a\rightarrow x\ s\ ba (r\s) b ⇔ ∀x:x r a→x s b . In other words: (a,b)(a,b)(a,b) is in the right residual of rrr and sss means that for every xxx, pair (x,a)(x,a)(x,a) is in relation rrr implies that pair (x,b)(x,b)(x,b) is in sss.

  • left residual : a (s/r) b ⇔ ∀x:b r x→a s xa\ (s/r)\ b\ \Leftrightarrow\ \forall x: b\ r\ x\rightarrow a\ s\ xa (s/r) b ⇔ ∀x:b r x→a s x . In words: (a,b)(a,b)(a,b) is in the left residual of sss and rrr

    means that for every xxx pair(b,x)(b,x)(b,x) is in relation rrr implies that pair (a,x)(a,x)(a,x) is in sss.

  • diamond: a(r♢s)b ⇔ ∀x:a r x = x s ba (r♢s) b\ \Leftrightarrow\ \forall x: a\ r\ x\ =\ x\ s\ ba(r♢s)b ⇔ ∀x:a r x = x s b. In words: For every xxx, both a r xa\ r\ xa r x and x s bx\ s\ bx s b are true or both are false.

How to type boolean operators in your script

shows how you can type boolean (and other) operators in your Ampersand script.

Other explanation

Would you like a different explanation of the residual operators? explains them in natural language. for visualized examples about residual operators.

Residual operators
material implication
This page
Click here
This page