This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val ls = [ | |
("KernelTypes", "src/0/KernelTypes.sml"), | |
("Net", "src/0/Net.sml"), | |
("Subst", "src/0/Subst.sml"), | |
("Term", "src/0/Term.sml"), | |
("Type", "src/0/Type.sml"), | |
("Abbrev", "src/1/Abbrev.sml"), | |
("AC_Sort", "src/1/AC_Sort.sml"), | |
("BoolExtractShared", "src/1/BoolExtractShared.sml"), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Mathlib.Tactic.NormNum | |
import Mathlib.Data.Real.Basic | |
import Mathlib.Tactic.SlimCheck | |
namespace Tactic | |
namespace Approx | |
def RoundDown (a b : ℤ) : Prop := 2 * b ≤ a | |
#align tactic.approx.round_down Tactic.Approx.RoundDown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [dependencies] | |
// metamath-knife = { git = "https://github.com/david-a-wheeler/metamath-knife", tag = "v0.3.7" } | |
// rand = "0.8" | |
use metamath_knife::{statement::StatementAddress, verify::ProofBuilder, Database, StatementType}; | |
use rand::Rng; | |
use std::collections::{hash_map::RandomState, HashMap, HashSet}; | |
use std::ops::Range; | |
struct Pass<'a>(&'a HashMap<StatementAddress, u32>, &'a mut AccessSeq); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import set_theory.cofinality | |
import order.symm_diff | |
import group_theory.subgroup.basic | |
import group_theory.group_action.basic | |
noncomputable theory | |
open_locale cardinal classical | |
universes u v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// [package] | |
// name = "breen-deligne-homology" | |
// version = "0.1.0" | |
// authors = ["Mario Carneiro <[email protected]>"] | |
// edition = "2018" | |
// [dependencies] | |
// modinverse = "0.1" | |
// rand = "0.8" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Lean.Elab.Tactic | |
def findLeast (a : Array Nat) : Nat := do | |
let mut smallest := a[0] | |
for i in [1:a.size] do | |
if a[i] ≤ smallest then | |
smallest := a[i] | |
return smallest | |
#eval findLeast #[8, 3, 10, 4, 6] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tactic.rcases | |
/- | |
The problem is originally presented in: | |
A. Pease, G. Sutcliffe, N. Siegel, and S. Trac, “Large Theory | |
Reasoning with SUMO at CASC,” pp. 1–8, Jul. 2009. | |
Here we present the natural deduction proof in Lean. | |
-/ | |
constant U : Type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tactic.norm_num | |
import algebra.group_power | |
open prod | |
universes u v w ℓ | |
inductive let_bound (α : Type*) | |
| base : α → let_bound | |
| dlet : ℤ → (ℤ → let_bound) → let_bound | |
| mlet {β : Type} : β → (β → let_bound) → let_bound | |
open let_bound |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/- | |
Presheaf (of types). | |
https://stacks.math.columbia.edu/tag/006D | |
-/ | |
import topology.basic | |
import topology.opens | |
import order.bounds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import data.fintype algebra.ordered_field | |
theorem multiset.inj_of_nodup_map {α β} (f : α → β) {s : multiset α} (h : (multiset.map f s).nodup) | |
{x y} (h₁ : x ∈ s) (h₂ : y ∈ s) (e : f x = f y) : x = y := | |
begin | |
rcases multiset.exists_cons_of_mem h₁ with ⟨s, rfl⟩, | |
cases multiset.mem_cons.1 h₂, {exact h_1.symm}, | |
simp only [multiset.map_cons, multiset.nodup_cons, multiset.mem_map] at h, | |
cases h.1 ⟨_, h_1, e.symm⟩ | |
end |
NewerOlder