Skip to content
VibeFormer
52 min

Logic and Symbolic Reasoning

Propositional through first-order logic, deontic and defeasible logic, Prolog, argumentation frameworks and neurosymbolic methods. Your most differentiated asset, and the only approach that answers the duty to give reasons by construction.

Listen

0. Why this chapter is your strongest card

Almost nobody working in computational antitrust has formal logic. The field is dominated by people who came from machine learning or from doctrine, and the symbolic tradition in AI and Law is a largely separate literature that neither group reads.

1. Propositional logic

The simplest system. Whole statements are atoms, each true or false, combined with connectives. You cannot look inside a statement — *Acme fixed prices* is just a letter.

ConnectiveRead asTrue when
Negation, ¬not PP is false
Conjunction, ∧P and QBoth are true
Disjunction, ∨P or QAt least one is true. Inclusive, unlike much ordinary speech
Implication, →if P then QWhenever P is false, or Q is true. This is the one that trips everyone
Biconditional, ↔P if and only if QBoth have the same truth value
TermDefinition
ValuationAn assignment of true or false to every atom
SatisfiableThere is at least one valuation making the formula true
Valid, tautologyTrue under every valuation
EntailmentEvery valuation making the premises true also makes the conclusion true. Written with ⊨
Conjunctive normal formA conjunction of disjunctions. The standard input shape for automated solvers
SAT solverA program that decides satisfiability. NP-complete in theory, and startlingly effective in practice on millions of variables

2. First-order logic

Propositional logic cannot say *all undertakings*. First-order logic adds the internal structure of statements: objects, properties of objects, relations between them, and quantifiers.

ElementMeaningExample
ConstantA specific thingacme, art101
VariableStands for some thingX, Y
PredicateA property or relation, true or false of its argumentsundertaking(acme), agreedWith(acme, beta)
FunctionMaps things to things, not true or falseparentOf(acme)
Universal quantifier, ∀For all∀X (cartel(X) → prohibited(X))
Existential quantifier, ∃There exists at least one∃X (bidder(X) ∧ withdrew(X))
PropertyDefinition
ModelAn interpretation under which a set of formulas is true. Confusingly, nothing to do with machine learning models
SoundnessAnything the proof system derives is genuinely entailed. It cannot prove falsehoods
CompletenessAnything genuinely entailed can be derived. Gödel proved first-order logic is complete in this sense
DecidabilityFirst-order logic is semi-decidable: if something follows you can eventually prove it, but if it does not you may search forever. This is why practical systems use restricted fragments

3. How proofs are actually found

MethodWhat it does
Natural deductionIntroduction and elimination rules per connective. Closest to how humans argue on paper
ResolutionConvert everything to clauses, then repeatedly combine pairs that contain a literal and its negation. The engine behind most automated provers
UnificationFinding the substitution of variables that makes two expressions identical. Matching agreement(X, beta) against agreement(acme, Y) yields X equals acme and Y equals beta
TableauxTry to build a counterexample systematically. If every branch closes, the formula is valid
Forward chainingStart from known facts and derive everything that follows. Good when facts are few and you want all consequences
Backward chainingStart from the goal and work out what would have to be true. Good when you have one specific question. This is what Prolog does

5. Defeasible reasoning, which is what law actually is

Classical logic is monotonic: adding premises never destroys a conclusion. Law is emphatically not like that. Every rule has exceptions, and new facts routinely overturn what followed before.

MechanismWhat it provides
Defeasible rulesRules that normally hold but can be defeated by a more specific one
Priority between rulesWhich rule wins when two conflict. Law has its own principles for this: *lex specialis* favours the specific, *lex posterior* the later, *lex superior* the higher
Rebutting defeatA counter-rule reaching the opposite conclusion
Undercutting defeatAttacking the connection rather than the conclusion — not *that is false* but *that does not follow here*
Burden of proofWho must establish what. First-class in legal reasoning and absent from classical logic entirely

