Skip to content

About

🧮 This paper builds a 4-bit Minecraft Redstone Ripple Carry Adder and proves it correct with the Rocq Prover (formerly Coq)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

55 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Formal Verification of a 4-Bit Minecraft Redstone Adder

Author: Paul Timothy R. Necasio
Student Number: 2023-15087
Course: CS 171

4-Bit Ripple Carry Adder computing 1011 + 0110 = 10001

Overview

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:

  1. Component Equivalence (proofs/Primitives.v): Physical Redstone NOT, OR, AND, and XOR gates match standard Boolean logic.
  2. Arithmetic Correctness (proofs/Adders.v, proofs/RippleCarry4Bit.v): The Half Adder, Full Adder, and cascaded 4-bit adder compute exact unsigned binary addition.
  3. Carry-Out Integrity (proofs/RippleCarry4Bit.v): The carry-out lamp activates if and only if $A + B > 15$.

Repository Structure

  • proofs/ — Rocq verification files (Primitives.v, Adders.v, RippleCarry4Bit.v)
  • paper/ — Typst manuscript (main.typ), references, and circuit screenshots
  • world/ — Playable Minecraft world save (4bit_adder_world.zip)

Running the Proofs

Open the repository in VS Code using the included .devcontainer (Docker + VsCoq), or compile from the terminal:

coq_makefile -f _CoqProject -o Makefile
make

Minecraft World Save

  • 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.

Thank you!

About

🧮 This paper builds a 4-bit Minecraft Redstone Ripple Carry Adder and proves it correct with the Rocq Prover (formerly Coq)

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages