LogicalOptimizer.Core 3.2.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package LogicalOptimizer.Core --version 3.2.1
                    
NuGet\Install-Package LogicalOptimizer.Core -Version 3.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LogicalOptimizer.Core" Version="3.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LogicalOptimizer.Core" Version="3.2.1" />
                    
Directory.Packages.props
<PackageReference Include="LogicalOptimizer.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LogicalOptimizer.Core --version 3.2.1
                    
#r "nuget: LogicalOptimizer.Core, 3.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LogicalOptimizer.Core@3.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LogicalOptimizer.Core&version=3.2.1
                    
Install as a Cake Addin
#tool nuget:?package=LogicalOptimizer.Core&version=3.2.1
                    
Install as a Cake Tool

LogicalOptimizer.Core

The canonical Boolean layer of the LogicalOptimizer toolkit. The n-ary AST, FormulaFactory (a canonicalizing parser and builder), AstFormatter, AstMetrics, truth tables and the internal And-Inverter Graph — dependency-free and Native-AOT-safe.

dotnet add package LogicalOptimizer.Core
using LogicalOptimizer;

var f = new FormulaFactory();
var ast = f.Parse("c & a & b");

Console.WriteLine(ast);                        // a & b & c   (canonical operand order)
Console.WriteLine(AstMetrics.CountLiterals(f.Parse("a & (b | c)"))); // 3
Console.WriteLine(f.Parse("a | !a"));          // 1           (folded at parse time)

FormulaFactory is the single construction path: it flattens nested And/Or chains, sorts operands into a stable canonical order, removes duplicates, folds constants and complements, and interns the result — so equal formulas are the same instance.

When to choose this package

Reference .Core alone when you only need to parse, canonicalize, format, measure or build Boolean formulas and generate truth tables — with no solver, BDD or minimizer pulled in. Every other package in the toolkit builds on this one.

📚 Full documentation: https://AlexanderV.github.io/LogicalOptimizer/

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.0 148 8/3/2026
3.2.2 230 7/30/2026
3.2.1 300 7/30/2026
3.1.1 230 7/29/2026
3.1.0 239 7/29/2026
3.0.0 184 7/28/2026
2.1.0 177 7/27/2026