6. Description logic, ontologies and knowledge graphs

A deliberately restricted fragment of first-order logic, chosen so that reasoning stays decidable and fast. The trade is expressive power for guaranteed termination.

TermDefinition
Concept, classA set of things. Undertaking, Decision, InformationRequest
Role, propertyA relation. parentOf, cites, annuls
IndividualA specific thing. heidelbergCement
SubsumptionOne concept being a subtype of another. Every Cartel is an Agreement
TBox and ABoxThe TBox holds the general vocabulary and rules; the ABox holds the facts about individuals
OWL, RDF, SPARQLThe web standards for writing ontologies, stating facts as triples, and querying them
ReasonerA program computing subsumption and consistency. Asks: does this ontology contradict itself, and what else follows?

7. Logic programming and Prolog

Prolog is logic as a programming language. You state facts and rules; the engine finds derivations by backward chaining. On your skills list, and worth being able to discuss concretely.

ConceptMeaning
FactAn unconditional truth. undertaking(acme).
RuleA conditional. prohibited(X) :- cartel(X). — read the :- as *if*
Horn clauseAt most one positive conclusion per rule. The restriction that makes Prolog efficient
SLD resolutionThe specific proof search Prolog performs
QueryA goal to prove. ?- prohibited(acme).
BacktrackingWhen a branch fails, undo and try the next alternative
UnificationThe pattern-matching that binds variables during the search
Closed-world assumptionAnything not derivable is treated as false
Negation as failure\+ P succeeds when P cannot be proved — which is not the same as P being false
RelativeWhat it adds
DatalogA restricted Prolog with guaranteed termination. The basis of several deductive database systems
Answer Set ProgrammingHandles multiple alternative solutions and non-monotonic reasoning more cleanly. Good for defeasible rules
Constraint logic programmingAdds arithmetic and constraint solving, so you can reason about thresholds and quantities as well as predicates
ProbLogProlog with probabilities on facts and rules. This is the one that matters most for you — see the research section
LegalRuleML, Akoma NtosoXML standards for marking up legal rules and legal documents so they can be processed

8. The AI and Law tradition, which is a separate literature

Decades of work on formalising legal reasoning that the current machine learning wave largely does not read. Knowing it exists is itself a signal.

IdeaWhat it says
Rule-based versus case-based reasoningStatutes are rules you apply. Precedent is cases you compare. Different machinery, and common law systems need both
Factors and dimensionsCases compared on named factors that favour one side or the other, rather than on a single similarity score. Systems like HYPO and CATO built on this
The isomorphism principleThe formal representation should mirror the structure of the legal source — one rule per provision, in the same order. So that when the law is amended, you know which line to change
Open textureHart's point: legal concepts have deliberately indeterminate boundaries, settled by adjudication rather than definition. *Reasonable*, *necessary*, *appreciable*
Hohfeld's relationsA careful taxonomy of right, duty, privilege, power, liability — more precise than ordinary legal speech

9. Neurosymbolic methods

Combining learned components with symbolic ones, so that each does what it is good at. Five recognised patterns.

PatternDivision of labour
Neural perception, symbolic reasoningThe model extracts facts from messy input; the logic layer derives conclusions from those facts. The pattern that fits legal work best
Symbolic constraints on neural outputLogic restricts what the model may emit — constrained decoding, or a penalty for violating known rules
Neural guidance of symbolic searchA learned heuristic chooses which branch a prover explores, making search tractable
Differentiable or probabilistic logicAttach probabilities or gradients to logical formulas, so you can learn weights and still get a derivation. ProbLog, DeepProbLog, Markov logic networks
Knowledge graph embeddingsRepresent symbolic structure as vectors to allow approximate matching, at the cost of exactness

10. How this connects to ATLANTIS

