AFTD Auto-Formalizing Theoretical Domains

BoolFourier.BoolToPM1

abbrevimported Lean

The map $\mathrm{BoolToPM1} : \mathrm{Bool} \to \mathbb{R}$ sends $\mathtt{false}$ to $1$ and $\mathtt{true}$ to $-1$, realising the standard identification $\{0,1\} \cong \{\pm 1\}$.

Statement

set_option relaxedAutoImplicit false in
set_option autoImplicit false in
open Finset BooleanAnalysis in
abbrev BoolFourier.BoolToPM1 : Bool → ℝ
Defined in
TCSlib, `BoolFourier.BoolToPM1`
Lean proof
By Prastik Mohanraj, from github.com/Shilun-Allan-Li/tcslib at c8a02591b1e5 (Copyright (c) 2026 Prastik Mohanraj. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.25.0.
Verified
07 Oct 2026
Axioms
none listed
Built on 1
Used by 8

Lean source view module on GitHub

set_option relaxedAutoImplicit false in
set_option autoImplicit false in
open Finset BooleanAnalysis in
/-- Names the standard embedding of Boolean values into `{±1} ⊂ ℝ`. **Source:** [OD14, §1.3]. -/
abbrev BoolFourier.BoolToPM1 : Bool → ℝ := boolToSign
See it in the graphDiscuss this resultChallenge it