FunctionaL-City

First Order Logic (FOL) Ordinance Book

Subdivision: CivicAlgebraicInfrastructure.Foundations.FOL
Companion files:


Preamble

This ordinance establishes the foundations of First Order Logic (FOL) within the civic algebraic infrastructure. It defines the lawful symbols, terms, and formulas that citizens (remixers) may use to construct and reason about propositions. Symbols themselves are typed citizens (Symbol records with Name, Kind, and optional Arity), ensuring lawful zoning between variables, constants, functions, and predicates.


Purpose


Ordinance Sections

1. Domain Model

2. Connectives

3. Quantifiers

4. Metadata


Zoning Map

┌─────────────────────┐
│   Symbol            │
│  (Name, Kind, Arity)│
└─────────┬───────────┘
          │
          ▼
┌─────────────────────┐
│   Term<'Symbol>     │
│  (independent)      │
└─────────┬───────────┘
          │
          ▼
┌─────────────────────┐
│ AtomicFormula<'S>   │
│ uses Term<'S>       │
└─────────┬───────────┘
          │
          ▼
┌───────────────────────────────────────────────┐
│                 Formula<'S>                   │
│  ┌────────────────┬─────────────────────────┐ │
│  │ Atomic         │ Connective              │ │
│  │ (AtomicFormula)│ (PrimitiveConnective)   │ │
│  │                │ Quantified              │ │
│  └────────────────┴─────────────────────────┘ │
└─────────┬───────────────────────┬─────────────┘
          │                       │
          ▼                       ▼
┌─────────────────────┐     ┌────────────────────┐
│ PrimitiveConnective │     │   Quantified<'S>   │
│ uses Formula<'S>    │     │ Bound: Quantifier  │
│ (Not, And, Or, →)   │     │ Body: Formula<'S>  │
└─────────────────────┘     └─────────┬──────────┘
                                      │
                                      ▼
                             ┌────────────────────┐
                             │ Quantifier<'S>     │
                             │ ∀x | ∃x            │
                             └────────────────────┘

┌─────────────────────┐
│ ConnectiveKind      │
│ (symbolic enum)     │
│ independent         │
└─────────────────────┘

┌─────────────────────┐
│ FOLMetadata         │
│ (Decidability,      │
│  Enumerability)     │
└─────────────────────┘

Flow Diagram

Var { Name="x"; Kind=VariableKind; Arity=None }
   │
   ▼
Predicate("P", [x])   Predicate("Q", [x])
   │                         │
   └─────── Atomic ──────────┘
             │
             ▼
      Implies (P(x), Q(x))
             │
             ▼
        Connective
             │
             ▼
Quantifier: ForAll { Name="x"; Kind=VariableKind }
             │
             ▼
Quantified { Bound = ∀x; Body = (P(x) → Q(x)) }
             │
             ▼
        Formula.Quantified

Glossary

The following terms define key civic primitives used throughout this ordinance.

Formula<’Symbol’>

Definition: A recursive civic envelope for symbolic propositions, built from atomic formulas, connectives, and quantifiers.

Signage Overlay:
Formula<'Symbol'> is the zoning charter for logical reasoning. It scaffolds remix-safe propositions, symbolic nesting, and audit overlays.

ConnectiveKind

Definition: An enum of civic-native logical operators, including both primitive and derived connectives.

Variants:

Signage Overlay:
ConnectiveKind is the symbolic signage registry. It scaffolds civic-native reasoning, remix dialects, and onboarding clarity. Each connective is lawful, narratable, and remix-safe.

FOLMetadata

Definition: A civic signage record annotating formulas with decidability, enumerability, and system-level affordances.

Fields:

Signage Overlay:
FOLMetadata is the audit overlay for symbolic propositions. It scaffolds remix inspection, system-level reasoning, and ordinance guarantees. Every metadata tag is narratable and remix-worthy.

Quantified<’Symbol’>

Definition: A civic wrapper for formulas with bound variables, using ∀ and ∃ quantifiers.

Signage Overlay:
Quantified<'Symbol'> scaffolds lawful binding, substitution hygiene, and symbolic zoning. It ensures civic-native clarity for remixers and preserves variable scope as a legacy artifact.


Case Law (see .fsx)


Commentary

This ordinance is designed to be remixable: