1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! # Set Theory Library
//!
//! A comprehensive mathematical set theory library implementing standard set operations,
//! multisets, and set laws verification following discrete mathematics principles.
//!
//! ## Overview
//!
//! This library provides:
//! - **CustomSet**: Mutable set with unique elements following mathematical set theory
//! - **FrozenSet**: Immutable set for thread-safe operations
//! - **MultiSet**: Set allowing duplicate elements with multiplicity tracking
//! - **Set Operations**: Union, intersection, complement, difference, symmetric difference
//! - **Advanced Operations**: Cartesian product, power set, partition validation
//! - **Set Laws**: Verification of standard set theory laws (De Morgan, Distributive, etc.)
//!
//! ## Features
//!
//! - Implements standard Rust collection traits (`IntoIterator`, `Eq`, `Hash`)
//! - Lazy evaluation for expensive operations (power set, cartesian product)
//! - Type-safe generic implementations
//! - Comprehensive unit tests and benchmarks
//! - Optional serialization support (serde)
//!
//! ## Quick Start
//!
//! ```rust
//! use set_theory::models::CustomSet;
//! use set_theory::operations::basic_ops::SetOperations;
//!
//! // Create sets
//! let a = CustomSet::from(vec![1, 2, 3, 4]);
//! let b = CustomSet::from(vec![3, 4, 5, 6]);
//!
//! // Perform operations
//! let union = SetOperations::union(&a, &b);
//! let intersection = SetOperations::intersection(&a, &b);
//!
//! println!("A ∪ B = {}", union);
//! println!("A ∩ B = {}", intersection);
//! ```
//!
//! ## Module Structure
//!
//! - `traits`: Core traits for set operations
//! - `models`: Set implementations (CustomSet, FrozenSet, MultiSet)
//! - `operations`: Basic and advanced set operations
//! - `laws`: Set theory law verification
//! - `utils`: Helper utilities (equality, pretty printing)
pub use SetLaws;
pub use CustomSet;
pub use FrozenSet;
pub use MultiSet;
pub use AdvancedSetOperations;
pub use SetOperations;