StrandWhat logic contributes
FairnessThe direct answer to the reason-giving problem. Article 296 wants reasons a court can retrace; a derivation is retraceable by construction, where a score and a post-hoc explanation are not
Accuracy, the data problemConsistency checking. Given extracted facts and formalised provisions, you can ask mechanically whether a decision contradicts itself or whether a necessity claim is supported
Institutional arrangementsFormalising a provision forces the ambiguity into the open. Writing Article 18 as a rule makes you decide what *necessary* ranges over, which is the question the project exists to answer

11. What the panel brings to this chapter

Panel memberWhere logic meets their work
VU Amsterdam itselfThis is the strongest institutional point. The summer school you took, Logic as a Tool for Modelling, is their course on their campus, and you scored 9.0 in it. VU has a serious formal methods and knowledge representation tradition. You are not proposing an exotic method to a sceptical audience — you are proposing one you learned from them
Thibault SchrepelComplexity science is his lens, which is dynamical rather than logical, so do not oversell. But his knowledge graph of Commission decisions is one TBox away from an ontology, and his insistence that oversight *clings to prose and PDFs, not computable data* is an argument for formal representation whether or not he frames it that way
Catalina GoantaHer legal compliance API proposal is the same instinct in a different vocabulary: make legal requirements machine-checkable rather than narratively assessed. That is a formalisation argument
Tijmen WismanSyRI failed partly because its risk indicators and operation were not knowable from outside. A rule base is inspectable in precisely the way a weight matrix is not — so this chapter is a direct answer to the defect that case identified

12. What is unexplored, and five projects

13. Your CV, mapped onto this chapter

What you haveWhere it landsWhy it fits
VU summer school, Logic as a Tool for Modelling, grade 9.0Everything hereTheir course, their campus, first and second-order logic applied to legal reasoning. It is the single most on-point credential you hold for this chapter and it came from them
First-order modelling of actus reus and mens reaProjects 1, 2 and 4You have already separated the elements of an offence into predicates and made classification depend on derivation. That is this chapter applied to criminal law
SWI-Prolog and logic programmingProjects 1, 2 and 3ProbLog is Prolog with probabilities, so Project 1 is a short step rather than a new field
Knowledge representationProject 5Ontologies, TBox and ABox, and reasoners are this skill by name
Probability and statistical inferenceProject 1Weighted logic needs both halves, and the weights have to be calibrated to mean anything
NLP and entity extraction — regex, POS tagging, embeddings, the hybrid paperProjects 3 and 4The neural half of the neurosymbolic pipeline. Your hybrid instinct, rules where surface form is reliable and learning where meaning is open, is already the right architecture
Legal training in statutory interpretation and evidenceProjects 2 and 3Open texture, burden of proof and the isomorphism principle are legal problems first. Most people who can write the logic cannot see them

14. If you remember ten things

  1. Propositional logic treats statements as atoms; first-order logic adds objects, predicates and quantifiers, so it can express *all undertakings*.
  2. Material implication is true whenever the condition fails — which is exactly what a conditional statutory provision means.
  3. First-order logic is sound and complete but only semi-decidable, which is why practical systems use restricted fragments.
  4. Soundness is the property no statistical model has: the conclusion follows necessarily, and every step can be printed.
  5. Deontic logic is the logic of obligation, permission and prohibition — the logic of law — and it has known paradoxes.
  6. Law is defeasible and non-monotonic. Conclusions flipping as facts arrive is legal reasoning, not a bug.
  7. Abstract argumentation models parties attacking each other's reasoning, which fits adversarial procedure far better than deriving truth from axioms.
  8. Prolog's closed-world assumption conflates *not proven* with *false*, and the presumption of innocence is the law's more careful version of the same distinction.
  9. The isomorphism principle: encode rules so they mirror the provisions, which is what makes a derivation a statement of reasons rather than a trace.
  10. The defensible claim is narrow: keep extraction learned, make the inference step reviewable. A derivation cannot omit a load-bearing premise, because the conclusion would not follow without it.