Skip to main content

Pacioli: A PROLOG System for Financial Report Processing

  • Chapter
  • First Online:
Prolog: The Next 50 Years

Part of the book series: Lecture Notes in Computer Science ((LNAI,volume 13900))

  • 612 Accesses

Abstract

Financial information is reported by public companies to regulators worldwide using a standard rich structured data format, the “Extensible Business Reporting Language”, or XBRL An XBRL report typically comprises two pieces: a file with instance data, made of financial facts contextualised with dates and hypercube dimensions, plus its background ontological information: potentially dozens of files with data element schema and hypercube definitions, hierarchical presentation directives, assertions - a tree graph of XML schema and linkbase resources published on the web.

Pacioli takes all that and converts it into a PROLOG representation, evaluates XBRL formulas, derives new facts, detects higher level patterns, executes diverse types of validation rules, and produces a validation report in multiple formats. It works both as a standalone web application server, and as part of a massive blockchain-coordinated network of validation engines.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 64.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 84.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    Auditchain, Pacioli Logic and Rules Engine, https://docs.auditchain.finance/auditchain-protocol/pacioli-logic-and-rules-engine.

  2. 2.

    https://ipfs.io, the “InterPlanetary File System”, a decentralized, redundant, robust file storage service.

  3. 3.

    https://www.sec.gov/Archives/edgar/data/320193/000032019321000105/aapl-20210925.htm.

  4. 4.

    Pacioli Technical Analysis report saved to IPFS, https://auditchain.infura-ipfs.io/ipfs/QmSuMTNG1W98U3xTsJRX2cs1LxKQqGKqM9iq2w1HhsaCZB/.

  5. 5.

    “Model” being used here in the broad sense of representation, NOT of Herbrand model. For the above example, https://auditchain.infura-ipfs.io/ipfs/QmSuMTNG1W98U3xTsJRX2cs1LxKQqGKqM9iq2w1HhsaCZB/ReportAndModel.pl.gzip.

  6. 6.

    https://auditchain.infura-ipfs.io/ipfs/QmaATb3njmXgbbZVuUPuJweukyHNk2WbxGVJCSEUgqRt3o/.

  7. 7.

    For exemple https://pacioli.auditchain.finance/tools/PowerUserTool.swinb.

  8. 8.

    Namely https://pivottable.js.org/examples/ and http://tabulator.info, in addition to SWISH-generated https://graphviz.org graphs.

  9. 9.

    Open sourcing of Pacioli is still under discussion, hence no code URL yet.

  10. 10.

    https://github.com/Arelle/Arelle.

  11. 11.

    Potentially replacing the XULE expression language by PROLOG: https://pacioli.auditchain.finance/example/XULE.swinb.

  12. 12.

    XBRL reports and rules translate into PROLOG unit clauses: the formula rule facts are meta-interpreted.

  13. 13.

    Pacioli Analysis Summary, https://auditchain.infura-ipfs.io/ipfs/QmNUY15G1dhTXYCpyUyvqYWZ33Nc6mKRUDz7GDgLFonaPs/.

  14. 14.

    “Blocks” emerged from professional practice and are informally explained in Sect. 3.3 of http://accounting.auditchain.finance/framework/LogicalTheoryDescribingFinancialReport.pdf.

  15. 15.

    Full list for this report in https://auditchain.infura-ipfs.io/ipfs/QmNUY15G1dhTXYCpyUyvqYWZ33Nc6mKRUDz7GDgLFonaPs/blocks.html.

  16. 16.

    Rendering of information block, https://auditchain.infura-ipfs.io/ipfs/QmNUY15G1dhTXYCpyUyvqYWZ33Nc6mKRUDz7GDgLFonaPs/01ecbc0ceca6b093c221.html#0fb66fa8527c7cb7ec08.

  17. 17.

    Blocks Graph, https://auditchain.infura-ipfs.io/ipfs/QmNUY15G1dhTXYCpyUyvqYWZ33Nc6mKRUDz7GDgLFonaPs/blocksGraph.html.

  18. 18.

    Full value assertions list in https://auditchain.infura-ipfs.io/ipfs/QmNUY15G1dhTXYCpyUyvqYWZ33Nc6mKRUDz7GDgLFonaPs/valueAssertions.html.

Acknowledgement

To Jason Meyers and the Auditchain early investors, for betting Auditchain on Pacioli; to Jacinto Dávila for help with Pacioli and for his Auditchain Explorer UI; to Bogdan Fiedur for the blockchain agent and Auditchain smartcontracts; to Christopher Jastrzebski for all the support, and his Auditchain Web3 UI; to Fuad Begic for the complementary Luca report editor under development; to Andrew Noble and Dudley Gould for encouragement and suggestions. To Jan Wielemaker and associates, for a software stack that finally made PROLOG feasible for business applications. And finally, to Bob Kowalski: for his vision half century ago, and all the personal support in recent years.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Miguel Calejo .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Calejo, M., Hoffman, C. (2023). Pacioli: A PROLOG System for Financial Report Processing. In: Warren, D.S., Dahl, V., Eiter, T., Hermenegildo, M.V., Kowalski, R., Rossi, F. (eds) Prolog: The Next 50 Years. Lecture Notes in Computer Science(), vol 13900. Springer, Cham. https://doi.org/10.1007/978-3-031-35254-6_20

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-35254-6_20

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-35253-9

  • Online ISBN: 978-3-031-35254-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics