proposit-core
    Preparing search index...

    Class ClaimAxiomLibrary<TConnection>

    Manages axiom-invocation edges between claims. Each connection goes from a dependent claimId (which must be a 'normal' claim) to a supporting supportingClaimId (which must be an 'axiomatic' claim).

    Cycle detection is omitted because axiomatic claims cannot appear on the supported (claimId) side — AXIOM_CLAIM_NOT_NORMAL_TYPE blocks that — so cycles are structurally impossible.

    Type Parameters

    Implements

    Index

    Constructors

    • Type Parameters

      • TConnection extends {
            checksum: string;
            claimId: string;
            claimVersion: number;
            id: string;
            supportingClaimId: string;
            supportingClaimVersion: number;
        } = {
            checksum: string;
            claimId: string;
            claimVersion: number;
            id: string;
            supportingClaimId: string;
            supportingClaimVersion: number;
        }

      Parameters

      Returns ClaimAxiomLibrary<TConnection>

    Methods

    • Creates a claim connection. Implementations validate that both the supported and supporting claims exist in the underlying claim library and that the supporting-side claim has the type required by this specialization (e.g. 'citation' for ClaimCitationLibrary, 'axiomatic' for ClaimAxiomLibrary). Citation libraries also reject any edge that would introduce a cycle in the global claim-citation graph.

      Parameters

      Returns TConnection

      The created connection with checksum populated.

      If a connection with the same ID already exists.

      If either referenced claim does not exist in the claim library.

      If the supporting-side claim has the wrong type for this specialization.

      If the connection would create a cycle (citation library only).

    • Restores a claim-axiom library from a snapshot, re-indexing all axioms.

      Type Parameters

      • TConnection extends {
            checksum: string;
            claimId: string;
            claimVersion: number;
            id: string;
            supportingClaimId: string;
            supportingClaimVersion: number;
        } = {
            checksum: string;
            claimId: string;
            claimVersion: number;
            id: string;
            supportingClaimId: string;
            supportingClaimVersion: number;
        }

      Parameters

      Returns ClaimAxiomLibrary<TConnection>