phanerozoic / threshold-biimplies

huggingface.co
Total runs: 5
24-hour runs: 1
7-day runs: 1
30-day runs: -1
Model's Last Updated: January 23 2026

Introduction of threshold-biimplies

Model Details of threshold-biimplies

threshold-biimplies

The biconditional: x ↔ y ("if and only if"). Functionally identical to XNOR, but framed as the logical equivalence relation.

Circuit
      x       y
      │       │
      ├───┬───┤
      │   │   │
      ▼   │   ▼
  ┌──────┐│┌──────┐
  │ NOR  │││ AND  │   Layer 1
  │w:-1,-1││w:1,1 │
  │b: 0  │││b: -2 │
  └──────┘│└──────┘
      │   │   │
      └───┼───┘
          ▼
      ┌──────┐
      │  OR  │         Layer 2
      │w: 1,1│
      │b: -1 │
      └──────┘
          │
          ▼
       x ↔ y
Mechanism

The biconditional tests whether x and y have the same truth value:

x y NOR AND x ↔ y
0 0 1 0 1
0 1 0 0 0
1 0 0 0 0
1 1 0 1 1

NOR catches "both false," AND catches "both true," OR combines.

Why Two Layers?

Unlike simple implication (x → y), the biconditional is not linearly separable. It requires detecting two diagonal cases - same problem as XOR.

Implication x → y can be computed with weights [-1, +1] because it fails only at (1,0). Biimplication fails at both (0,1) and (1,0) - these points cannot be separated from (0,0) and (1,1) by a single hyperplane.

Parameters
Layer Weights Bias
NOR [-1, -1] 0
AND [1, 1] -2
OR [1, 1] -1
Total 9
Properties
  • Reflexive: x ↔ x = 1
  • Symmetric: (x ↔ y) = (y ↔ x)
  • Transitive: (x ↔ y) ∧ (y ↔ z) → (x ↔ z)

Full equivalence relation.

Usage
from safetensors.torch import load_file
import torch

w = load_file('model.safetensors')

def biimplies_gate(x, y):
    inp = torch.tensor([float(x), float(y)])

    nor_out = int((inp * w['layer1.neuron1.weight']).sum() + w['layer1.neuron1.bias'] >= 0)
    and_out = int((inp * w['layer1.neuron2.weight']).sum() + w['layer1.neuron2.bias'] >= 0)

    l1 = torch.tensor([float(nor_out), float(and_out)])
    return int((l1 * w['layer2.weight']).sum() + w['layer2.bias'] >= 0)
Files
threshold-biimplies/
├── model.safetensors
├── model.py
├── config.json
└── README.md
License

MIT

Runs of phanerozoic threshold-biimplies on huggingface.co

5
Total runs
1
24-hour runs
2
3-day runs
1
7-day runs
-1
30-day runs

More Information About threshold-biimplies huggingface.co Model

More threshold-biimplies license Visit here:

https://choosealicense.com/licenses/mit

threshold-biimplies huggingface.co

threshold-biimplies huggingface.co is an AI model on huggingface.co that provides threshold-biimplies's model effect (), which can be used instantly with this phanerozoic threshold-biimplies model. huggingface.co supports a free trial of the threshold-biimplies model, and also provides paid use of the threshold-biimplies. Support call threshold-biimplies model through api, including Node.js, Python, http.

threshold-biimplies huggingface.co Url

https://huggingface.co/phanerozoic/threshold-biimplies

phanerozoic threshold-biimplies online free

threshold-biimplies huggingface.co is an online trial and call api platform, which integrates threshold-biimplies's modeling effects, including api services, and provides a free online trial of threshold-biimplies, you can try threshold-biimplies online for free by clicking the link below.

phanerozoic threshold-biimplies online free url in huggingface.co:

https://huggingface.co/phanerozoic/threshold-biimplies

threshold-biimplies install

threshold-biimplies is an open source model from GitHub that offers a free installation service, and any user can find threshold-biimplies on GitHub to install. At the same time, huggingface.co provides the effect of threshold-biimplies install, users can directly use threshold-biimplies installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

threshold-biimplies install url in huggingface.co:

https://huggingface.co/phanerozoic/threshold-biimplies

Url of threshold-biimplies

threshold-biimplies huggingface.co Url

Provider of threshold-biimplies huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 36
Run Growth: -11
Growth Rate: -30.56%
Updated:April 28 2026