Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let referents be a frozenset, not tuple, of elements #33

Open
nathimel opened this issue Feb 7, 2024 · 1 comment
Open

Let referents be a frozenset, not tuple, of elements #33

nathimel opened this issue Feb 7, 2024 · 1 comment

Comments

@nathimel
Copy link
Collaborator

nathimel commented Feb 7, 2024

To ensure that Meanings and Universes satisfy extensionality 🧐, and do not end up being not equal based on order of elements, let them be frozensets, not tuples. Then, let _dist be a frozenset of (tuples) pairs of (Referent, probability).

@Ashvin-Ranjan
Copy link
Contributor

I am wondering if this issue was resolved by #43 as it changed the type of both Meaning._dist and Meaning.dist to FrozenDict[Referent, float], which ends up (I believe, at least) satisfying extensionality since comparing dictionaries does not take into account order. If this is the case then this issue and #31 could both be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants