Skip to main content

Coposet

Coposet is a tool for manipulating posets and allowing them to be and exporting them to various formats.

Posets (Partially Ordered Sets)

A poset is a set with a partial order relation (≤) that is:

  • Reflexive: a ≤ a
  • Antisymmetric: if a ≤ b and b ≤ a, then a = b
  • Transitive: if a ≤ b and b ≤ c, then a ≤ c

The product of two posets P and Q creates a new poset P × Q where:

  • Elements: All pairs (p, q) where p ∈ P and q ∈ Q
  • Ordering: (p1, q1) ≤ (p2, q2) if and only if p1 ≤ p2 in P AND q1 ≤ q2 in Q

Schema

Core

posetspace:

  • id: uuid
  • name: string
  • description: string
  • posets: list of posets
  • default_poset: poset
  • elements: list of elements
  • projections?: list of posetspaces
  • injections?: list of posetspaces
  • consensus(consensus_type) -> poset

poset:

  • id: uuid
  • name: string
  • description: string
  • posetspace: posetspace
  • relations: list of relations
  • enrichment?: posetspace
  • product(poset, poset) -> (poset, posetspace)
  • coproduct(poset, poset) -> (poset, posetspace)
  • export(format: format) -> string

element:

  • id: uuid
  • name: string
  • description: string
  • posetspace: posetspace

relation<T: posetspace, E: posetspace>:

  • id: uuid
  • less: element<where less.posetspace == T>
  • greater: element<where greater.posetspace == T>
  • enrichment?: element<where enrichment.posetspace == E>

Helpers

consensus_type:

  • derive<T: posetspace>(array of posets, dropEnrichments: boolean) -> poset

format enum:

  • mcdp, latex

Voting

voter:

  • poset: poset
  • next_antichain(voted_antichain: voted_antichain) -> Either<antichain, poset>

antichain<T: posetspace>:

  • id: uuid
  • element: element
  • comparisons: set of elements

voted_antichain<T: posetspace>:

  • id: uuid
  • antichain: antichain
  • new_less: set of elements
  • new_greater: set of elements

Enricher

enricher:

  • poset: poset
  • enrichment: posetspace
  • enrich(relations: set<(relation, element)>) -> poset

Details

We will use the posets library for the basic poset operations under the hood. This will be connected by a thin interface that converts the posets from the posets library to the coposet types we need to add on our layer of voting and consensus.

We should look into using networkx for the complex poset operations involved in consensus and voting.

Metadata

Release files for coposet 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for coposet 0.0.1
File Size Uploaded
coposet-0.0.1.tar.gz 17.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for coposet 0.0.1
File Interpreter ABI Platform
coposet-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 38.3 kB

Release files / coposet-0.0.1.tar.gz

Download URL coposet-0.0.1.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1e954b862dce0d7d99a1c881c72427d8f719039c8e86d32fe0621b25433abea1
BLAKE2b-256 checksum
How to use checksums
960a3b54114e2fae90ab40ae68663de4ac65048f4e6bcba5020446535c166683
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.9.13 Darwin/24.5.0

Release files / coposet-0.0.1-py3-none-any.whl

Download URL coposet-0.0.1-py3-none-any.whl
Size 20.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
975bfc8276c1455a90780c599d2f86ea1dc6fd837a4c3498909828b718058689
BLAKE2b-256 checksum
How to use checksums
0710a714c79c67878d59196f01fa0cfb2bf01f451ce064ce03d737906e88d5ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.9.13 Darwin/24.5.0

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page