blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
249f6c1f289fa37da3468ff1b175474f023d25fd | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/algebra/equiv.lean | 02524aa77f60d575d3f8f5d68a8cc8e26bad42ec | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 21,501 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.algebra.hom
/-!
# Isomorphisms of `R`-algebras
This file defines bundled isomorphisms of `R`-algebras.
## Main definitions
* `alg_equiv R A ... |
65ff5d76272ebc8053b4f712c70149fb7e9315a2 | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib/Data/Prod.lean | bf1d833b7a99f9ce13ce07f38b3a7a2fd4ff43c9 | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 6,816 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import Mathlib.Function
import Mathlib.Logic.Basic
import Mathlib.Logic.Function.Basic
import Mathlib.Tactic.Basic
/-!
# Extra facts about `Prod`
This file defines ... |
9b63c1bc79fd210a9ee77cf87a4cb85e82cd987f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/995.lean | e2d2cefe2a79295f27141ded2047a85bfc291663 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 184 | lean | example : ∀(x : Nat){h : x = x}, Nat := by
intro x
match x with
| 0 => _
| n + 1 => _
example (x : Nat) : ∀{h : x = x}, Nat := by
match x with
| 0 => _
| n + 1 => _
|
aa6e3af5233577516403bfd5140bb0dcab87f3c6 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/rewriter12.lean | 9b7cf535f7e87f237863825c7159d01253b54ad5 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 272 | lean | import data.nat
open nat algebra
constant f : nat → nat
example (x y : nat) (H1 : (λ z, z + 0) x = y) : f x = f y :=
by rewrite [▸* at H1, add_zero at H1, H1]
example (x y : nat) (H1 : (λ z, z + 0) x = y) : f x = f y :=
by rewrite [▸* at H1, add_zero at H1, H1]
|
01a799a213689421c0d80a2ef9db3ada4e2a20b4 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_ematch10.lean | 0fa71972ac842cd5c05f6c494879ba91a48d4b42 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 187 | lean | attribute iff [reducible]
set_option blast.strategy "ematch"
definition lemma1 (p : nat → Prop) (a b c : nat) : p a → a = b → p b :=
by blast
set_option pp.beta true
print lemma1
|
6850ea01ace822f021b8570efa2dd9581293156c | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/order/atoms.lean | 005c867c06171444e464c4dbca9f1c06184f36b2 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,354 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson.
-/
import order.bounded_lattice
import order.order_dual
/-!
# Atoms, Coatoms, and Simple Lattices
This module defines atoms, which are minimal non-`⊥` elements in bo... |
268352589f5d075d74c4b3f887a0cb710126e257 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/tactic12.lean | faf9ef85d6e9ee4afdaee937cc8e84736508735f | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 285 | lean | import standard
using tactic
theorem tst (a b : Prop) (H : ¬ a ∨ ¬ b) (Hb : b) : ¬ a ∧ b
:= by apply and_intro;
apply not_intro;
exact
(assume Ha, or_elim H
(assume Hna, absurd Ha Hna)
(assume Hnb, absurd Hb Hnb));
assumption
|
108f5cdc447f58d87493b7f12798d678bf57f0a9 | 7b66d83f3b69dae0a3dfb684d7ebe5e9e3f3c913 | /src/solutions/thursday/afternoon/category_theory/exercise3.lean | a28a8f0dee1332b817199fac759160ea631a48f4 | [] | permissive | dpochekutov/lftcm2020 | 58a09e10f0e638075b97884d3c2612eb90296adb | cdfbf1ac089f21058e523db73f2476c9c98ed16a | refs/heads/master | 1,669,226,265,076 | 1,594,629,725,000 | 1,594,629,725,000 | 279,213,346 | 1 | 0 | MIT | 1,594,622,757,000 | 1,594,615,843,000 | null | UTF-8 | Lean | false | false | 1,977 | lean | import category_theory.limits.shapes.zero
import category_theory.full_subcategory
import algebra.homology.chain_complex
import data.int.basic
/-!
Let's give a quirky definition of a cochain complex in a category `C` with zero morphisms,
as a functor `F` from `(ℤ, ≤)` to `C`, so that `∀ i, F.map (by tidy : i ≤ i+2) = 0... |
f25833705d5ebc848b3cd33605f7af0b3432a1bc | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/data/stream.lean | 783a243a60b53a0b8ef7bf3a134aaddf66f3d144 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 21,668 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
open nat function option
universes u v w
def stream (α : Type u) := nat → α
namespace stream
variables {α : Type u} {β : Type v} {δ : Type w}
def cons (a ... |
ed8ab9b91231a3392b261a65e1a4a2c3aeb270c2 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /counterexamples/phillips.lean | 9ef4b12c2300fce190d134eefc3c2ddae0d4f99f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 29,252 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.normed_space.hahn_banach.extension
import measure_theory.integral.set_integral
import measure_theory.measure.lebesgue.basic
import topology.cont... |
14c57f9bf928881fad0a17a18b8a168df04ddb3c | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/t10.lean | a215347ae62a0777d0f13e71969232103170887c | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 108 | lean | set_option pp.colors true
set_option pp.unicode false
print options
set_option pp.unicode true
print options |
90816df4bfc4bcb4637a347cb04c3e8cc30035a2 | b9a81ebb9de684db509231c4469a7d2c88915808 | /src/super/trim.lean | e41b661eaf1d9b7a2f957777ba596c8a497da60c | [] | no_license | leanprover/super | 3dd81ce8d9ac3cba20bce55e84833fadb2f5716e | 47b107b4cec8f3b41d72daba9cbda2f9d54025de | refs/heads/master | 1,678,482,996,979 | 1,676,526,367,000 | 1,676,526,367,000 | 92,215,900 | 12 | 6 | null | 1,513,327,539,000 | 1,495,570,640,000 | Lean | UTF-8 | Lean | false | false | 1,290 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .utils
open monad expr tactic
namespace super
-- TODO(gabriel): rewrite using conversions
meta def trim : expr → tactic expr
| (app (lam n m d b) arg) :=
if ... |
3724d0181a4108ead67e3429a919673817ba1b59 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/Mbar/pseudo_normed_group.lean | c6104bd28fde79274f83f43ec4e609d96c9e71c2 | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 800 | lean | import pseudo_normed_group.with_Tinv
import Mbar.Mbar_le
/-!
# Mbar_r(S) is a profinitely filtered pseudo-normed group with T⁻¹
This file constructs this instance.
-/
universe u
noncomputable theory
open_locale big_operators nnreal
variables {r' : ℝ≥0} {S : Type u} [fact (0 < r')] [fintype S] {c c₁ c₂ c₃ : ℝ≥0}
... |
25dcc8c1463e81c47e0be3bd8cbbbba8bb585b64 | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /stage0/src/Lean/Elab/MutualDef.lean | 8d854b1b1accf3dea4e2e54ae4493e786c458561 | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,723 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Closure
import Lean.Meta.Check
import Lean.Elab.Command
import Lean.Elab.DefView
import Lean.Elab.PreDefinition
import Lean.Parser.Term
na... |
45367eced608fe52f9e30d27ea4f7f09182704f1 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/group/prod.lean | a0029e17dd12597e2bc6ae917a7b883273b2ecdc | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 15,542 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot, Yury Kudryashov
-/
import algebra.group.opposite
/-!
# Monoid, group etc structures on `M × N`
In this file we define one-binop (`monoid`, `group` etc) ... |
2fe60a4624f56cbcc2de993925581cb7cad6c08a | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Hygiene.lean | 00e9e35481b806424a6bc137d415799f8609f9c2 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 4,626 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Data.Name
import Lean.Data.Options
import Lean.Data.Format
namespace Lean
/- Remark: `MonadQuotation` class is part of the `Init` package and l... |
e7a929204c1e0b9f0817a3520dcf64ab9616546b | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /library/init/meta/expr.lean | 0a6b4d513677e406db2f436e4e6c0a1aee7a6ba0 | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 11,713 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.level init.category.monad
structure pos :=
(line : nat)
(column : nat)
instance : decidable_eq pos
| ⟨l₁, c₁⟩ ⟨l₂, c₂⟩ := if h₁... |
debfae2957ba83f14d302b9ddbd367258d79391a | 2eab05920d6eeb06665e1a6df77b3157354316ad | /test/lint.lean | e2c4531e61dfbd484c809f6b907a805a877af88a | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,586 | lean | import tactic.lint
import algebra.ring.basic
def foo1 (n m : ℕ) : ℕ := n + 1
def foo2 (n m : ℕ) : m = m := by refl
lemma foo3 (n m : ℕ) : ℕ := n - m
lemma foo.foo (n m : ℕ) : n ≥ n := le_refl n
instance bar.bar : has_add ℕ := by apply_instance -- we don't check the name of instances
lemma foo.bar (ε > 0) : ε = ε := r... |
5bad47fa2745cfe42a7bcc6abc279418f0892d2a | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Meta/KAbstract.lean | cff69caae19e656a49c0d7b1a533b2ab21c63a09 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 1,784 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Lean.Data.Occurrences
import Init.Lean.HeadIndex
import Init.Lean.Meta.ExprDefEq
namespace Lean
namespace Meta
private partial def kabs... |
c0043c951580fb7eedddee064df33bd2aa28f076 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/euclidean_domain.lean | c8a290d8ffc0316705d4f698a0dc97cee660dd10 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,644 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes
-/
import algebra.gcd_monoid.basic
import algebra.euclidean_domain.basic
import ring_theory.ideal.basic
import ring_theory.principal_ideal_domain
/-!
# Le... |
41db9034546bbab1a590789d2a118788e8d1c4d7 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/number_theory/legendre_symbol/quadratic_char.lean | 63f00b748e4c7f26c27791e45f8937e8c9682176 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 18,635 | lean | /-
Copyright (c) 2022 Michael Stoll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Stoll
-/
import number_theory.legendre_symbol.zmod_char
import field_theory.finite.basic
import number_theory.legendre_symbol.gauss_sum
/-!
# Quadratic characters of finite fie... |
2cadd1dcfcff9f594809d04cc85ac950dad5be3b | 9cb9db9d79fad57d80ca53543dc07efb7c4f3838 | /src/Mbar/basic.lean | 9d33ef9aa3460db57659a2b4ea08981c781c4e78 | [] | no_license | mr-infty/lean-liquid | 3ff89d1f66244b434654c59bdbd6b77cb7de0109 | a8db559073d2101173775ccbd85729d3a4f1ed4d | refs/heads/master | 1,678,465,145,334 | 1,614,565,310,000 | 1,614,565,310,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,459 | lean | import data.real.basic
import algebra.big_operators.basic
import topology.algebra.infinite_sum
import data.finset.basic
import data.equiv.basic
import analysis.normed_space.basic
import analysis.specific_limits
import data.equiv.basic
import Mbar.bounded
import pseudo_normed_group.basic
import for_mathlib.tsum
import... |
4d21612c35b8790194e4578c10be1c69c7a1cf48 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/equiv/nat.lean | 14b49b9f4a6678833db25b6caf38e1d4aae11d07 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 1,980 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Additional facts about equiv and encodable using the
pairing function on nat.
-/
import data.nat.pairing
import data.pnat.basic
open nat
namespace equiv
/--
An equiva... |
720827fb6b877f4bf67b1086e034c17f4d559ac0 | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /eval/time_expr_current.lean | 78f34381d470accbcde85407073cf27cb5b8a183 | [] | no_license | kevinsullivan/lang | d3e526ba363dc1ddf5ff1c2f36607d7f891806a7 | e9d869bff94fb13ad9262222a6f3c4aafba82d5e | refs/heads/master | 1,687,840,064,795 | 1,628,047,969,000 | 1,628,047,969,000 | 282,210,749 | 0 | 1 | null | 1,608,153,830,000 | 1,595,592,637,000 | Lean | UTF-8 | Lean | false | false | 1,738 | lean | import ..expressions.time_expr_current
open lang.time
namespace lang.time
universes u
variables {K : Type u} [field K] [inhabited K]
def env.init_env (K : Type u) [field K] [inhabited K] : env :=
⟨
(λf: fm K TIME, λsp, λv, ⟨mk_vectr sp 1⟩),
(λf: fm K TIME, λsp, λv, ⟨mk_point sp 0⟩),
(λf: fm K TIME, λs... |
455024c5caa9da3561f3fdbb327f181ab28d5af5 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/logic/cast.lean | a08fbaf862f7f0e57d27f914f0da40b31c3d3788 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 5,059 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Casts and heterogeneous equality. See also init.datatypes and init.logic.
-/
import logic.eq logic.quantifiers
namespace heq
universe variable u
variables... |
be29b74258611622127b4781910efcbb503ee7a6 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/algebra/group_power.lean | 06485ebf569343383cbc181b960de7d920d4e234 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 25,719 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
The power operation on monoids and groups. We separate this from group, because it depends on
nat, which in turn depends on other parts of algebra.
We h... |
62fbf4fc8244490d0ee2f181d4ba5ffb543f067c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/arthur1.lean | 73f6d509591d6ce90f47650448860d65d3c458af | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 15,765 | lean | import Lean.Data.HashMap
inductive NEList (α : Type)
| uno : α → NEList α
| cons : α → NEList α → NEList α
def NEList.contains [BEq α] : NEList α → α → Bool
| uno a, x => a == x
| cons a as, x => a == x || as.contains x
def NEList.noDup [BEq α] : NEList α → Bool
| uno a => true
| cons a as => ¬a... |
23b43d70c4586740bfcedda331744b1d84a50778 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/punit.lean | a953c39ac8dc1a4c7a1d3268b6c69d584e0216d9 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,463 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.functor.const
import category_theory.discrete_category
/-!
# The category `discrete punit`
> THIS FILE IS SYNCHRONIZED WITH MAT... |
130629a0bfda72130697231eb363f919165a9117 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/InverseUnaryOperation.lean | 1ede443063d13d19662ead547a87070b61c9cf82 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,747 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section InverseUnaryOperation
structure InverseUnaryOperation (A : Type) : Type :=
(inv : (A → A))
open InverseUnaryOperation
structure Sig (AS : Type) : Type :=
... |
1b83551c184a03c74be20f86c67cea58379d6973 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/instances/ereal.lean | ba32823a51d9b2ba0b1777ecfcaf033d9ce30a96 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 13,234 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import data.real.ereal
import topology.algebra.order.monotone_continuity
import topology.instances.ennreal
/-!
# Topological structure on `ereal`
We endow `er... |
77381ab984c92c78985742610286e57f5e556413 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/squeeze.lean | d7044b1ddc7849003367128d724306e08b80b674 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 14,733 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.traversable.basic
import tactic.simpa
open interactive interactive.types lean.parser
private meta def loc.to_string_aux : option name → string
| none := "⊢... |
e17f07e3d8663bc834e9d064394cecea05ef6581 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/string_imp2.lean | 98c1b58014ce7cf046ff464b917d12c94e3b179a | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 2,052 | lean |
def f (s : String) : String :=
s ++ " " ++ s
def g (s : String) : String :=
s.push ' ' ++ s.push '-'
def h (s : String) : String :=
let it₁ := s.mkIterator;
let it₂ := it₁.next;
it₁.remainingToString ++ "-" ++ it₂.remainingToString
#eval "hello" ++ "hello"
#eval f "hello"
#eval (f "αβ").length
#eval "hello".toList
... |
d3d1ce0692f9ae12e9b54d96d5879c40df8a1ef8 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/data/complex/basic.lean | f91bb15b9fd89f6bbed4ad9bac7eb5022bf0a20f | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,621 | lean | /-
Copyright (c) 2017 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Mario Carneiro
-/
import data.real.sqrt
open_locale big_operators
/-!
# The complex numbers
The complex numbers are modelled as ℝ^2 in the obvious way.
-/
/-! ### Def... |
004556086c2f7844c213069b990bf8f0b87759a0 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Init/Control/StateRef.lean | e9c6da9620580b67440becfbc01f7f1740cda163 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 2,412 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
The State monad transformer using IO references.
-/
prelude
import Init.System.IO
import Init.Control.State
def StateRefT' (ω : Type) (σ :... |
06e2fae1565a6baaac5162c6eedd7fe24290623b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/adjunction/limits.lean | 686648ef0b180b673d8d584b396b171b54e789d4 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 13,158 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin
-/
import category_theory.adjunction.basic
import category_theory.limits.creates
/-!
# Adjunctions and limits
A left adjoint preserves colimits (`category_th... |
f5488d7f630bdfcd025b5a2adf18c263104b1ccf | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /hott/types/nat/basic.hlean | 8b80bfbd6f5eab2cc4edfc20e4ce0f483fea8d63 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,326 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
(Ported from standard library file data.nat.basic on May 02, 2015)
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad
Basic operations on the natural numbers.
-/
import algebra.ring... |
f706e22310488e539272f9c025f8baccee07ece6 | 93f5d951583b87344f929a9ec18c4f603d920c4a | /src/print_formula.lean | a91a90f494badd165d877e6301bd92272cdc9d67 | [
"Apache-2.0"
] | permissive | jesse-michael-han/flypitch | 824a8c1955deb661943b02146d281932dad39302 | b9a25b75f6a6c69bd2913c66a8e32fc67f196335 | refs/heads/master | 1,625,819,158,405 | 1,595,824,334,000 | 1,595,824,334,000 | 167,225,933 | 1 | 0 | null | 1,548,265,151,000 | 1,548,265,151,000 | null | UTF-8 | Lean | false | false | 3,422 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Tindall, Jesse Han, Floris van Doorn
-/
import .zfc
open fol ZFC_rel ZFC_func
-- ugly but working (str_formula says it's not well-founded recursion, but it evaluates a... |
b643b12d5a27d1fa37443e1cf7e66d8ac9be2e4c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/coeIssue1.lean | b40742a03c0af6c9e522fffe5d78965d7220df54 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,269 | lean | -- From @joehendrix
-- The imul doesn't type check as Lean won't try to coerce from a reg (bv 64) to a expr (bv ?u)
inductive MCType
| bv : Nat → MCType
open MCType
inductive Reg : MCType → Type
| rax (n : Nat) : Reg (bv n)
inductive Expr : MCType → Type
| r : ∀{tp:MCType}, Reg tp → Expr tp
| sextC {s:Nat} (x : Ex... |
c611cab7da613a1e190b52d5fc802521e289ce66 | e9dbaaae490bc072444e3021634bf73664003760 | /src/Problems/2016/IMO_2016_P1.lean | 7092bad03bee984c5cc46e12c17773d6b8904c7f | [
"Apache-2.0"
] | permissive | liaofei1128/geometry | 566d8bfe095ce0c0113d36df90635306c60e975b | 3dd128e4eec8008764bb94e18b932f9ffd66e6b3 | refs/heads/master | 1,678,996,510,399 | 1,581,454,543,000 | 1,583,337,839,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 591 | lean | import Geo.Geo.Core
namespace Geo
open Angle Quadrilateral Seg
def IMO_2016_P1 : Prop :=
∀ (B C F : Point),
Angle.isRight (Triangle.mk B C F).angles.A → -- Triangle B C F has a right angle at B
∀ (A D E: Point),
on A (Line.mk C F) →
cong ⟨F, A⟩ ⟨F, B⟩ →
on F (Seg.mk A C) →
cong ⟨D, A⟩ ⟨D, C⟩ →
isBisector ⟨A, C⟩ ⟨D, ... |
c72676c15fd5c8e15745ae464122cf4595227d4f | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/computability/halting.lean | 96b598de662991efebb7b6b3fe94dfdd1b92e6a9 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,173 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import computability.partrec_code
/-!
# Computability theory and the halting problem
A universal partial recursive function, Rice's theorem, and the halting problem... |
8a6010c890e3dde88b77e3c4f8e6010f6223cf8e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/order/priestley.lean | ac900eb4b1d1b606a7bdb225099dddee8cfd5274 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,675 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.upper_lower
import topology.separation
/-!
# Priestley spaces
This file defines Priestley spaces. A Priestley space is an ordered compact topological space... |
04f59b817f8178526cb27853b9646188bdd81f97 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/complete_lattice.lean | 565b68593117fe6cbdbd22b6485a70649ceeb290 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 56,974 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.bool.set
import data.ulift
import data.nat.basic
import order.bounds
/-!
# Theory of complete lattices
## Main definitions
* `Sup` and `Inf` are the su... |
5890a52ec8684679c29a91771e494746f0dd96d8 | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/homotopy_theory/formal/i_category/definitions.lean | 9976cad0f8d6c33e768a72ea2e7ce3e630222eb2 | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 2,861 | lean | import homotopy_theory.formal.cofibrations.precofibration_category
import homotopy_theory.formal.cylinder.definitions
import homotopy_theory.formal.cylinder.hep
import homotopy_theory.formal.weak_equivalences.definitions
universes v u
open category_theory
local notation f ` ∘ `:80 g:80 := g ≫ f
namespace homotopy_th... |
88b5a403b23f8bca6bf86035274201334af104a9 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/linear_algebra/nonsingular_inverse.lean | eb128079149f9e5f1814b22b08245e50f264d0e1 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 15,603 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Tim Baanen.
Inverses for nonsingular square matrices.
-/
import algebra.associated
import linear_algebra.determinant
import tactic.linarith
import tactic.ring_exp
/-!
# Nonsingula... |
f4d110b0dacb2cad43d80a1d60702d4b9f84ff6b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/min_max.lean | a68845cba9a50752e9062447e41320f84b2560db | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 7,171 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import order.lattice
/-!
# `max` and `min`
This file proves basic properties about maxima and minima on a `linear_order`.
## Tags
min, max
-/
universes u v
varia... |
533172eb697c1b788526eeef77d737f9e06ad1a4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monoidal/rigid/functor_category.lean | 61e3a4d4a5767c2fdc4cc154cee2ecc3b045b2c2 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,970 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monoidal.rigid.basic
import category_theory.monoidal.functor_category
/-!
# Functors from a groupoid into a right/left rigid category form a r... |
6b4f7683c2435f52db87afee47dcd73fddc793e3 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /counterexamples/canonically_ordered_comm_semiring_two_mul.lean | 3b9ad504389daef8db31540fc0d829cb66a191e3 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,493 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import data.zmod.basic
import ring_theory.subsemiring
import algebra.order.monoid
/-!
A `canonically_ordered_comm_semiring` with two different elements `a` and `b` suc... |
2ed2d975b2f737494e1601df6f50ec0ae07e8167 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/dlist/basic.lean | 5e9f21c9359066196bbcbd15937d9518d4cf2afc | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 282 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.dlist
def dlist.join {α : Type*} : list (dlist α) → dlist α
| [] := dlist.empty
| (x :: xs) := x ++ dlist.join xs
|
b77a1b5b61c17bb88cdccbdd0ebad05974a2d38d | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/polynomial.lean | c6edd80c6dc567ba4b0dc738befce1a91b189aa3 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 107,587 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
Theory of univariate polynomials, represented as `add_monoid_algebra R ℕ`, where `R` is a commutative semiring.
-/
import da... |
0e8462b6ba3a4997ca04571d3de740f8cf77e79e | ce89339993655da64b6ccb555c837ce6c10f9ef4 | /bluejam/topprover/01.lean | 9df2f48eca9b22b51dae8c6189ee8602d301a8b7 | [] | no_license | zeptometer/LearnLean | ef32dc36a22119f18d843f548d0bb42f907bff5d | bb84d5dbe521127ba134d4dbf9559b294a80b9f7 | refs/heads/master | 1,625,710,824,322 | 1,601,382,570,000 | 1,601,382,570,000 | 195,228,870 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 74 | lean | example : ∀ (n m o : ℕ), n + m + o = n + (m + o) :=
by intros; simp *
|
ea5de94ae71ae435def23fc07ffe1b9cb7a86165 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/equiv/encodable/basic.lean | 1ed5010eeb8d6b4a2cc0a69b52429007717ec0ce | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,827 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.equiv.nat
import order.rel_iso
import order.directed
/-!
# Encodable types
This file defines encodable (constructively countab... |
ce2bf664260509482c1f89b10ce2635228ee1ae7 | 66a6486e19b71391cc438afee5f081a4257564ec | /homotopy/degree.hlean | 7a69dbedc13c02e0d7a4eaffa9aad2b43fefbe26 | [
"Apache-2.0"
] | permissive | spiceghello/Spectral | c8ccd1e32d4b6a9132ccee20fcba44b477cd0331 | 20023aa3de27c22ab9f9b4a177f5a1efdec2b19f | refs/heads/master | 1,611,263,374,078 | 1,523,349,717,000 | 1,523,349,717,000 | 92,312,239 | 0 | 0 | null | 1,495,642,470,000 | 1,495,642,470,000 | null | UTF-8 | Lean | false | false | 4,984 | hlean | import homotopy.sphere2 ..move_to_lib
open fin eq equiv group algebra sphere.ops pointed nat int trunc is_equiv function circle
protected definition nat.eq_one_of_mul_eq_one {n : ℕ} (m : ℕ) (q : n * m = 1) : n = 1 :=
begin
cases n with n,
{ exact empty.elim (succ_ne_zero 0 ((nat.zero_mul m)⁻¹ ⬝ q)⁻¹) },
... |
a90a20aab7d6aae0870e746310186826cb06afb5 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/algebra/subalgebra.lean | 95b39c3531f48f4419811e7ed95fe86d197d2ff7 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 30,285 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.algebra.operations
/-!
# Subalgebras over Commutative Semiring
In this file we define `subalgebra`s and the usual operations on them (`map`, `... |
46ceebf5c1f6b8e21c3bb2707b2da5c74798f9c0 | 6b2a480f27775cba4f3ae191b1c1387a29de586e | /group_rep1/Tools/to_sum.lean | fffc1d75f25e726311ff9dba32f3afc68a249999 | [] | no_license | Or7ando/group_representation | a681de2e19d1930a1e1be573d6735a2f0b8356cb | 9b576984f17764ebf26c8caa2a542d248f1b50d2 | refs/heads/master | 1,662,413,107,324 | 1,590,302,389,000 | 1,590,302,389,000 | 258,130,829 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,409 | lean | import linear_algebra.basic
import data.fintype.basic
import algebra.big_operators
import data.finset algebra.big_operators
import linear_algebra.basic linear_algebra.finite_dimensional
import algebra.module
import data.equiv.basic
universes u v w w'
infix ` * ` := linear_map.comp ---- his there a standart not... |
e57524fb2856dd1a4cce1104d5a36866e8e6c600 | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /library/init/meta/smt/interactive.lean | f5eaa9564088b80645450b9bc9e0fe1a12c41818 | [
"Apache-2.0"
] | permissive | pcmoritz/lean | 6a8575115a724af933678d829b4f791a0cb55beb | 35eba0107e4cc8a52778259bb5392300267bfc29 | refs/heads/master | 1,607,896,326,092 | 1,490,752,175,000 | 1,490,752,175,000 | 86,612,290 | 0 | 0 | null | 1,490,809,641,000 | 1,490,809,641,000 | null | UTF-8 | Lean | false | false | 10,191 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.smt.smt_tactic init.meta.interactive
import init.meta.smt.rsimp
namespace smt_tactic
meta def save_info (p : pos) : smt_tactic uni... |
3d27441ab9580986271fe74c70117a8eb36957e9 | 367134ba5a65885e863bdc4507601606690974c1 | /src/measure_theory/haar_measure.lean | bd7f3b69d77ade163c712c97df3c29edd46633d6 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 31,469 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.content
import measure_theory.prod_group
/-!
# Haar measure
In this file we prove the existence of Haar measure for a locally compact Haus... |
153b8e5e8ee6c18b7d3d2e5e1367b2025f2de070 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/ring/basic.lean | 318bae4e3e2262a574dacc01eacd910c86de01e0 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 48,519 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Amelia Livingston, Yury Kudryashov,
Neil Strickland
-/
import algebra.divisibility
import algebra.regular.basic
/-!
# Properties and... |
8c695bab1f7aa9a9f37a583d408ad7646116d02f | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/algebra/lie/classical.lean | 14d909dd9b5cd8acc2d0f22d5979c99677aa1bd9 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 13,394 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.invertible
import data.matrix.basis
import data.matrix.dmatrix
import algebra.lie.abelian
import linear_algebra.matrix.trace
import algebra.lie.skew_adjoint
... |
82c4292bab770810df94e1aec12757a165e7d60c | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/geometry/manifold/times_cont_mdiff_map.lean | 7cc5686be789ad79bf18d95b0cd710a77782c65a | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,944 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.times_cont_mdiff
import topology.continuous_function.basic
/-!
# Smooth bundled map
In this file we define the type `times_cont_mdiff_ma... |
fb810f53f87ac999bba5fcb8ff048eb34276a5c6 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Level.lean | e519e7efc32478d6e06eed5d6a11087ddd602f15 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,740 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Std.Data.HashMap
import Std.Data.HashSet
import Std.Data.PersistentHashMap
import Std.Data.PersistentHashSet
import Lean.Data.Name
import Lean.Data.F... |
2cb1318221526703a985d988313f0abe1bf28dbd | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/field_theory/perfect_closure.lean | c2f09901e477a34e3649860cce367387e59a3df1 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,380 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.char_p.basic
import data.equiv.ring
import algebra.group_with_zero.power
import algebra.iterate_hom
/-!
# The perfect closure of a field
-/
un... |
b056a9906d16e9d97f39bc572f98a409ea5623db | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/algebra/star/basic.lean | b7c0c045a796f6e0110ceb9c2e2d49a990fa974c | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,846 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.apply_fun
import algebra.order.ring
import algebra.opposites
import algebra.big_operators.basic
import data.equiv.ring_aut
import data.equiv.mul_add_aut... |
fcd03ee8854a7b0a22d43ac302b85fca91b8a99f | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /group_theory/perm.lean | dc1c43d9486ff3590bb87ad26eeaa91b930a196a | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 29,533 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.fintype
universes u v
open equiv function fintype finset
variables {α : Type u} {β : Type v}
namespace equiv.perm
def subtype_perm (f : perm α) {p : α → Pr... |
5ccc02da29541f5ace083115314a13aef5c347b6 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/ring_theory/noetherian.lean | 98b0fcf407567dfd390c1cd318b506d817ca5abe | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 23,027 | lean | /-
Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import ring_theory.ideal_operations
import linear_algebra.basis
import order.order_iso_nat
/-!
# Noetherian rings and modules
The f... |
7ff0709d52cedfbeb5b46161b8c91f7062b8e28b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/list/basic_auto.lean | 93d062db498e0ab08b52dc349bafbfe9409e7779 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 157,536 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.order_funct... |
69030ec107d9d6419efbb59e67edf7b3a66c8bd4 | 562dafcca9e8bf63ce6217723b51f32e89cdcc80 | /src/super/clausifier.lean | 3be4f631b31d461e40c71a094ebfb2612c226eec | [] | no_license | digama0/super | 660801ef3edab2c046d6a01ba9bbce53e41523e8 | 976957fe46128e6ef057bc771f532c27cce5a910 | refs/heads/master | 1,606,987,814,510 | 1,498,621,778,000 | 1,498,621,778,000 | 95,626,306 | 0 | 0 | null | 1,498,621,692,000 | 1,498,621,692,000 | null | UTF-8 | Lean | false | false | 10,779 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause .clause_ops
import .prover_state .misc_preprocessing
open expr list tactic monad decidable
universe u
namespace super
meta def try_option {a : Type u}... |
a97665c92694bae5645a013b1f8d8566a979ba6c | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/data/finsupp/basic.lean | 816a0e308019549ee6dee4a1dad68b989074fc9b | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 78,763 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Scott Morrison
-/
import algebra.group.pi
import algebra.big_operators.order
import algebra.module.basic
import group_theory.submonoid.basic
import data.fintype.card
im... |
e62bb90212be6457806ae9c4b0f9852ce749d8ec | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/module/default.lean | ea1a9eeb45081d7fee293c68715080b49e071570 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 323 | lean | /-
Copyright (c) 2020 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.module.basic
import algebra.module.submodule.basic
/-!
# Default file for module
This file imports `algebra.module.basic` and `algebra.module.submodule`.
... |
7722b47aec14416a88b730b244531efb58f896c2 | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /lia/wf.lean | f4e2a106aefbbddf23791b2610b26de0bce7a1e3 | [] | no_license | lclem/cooper | 79554e72ced343c64fed24b2d892d24bf9447dfe | 812afc6b158821f2e7dac9c91d3b6123c7a19faf | refs/heads/master | 1,607,554,257,488 | 1,578,694,133,000 | 1,578,694,133,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,713 | lean | import data.list.basic .sqe
def atom.wf : atom → Prop
| (atom.le i ks) := true
| (atom.dvd d i ks) := d ≠ 0
| (atom.ndvd d i ks) := d ≠ 0
instance atom.dec_wf : decidable_pred atom.wf
| (atom.le i ks) := decidable.is_true trivial
| (atom.dvd d i ks) := begin simp [atom.wf], apply_instance end
| (atom.ndv... |
ef230eadd4d488f6afa0b06813ce27ff21345e44 | 439bc6c3e74a118aa51df633b8e1f24415804d86 | /sheaf.lean | c5547944fbbf2a101cb39b2a2336c89b25e15343 | [] | no_license | jcommelin/lt2019_slides | 4ca498db02b5187c5778c21b985126d52d260696 | 3234cd92920d3d4321cc2cef78b48e5fa55be413 | refs/heads/master | 1,586,718,101,957 | 1,546,930,855,000 | 1,546,930,855,000 | 162,697,592 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 98 | lean | def sheaf (X : Type u) [𝒳 : site X] :=
{ F : presheaf X // nonempty (site.sheaf_condition F) }
|
90e3aaab649e9ff555adf2c25152deb94a9f535c | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/support.lean | 5a0c50daad0e083a1c71cc89c5c0b31f574f1fde | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 5,273 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import order.conditionally_complete_lattice
import algebra.big_operators.basic
import algebra.group.prod
/-!
# Support of a function
In this file we define `funct... |
316cb1360d05bdc961d883edb10180fdec8daf4f | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/algebra/indicator_function.lean | 60fcf87d3fdbc826353f773251eefdb59a2d285e | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,472 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import algebra.support
/-!
# Indicator function
- `indicator (s : set α) (f : α → β) (a : α)` is `f a` if `a ∈ s` and is `0` otherwise.
- `mul_indicator (s : set α) (... |
d6df4d895c4f23b46e5f4625bd6512b17cdc45da | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/fractional_ideal.lean | 483495cd7600a3b3bf6c6567571286abca9c6bc9 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 49,767 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Filippo A. E. Nuccio
-/
import ring_theory.localization
import ring_theory.noetherian
import ring_theory.principal_ideal_domain
import tactic.field_simp
/-!
# Fractional ide... |
cf91d9748a682171f018e21a9d7bb1a4ccaa2742 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Elab/PreDefinition/Basic.lean | 6681c7f5c3e03c95a08fb5c6a4d6496aef7dca49 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,642 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.SCC
import Lean.Meta.AbstractNestedProofs
import Lean.Elab.Term
import Lean.Elab.DefView
import Lean.Elab.PreDefinition.MkInhabitant
names... |
7fbd5240d5753e90cad54419bd6f114823e769c6 | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /tactic/alias.lean | 1863a7089dcd77ce28b708568e29536317b87a1e | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,437 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
This file defines an alias command, which can be used to create copies
of a theorem or definition with different names.
Syntax:
/ -- doc string - /
alias my_theorem ←... |
f20e15fcc0da10a238ed0657096915558c679983 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/algebra/group_completion.lean | cccfe7a9ab6d847399828ef9db47bc2837bd018d | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 7,995 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.group.hom_instances
import topology.uniform_space.completion
import topology.algebra.uniform_group
/-!
# Completion of topological gro... |
9e73dac1df8aefe347b2573734e27c57a872ddde | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1575.lean | 47e677127e99340f2d55a5331d16671e29b16f81 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 143 | lean | example [Subsingleton α] (p : α → Prop) : Subsingleton (Subtype p) :=
⟨fun ⟨x, _⟩ ⟨y, _⟩ => Subsingleton.elim x y ▸ sorry⟩
|
795f489cd38e8d8d0b015bd85f27bf4a161b3987 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/field/defs.lean | 58294ae15fda096e2504396053bd6b4467a0bbe4 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,719 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura, Mario Carneiro, Floris van Doorn
-/
import algebra.field.defs
import algebra.order.ring.defs
/-!
# Linear ordered (semi)fields
A linear ordered (semi)f... |
01ee3872ae6a6ae9c7a34d17fcebc3d9bc137bac | 46125763b4dbf50619e8846a1371029346f4c3db | /src/category_theory/comma.lean | ca6ac3cfc95aa6ae2be0bb576732428cdbe69085 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 11,140 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin
-/
import category_theory.isomorphism
import category_theory.punit
namespace category_theory
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare the `v`'s first; se... |
92f658be56431d465ab8037f005b603739be48d7 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/platform.lean | 9df49d81934a63160c4ab0554a0c84d9f803c7f5 | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 325 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.core
namespace System
-- TODO: mark as opaque, the VM provides platform specific implementation
def platform.nbits : Nat := 64
end Sy... |
5babfe7e1b3eb2a44e67f1b8e3cee6954442d531 | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/multiplication/8.lean | bd8e47474462688f62bd3ded8a3f65c857d78907 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 138 | lean | lemma mul_comm (a b : mynat) : a * b = b * a :=
induction b with n hn,
rwa [mul_zero, zero_mul],
rwa [mul_succ, succ_mul, hn],
end
|
26e5ad8e0f188a4f1b3dd27be3317ebbfe9bc0c3 | 302b541ac2e998a523ae04da7673fd0932ded126 | /tests/playground/binarytrees.lean | a0dd12d7d2b7ea5df0517598d0c569f341d17d8d | [] | no_license | mattweingarten/lambdapure | 4aeff69e8e3b8e78ea3c0a2b9b61770ef5a689b1 | f920a4ad78e6b1e3651f30bf8445c9105dfa03a8 | refs/heads/master | 1,680,665,168,790 | 1,618,420,180,000 | 1,618,420,180,000 | 310,816,264 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,801 | lean | set_option trace.compiler.ir.init true
inductive Tree
| Nil
| Node (l r : Tree) : Tree
open Tree
instance : Inhabited Tree := ⟨Nil⟩
-- This Function has an extra argument to suppress the
-- common sub-expression elimination optimization
partial def make' : UInt32 -> UInt32 -> Tree
| n, d =>
if d = 0 ... |
e70d5ba472bfe266fbe9892ed0cce6e07435cb70 | e30ff3aabdac29f8ea40ad76887544d0f9be9018 | /ircbot/modules/print_date.lean | 78f682aba83aa49e53da748fc143b1d80a9fd5d3 | [] | no_license | forked-from-1kasper/leanbot | bdef0efa3e4d0eb75b06c1707fb4e35086bb57fa | c61c8c7fdad7b05877e0d232719ce23d2999557f | refs/heads/master | 1,651,846,081,986 | 1,646,404,009,000 | 1,646,404,009,000 | 127,132,795 | 12 | 1 | null | 1,605,183,650,000 | 1,522,237,998,000 | Lean | UTF-8 | Lean | false | false | 1,030 | lean | import ircbot.types ircbot.effects ircbot.support ircbot.datetime
open types effects support datetime
namespace modules.print_date
def print_date_func (d : date) (input : irc_text) : list irc_text :=
match input with
| irc_text.parsed_normal
{ object := some ~nick!ident, type := message.privmsg,
args := [subjec... |
4851c9ebd4c2a7eeee338a87c51a58f7ca7ab223 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/group_theory/p_group.lean | bf17caa9a7e4560bb42a1528b032f4eb47565c99 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,380 | lean | /-
Copyright (c) 2018 . All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Thomas Browning
-/
import group_theory.index
import group_theory.perm.cycle_type
import group_theory.quotient_group
/-!
# p-groups
This file contains a proof that if `G` is a `p`-gr... |
655b8086ddc81d3a29c68108aa11ea423f85f585 | 3ca6dd8bf23783927a6f1faedd16c92f0c96da9e | /lean/app.lean | e41ca7d5172d6be97b4fc46b98f8c74ec08575ed | [
"MIT"
] | permissive | anqurvanillapy/fpl | 139a368655091c27b0ab78fa266ad9f74348ccb8 | 9576d5b76e6a868992dbe52930712ac67697bed2 | refs/heads/master | 1,623,285,455,999 | 1,616,136,159,000 | 1,616,136,159,000 | 128,802,535 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 77 | lean | constants a b : Type
constants f : a -> b
constants x : a
#check f x -- : b
|
b27b8312260cf74af750c9d7f1e3b9d263e94aaf | 91493cf9df9eee2ed3f633c44e10d877cbda0a69 | /src/mywork/lecture_1a.lean | 0e86a1dc1d828241dcf2b9e61b863a4b61df9065 | [] | no_license | edelzamora/cs2120f21 | a32f6752dc4cf341bdf31b6f3fdd9ddbc903f83a | ba668ccc46998fa40a469bef273baba931fc0fad | refs/heads/main | 1,689,854,534,035 | 1,630,525,878,000 | 1,630,525,878,000 | 399,944,123 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,010 | lean | -- import definitions of real and rational numbers from mathlib
import data.real.basic
namespace cs2120
/-
The first part of this lesson is in the file, lecture_1.md.
Please start there then return here when you're done with
that document.
-/
/-
NUMBER SYSTEMS
-/
/-
Mathematicians think about operations on many ki... |
0044feb508f897b3b32173898876965ef8e718c1 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/analytic/inverse.lean | 60268c17f70fd0323c0208d0387869d60aff3cfa | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 27,276 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.analytic.composition
import tactic.congrm
/-!
# Inverse of analytic functions
We construct the left and right inverse of a formal multilinear ... |
62e005b0557139ffe8a5b68cba67197291201780 | 367134ba5a65885e863bdc4507601606690974c1 | /src/combinatorics/colex.lean | f6de36b1365006e8a4d0a994781e3be2a0cc9ac6 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 11,857 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Alena Gusakov
-/
import data.finset
import data.fintype.basic
import algebra.geom_sum
import tactic
/-!
# Colex
We define the colex ordering for finite sets, and give a c... |
a85ea5ee398ee4f8c7c3c4c515722a3738e1a957 | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/topology/algebra/open_subgroup.lean | a572648a759d62d9823107b6e0c619783cd32c08 | [
"Apache-2.0"
] | permissive | jesse-michael-han/mathlib | a15c58378846011b003669354cbab7062b893cfe | fa6312e4dc971985e6b7708d99a5bc3062485c89 | refs/heads/master | 1,625,200,760,912 | 1,602,081,753,000 | 1,602,081,753,000 | 181,787,230 | 0 | 0 | null | 1,555,460,682,000 | 1,555,460,682,000 | null | UTF-8 | Lean | false | false | 7,377 | lean | /-
Copyright (c) 2019 Johan Commelin All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import order.filter.lift
import topology.opens
import topology.algebra.ring
open topological_space
open_locale topological_space
set_option old_structure_cmd true
/... |
2bb1aaca8dc7b7452ef22515c5f034537f478b11 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /src/Init/Data/UInt.lean | ebca55d79842ecb0a75cca3faf663319b9d7eac8 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,761 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Fin.Basic
import Init.System.Platform
open Nat
def uint8Sz : Nat := 256
structure UInt8 :=
(val : Fin uint8Sz)
@[extern "lean_ui... |
b5067ff6d4d2189937e4dca60cbdafec33dc492c | 9028d228ac200bbefe3a711342514dd4e4458bff | /test/rcases.lean | a1ae6822133fd42466b5291c6f75e9c3f9c2b090 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,848 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.rcases
universe u
variables {α β γ : Type u}
example (x : α × β × γ) : true :=
begin
rcases x with ⟨a, b, c⟩,
{ guard_hyp a : α,
guard_hyp b : β,
... |
d7a15d9213fe61d5a36cce21d751812c53e4d6eb | 4919181312c130f03eed71db8c80aa1cbd140256 | /src/peano.lean | c78e5bad07a3f760ffb12e629bf0f95cb0ccf8d3 | [] | no_license | williamdemeo/flypitch | 62143800b790f0a0ffcd338c82b6bf3cd401552b | f73127c3ad36e6c2f074a26518dc333f07c1ab85 | refs/heads/master | 1,587,042,220,139 | 1,547,238,998,000 | 1,547,238,998,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,236 | lean | import .fol tactic.tidy
open fol
local attribute [instance, priority 0] classical.prop_decidable
--local attribute [instance] classical.prop_decidable
local notation h :: t := dvector.cons h t
local notation `[]` := dvector.nil
local notation `[` l:(foldr `, ` (h t, dvector.cons h t) dvector.nil `]`) := l
namespac... |
504b3b800810e5a1f427d4a62cbaf782f4c186cc | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Data/Trie.lean | cc0d320810f88a8dc370ba57437f88e5c7172be0 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,742 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
Trie for tokenizing the Lean language
-/
import Lean.Data.Format
namespace Lean
namespace Parser
open Std (RBNode RBNode.leaf RBNode.singl... |
3eb6ae22e34faf003589bd21e0aa2bb577f7e2f0 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/calculus/fderiv_measurable.lean | 51d4260b59aff35d1b262c612f0eb72d1a46f6ea | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 40,962 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.deriv
import measure_theory.function.strongly_measurable.basic
/-!
# Derivative is measurable
In this file we prove ... |
c39c937367636956cb443a7bdabb10fe1a4b3b7f | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/28.lean | a500cd070463fc64cff88b515c1596f054b56b5e | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 1,340 | lean | structure bv (w : Nat) := (u:Unit)
inductive val : Type
| bv (w : Nat) : bv w → val
inductive memtype : Type
| ptr : Unit → memtype
inductive instr : Type
| load : memtype -> val -> instr
| store : Unit -> Unit -> Unit -> instr
structure sim (a:Type) :=
(runSim :
∀{z:Type},
(IO.Error → z) /- error cont... |
fec8f06b98aaa87f39f4375e117cfa92400a62b3 | 4727251e0cd73359b15b664c3170e5d754078599 | /test/simp_rw.lean | 5e874625d60c0c058f4addd164f87d24e0eb8a8a | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 1,611 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import data.nat.basic
import data.set.basic
import tactic.simp_rw
/-!
# Tests for `simp_rw` extensions
-/
-- `simp_rw` can perform rewrites under binders:
example : (λ (x... |
bb8b8b7e33c7726477f962619c9ba897ea132ff2 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/forest.lean | 3215cc57895347327652ef647fd2ad501c600993 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,484 | lean | import data.prod data.unit
open prod
inductive tree (A : Type) : Type :=
node : A → forest A → tree A
with forest : Type :=
nil : forest A,
cons : tree A → forest A → forest A
namespace manual
definition tree.below.{l₁ l₂}
(A : Type.{l₁})
(C₁ : tree A → Type.{l₂})
(C₂ : forest A → Type.{l₂})
(t :... |
9cade9c68cbbc19f925efc33dfae191ecc428c4c | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /analysis/limits.lean | 2c8303e6150f15fc28dca3d78a0b41c4f2852e7e | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,120 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
A collection of limit properties.
-/
import algebra.big_operators algebra.group_power
analysis.metric_space analysis.of_nat analysis.topology.infinite_sum
noncomputab... |
72371125ae1547e3da66306a9b6a7fe4cc795eae | 37a833c924892ee3ecb911484775a6d6ebb8984d | /src/category_theory/graphs/default.lean | 3528557fc40dc3e05d93c7f8b89ea8ca6c7e6761 | [] | no_license | silky/lean-category-theory | 28126e80564a1f99e9c322d86b3f7d750da0afa1 | 0f029a2364975f56ac727d31d867a18c95c22fd8 | refs/heads/master | 1,589,555,811,646 | 1,554,673,665,000 | 1,554,673,665,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,985 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan and Scott Morrison
import category_theory.tactics.obviously
import tidy.auto_cast
namespace category_theory.graphs
universes u₁ v₁ u₂ v₂
class graph (vertices ... |
b1dda821693b9e97b196a9db38d23e3a772734b7 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/imp2.lean | 75d488d441068022b348a2f4059f57651e200157 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 110 | lean | import data.num
check (λ {A : Type.{1}} (a : A), a) (10:num)
check (λ {A} a, a) 10
check (λ a, a) (10:num)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.