Class: Math::SetTheory::UniversalSet

Inherits:
NumberSet show all
Includes:
Singleton
Defined in:
lib/ruuuby/math/set_theory/discrete/universal_set.rb

Instance Attribute Summary

Attributes inherited from NumberSet

#name, #symbol, #𝔠

Attributes inherited from Closure

#axioms

Instance Method Summary collapse

Methods inherited from NumberSet

#countable?, #countably_infinite?, #finite?, #uncountable?, #βˆ‹?, #∌?, #βŠ‚?, #βŠƒ?, #βŠ„?, #βŠ…?, #βŠ†?, #βŠ‡?

Constructor Details

#initializeUniversalSet

Returns a new instance of UniversalSet.



10
11
12
13
# File 'lib/ruuuby/math/set_theory/discrete/universal_set.rb', line 10

def initialize
  super(:π•Œ, ::Math::SetTheory::NumberSet::AlephNumbers::ONE)
  @superset_of = [:𝔹, :β„•, :π•Ž, :β„€, :β„š, :𝔸ᡣ, :𝕀, :ℝ, :𝔸, :β„‚]
end

Instance Method Details

#_βˆ‹?(n) ⇒ Boolean

Returns:

  • (Boolean)


16
# File 'lib/ruuuby/math/set_theory/discrete/universal_set.rb', line 16

def _βˆ‹?(n); n.finite?; end