Author: Paul Timothy R. Necasio
Student Number: 2023-15087
Course: CS 171
This repository contains a hand-built 4-bit Minecraft Redstone Ripple Carry Adder and its formal verification in the Rocq Prover (formerly Coq). The proofs establish three properties across all 256 possible 4-bit input combinations without brute-force checking:
-
Component Equivalence (
proofs/Primitives.v): Physical RedstoneNOT,OR,AND, andXORgates match standard Boolean logic. -
Arithmetic Correctness (
proofs/Adders.v,proofs/RippleCarry4Bit.v): The Half Adder, Full Adder, and cascaded 4-bit adder compute exact unsigned binary addition. -
Carry-Out Integrity (
proofs/RippleCarry4Bit.v): The carry-out lamp activates if and only if$A + B > 15$ .
proofs/— Rocq verification files (Primitives.v,Adders.v,RippleCarry4Bit.v)paper/— Typst manuscript (main.typ), references, and circuit screenshotsworld/— Playable Minecraft world save (4bit_adder_world.zip)
Open the repository in VS Code using the included .devcontainer (Docker + VsCoq), or compile from the terminal:
coq_makefile -f _CoqProject -o Makefile
make- File:
world/4bit_adder_world.zip - Version: Minecraft Java Edition 26.3
- Usage: Extract the zip archive into your
.minecraft/saves/directory and open it in Creative mode.

