Skip to content

Instantly share code, notes, and snippets.

View Thrithralas's full-sized avatar
🏠
Working from home

Márton Petes Thrithralas

🏠
Working from home
  • ELTE Faculty of Informatics, Department of Programming Languages and Compilers
  • Budapest, Hungary
View GitHub Profile
@Thrithralas
Thrithralas / NoMonotoneDecreasing.lean
Last active April 15, 2025 21:19
Proof that there isnt a strictly monotone decrasing function over natural numbers
import Mathlib.Tactic.Common
theorem Nat.nmd_aux (f : ℕ → ℕ) : (∀ n k, n < k → f n > f k) → ∀ k, f k + k ≤ f 0 := by
intro pr k
induction' k with k ih
. apply Nat.le.refl
. trans
swap
. exact ih
. nth_rw 2 [Nat.add_comm k 1]
MyEnum e = MyEnum.ME1;
for (int i = 0; i < 4; i++) {
e = (MyEnum) ((int) (e + 1) & 3);
System.Console.WriteLine(e);
}
public enum MyEnum {
ME1,