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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dc35eeecd55854578a60cd11ba30b9f5a1fe5ef0 | 01ae0d022f2e2fefdaaa898938c1ac1fbce3b3ab | /categories/transport.lean | 00d8d3d08e0ac599c7e2095cd4954a6bfea1aefc | [] | no_license | PatrickMassot/lean-category-theory | 0f56a83464396a253c28a42dece16c93baf8ad74 | ef239978e91f2e1c3b8e88b6e9c64c155dc56c99 | refs/heads/master | 1,629,739,187,316 | 1,512,422,659,000 | 1,512,422,659,000 | 113,098,786 | 0 | 0 | null | 1,512,424,022,000 | 1,512,424,022,000 | null | UTF-8 | Lean | false | false | 565 | lean | import .tactics
lemma {u v} congr_refl {α : Sort u} {β : Sort v} {f₁ f₂ : α → β} (h₁ : f₁ = f₂) (a : α) : congr h₁ (eq.refl a) = congr_fun h₁ a :=
begin
reflexivity,
end
lemma {u v} symm_congr_fun {α : Sort u} {β : α → Sort v} {f g : Π x, β x} (h : f = g) (a : α) : eq.symm (congr_fun h a) = congr_fun (eq.symm h) a ... |
5ed6b3593f189f7b415367a61215590a5f66fe96 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebraic_topology/fundamental_groupoid/product.lean | d3c3594941a8379f2aec78108afa8bf7cd77838a | [
"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 | 7,427 | lean | /-
Copyright (c) 2022 Praneeth Kolichala. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Praneeth Kolichala
-/
import category_theory.groupoid
import algebraic_topology.fundamental_groupoid.basic
import topology.category.Top.limits
import topology.homotopy.product
/-... |
c9950d1752ebb07446917bc5d4c255f3f5f5ba3e | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/deprecated/subring.lean | a786a26c885ae231dc4752073fac2a725c99a0b4 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 8,294 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import deprecated.subgroup
import deprecated.group
universes u v
open group
variables {R : Type u} [ring R]
section prio
set_option default_priority 100 -- see No... |
3c3dfa32484f08d8252353256cedc1cf7115ca2d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/509.lean | 2eb1d933b2c69619b3aefa24d796d697f73534a2 | [
"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 | 911 | lean | class has_note (M : Type) where
note : M
notation "♩" => has_note.note
class has_note2 (M : Type) extends has_note M
variable {ι : Type} (β : ι → Type)
structure foo [∀ i, has_note (β i)] : Type where
to_fun : ∀ i, β i
instance foo.has_note [∀ i, has_note (β i)] : has_note (foo (λ i => β i)) where
note := { ... |
651f59d601e3e10bd5f663d9a1f4489202bcadff | 4fa161becb8ce7378a709f5992a594764699e268 | /src/category_theory/limits/preserves.lean | d229da979dcb0b744641bb73cbc973eac0594ba9 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 12,549 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton, Bhavik Mehta
-/
import category_theory.limits.limits
/-!
# Preservation and reflection of (co)limits.
There are various distinct notions of "preserving l... |
dae45bff8a2de18542b19fbbc3b68576e57d728d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/group/units.lean | 060aeef30d9fdfacec4f2aafc7424016e1f45e0d | [
"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 | 20,082 | lean | /-
Copyright (c) 2017 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johannes Hölzl, Chris Hughes, Jens Wagemaker, Jon Eugster
-/
import algebra.group.basic
import logic.unique
import tactic.nontriviality
/-!
# Units (i.e., invert... |
5dd4152726ea614c3fd4f7c1e3aff36b389cf4d8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/atoms.lean | e7863c9974d326463331fcedddf7a6e9d861922c | [
"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 | 30,269 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import order.modular_lattice
import order.well_founded
/-!
# Atoms, Coatoms, and Simple Lattices
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this fi... |
985e9d2bbcaf07617c6d9eeb6e3a4275f15af88a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/IO2.lean | 8235b822005680aa6a15769b7c7f24e6cf6af0a4 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 383 | lean | import system.io
open list io
/- B and unit must be in the same universe
So, we must put B at Type₁ or use poly_unit
since unit is at Type₁
-/
definition foreach {A : Type} {B : Type} : list A → (A → io B) → io punit
| [] f := return punit.star
| (x::xs) f := do f x, foreach xs f
#eval foreach [1,2,3,4,5]... |
c41d46efbcb0ffae18f96c6ca8fd9c4a32afc311 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Compiler/LCNF/Simp.lean | 7361938464ad6ae2e1bdc4717a33b7eddba61e07 | [
"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 | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 2,604 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.LCNF.ReduceJpArity
import Lean.Compiler.LCNF.Renaming
import Lean.Compiler.LCNF.Simp.Basic
import Lean.Compiler.LCNF.Simp.FunDeclInfo
i... |
49f0c258c53fe084a90c960e618473adbca27a63 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Lean/Scopes.lean | 56ac510af69fb8fc1646a226e1bd477744e23521 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,706 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Environment
namespace Lean
/- Scope management
TODO: delete after we delete parser implemented in C++.
We have decided to store scope informa... |
fc7b2a718407211c9af9134308378b4b564f0e98 | 2cf781335f4a6706b7452ab07ce323201e2e101f | /lean/deps/galois_stdlib/src/galois/data/char.lean | 027e0d14ba6cd79874f2f9fe2531eade1ad9eec9 | [
"Apache-2.0"
] | permissive | simonjwinwood/reopt-vcg | 697cdd5e68366b5aa3298845eebc34fc97ccfbe2 | 6aca24e759bff4f2230bb58270bac6746c13665e | refs/heads/master | 1,586,353,878,347 | 1,549,667,148,000 | 1,549,667,148,000 | 159,409,828 | 0 | 0 | null | 1,543,358,444,000 | 1,543,358,444,000 | null | UTF-8 | Lean | false | false | 2,775 | lean | import galois.logic
import tactic.fin_cases
namespace char
/-- Predicate that holds if character is a 7-bit ascii printable character. -/
def is_ascii7_printable (c:char) : Prop := 0x20 ≤ c.val ∧ c.val ≤ 0x7e
local attribute [reducible] is_ascii7_printable
namespace is_ascii7_printable
instance decidable : decidabl... |
8b5790e2841d42f8caff79e6271421af7ea2df34 | a5e2e6395319779f21675263bc0e486be5bc03bd | /bench/asymptotics.lean | 5607e943496291a592a4bea2d60cfa8781eed645 | [
"MIT"
] | permissive | AndrasKovacs/smalltt | 10f0ec55fb3f487e9dd21a740fe1a899e0cdb790 | c306f727ba3c92abe6ef75013da5a5dade6b15c8 | refs/heads/master | 1,689,497,785,394 | 1,680,893,106,000 | 1,680,893,106,000 | 112,098,494 | 483 | 26 | MIT | 1,640,720,815,000 | 1,511,713,805,000 | Lean | UTF-8 | Lean | false | false | 14,062 | lean | set_option maxRecDepth 10000
universe i
def CNat : Type 1 := ∀ (N : Type), (N → N) → N → N
def czero : CNat := λ n s z => z
def csuc : CNat → CNat := λ a n s z => s (a n s z)
def Vec : Type → CNat → Type 1
:= λ A n => ∀ (V : CNat → Type), (∀ n, A → V n → V (csuc n)) → V czero → V n
def nil {A:Type} : Vec A czero
... |
3011896a55895445d5bab9e0981c6be998773ed1 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/invertible.lean | 8a980c994d89095b2693d8adee1f17b3a1ea793e | [
"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 | 11,956 | 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 algebra.group.units
import algebra.ne_zero
import algebra.ring.basic
/-!
# Invertible elements
This file defines a typeclass `invertible a` for elements `a` with ... |
8b481232c70058c85750e41a0b27eda30d04814a | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /test/norm_cast.lean | 04f8e12710fc04b875adff18dc7849e08eee0d8a | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 2,668 | lean | /-
Tests for norm_cast
-/
import tactic.norm_cast
import data.complex.basic -- ℕ, ℤ, ℚ, ℝ, ℂ
constants (an bn cn dn : ℕ) (az bz cz dz : ℤ) (aq bq cq dq : ℚ)
constants (ar br cr dr : ℝ) (ac bc cc dc : ℂ)
example : (an : ℤ) = bn → an = bn := λ h, by exact_mod_cast h -- by simp
example : an = bn → (an : ℤ) = bn := λ h,... |
3ed18f66553491b5d9705a3a413a0bf4bdde0232 | 28be2ab6091504b6ba250b367205fb94d50ab284 | /src/game/intro.lean | e2899716ea7472f8da19b0dcd87cc4bef1499683 | [
"Apache-2.0"
] | permissive | postmasters/natural_number_game | 87304ac22e5e1c5ac2382d6e523d6914dd67a92d | 38a7adcdfdb18c49c87b37831736c8f15300d821 | refs/heads/master | 1,649,856,819,031 | 1,586,444,676,000 | 1,586,444,676,000 | 255,006,061 | 0 | 0 | Apache-2.0 | 1,586,664,599,000 | 1,586,664,598,000 | null | UTF-8 | Lean | false | false | 3,755 | lean | /-
# The Natural Number Game, version 1.2rc2
## By Kevin Buzzard and Mohammad Pedramfar.
Works in Chrome. Usually works in other browsers. If you see "Lean is busy" and it hasn't gone
away after about 20 seconds, try Chrome. Recent Firefox works fine. Safari
13.0.3 has been reported not to work, but Safari 13.1 appa... |
95cb25efa82ae72d3ef2297762a7f9d18c9eaec8 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/fin.lean | 40cb6f6ca7d47d0b80678f342f6bb5d45e69fc9b | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 1,563 | lean | import data.nat.basic
open fin nat
/-- Embedding of `fin n` in `fin (n+1)` -/
def raise_fin {n : ℕ} (k : fin n) : fin (n + 1) := ⟨val k, lt_succ_of_lt (is_lt k)⟩
theorem eq_of_lt_succ_of_not_lt {a b : ℕ} (h1 : a < b + 1) (h2 : ¬ a < b) : a = b :=
have h3 : a ≤ b, from le_of_lt_succ h1,
or.elim (eq_or_lt_of_not_lt h2... |
bcf45efb8f3329ad2feba238a715b5b8c554fee2 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/offset_is_def_eq_trick.lean | 2be963cf29e8e35bf885945db55f97b8a5cca555 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 238 | lean | universe variables u
inductive Vec (α : Type u) : nat → Type u
| nil {} : Vec 0
| cons : Π {n}, α → Vec n → Vec (nat.succ n)
def head {α} : Π {n}, Vec α (n+1) → α
| n (Vec.cons h t) := h
#check @head.equations._eqn_1
|
d16ad129b698f8963978d566e38378522b74a261 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/analysis/complex/roots_of_unity.lean | 29b7ab71c6eee0aafc86968d41316e285ed74055 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 3,566 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import analysis.special_functions.trigonometric
import ring_theory.roots_of_unity
/-!
# Complex roots of unity
In this file we show that the `n`-th complex roots of... |
c8bb6d137ad502681f2ad9faa19ccf3cb52f7aca | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/ring.lean | e4d1f554d5c95bd6a0632832d434953a17bf2124 | [
"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 | 28,904 | 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 tactic.norm_num
/-!
# `ring`
Evaluate expressions in the language of commutative (semi)rings.
Based on <http://www.cs.ru.nl/~freek/courses/tt-2014/read/10.1.... |
e338a1e515f53f45cf138923c773dfcfee735a31 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/ring_theory/fractional_ideal.lean | b9049d7ac93716afc3e0eb38aca28b6f0019f7dd | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 24,264 | 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 ring_theory.localization
import ring_theory.principal_ideal_domain
/-!
# Fractional ideals
This file defines fractional ideals of an integral domain and proves bas... |
93b9c868e9598b5f16f3bc14f809d50a4d220166 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/monoidal/functor_category.lean | 0f5bc2d773ff6d48e5b8e07eae09304fe5750a9d | [
"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 | 5,593 | 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 category_theory.monoidal.braided
import category_theory.functor.category
import category_theory.functor.const
/-!
# Monoidal structure on `C ⥤ D` when `D` is ... |
0a274d02b17e8068966c16f658d6bb74eaf95af7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/integral/exp_decay.lean | aaf1b899783dd4e54cb42165b9b2dbe9d15eaf69 | [
"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,977 | lean | /-
Copyright (c) 2022 David Loeffler. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Loeffler
-/
import measure_theory.integral.interval_integral
import measure_theory.integral.integral_eq_improper
/-!
# Integrals with exponential decay at ∞
> THIS FILE IS SYNC... |
ae6e26f8da6a97d7af85f1dc23fdc95290d3a642 | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Elab/PreDefinition/Main.lean | cdd67b6ecbee0cfb905a1307a8e1a7cc7e134892 | [
"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",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 7,282 | 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.Elab.PreDefinition.Basic
import Lean.Elab.PreDefinition.Structural
import Lean.Elab.PreDefinition.WF.Main
import Lean.Elab.... |
63edaad87927ff3ff3e35978e7a5acecbe6c6b2c | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Init/Data/Array/BinSearch.lean | 34b940ff8efc10939af3a416912d241fa4bce74d | [
"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 | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 2,928 | lean | /-
Copyright (c) 2019 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.Array.Basic
universe u v
-- TODO: CLEANUP
namespace Array
-- TODO: remove the [Inhabited α] parameters as soon as we have the tac... |
566da2872b6e2bc8c5f5351c86939bcde5bc7914 | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/topology/algebra/group.lean | a8d6ed3272211c7fce8cbd986d4c1c1380a1655e | [
"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 | 20,811 | 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, Mario Carneiro, Patrick Massot
Theory of topological groups.
-/
import order.filter.pointwise
import group_theory.quotient_group
import topology.algebra.monoid
import... |
66aff896583c611ef86a4ff093f564e5f0bf21b8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/list/join.lean | eaeca717c82259c934da042af43efa7f8c199aa7 | [
"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 | 7,459 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Floris van Doorn, Mario Carneiro, Martin Dvorak
-/
import data.list.big_operators.basic
/-!
# Join of a list of lists
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> ... |
ae013a043908a38933d662e799ce7847e8f5a852 | 5a8eb1c11f93715e070b588e85f2961065c3714d | /books/theorem-proving-in-lean/ch02-08-2.lean | 59af9b54e8c9342ee0be2a4e88534bf543853ef2 | [
"MIT"
] | permissive | luksamuk/study | 0e19bf99d33e0793127c3d3f8ad3936fbeb36505 | 6a9417e071a8624c4cd9db696c16a3abcc430219 | refs/heads/master | 1,677,960,533,266 | 1,676,234,529,000 | 1,676,234,529,000 | 151,009,060 | 4 | 1 | MIT | 1,676,234,531,000 | 1,538,343,224,000 | C++ | UTF-8 | Lean | false | false | 253 | lean | section sigma_types
variable α : Type
variable β : α → Type
variable a : α
variable b : β a
#check sigma.mk a b
#check (sigma.mk a b).1
#check (sigma.mk a b).2
#reduce (sigma.mk a b).1
#reduce (sigma.mk a b).2
end sigma_types
|
229ae0e83caa7535e29f7523cd0872e99113e96e | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/topology/algebra/ordered.lean | cb94b0cad78def29eaf13f17707697c7ad6527f1 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 124,991 | 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, Mario Carneiro, Yury Kudryashov
-/
import tactic.tfae
import order.liminf_limsup
import data.set.intervals.image_preimage
import data.set.intervals.ord_connected
import... |
ad050810f24cbb2c23501cbfcefefe2886da85e8 | dc253be9829b840f15d96d986e0c13520b085033 | /colimit/seq_colim.hlean | 84de093863c7df9dd8f15d09644687992f2d0bea | [
"Apache-2.0"
] | permissive | cmu-phil/Spectral | 4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea | 3b078f5f1de251637decf04bd3fc8aa01930a6b3 | refs/heads/master | 1,685,119,195,535 | 1,684,169,772,000 | 1,684,169,772,000 | 46,450,197 | 42 | 13 | null | 1,505,516,767,000 | 1,447,883,921,000 | Lean | UTF-8 | Lean | false | false | 37,716 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Egbert Rijke
-/
import hit.colimit .sequence cubical.squareover types.arrow types.equiv
cubical.pathover2
open eq nat sigma sigma.ops quotient equiv pi is_t... |
350c63a2b964f70b43d1eb55564cef57346b7c26 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/equiv/transfer_instance.lean | 285ca153bc9ad53dad5475e864184fb49917869d | [
"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 | 13,461 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import algebra.algebra.basic
import algebra.field.basic
import algebra.group.type_tags
import ring_theory.ideal.local_ring
import data.equiv.basic
/-!
# Transfer alg... |
16a0e85920304d68e96309c312fcb2db1f36c199 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/exponent.lean | b7a8183ec252662d90536a627914c1814a4509ed | [
"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 | 11,489 | lean | /-
Copyright (c) 2021 Julian Kuelshammer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Kuelshammer
-/
import group_theory.order_of_element
import algebra.gcd_monoid.finset
import algebra.punit_instances
import data.nat.factorization.basic
import tactic.by_cont... |
a8235ca0b06bd43564b6148d58aa60616ce784cd | 618003631150032a5676f229d13a079ac875ff77 | /src/order/zorn.lean | b64091ad37c9b1ed9d0f6e88dacb69576c05d931 | [
"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 | 12,915 | 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
Zorn's lemmas.
Ported from Isabelle/HOL (written by Jacques D. Fleuriot, Tobias Nipkow, and Christian Sternagel).
-/
import data.set.lattice
noncomputable theory
univ... |
63a40c90efc3aaa7a7c92c25ded05e809d59d131 | 856e2e1615a12f95b551ed48fa5b03b245abba44 | /src/topology/algebra/multilinear.lean | f5d8e035af7ee0fe2d5ae13c84306281c2fb865b | [
"Apache-2.0"
] | permissive | pimsp/mathlib | 8b77e1ccfab21703ba8fbe65988c7de7765aa0e5 | 913318ca9d6979686996e8d9b5ebf7e74aae1c63 | refs/heads/master | 1,669,812,465,182 | 1,597,133,610,000 | 1,597,133,610,000 | 281,890,685 | 1 | 0 | null | 1,595,491,577,000 | 1,595,491,576,000 | null | UTF-8 | Lean | false | false | 12,858 | 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
-/
import topology.algebra.module
import linear_algebra.multilinear
/-!
# Continuous multilinear maps
We define continuous multilinear maps as maps from `Π(i : ι... |
3baf554d147603e101c1b42c6578a0dd43b667e2 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/case.lean | 76ded4bd6c98aed99b56c874fd7b1d3ead1b0452 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 1,826 | lean | example (xs : list ℕ) : ℕ :=
begin
induction xs,
case list.cons {}
end
example (xs : list ℕ) : ℕ :=
begin
cases xs,
case list.cons {}
end
example (xs : list ℕ) : ℕ :=
begin
induction xs,
case list.cons : x xs {
cases xs,
case list.cons : x xs {}
}
end
open list
example (xs : list ℕ) : ℕ :=
begi... |
ae0298b7e64c3a146bbe27de4b6f35f73a81f4a1 | bb31430994044506fa42fd667e2d556327e18dfe | /src/measure_theory/measure/open_pos.lean | acf862904523bc92617a4327e21a5ba4f2600488 | [
"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 | 7,309 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import measure_theory.measure.measure_space
/-!
# Measures positive on nonempty opens
In this file we define a typeclass for measures that are positive on nonempt... |
ee507105eac835f9b6cac2bc364a9f6c5d93e539 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/tactic26.lean | 5dc970a342840ab470188b54d6996f2af57962bd | [
"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 | 703 | lean | import standard
using tactic
inductive sum (A : Type) (B : Type) : Type :=
| inl : A → sum A B
| inr : B → sum A B
theorem inl_inhabited {A : Type} (B : Type) (H : inhabited A) : inhabited (sum A B)
:= inhabited_elim H (λ a, inhabited_intro (inl B a))
theorem inr_inhabited (A : Type) {B : Type} (H : inhabited B) :... |
91e594ec445a77acd1c3930aa13b2572360c2e29 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/univ_problem.lean | 5fa87dfe253f11f085fbc17d8e2206741aab1365 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,238 | lean | import logic data.nat.basic data.prod data.unit
open nat prod
inductive vector (A : Type) : nat → Type :=
| vnil {} : vector A zero
| vcons : Π {n : nat}, A → vector A n → vector A (succ n)
namespace vector
print definition vector.no_confusion
infixr `::` := vcons
namespace play
section
universe variab... |
50accfe8d923a0c8319f09203899dffc0dcf8463 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/run/match_tac4.lean | 6ec665061f6563ed97014f2251ee92b07c6bbadc | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 736 | lean | notation `⟪`:max t:(foldr `,` (e r, and.intro e r)) `⟫`:0 := t
check ⟪ trivial, trivial, trivial ⟫
theorem tst (a b c d : Prop) : a ∧ b ∧ c ∧ d ↔ d ∧ c ∧ b ∧ a :=
begin
apply iff.intro,
begin
intro H,
match H with
| ⟪ H₁, H₂, H₃, H₄ ⟫ := ⟪ H₄, H₃, H₂, H₁ ⟫
end
end,
begin
intro H,
match... |
748f6d678e4802f96508fd3401bd7d014645f3da | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/nat/parity.lean | 9851b36c3f40791dad5cc61cc7da1a151d023abc | [
"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 | 9,631 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Benjamin Davidson
-/
import data.nat.modeq
import algebra.parity
/-!
# Parity of natural numbers
This file contains theorems about the `even` and `odd` predicates on th... |
f48fd139b5cdfe662b2dc7262f334fac806bc4e9 | e030b0259b777fedcdf73dd966f3f1556d392178 | /tests/lean/run/pack_unpack3.lean | 8fa55f6188c743429884588fde73c4c302a01678 | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 966 | lean | inductive vec (A : Type*) : nat -> Type*
| vnil : vec 0
| vcons : Pi (n : nat), A -> vec n -> vec (n+1)
inductive tree (A : Type*)
| leaf : A -> tree
| node : Pi (n : nat), vec (list (list tree)) n -> tree
-- set_option trace.eqn_compiler true
constant P {A : Type*} : tree A → Type
constant mk1 {A : Type*} (a : A) :... |
a8fbdf91e40b9aaf58456799e95e09d0d5157673 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /library/init/meta/mk_dec_eq_instance.lean | 4ad4167ec32482165383bf362da765a3fb8c64d6 | [
"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 | 5,348 | 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
Helper tactic for showing that a type has decidable equality.
-/
prelude
import init.meta.contradiction_tactic init.meta.constructor_tactic
import init.meta.i... |
9681ac2a92011de8d4b95c3083f79b69c525bb39 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/field_theory/adjoin.lean | e76937b4c6201e804c037d8ab1f9116ce9946707 | [
"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,416 | lean | /-
Copyright (c) 2020 Thomas Browning and Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning and Patrick Lutz
-/
import deprecated.subfield
import linear_algebra.finite_dimensional
/-!
# Adjoining Elements to Fields
In this file we introduc... |
68a16ad3495b9d9b0f6ecd65fb82a8a3a3bbdea1 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/run/bigop.lean | 2406ab4a905ebcb9ad44957ccd26d518ed86b8a5 | [
"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,150 | lean | def Sequence (α : Type) := List α
def BigBody (β α) := α × (β → β → β) × Bool × β
def applyBig {α β : Type} (body : BigBody β α) (x : β) : β :=
let (_, op, b, v) := body;
if b then op v x else x
def reducebig {α β : Type} (idx : β) (r : Sequence α) (body : α → BigBody β α) : β :=
r.foldr (applyBig ∘ body) idx
def ... |
fa49568df94eb7f2f17825738232d6b124dcbcb2 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/tactic/linarith/datatypes.lean | d6f51ad71b34e9bf1d4535a00ae48014c4bc684f | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 12,768 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import meta.rb_map
import tactic.ring
import tactic.linarith.lemmas
/-!
# Datatypes for `linarith`
Some of the data structures here are used in multiple parts of... |
e50ff62a398dd9b4eea61a0eb5a1eb1e70f1f9b9 | 8930e38ac0fae2e5e55c28d0577a8e44e2639a6d | /group_theory/subgroup.lean | a267e1e784de103de4450f5b70bcc0811fa7a6cf | [
"Apache-2.0"
] | permissive | SG4316/mathlib | 3d64035d02a97f8556ad9ff249a81a0a51a3321a | a7846022507b531a8ab53b8af8a91953fceafd3a | refs/heads/master | 1,584,869,960,527 | 1,530,718,645,000 | 1,530,724,110,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,673 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mitchell Rowett, Scott Morrison
-/
import group_theory.submonoid
open set function
variables {α : Type*} {β : Type*} {s : set α} {a a₁ a₂ b c: α}
section group
variab... |
96b154f55909cce148c899e92096f8bc3ff6f26d | c777c32c8e484e195053731103c5e52af26a25d1 | /src/control/monad/basic.lean | 916599b5d74d17933258ebdb0603a8855f7ac89d | [
"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 | 2,832 | 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 logic.equiv.defs
import tactic.basic
/-!
# Monad
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
## ... |
67e4d991cc00ed95b0f2b162e8faae29baecfce5 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0720.lean | fa0822493965df63d16af6f66d1b159ccaaa1a94 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 554 | lean | import data.list.basic
open list
universe u
variables {α : Type} (x y z : α) (xs ys zs : list α)
def mk_symm (xs : list α) := xs ++ reverse xs
theorem reverse_mk_symm (xs : list α) :
reverse (mk_symm xs) = mk_symm xs :=
by simp [mk_symm]
section
local attribute [simp] reverse_mk_symm
example (xs ys : list ℕ) :
... |
9ea402f0c0cd9f28787477671d4d500c0f8a1dbe | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/measure_theory/lebesgue_measure.lean | 3232f8bcde2ae3ce675da122bd45a819a4259868 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 11,497 | 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
Lebesgue measure on the real line
-/
import measure_theory.measure_space measure_theory.borel_space
noncomputable theory
open classical set lattice filter
open nnreal (... |
36f05384e37e4f2d1fd507971fce1117262cda2d | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/run/hash.lean | 0fb3fb78960ddc489e4494ffbeeeeca26af48b76 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 245 | lean | definition id1 {A : Type} (a : A) : A := a
definition id2 (A : Type) (a : A) : A := a
(*
local t1 = get_env():find("id1"):type()
local t2 = get_env():find("id2"):type()
assert(t1:hash() == t2:hash())
assert(t1:hash_bi() ~= t2:hash_bi())
*)
|
dd1de64a64cb880ae311b14b1bd7d5a7d1c601b3 | 90323904e6ca77359449e3800bdf2f32ac4c0898 | /johnstone.lean | 97464e16717e46e117d6cc04d5ef678e06673d49 | [] | no_license | XiaohuWang0921/johnstone | 77bc5173c37e1a6530e777691b98993c17470b22 | fd2e6800643b8a9f2a1d97591319ec444e1a4681 | refs/heads/master | 1,679,196,086,807 | 1,615,292,273,000 | 1,615,292,273,000 | 341,864,701 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,222 | lean | universes u v
def monic {α : Type u} {β : Type v} (f : α → β) :=
∀ x y, f x = f y → x = y
section johnstone
open true
variables
(p : Prop)
(φ : Prop → Prop)
(μ : monic φ)
theorem johnstone : φ (φ p) = p :=
let
UT := {q // φ q},
VT := {q // φ q ∧ q},
UP := ∃ q, φ q,
VP := ∃ q, φ q ∧ q,
... |
1391fd759b59e3fc73dcbe00c9144827f39c1818 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/imo/imo2006_q3.lean | 8e3a0862d3ad4fe0b93a8f2c0d0ae2fcc34090ec | [
"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 | 5,518 | lean | /-
Copyright (c) 2021 Tian Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tian Chen
-/
import analysis.special_functions.sqrt
/-!
# IMO 2006 Q3
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
Deter... |
041e6fe91453acb60aaca504da736d739d2265f3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/fin_category_auto.lean | a89d55edd2ddfcf90bc22c536e342d3e70f23ffd | [] | 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 | 2,520 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fintype.basic
import Mathlib.category_theory.discrete_category
import Mathlib.PostPort... |
25a947eec57c5a9b625903b1f3922d8d7ff6b83c | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/section4.lean | 5cb4da3b24695fc7aaf4571ecee800524cef0f44 | [
"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 | 635 | lean | set_option pp.universes true
set_option pp.implicit true
section
universe k
parameter A : Type
section
universe variable l
universe variable u
parameter B : Type
definition foo (a : A) (b : B) := b
inductive mypair
| mk : A → B → mypair
print mypair.rec
check mypair.mk
def... |
1999518532d0916bffbea9797d332f5941ff5e6c | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/sites/adjunction.lean | c4cea48c75f04bc36d21300323a2bb2790bc366f | [
"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 | 5,076 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.sites.compatible_sheafification
import category_theory.adjunction.whiskering
/-!
In this file, we show that an adjunction `F ⊣ G` induces an adjuncti... |
32f3ca3281bfa1ef3f133afc24ba48bddad612bd | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/topology/algebra/infinite_sum.lean | 2902483670a9b42840bc731d01ac55c20f03622e | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48,312 | 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 algebra.big_operators.intervals
import topology.instances.real
import topology.algebra.module
import data.indicator_function
import data.equiv.encodable.lattic... |
efa26ff6d3a716d966ee9785259fad800a73ff48 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/order/liminf_limsup.lean | adafe31cd2008009231ba1afd838d648727558e3 | [
"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 | 45,350 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Johannes Hölzl, Rémy Degenne
-/
import order.filter.cofinite
import order.hom.complete_lattice
/-!
# liminfs and limsups of functions and filters
> THIS FILE IS... |
df376224a88653127c2243d014fdac2e9268d3a0 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/data/list/sigma.lean | f4900fbdcc857a438910a7134b18f49d31d8c6e8 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 23,984 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Sean Leather
Functions on lists of sigma types.
-/
import data.list.perm data.sigma
universes u v
namespace list
variables {α : Type u} {β : α → Type v}
/- keys -/
... |
86f158a53419b567da7bf31b1de351e2a34feed5 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/version_auto.lean | 1c659deb90da36b4fe78576c7112bbcb76dcf8a5 | [] | 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 | 432 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.nat.basic
import Mathlib.Lean3Lib.init.data.string.basic
namespace Mathlib
def lean.version : ℕ × ℕ × ℕ := (bit1 1, bit0 (bit1 (bit0 (bit1 1))), 0)
def lean.githash : string := sorry
def lean.is_release : Bool := to_bool (1 ≠ 0)
/-- Additional version descri... |
00bba2a0c304458a0e9074dd952b4eb3f0098d24 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world8/level8.lean | 5df923ab0e70bb7fe11d66e7895a42f7dcdca32a | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 578 | lean | import game.world8.level7 -- hide
namespace mynat -- hide
/-
# Advanced Addition World
## Level 8: `eq_zero_of_add_right_eq_self`
The lemma you're about to prove will be useful when we want to prove that $\leq$ is antisymmetric.
There are some wrong paths that you can take with this one.
-/
/- Lemma
If $a$ and $b$... |
e9c5f74182aeede1cc12c0f62de35ca397cf0886 | f57749ca63d6416f807b770f67559503fdb21001 | /library/theories/group_theory/pgroup.lean | 0dbce534e22a0bb3579a54b97198674203d5f4fb | [
"Apache-2.0"
] | permissive | aliassaf/lean | bd54e85bed07b1ff6f01396551867b2677cbc6ac | f9b069b6a50756588b309b3d716c447004203152 | refs/heads/master | 1,610,982,152,948 | 1,438,916,029,000 | 1,438,916,029,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,393 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Haitao Zhang
-/
import theories.number_theory.primes data algebra.group algebra.group_power algebra.group_bigops .cyclic .finsubg .hom .perm .action
open nat fin list algebra function... |
4ff1d9ff584c28ae93325833e92d0fd86f73631c | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /test/slim_check.lean | 025d7376eb6e586f449202eba85fd20c36714121 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 2,425 | lean |
import system.random.basic
import data.nat.prime
import data.zmod.basic
/-- fermat's primality test -/
def primality_test (p : ℕ) (h : fact (0 < p)) : rand bool :=
if h : 2 ≤ p-1 then do
n ← rand.random_r 2 (p-1) h,
return $ (n : zmod p)^(p-1) = 1 -- we do arithmetic with `zmod n` so that modulo and multiplicatio... |
fb8d1c00139bd461e83c849d0bdb78159a88dc6c | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/data/polynomial/eval.lean | 6c27b23ce75ae6f53eec5bc6034eef3d6b60d1a3 | [
"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 | 21,108 | 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
-/
import data.polynomial.induction
import data.polynomial.degree.definitions
import deprecated.ring
/-!
# Theory of univari... |
238f2c6845ade2a7b4bc6436f5d1ce165d25df1f | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/stuckTC.lean | ec65d2c100af04fdcf08085d2db4ccd9ddeb3dbb | [
"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 | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 1,046 | lean | namespace Ex1
inductive Ty where
| int
| bool
| fn (a ty : Ty)
@[reducible] def Ty.interp : Ty → Type
| int => Int
| bool => Bool
| fn a b => a.interp → b.interp
def test {a b c : Ty} (f : a.interp → b.interp → c.interp) (x : a.interp) (y : b.interp) : c.interp :=
f x y
def f (a b : Ty.bool.inter... |
f0f13b1116cc320125ea855cf97c58d1837bd68b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/gluing.lean | 934a506d6500bfd5e59a7e45e5e0ec8016186af5 | [
"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,567 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import topology.category.Top
import category_theory.glue_data
import category_theory.concrete_category.elementwise
/-!
# Gluing Topological spaces
Given a family of gluin... |
c739967e097babe72483128f7407a640263b27d2 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/fintype/card.lean | 7873bffbf09d20e85efea3732c8810e72b4cb6f9 | [
"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 | 2,040 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Haitao Zhang
Cardinality for finite types.
-/
import .basic data.list data.finset.card
open eq.ops nat function list finset
namespace fintype
definition card [reducible] (A : Type) [fi... |
e5f3125628a12d2bea5fde0cf93894cadf55ecc2 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/finset/pointwise.lean | 5ad07d6a985ab45c0a13806f4e13d566855032e2 | [
"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 | 31,560 | 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, Yaël Dillies
-/
import data.finset.n_ary
import data.finset.preimage
import data.set.pointwise
/-!
# Pointwise operations of finsets
This file defines pointwise a... |
a6aabda673726ff727f94b8b2b2cfd5f1f749734 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/algebra/ring.lean | f4e80e3c61bcae649c4d72bdca404be088de3035 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 8,340 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.algebra.group
/- Make sure instances defined in this file have lower priority than the ones
defined for concrete stru... |
89701ab89fbc9fe7c5e4d232404c507343a3902b | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/complex/basic.lean | 8e80f3b820262ae3f2c0c2fadb3a75941b415956 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 18,875 | 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
The complex numbers, modelled as R^2 in the obvious way.
-/
import data.real.basic tactic.ring algebra.field_power
structure complex : Type :=
(re : ℝ) (... |
6bf0c1db113cb77d8da57c2c9cd680c73cf7fef0 | df561f413cfe0a88b1056655515399c546ff32a5 | /7-advanced-multiplication-world/l4.lean | 591b94c62fa6b6ad05dac2e7d8bfe62eeb927a2c | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 682 | lean | /-
induction a with k Pk,
exfalso,
apply ha,
refl,
cases k,
repeat { rw ← one_eq_succ_zero },
repeat { rw one_mul },
intro h, exact h,
intro h,
have h2 := Pk (succ_ne_zero k),
rw succ_mul at h,
Don't think this works, fun attempt tho
-/
induction c with k Pk generalizing b,
rw mul_zero,
rw mul_eq_zero_iff,
intro h,... |
ed71b8ea98a89e1bf8c5d90c7fb4ceeac2908bea | 4fa161becb8ce7378a709f5992a594764699e268 | /src/measure_theory/giry_monad.lean | e964a67a2b0defed0c810acf25fef4f5e9ad5796 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 8,526 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import measure_theory.integration
/-!
# The Giry monad
Let X be a measurable space. The collection of all measures on X again
forms a measurable space. This constru... |
95afc39fdf7e52c79132051670c9138c9e70b564 | 8930e38ac0fae2e5e55c28d0577a8e44e2639a6d | /data/multiset.lean | ba7d0ed9a77f3a76450031d2349071c40317c62e | [
"Apache-2.0"
] | permissive | SG4316/mathlib | 3d64035d02a97f8556ad9ff249a81a0a51a3321a | a7846022507b531a8ab53b8af8a91953fceafd3a | refs/heads/master | 1,584,869,960,527 | 1,530,718,645,000 | 1,530,724,110,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 105,784 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Multisets.
-/
import logic.function order.boolean_algebra
data.list.basic data.list.perm data.list.sort data.quot data.string
algebra.order_functions algebra.... |
334e170c60f6e204d6f7c9f692a54e466a9e1a4f | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/dlist/instances.lean | cc0c8faa21507b3ab129a66aa9dac8e39787e45e | [
"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 | 981 | 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 control.traversable.equiv
import control.traversable.instances
import data.dlist
/-!
# Traversable instance for dlists
This file provides the equivalence between `... |
f66a7241e98c1aadb7dbfc6949a79b0225ef0595 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/445.lean | 3f19bcb976a8630948caa4ce004aed95703550b6 | [
"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 | 1,610 | lean | import Lean
def f : Nat → Bool
| 0 => true
| n + 1 => (match n with
| 0 => true
| _ + 1 => true) && f n
def g (i j : Nat) : Nat :=
if i < 5 then 0 else
match j with
| Nat.zero => 1
| Nat.succ j => g i j
def h (i j : Nat) : Nat :=
i +
match j with
| Nat.zero => 1
| Nat.succ j => h i ... |
ffe57ff389bb3d84bc156bf3dd7282e3da5334fa | 485c57241aa5e06451e90d4521fb46f57829cc24 | /proLogic.lean | fb35c5e9ea597ef4242a3b21cc35b07c1db795ca | [] | no_license | ngamt/Lean | 8bde6955335078b475c9057c97b59d65f3312ca7 | 08eda4561ea483e04c7e977277f4e2f0cdc834b3 | refs/heads/master | 1,584,465,933,497 | 1,527,755,565,000 | 1,527,755,565,000 | 133,787,626 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 658 | lean | example (m n : ℕ) : m + n = n + m :=
by simp
theorem t1(p q: Prop):p → q → p:=
assume hp:p,
assume hq:q,
show p, from hp
--theorem t2(p q r: Prop)(H1:q → r)(H1:q → r):=
theorem and_swap(p q : Prop):p ∧ q ↔ q ∧ p:=
begin
apply iff.intro,
intro H1,
exact and.intro(and.right H1)(and.left H1),
intro H2,
exact and... |
6e04cfe43f166c7270be024e81ef1b2964a5e7fd | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Util/SCC.lean | 887e2926d928452cb7e47f7e23dc973d36b46dc9 | [
"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 | 3,180 | 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 Std.Data.HashMap
namespace Lean.SCC
/-
Very simple implementation of Tarjan's SCC algorithm.
Performance is not a goal here since we use this mod... |
30868fd62b3fca3ff71f85acfac5eeea530f8ed4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/shrinking_lemma.lean | 0212e4856a501c39a0fe64b77b7d7f7e43cc11bf | [
"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 | 12,337 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Reid Barton
-/
import topology.separation
/-!
# The shrinking lemma
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR... |
bcf537a1c60059b26e3bb30a0324c35e13fca681 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /computability/partrec_code.lean | 75119770bd87fe1abc2b070b5d8f9301c581ba4a | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 37,490 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Godel numbering for partial recursive functions.
-/
import computability.partrec
open encodable denumerable
namespace nat.partrec
open nat (mkpair)
theorem rfind' {f}... |
b33f6ff9e2045949be8a58095a5b36e7b1d21755 | 626e312b5c1cb2d88fca108f5933076012633192 | /src/ring_theory/power_series/basic.lean | 13150f47cb64e4a55290b2f5317d4a5b26438572 | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 64,490 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kenny Lau
-/
import data.mv_polynomial
import linear_algebra.std_basis
import ring_theory.ideal.local_ring
import ring_theory.ideal.operations
import ring_theory.multip... |
bdea27a30075eb2f4996ebaa33a1f5a0fa8b4d2f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/affine_space/affine_map.lean | b3e18b6b58f8270cafb56b9473a4b3b37433a6d8 | [
"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 | 22,395 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import algebra.add_torsor
import data.set.intervals.unordered_interval
import linear_algebra.affine_space.basic
import linear_algebra.bilinear_map
import linear_algebra.p... |
bf4d6f92a2394cce5d234608243b8bd242aa1d67 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/basic.lean | 79d858fd130905abce34be93f6fc5fc32fd70ce9 | [
"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 | 56,679 | 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, Mario Carneiro, Jeremy Avigad
-/
import order.filter.ultrafilter
import order.filter.partial
import algebra.support
/-!
# Basic theory of topological spaces.
The main... |
fc36304dde8fb4060515e34d00729c07b76c75be | 297c4ceafbbaed2a59b6215504d09e6bf201a2ee | /finset/basic.lean | e5907d41dec848c9ab71ba9dd9fbd09a692433a5 | [] | no_license | minchaowu/Kruskal.lean3 | 559c91b82033ce44ea61593adcec9cfff725c88d | a14516f47b21e636e9df914fc6ebe64cbe5cd38d | refs/heads/master | 1,611,010,001,429 | 1,497,935,421,000 | 1,497,935,421,000 | 82,000,982 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,185 | lean | import ..library_dev.data.list.set ..library_dev.data.list.perm .quot .misc
open list subtype nat
definition nodup_list (A : Type) := {l : list A // nodup l}
variable {A : Type}
definition to_nodup_list_of_nodup {l : list A} (n : nodup l) : nodup_list A := ⟨l,n⟩
definition to_nodup_list [decidable_eq A] (l : list A... |
607430aa8cf8a155d66e1ffd249b9a3dc2ccf5e5 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Compiler/ExternAttr.lean | b910dff069aa6e523c551245925a442f81b43025 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,959 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Expr
import Lean.Environment
import Lean.Attributes
import Lean.ProjFns
import Lean.Meta.Basic
namespace Lean
inductive ExternEntry where
| ... |
80e369eab2443ae63b9e77484b3acfdfc9a6449c | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/crash.lean | 42a10394419ea4db3951f3f44d5ff047549fbd46 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 144 | lean | --
section
hypothesis P : Prop.
definition crash
:= assume H : P,
have H' : ¬ P,
from H,
_.
end
|
bbc6a825c3f16eafc9914619dfe2a3eb2b93ceda | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/big_operators/default.lean | deda0d18906845df3cbffd322de84342b8197e4d | [
"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 | 416 | lean | -- Import this file to pull in everything about "big operators".
-- When preparing a contribution to mathlib, it is best to minimize the imports you use.
import algebra.big_operators.order
import algebra.big_operators.intervals
import algebra.big_operators.ring
import algebra.big_operators.pi
import algebra.big_operato... |
063464aa076cf482d4aeed392d2e5990fe3299ad | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/600a.lean | b01a921363086662cb979ea5ae693488f8242772 | [
"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 | 20 | lean | /- - -/
print "ok"
|
ca001c4d56c6dfcba2bca8e861876b53a5697d0c | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/roots_of_unity.lean | 13c9423bcb84e3e1b90a9192857207c0889838b6 | [
"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 | 40,398 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.nat.parity
import data.polynomial.ring_division
import group_theory.specific_groups.cyclic
import ring_theory.integral_domain
import number_theory.diviso... |
42d9155600b60f0aa5acc7f6085adcf96293e35b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/geom_sum.lean | 6448180fcf0e40c594ef53da8172d08cde1a5d9f | [
"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 | 13,339 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
-/
import algebra.group_with_zero.power
import algebra.big_operators.order
import algebra.big_operators.ring
import algebra.big_operators.intervals
/-!
# Partial sum... |
a3b56026669cfebaa1018601034cf55283a506a9 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /11_Tactic-Style_Proofs.org.33.lean | 1495773497e53d97ebf12c81ac8c6513d230791d | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 280 | lean | import standard
example (p q r : Prop) : p ∧ q ↔ q ∧ p :=
begin
apply iff.intro,
{ intro H,
match H with
| and.intro H₁ H₂ := by apply and.intro; repeat assumption
end },
{ intro H,
match H with
| and.intro H₁ H₂ := by apply and.intro; repeat assumption
end },
end
|
a7498eaa3c01bdf6993045bba4aef17407bde84e | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/io.lean | f5c52c5ec900f7ab528d7a1cbeb0283f9fdf6c13 | [
"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 | 8,804 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson, Jared Roesch, Leonardo de Moura, Sebastian Ullrich
-/
prelude
import init.control.estate init.data.string.basic
/-- Like https://hackage.haskell.org/package/ghc-Pr... |
1f9354a2d399f209b30b8b072615ea6db8c1d84b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/omega/int/preterm.lean | 5d793e5325c99bb5d34a9e573eb9087a0283e735 | [
"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,862 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
/-
Linear integer arithmetic terms in pre-normalized form.
-/
import tactic.omega.term
namespace omega
namespace int
/-- The shadow syntax for arithmetic terms. All constan... |
9c5bd99d68193b47ab2460046cd43af44f8dce12 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/linarith/preprocessing.lean | 970feebccff78814d78dcbf822cdd335c9d99b0f | [
"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 | 12,399 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import tactic.linarith.datatypes
import tactic.zify
import tactic.cancel_denoms
/-!
# Linarith preprocessing
This file contains methods used to preprocess inputs... |
1a2158d832152614a7b86d2afd7bac2270466a87 | 618003631150032a5676f229d13a079ac875ff77 | /src/order/filter/bases.lean | af2b2ef2ae2f564e15a8fd29502f1858be95a99a | [
"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 | 28,582 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov, Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import order.filter.basic
import data.set.countable
/-!
# Filter bases
A filter basis `B : filter_basis α` on a typ... |
c244caf5d26ef83b3deedfd4054bd0e40843ca69 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/ring_theory/subring.lean | 8b691300b165051fb532d72bd72db492d313665c | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 30,862 | lean | /-
Copyright (c) 2020 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors : Ashvni Narayanan
-/
import deprecated.subring
import group_theory.subgroup
import ring_theory.subsemiring
/-!
# Subrings
Let `R` be a ring. This file defines the "bundled" subrin... |
a757b1cb69efd78470ea54f9ce303ce63d0dabbd | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /analysis/topology/continuity.lean | ffea2905d7f590d276b32bf327d481e5bdde5663 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 36,711 | 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, Mario Carneiro
Continuous functions.
Parts of the formalization is based on the books:
N. Bourbaki: General Topology
I. M. James: Topologies and Uniformities
A ma... |
44075f698e4a420ef00d135cb0bdda640a8f20ef | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/SubExpr.lean | 8dd256327b3c09c16fed2677fbc6b7577e703ac7 | [
"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 | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 5,940 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Daniel Selsam, Wojciech Nawrocki, E.W.Ayers
-/
import Lean.Meta.Basic
import Lean.Data.Json
import Std.Data.RBMap
namespace Lean
/-- A position of a subexpr... |
57acb389c867f4d3249ec4f0d274af6baa2eba43 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Elab/Do.lean | 4bd17366abeb23e2326a49f303e3ce0aa4dc8504 | [
"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 | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 72,049 | 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.Elab.Term
import Lean.Elab.BindersUtil
import Lean.Elab.PatternVar
import Lean.Elab.Quotation.Util
import Lean.Parser.Do
-- HACK: avoid code ex... |
7e0e32c53f5b2794082e67330715f792b2b6d69f | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/empty.lean | 5613cd35187d772a0c963ba65075319900ebacd4 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 168 | lean | --
open inhabited nonempty classical
lemma v1 : Prop := epsilon (λ x : Prop, true)
inductive Empty : Type
noncomputable definition v2 : Empty := epsilon (λ x, true)
|
5232ed9d080d96c1dc59e5c1254d9f02efdf53f2 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/algebra/monoid_algebra.lean | 717c4d50e0f7ca33171765ec14b373399b574d98 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 55,863 | 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, Yury G. Kudryashov, Scott Morrison
-/
import algebra.big_operators.finsupp
import linear_algebra.finsupp
import algebra.non_unital_alg_hom
/-!
# Monoid algebras
When ... |
ab31612fa31947baae198a109e312e0807ad3879 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/group/ulift.lean | 49170b7c835cc09a9c4a52aaf29a3324a5c41737 | [
"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 | 6,780 | 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 data.int.cast.defs
import algebra.hom.equiv.basic
import algebra.group_with_zero.inj_surj
/-!
# `ulift` instances for groups and monoids
> THIS FILE IS SYNCH... |
21f1a11954660e3518719d7056c3fafb36685ec2 | e514e8b939af519a1d5e9b30a850769d058df4e9 | /examples/rubiks_cube.lean | 341a7d2e2e38332f22d15dbe65a4314b635e14dc | [] | no_license | semorrison/lean-rewrite-search | dca317c5a52e170fb6ffc87c5ab767afb5e3e51a | e804b8f2753366b8957be839908230ee73f9e89f | refs/heads/master | 1,624,051,754,485 | 1,614,160,817,000 | 1,614,160,817,000 | 162,660,605 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 17,584 | lean | import tactic.rewrite_search
abbreviation C := ℕ
variables X_1 X_2 X_3 X_4 X_5 X_6 X_7 X_8 X_9 X_10 X_11 X_12 X_13 X_14 X_15 X_16 X_17 X_18 X_19 X_20 X_21 X_22 X_23 X_24 X_25 X_26 X_27 X_28 X_29 X_30 X_31 X_32 X_33 X_34 X_35 X_36 X_37 X_38 X_39 X_40 X_41 X_42 X_43 X_44 X_45 X_46 X_47 X_48 : C
constant Rubik : C → C → ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.