Sometimes I want to put an array inside of a mathpartir inferrule.
The straightforward thing doesn't work:
\begin{equation*}
\inferrule{Conclusion}{
Premiss 1 \and
\begin{array}{ll}
1 & 2 \\ % note, this is where the problem happens| from functools import partial, reduce | |
| from itertools import chain | |
| from typing import Callable, Any, Sequence, Optional, Mapping | |
| class FnChain: | |
| """ | |
| FnChain(obj).map(...).filter(...).reduce(...)... | |
| API LIST: |
| {- | |
| ====================================== | |
| === THE GREAT RESURRECTION OF PROP === | |
| ====================================== | |
| Bringing back the impredicative sort Prop of definitionally proof-irrelevant propositions to Agda. | |
| To check this file, get the prop-rezz branch of Agda at https://github.com/jespercockx/agda/tree/prop-rezz. | |
| This file is a short demo meant to show what you currently can (and can't) do with Prop. |
| String className = (this != null) ? this.getClass().getSimpleName() : ""; | |
| int wavFilesCount = new java.io.File("sounds").listFiles().length; | |
| int clipIndex = (className.hashCode() & 0x7FFFFFFF) % wavFilesCount; | |
| javax.sound.sampled.Clip clip = javax.sound.sampled.AudioSystem.getClip(); | |
| java.io.File wavFile = new java.io.File("sounds" + java.io.File.separator + "sound" + clipIndex + ".wav"); | |
| javax.sound.sampled.AudioInputStream audio = javax.sound.sampled.AudioSystem.getAudioInputStream(wavFile); | |
| clip.open(audio); | |
| clip.start(); |
| fun <T: Comparable<T>> eWhen(target: T, tester: Tester<T>.() -> Unit) { | |
| val test = Tester(target) | |
| test.tester() | |
| test.funFiltered?.invoke() ?: return | |
| } | |
| class Tester<T: Comparable<T>>(val it: T) { | |
| var funFiltered: (() -> Unit)? = null | |
| infix fun Boolean.then(block: () -> Unit) { |
Sometimes I want to put an array inside of a mathpartir inferrule.
The straightforward thing doesn't work:
\begin{equation*}
\inferrule{Conclusion}{
Premiss 1 \and
\begin{array}{ll}
1 & 2 \\ % note, this is where the problem happens