Skip to content

Instantly share code, notes, and snippets.

View saulshanabrook's full-sized avatar
🏊

Saul Shanabrook saulshanabrook

🏊
View GitHub Profile
@saulshanabrook
saulshanabrook / LICENSE-EGGCC
Created September 23, 2026 20:09
Eggcc dead-branch proof extraction takes 91 seconds versus 89 ms without proofs
MIT License
Copyright (c) 2023 Oliver Flatt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@saulshanabrook
saulshanabrook / LICENSE-MISAAL
Created September 23, 2026 20:09
MISAAL strict-proof failure: rule-local variable shadowed by a later global
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

Backoff Scheduler Semantics: egg versus current egglog

This report records minimal reproductions showing that the current experimental egglog backoff scheduler does not implement the same match lifecycle as egg::BackoffScheduler. It also checks whether those differences occur in the Math microbenchmark when run with the paper's backoff parameters.

The direct reproductions used:

  • egglog-encoding commit a90ff9acf27577709ce8e28b7de0d79fee0e207a;
"""
The goal here is to see if we can replicate the PEGGY paper but by embedding it in an egglog
dialect that has fixpoint as a builtin as well as higher order functions.
If we can implement fix point fusion as a rule,
"""
# mypy: disable-error-code="empty-body"
from collections.abc import Callable
from typing import Generic, Protocol, TypeAlias, TypeVar, cast
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@saulshanabrook
saulshanabrook / wage.csv
Created April 9, 2026 19:14
US Wage Data 2021
Sex Race and ethnicity Median Earnings (USD) Occupation Group
Men All 61199 All Groups
Women All 51216 All Groups
Men Asian 81833 All Groups
Women Asian 63753 All Groups
Men Black 50115 All Groups
Women Black 46516 All Groups
Men Hispanic 45769 All Groups
Women Hispanic 39481 All Groups
Men White, not Hispanic 69706 All Groups
@saulshanabrook
saulshanabrook / Natality, 2016-2024 expanded (1).csv
Created April 7, 2026 17:38
Recorded from https://wonder.cdc.gov/controller/datarequest/D149;jsessionid=3BDFB168877A6F48BDAAC0516AA1 grouped by mother county of residence and month and filtered to a few states
Notes County of Residence County of Residence Code Month Month Code Births
Alameda County, CA 06001 January 1 1244
Alameda County, CA 06001 February 2 1210
Alameda County, CA 06001 March 3 1364
Alameda County, CA 06001 April 4 1272
Alameda County, CA 06001 May 5 1387
Alameda County, CA 06001 June 6 1298
Alameda County, CA 06001 July 7 1412
Alameda County, CA 06001 August 8 1364
Alameda County, CA 06001 September 9 1358
$ cat ~/.codex/skills/scientific-method-debugging/agents/openai.yaml
interface:
display_name: "Scientific Method Debugging"
short_description: "Falsifiable debugging loop"
default_prompt: "Use $scientific-method-debugging to investigate this bug with observation, competing hypotheses, falsifiable probes, and regression-checked fixes."
$ cat ~/.codex/skills/scientific-method-debugging/SKILL.md
---
name: scientific-method-debugging
description: Run an evidence-first scientific debugging loop for debugging, performance analysis, semantic drift, or codebase comparisons. Use when a user wants claims backed by actual runs, when multiple plausible causes exist, when a bug needs to be shrunk to the smallest repro, or when fixes should be accepted only if they flip the target case without regressing a known comparison set.
---
city,month,month_num,temp_low,temp_high,precip_days,precip_inches,sunshine_hours,latitude,longitude
Seattle,Jan,0,37,47,18,5.55,69,47.608013,-122.335167
Seattle,Feb,1,37,50,14,3.46,108,47.608013,-122.335167
Seattle,Mar,2,39,54,16,3.7,178,47.608013,-122.335167
Seattle,Apr,3,42,58,14,2.68,207,47.608013,-122.335167
Seattle,May,4,47,65,12,1.93,253,47.608013,-122.335167
Seattle,Jun,5,52,70,9,1.54,268,47.608013,-122.335167
Seattle,Jul,6,56,76,5,0.67,312,47.608013,-122.335167
Seattle,Aug,7,56,76,4,0.87,281,47.608013,-122.335167
Seattle,Sep,8,52,71,7,1.42,221,47.608013,-122.335167
(sort egglog.exp.array_api.RecursiveValue)
(sort egglog.exp.array_api.NDArray)
(constructor egglog_exp_array_api_NDArray_to_recursive_value (egglog.exp.array_api.NDArray) egglog.exp.array_api.RecursiveValue)
(constructor egglog_exp_array_api_vecdot (egglog.exp.array_api.NDArray egglog.exp.array_api.NDArray) egglog.exp.array_api.NDArray :unextractable)
(constructor egglog_exp_array_api_NDArray___init__ (egglog.exp.array_api.RecursiveValue) egglog.exp.array_api.NDArray)
(sort egglog.builtins.Vec[egglog.exp.array_api.RecursiveValue] (Vec egglog.exp.array_api.RecursiveValue))
(constructor egglog_exp_array_api_RecursiveValue_vec (egglog.builtins.Vec[egglog.exp.array_api.RecursiveValue]) egglog.exp.array_api.RecursiveValue)
(sort egglog.exp.array_api.Value)
(constructor egglog_exp_array_api_RecursiveValue___init__ (egglog.exp.array_api.Value) egglog.exp.array_api.RecursiveValue)
(sort egglog.exp.array_api.Int)