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
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) { |
{-# language LambdaCase, Strict, BangPatterns, ViewPatterns, OverloadedStrings #-} | |
{-# options_ghc -Wincomplete-patterns #-} | |
module UnivPoly where | |
import Data.Foldable | |
import Data.Maybe | |
import Data.String | |
import Debug.Trace |
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(); |
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: |
open import 1Lab.Type | |
open import 1Lab.Path | |
open import 1Lab.Path.Groupoid | |
open import Data.Bool | |
data Niltok : Type where | |
t : Niltok | |
nicht : Niltok → Niltok | |
mod2 : (n : Niltok) → n ≡ nicht (nicht n) | |
coh : (n : Niltok) → ap nicht (mod2 n) ≡ mod2 (nicht n) |
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
Function Remove-DupDownloads { | |
param ( | |
[string]$SearchPath = ".", | |
[switch]$Recurse = $false | |
) | |
$FilePattern = '.*\([1-9][0-9]*\).*' | |
$GCIParams = @{ | |
'Path' = $SearchPath | |
'File' = $true |
{-# OPTIONS --rewriting #-} | |
module cont-cwf where | |
open import Agda.Builtin.Sigma | |
open import Agda.Builtin.Unit | |
open import Agda.Builtin.Bool | |
open import Agda.Builtin.Nat | |
open import Data.Empty | |
import Relation.Binary.PropositionalEquality as Eq |
{- | |
====================================== | |
=== 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. |
open import Agda.Builtin.Equality | |
-- Some familiar results about equality | |
UIP : {A : Set} (x y : A) (p q : x ≡ y) → p ≡ q | |
UIP x y refl refl = refl | |
coerce : {A : Set} (B : A → Set) | |
→ {x y : A} → x ≡ y | |
→ B x → B y |