Skip to content

Instantly share code, notes, and snippets.

@aa755
aa755 / rewrite_drops_hyps.v
Last active October 11, 2022 20:12 — forked from Blaisorblade/rewrite_drops_hyps.v
Demonstrate strange rewrite behavior
Require Import List.
Import ListNotations.
Require Import ssreflect.
Lemma test1 :
length ([1] ++ [2]) = 2 ->
2 = 4.
Proof.
intros HA.
evar (N : nat).
Unshelve.
@aa755
aa755 / fplbill.v
Created September 8, 2022 21:05
fpl bill algorithm
(** tries to reverse engineer FPL billing algorithm: given x watt consumption what should be the bill?
the bill is printed in cents.
it comes within 100cents in the test cases
but doesnt exactly match, even though all computations except the last one to print in decimal (error < 1 cent) are exact.
*)
Require Import QArith.
Require Import Coq.Classes.DecidableClass.
Definition Qmax (a b:Q) : Q :=
if ((Qle_bool a b)) then b else a.
@aa755
aa755 / gist:f7be3bf8116930fd935251a1650633ff
Last active July 6, 2021 16:26
Ivermectin factcheck rebuttal
moved to https://aa755.github.io/decoding-human-body/ivermectin/2021/07/05/ivmrebuttal.html