Simple implementations of selected abstract algebraic structures--including groups, rings, and fields. Intended for self-study of abstract algebra concepts and not for production use.
//!//! Helper types and functions for logic and sets.
//!/// Test logical implication `x` => `y`.
pubfnimply(x:bool, y:bool)->bool{(!x)|| y
}/// Test logical equivalence `x` <=> `y`.
pubfniff(x:bool, y:bool)->bool{imply(x, y)&&imply(y, x)}