SlideShare a Scribd company logo
1 of 25
Download to read offline
Importation Closure that is Robust to Circular
Dependencies
Tara Athan
Athan Services (athant.com)
West Lafayette, IN, USA
taraathan AT gmail.com
presented at RuleML 2013
7th
International Rule Challenge
July 11, 2013
Seattle, USA
11 Jul 2013 2
Contents
● Motivation for Embracing Circular Importation
● Issues in the nteraction of Common Logic (CL)
Importation and Domain Restriction
● Sandbox Language Family Specification
● Syntax, Semantics and Algebraic Properties
● Algorithm
● Discussion
● Conclusions
● References
Motivation
● Distributed authoring of
knowledge bases
depends on merging of
smaller sets of
formulas or rules (texts)
● “Titling + Importation”
is a standard approach
● Assign a title to a text
● Refer to the title in an
importation statement
● Circular importation
references are
problematic
● Resolution by copying
(e.g. XIncude) can lead
to infinite loops
● Other semantics can
be ambiguous
● Forbidding circular
dependence
– Heavy burden on
syntactic validation
Current Standard CL Importation
Semantics: Has an Issue
● Original CL semantics
● {(ttl foo G),
(import foo)}
● I("(import foo)") =
I( G)
● Problem
● {(ttl foo (import foo)),
(import foo)}
● I("(import foo)") =
I("(import foo)")
● Fails to define a truth-
value for the second
text
● Possible Solutions
● Ignore multiple importations
● Forbid circular importation
● Redefine importation semantics
CL Domain Restriction:
Proposed Replacement for
“cl:module”
● Text CL1
(txt
(inDiscourse N A)
(domain N
(outDiscourse A)
(inDiscourse a)
(forall (x) (A x))
) )
● CL1 Logically
Equivalent to:
(txt
(inDiscourse N A)
(not (N A))
(N a)
(forall (x)
(if (N x) (A x))
)
CL Domain Restriction:
Syntactic Sugar (sort of)
● CL Text CL2:
(txt
(outDiscourse N A)
(domain N
(outDiscourse A)
(inDiscourse a)
(forall (x) (A x))
) )
● CL2 Logically
equivalent (≡) to:
(txt
(outDiscourse N A)
(N a)
(forall (x)
(if (N x) (A x))
)
● There is not a context-independent way to rewrite
the domain restriction statement.
Interaction of CL Domain Restriction
and Importation
● Corpus CL3
{(ttl foo
(txt (outDiscourse A)
(forall (x) (A x)) ),
(txt (inDiscourse N1 A)
(domain N1
(import foo))),
(txt (inDiscourse N2 A)
(domain N2
(import foo)))}
●
CL3 ≡ to:
(txt
(inDiscourse N1 N2)
(not (N1 A))
(forall (x)
(if (N1 x) (A x)
(not (N2 A))
(forall (x)
(if (N2 x) (A x)))
● Approach of ignoring duplicate importations does
not preserve intended semantics, is ambiguous
CL Importation – Proposed
Semantics by Importation Closure
● Original Text
● {(ttl foo (A)),
(import foo)}
● This approach solves
some problems:
– {(ttl foo (import foo)),
(import foo)}
● But not all problems:
– {(ttl foo (domain N
(import foo))),
(import foo)}
● Importation Closure
● {(ttl foo (A)),
(import foo),
(A)}
● I("(import foo)") = T
– {(ttl foo (import foo)),
(import foo)}
– {(ttl foo (domain N
(import foo))),
(import foo),
(domain N
(import foo)), ...
Working With Infinite Importation
Closures
● Start with a finite
number of finite texts,
mentioning a finite
subset of the
vocabulary/signature
● Want to determine
satisfaction from a the
truth values of a finite
set of expressions,
even if importation
closure is infinite
● Goal of Analysis
● Determine conditions
on a general model-
theoretic language
using importation
closure such that given
an interpretation,
satisfaction of a finite
set of finite texts can
be evaluated in finite
time.
Language Family Specification
● Syntax - Minimal
● Some infinite lexical space
● Expressions: Propositions and some Weird Things
● Semantics – Beyond Minimal
● Corpus Satisfaction by Importation Closure
● Interpretation of Expressions:
It's True if I Say It Is
● Algebraic Properties – Where the Action Is
● Rewriting of Expressions that Preserve "Full
Equivalence" (≡F
)
Syntax of L0
:
Propositions and Some Weird Things
● Statements are ...
● Propositional
Statements
– (A)
● Titling Statements
– (ttl foo G)
● Importation Statements
– (import foo)
● Texts are statements
and ...
● Polyadic Text
Construction
– (txt G1
G2
... Gn
)
● Unary Text Operators
– (F0 G)
● Corpora are sets of
texts
– {G1
, G2
, G3
, ...}
Semantics of L0
:
It's True if I Say It's True
● An “interpretation” I is
a specification of all
true texts
● A corpus is “satisfied”
by I if all texts in its
importation closure are
true in I
● A text is “satisfied” by I
if a corpus containing
only that text is
satisfied by I
● A corpus G is “self-
contained” if it has
“enough” titling
statements to
determine a
“canonical” importation
closure G'
● Corpora G1, G2 are
logically equivalent iff
G1 is satisfied exactly
when G2 is satisfied
Full Equivalence
● Corpora G1, G2 are superficially equivalent iff
some text in G1 is false iff some text in G2 is false
● Two corpora are fully equivalent (≡F
) iff they are
logically equivalent and superficially equivalent
Covers
● A corpus G1 is a cover of corpus G2 iff
G1 ≡F
G2'
where G2' is the importation closure of G2
● Significance: if G1 is a cover of G2, the truth values
in an interpretation I of the texts in G1 (not its
importation closure G1') determine the satisfaction
of G1 by I, and hence, the satisfaction of G2 by I
● Task: determine algebraic properties of language
that permit algorithmic determination of a finite
cover for any self-contained finite corpus
Algebraic Properties:
The Family L0
● Notation
– the text construction operator is called Q
– F, F0, F1, ... are text operators
– B is a titling text, G, G1, G2, ... are any texts
– F0 ≡F
F1 iff F0(G) ≡F
F1(G) for all G
● Composition of Text Operators is Closed
{F0(F1(G)))} ≡F
{(F0 o F1)(G)} = {(F2)(G)}
● Composition of Text Operators is Associative
{((F0 o F1) o F2)(G)} ≡F
{(F0 o (F1 o F2))(G)}
Algebraic Properties:
The Family L0
● Titling Separable
● Titling statements can be extracted from texts
{Q(G1, …, B, ..., Gn)} ≡F
{B, Q(G1, ..., Gn)}
{F(Q(G1, …, B, ..., Gn))} ≡F
{F(B), F(Q(G1, ..., Gn))}
● Substitution
● If {Gi} ≡F
{G*}
● Then
– {Q(G1, …, Gi, ..., Gn)} ≡F
{Q(G1, .. ,G*, ... Gn)}
– {F(Gi)} ≡F
{F(G*)}
Algebraic Properties:
Subfamily L0
● Text Operators are Compositionally Compact
● The closure under composition of a finite set of text
operators is finite.
– Given F1, ...FN, there exists F1, ... FM, (M>=N) such that
– Fi o Fj ≡F
Fk
– Whenever 1 <= i, j, k, <= M
Algebraic Properties: L0
+
● Binary text construction forms a commutative, idempotent
monoid
– Q-associative (semigroup):
Q(G0, Q(G1, G2)) ≡F
Q( Q(G0, G1), G2)
– Q-commutative: Q(G0, G1) ≡F
Q( G1, G2)
– Q-identity: (monoid) Q(G0, Q()) ≡F
G0
– Q-idempotent: Q( G0, G0)) ≡F
G0
● Polyadic Q is the composition of binary Q
– Q(G0, Q(G1, G2)) ≡F
Q( G0, G1, G2)
Algebraic Properties: L0
Ω
● Text Operators are distributive over polyadic text
construction
– F(Q(G1, G2, ...)) ≡F
Q( F(G1), F(G2), ...)
Algebraic Properties: L0
+Ω
● Title-separable
● Compositionally-compact
●
Ω-
● Operators distribute over text construction
● Commutative
● Idempotent
● Monoid
● Text construction is associative
● Empty text construction is identity
Cover-Determination Algorithm
● Exract and simplify titling statements
● Simplify non-titling texts into “normal form”
Q(F0(G0), ..., Fn(Gn), Gn+1, ..., Gm) or F(G0) or G0
where Gi is a propositional or importation statement
● Pick one importation statement, and find titling
statements for associated title
– No titling statement? Try again later (might be imported)
– Inconsistent titling statements? Is unsatisfiable
– Otherwise, continue ...
● Create new text by substitution for importation
Cover-Determination Algorithm
● Add to corpus if not fully-equivalent to any text
already in the corpus
● Repeat, applying once to each importation
statement, including those added to the corpus by
importation
● Given properties of L0
+Ω
, guaranteed to terminate
● Were any importation statement not resolved?
– Yes --> No finite cover exists, corpus is not self-contained
– No --> finite corpus obtained is cover
Discussion
● It was discovered in the course of the analysis that
the original formulation of importation closure
could be improved
● Originally all importation statements in a text were
resolved at once, because it seemed more efficient
– This leads to texts that are theoretically self-contained but
difficult to resolve in practice (if the titling statement for one
title is contained in a text to be imported at the same time)
– This also has some non-intuitive consequences regarding
satisfaction of segregation requirements.
● (txt (import M) (import N)(ttl P (import N))) is not equivalent to
● (txt (import M) (import P) )(ttl P (import N)))
Conclusions
● Importation that is robust to circular imports can
be defined theoretically and implemented
practically
● It is still best practice, from a performance point of
view, to avoid or minimize circular imports
● Further study will include application to CL
extension IKL
● For application to nonmonotonic logic within a
monotonic wrapper
● Expect need for truncation (Ibelieve he believes ...)
References
● Information technology – Common Logic (CL): a
framework for a family of logic-based languages
● Neuhaus, F. and P. Hayes, Common Logic and the
Horatio problem, Appl. Ontol. v. 7 pp. 211-231
● CL Draft Semantics
http://philebus.tamu.edu/pipermail/cl/attachmen
ts/20130405/153ad554/attachment-0001.pdf

More Related Content

What's hot

regular expressions (Regex)
regular expressions (Regex)regular expressions (Regex)
regular expressions (Regex)Rebaz Najeeb
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computationprasadmvreddy
 
Being Expressive in Code
Being Expressive in CodeBeing Expressive in Code
Being Expressive in CodeEamonn Boyle
 
Fla 5th cse
Fla 5th cseFla 5th cse
Fla 5th cseVella6
 
Object Oriented Programming - File Input & Output
Object Oriented Programming - File Input & OutputObject Oriented Programming - File Input & Output
Object Oriented Programming - File Input & OutputDudy Ali
 
Finite automata-for-lexical-analysis
Finite automata-for-lexical-analysisFinite automata-for-lexical-analysis
Finite automata-for-lexical-analysisDattatray Gandhmal
 
Transformer Seq2Sqe Models: Concepts, Trends & Limitations (DLI)
Transformer Seq2Sqe Models: Concepts, Trends & Limitations (DLI)Transformer Seq2Sqe Models: Concepts, Trends & Limitations (DLI)
Transformer Seq2Sqe Models: Concepts, Trends & Limitations (DLI)Deep Learning Italia
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Animesh Chaturvedi
 
Koreanizer : Statistical Machine Translation based Ro-Ko Transliterator
Koreanizer : Statistical Machine Translation based Ro-Ko TransliteratorKoreanizer : Statistical Machine Translation based Ro-Ko Transliterator
Koreanizer : Statistical Machine Translation based Ro-Ko TransliteratorHONGJOO LEE
 

What's hot (15)

regular expressions (Regex)
regular expressions (Regex)regular expressions (Regex)
regular expressions (Regex)
 
F# and the DLR
F# and the DLRF# and the DLR
F# and the DLR
 
Fundamentals of c language
Fundamentals of c languageFundamentals of c language
Fundamentals of c language
 
Introduction to the theory of computation
Introduction to the theory of computationIntroduction to the theory of computation
Introduction to the theory of computation
 
Being Expressive in Code
Being Expressive in CodeBeing Expressive in Code
Being Expressive in Code
 
Fla 5th cse
Fla 5th cseFla 5th cse
Fla 5th cse
 
Object Oriented Programming - File Input & Output
Object Oriented Programming - File Input & OutputObject Oriented Programming - File Input & Output
Object Oriented Programming - File Input & Output
 
Finite automata-for-lexical-analysis
Finite automata-for-lexical-analysisFinite automata-for-lexical-analysis
Finite automata-for-lexical-analysis
 
C after correction
C after correctionC after correction
C after correction
 
Logic
LogicLogic
Logic
 
NFA to DFA
NFA to DFANFA to DFA
NFA to DFA
 
Transformer Seq2Sqe Models: Concepts, Trends & Limitations (DLI)
Transformer Seq2Sqe Models: Concepts, Trends & Limitations (DLI)Transformer Seq2Sqe Models: Concepts, Trends & Limitations (DLI)
Transformer Seq2Sqe Models: Concepts, Trends & Limitations (DLI)
 
Why fp
Why fpWhy fp
Why fp
 
Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)Deterministic Finite Automata (DFA)
Deterministic Finite Automata (DFA)
 
Koreanizer : Statistical Machine Translation based Ro-Ko Transliterator
Koreanizer : Statistical Machine Translation based Ro-Ko TransliteratorKoreanizer : Statistical Machine Translation based Ro-Ko Transliterator
Koreanizer : Statistical Machine Translation based Ro-Ko Transliterator
 

Similar to Importation Closure that is Robust to Circular Dependencies

Meetup C++ A brief overview of c++17
Meetup C++  A brief overview of c++17Meetup C++  A brief overview of c++17
Meetup C++ A brief overview of c++17Daniel Eriksson
 
Sort Characters in a Python String Alphabetically
Sort Characters in a Python String AlphabeticallySort Characters in a Python String Alphabetically
Sort Characters in a Python String AlphabeticallyKal Bartal
 
Data efficiency on BEAM - Choose the right data representation by Dmytro Lyto...
Data efficiency on BEAM - Choose the right data representation by Dmytro Lyto...Data efficiency on BEAM - Choose the right data representation by Dmytro Lyto...
Data efficiency on BEAM - Choose the right data representation by Dmytro Lyto...Magnus Sedlacek
 
Analysis of algorithms
Analysis of algorithmsAnalysis of algorithms
Analysis of algorithmsAsen Bozhilov
 
(3) cpp procedural programming
(3) cpp procedural programming(3) cpp procedural programming
(3) cpp procedural programmingNico Ludwig
 
Weekends with Competitive Programming
Weekends with Competitive ProgrammingWeekends with Competitive Programming
Weekends with Competitive ProgrammingNiharikaSingh839269
 
Asymptotic Notations.pptx
Asymptotic Notations.pptxAsymptotic Notations.pptx
Asymptotic Notations.pptxSunilWork1
 
A DSTL to bridge concrete and abstract syntax
A DSTL to bridge concrete and abstract syntaxA DSTL to bridge concrete and abstract syntax
A DSTL to bridge concrete and abstract syntaxUniversity of York
 
20110319 parameterized algorithms_fomin_lecture01-02
20110319 parameterized algorithms_fomin_lecture01-0220110319 parameterized algorithms_fomin_lecture01-02
20110319 parameterized algorithms_fomin_lecture01-02Computer Science Club
 
Anlysis and design of algorithms part 1
Anlysis and design of algorithms part 1Anlysis and design of algorithms part 1
Anlysis and design of algorithms part 1Deepak John
 
Stack squeues lists
Stack squeues listsStack squeues lists
Stack squeues listsJames Wong
 
Stacksqueueslists
StacksqueueslistsStacksqueueslists
StacksqueueslistsFraboni Ec
 
Stacks queues lists
Stacks queues listsStacks queues lists
Stacks queues listsYoung Alista
 
Stacks queues lists
Stacks queues listsStacks queues lists
Stacks queues listsTony Nguyen
 

Similar to Importation Closure that is Robust to Circular Dependencies (20)

Meetup C++ A brief overview of c++17
Meetup C++  A brief overview of c++17Meetup C++  A brief overview of c++17
Meetup C++ A brief overview of c++17
 
Introduction to Prolog
Introduction to PrologIntroduction to Prolog
Introduction to Prolog
 
Sort Characters in a Python String Alphabetically
Sort Characters in a Python String AlphabeticallySort Characters in a Python String Alphabetically
Sort Characters in a Python String Alphabetically
 
Big o
Big oBig o
Big o
 
Go_ Get iT! .pdf
Go_ Get iT! .pdfGo_ Get iT! .pdf
Go_ Get iT! .pdf
 
Data efficiency on BEAM - Choose the right data representation by Dmytro Lyto...
Data efficiency on BEAM - Choose the right data representation by Dmytro Lyto...Data efficiency on BEAM - Choose the right data representation by Dmytro Lyto...
Data efficiency on BEAM - Choose the right data representation by Dmytro Lyto...
 
Analysis of algorithms
Analysis of algorithmsAnalysis of algorithms
Analysis of algorithms
 
(3) cpp procedural programming
(3) cpp procedural programming(3) cpp procedural programming
(3) cpp procedural programming
 
Weekends with Competitive Programming
Weekends with Competitive ProgrammingWeekends with Competitive Programming
Weekends with Competitive Programming
 
A taste of Functional Programming
A taste of Functional ProgrammingA taste of Functional Programming
A taste of Functional Programming
 
Asymptotic Notations.pptx
Asymptotic Notations.pptxAsymptotic Notations.pptx
Asymptotic Notations.pptx
 
A DSTL to bridge concrete and abstract syntax
A DSTL to bridge concrete and abstract syntaxA DSTL to bridge concrete and abstract syntax
A DSTL to bridge concrete and abstract syntax
 
20110319 parameterized algorithms_fomin_lecture01-02
20110319 parameterized algorithms_fomin_lecture01-0220110319 parameterized algorithms_fomin_lecture01-02
20110319 parameterized algorithms_fomin_lecture01-02
 
Anlysis and design of algorithms part 1
Anlysis and design of algorithms part 1Anlysis and design of algorithms part 1
Anlysis and design of algorithms part 1
 
Scala qq
Scala qqScala qq
Scala qq
 
Stack squeues lists
Stack squeues listsStack squeues lists
Stack squeues lists
 
Stacks queues lists
Stacks queues listsStacks queues lists
Stacks queues lists
 
Stacksqueueslists
StacksqueueslistsStacksqueueslists
Stacksqueueslists
 
Stacks queues lists
Stacks queues listsStacks queues lists
Stacks queues lists
 
Stacks queues lists
Stacks queues listsStacks queues lists
Stacks queues lists
 

Recently uploaded

DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKJago de Vreede
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

Importation Closure that is Robust to Circular Dependencies

  • 1. Importation Closure that is Robust to Circular Dependencies Tara Athan Athan Services (athant.com) West Lafayette, IN, USA taraathan AT gmail.com presented at RuleML 2013 7th International Rule Challenge July 11, 2013 Seattle, USA
  • 2. 11 Jul 2013 2 Contents ● Motivation for Embracing Circular Importation ● Issues in the nteraction of Common Logic (CL) Importation and Domain Restriction ● Sandbox Language Family Specification ● Syntax, Semantics and Algebraic Properties ● Algorithm ● Discussion ● Conclusions ● References
  • 3. Motivation ● Distributed authoring of knowledge bases depends on merging of smaller sets of formulas or rules (texts) ● “Titling + Importation” is a standard approach ● Assign a title to a text ● Refer to the title in an importation statement ● Circular importation references are problematic ● Resolution by copying (e.g. XIncude) can lead to infinite loops ● Other semantics can be ambiguous ● Forbidding circular dependence – Heavy burden on syntactic validation
  • 4. Current Standard CL Importation Semantics: Has an Issue ● Original CL semantics ● {(ttl foo G), (import foo)} ● I("(import foo)") = I( G) ● Problem ● {(ttl foo (import foo)), (import foo)} ● I("(import foo)") = I("(import foo)") ● Fails to define a truth- value for the second text ● Possible Solutions ● Ignore multiple importations ● Forbid circular importation ● Redefine importation semantics
  • 5. CL Domain Restriction: Proposed Replacement for “cl:module” ● Text CL1 (txt (inDiscourse N A) (domain N (outDiscourse A) (inDiscourse a) (forall (x) (A x)) ) ) ● CL1 Logically Equivalent to: (txt (inDiscourse N A) (not (N A)) (N a) (forall (x) (if (N x) (A x)) )
  • 6. CL Domain Restriction: Syntactic Sugar (sort of) ● CL Text CL2: (txt (outDiscourse N A) (domain N (outDiscourse A) (inDiscourse a) (forall (x) (A x)) ) ) ● CL2 Logically equivalent (≡) to: (txt (outDiscourse N A) (N a) (forall (x) (if (N x) (A x)) ) ● There is not a context-independent way to rewrite the domain restriction statement.
  • 7. Interaction of CL Domain Restriction and Importation ● Corpus CL3 {(ttl foo (txt (outDiscourse A) (forall (x) (A x)) ), (txt (inDiscourse N1 A) (domain N1 (import foo))), (txt (inDiscourse N2 A) (domain N2 (import foo)))} ● CL3 ≡ to: (txt (inDiscourse N1 N2) (not (N1 A)) (forall (x) (if (N1 x) (A x) (not (N2 A)) (forall (x) (if (N2 x) (A x))) ● Approach of ignoring duplicate importations does not preserve intended semantics, is ambiguous
  • 8. CL Importation – Proposed Semantics by Importation Closure ● Original Text ● {(ttl foo (A)), (import foo)} ● This approach solves some problems: – {(ttl foo (import foo)), (import foo)} ● But not all problems: – {(ttl foo (domain N (import foo))), (import foo)} ● Importation Closure ● {(ttl foo (A)), (import foo), (A)} ● I("(import foo)") = T – {(ttl foo (import foo)), (import foo)} – {(ttl foo (domain N (import foo))), (import foo), (domain N (import foo)), ...
  • 9. Working With Infinite Importation Closures ● Start with a finite number of finite texts, mentioning a finite subset of the vocabulary/signature ● Want to determine satisfaction from a the truth values of a finite set of expressions, even if importation closure is infinite ● Goal of Analysis ● Determine conditions on a general model- theoretic language using importation closure such that given an interpretation, satisfaction of a finite set of finite texts can be evaluated in finite time.
  • 10. Language Family Specification ● Syntax - Minimal ● Some infinite lexical space ● Expressions: Propositions and some Weird Things ● Semantics – Beyond Minimal ● Corpus Satisfaction by Importation Closure ● Interpretation of Expressions: It's True if I Say It Is ● Algebraic Properties – Where the Action Is ● Rewriting of Expressions that Preserve "Full Equivalence" (≡F )
  • 11. Syntax of L0 : Propositions and Some Weird Things ● Statements are ... ● Propositional Statements – (A) ● Titling Statements – (ttl foo G) ● Importation Statements – (import foo) ● Texts are statements and ... ● Polyadic Text Construction – (txt G1 G2 ... Gn ) ● Unary Text Operators – (F0 G) ● Corpora are sets of texts – {G1 , G2 , G3 , ...}
  • 12. Semantics of L0 : It's True if I Say It's True ● An “interpretation” I is a specification of all true texts ● A corpus is “satisfied” by I if all texts in its importation closure are true in I ● A text is “satisfied” by I if a corpus containing only that text is satisfied by I ● A corpus G is “self- contained” if it has “enough” titling statements to determine a “canonical” importation closure G' ● Corpora G1, G2 are logically equivalent iff G1 is satisfied exactly when G2 is satisfied
  • 13. Full Equivalence ● Corpora G1, G2 are superficially equivalent iff some text in G1 is false iff some text in G2 is false ● Two corpora are fully equivalent (≡F ) iff they are logically equivalent and superficially equivalent
  • 14. Covers ● A corpus G1 is a cover of corpus G2 iff G1 ≡F G2' where G2' is the importation closure of G2 ● Significance: if G1 is a cover of G2, the truth values in an interpretation I of the texts in G1 (not its importation closure G1') determine the satisfaction of G1 by I, and hence, the satisfaction of G2 by I ● Task: determine algebraic properties of language that permit algorithmic determination of a finite cover for any self-contained finite corpus
  • 15. Algebraic Properties: The Family L0 ● Notation – the text construction operator is called Q – F, F0, F1, ... are text operators – B is a titling text, G, G1, G2, ... are any texts – F0 ≡F F1 iff F0(G) ≡F F1(G) for all G ● Composition of Text Operators is Closed {F0(F1(G)))} ≡F {(F0 o F1)(G)} = {(F2)(G)} ● Composition of Text Operators is Associative {((F0 o F1) o F2)(G)} ≡F {(F0 o (F1 o F2))(G)}
  • 16. Algebraic Properties: The Family L0 ● Titling Separable ● Titling statements can be extracted from texts {Q(G1, …, B, ..., Gn)} ≡F {B, Q(G1, ..., Gn)} {F(Q(G1, …, B, ..., Gn))} ≡F {F(B), F(Q(G1, ..., Gn))} ● Substitution ● If {Gi} ≡F {G*} ● Then – {Q(G1, …, Gi, ..., Gn)} ≡F {Q(G1, .. ,G*, ... Gn)} – {F(Gi)} ≡F {F(G*)}
  • 17. Algebraic Properties: Subfamily L0 ● Text Operators are Compositionally Compact ● The closure under composition of a finite set of text operators is finite. – Given F1, ...FN, there exists F1, ... FM, (M>=N) such that – Fi o Fj ≡F Fk – Whenever 1 <= i, j, k, <= M
  • 18. Algebraic Properties: L0 + ● Binary text construction forms a commutative, idempotent monoid – Q-associative (semigroup): Q(G0, Q(G1, G2)) ≡F Q( Q(G0, G1), G2) – Q-commutative: Q(G0, G1) ≡F Q( G1, G2) – Q-identity: (monoid) Q(G0, Q()) ≡F G0 – Q-idempotent: Q( G0, G0)) ≡F G0 ● Polyadic Q is the composition of binary Q – Q(G0, Q(G1, G2)) ≡F Q( G0, G1, G2)
  • 19. Algebraic Properties: L0 Ω ● Text Operators are distributive over polyadic text construction – F(Q(G1, G2, ...)) ≡F Q( F(G1), F(G2), ...)
  • 20. Algebraic Properties: L0 +Ω ● Title-separable ● Compositionally-compact ● Ω- ● Operators distribute over text construction ● Commutative ● Idempotent ● Monoid ● Text construction is associative ● Empty text construction is identity
  • 21. Cover-Determination Algorithm ● Exract and simplify titling statements ● Simplify non-titling texts into “normal form” Q(F0(G0), ..., Fn(Gn), Gn+1, ..., Gm) or F(G0) or G0 where Gi is a propositional or importation statement ● Pick one importation statement, and find titling statements for associated title – No titling statement? Try again later (might be imported) – Inconsistent titling statements? Is unsatisfiable – Otherwise, continue ... ● Create new text by substitution for importation
  • 22. Cover-Determination Algorithm ● Add to corpus if not fully-equivalent to any text already in the corpus ● Repeat, applying once to each importation statement, including those added to the corpus by importation ● Given properties of L0 +Ω , guaranteed to terminate ● Were any importation statement not resolved? – Yes --> No finite cover exists, corpus is not self-contained – No --> finite corpus obtained is cover
  • 23. Discussion ● It was discovered in the course of the analysis that the original formulation of importation closure could be improved ● Originally all importation statements in a text were resolved at once, because it seemed more efficient – This leads to texts that are theoretically self-contained but difficult to resolve in practice (if the titling statement for one title is contained in a text to be imported at the same time) – This also has some non-intuitive consequences regarding satisfaction of segregation requirements. ● (txt (import M) (import N)(ttl P (import N))) is not equivalent to ● (txt (import M) (import P) )(ttl P (import N)))
  • 24. Conclusions ● Importation that is robust to circular imports can be defined theoretically and implemented practically ● It is still best practice, from a performance point of view, to avoid or minimize circular imports ● Further study will include application to CL extension IKL ● For application to nonmonotonic logic within a monotonic wrapper ● Expect need for truncation (Ibelieve he believes ...)
  • 25. References ● Information technology – Common Logic (CL): a framework for a family of logic-based languages ● Neuhaus, F. and P. Hayes, Common Logic and the Horatio problem, Appl. Ontol. v. 7 pp. 211-231 ● CL Draft Semantics http://philebus.tamu.edu/pipermail/cl/attachmen ts/20130405/153ad554/attachment-0001.pdf