Skip to content

Choose to support the Axiom of Choice? #182

Closed

Description

@dlfivefifty

It's sometimes helpful to ask a domain for an arbitrary point within. Here I try calling leftendpoint:

https://github.com/JuliaApproximation/QuasiArrays.jl/blob/81657bb97a4bc2a42f71ef156c5b9429959fa1ae/src/quasireducedim.jl#L285

This is used to determine the type of a function via typeof(f(pointchoice(d))).(Though this is wrong for open sets...).

Should pointchoice be moved here? Or does it exist already?

(Of course, "Axiom of Choice" would imply there exists an implementation of pointchoice which works for every domain .... the requirement that each domain implements it's own pointchoice actually means we don't believe in the Axiom of Choice 😅)

Activity

  1. daanhb commented on Jun 17, 2026

    @daanhb
    Member

    The existing function choice should work (originally called point_in_domain iirc)

    julia> choice(0..1.0)
    0.5

    I think it defaults to the midpoint. I'm not confident that all domains actually implement it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions