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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f90ee7573e61f4faaabd914cea583b23582446c | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world1/level2.lean | b5ab08dd8d3e2acdb6f751aa34e03685cebf2434 | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 4,629 | lean | import mynat.mul -- hide
namespace mynat -- hide
/-
# Tutorial world
## level 2: The rewrite (`rw`) tactic.
The rewrite tactic is the way to "substitute in" the value
of a variable. In general, if you have a hypothesis of the form `A = B`, and your
goal mentions the left hand side `A` somewhere, then
the `rewrite` t... |
4b8aded70f3a55e7c398735c89a6dd3eee86f9f5 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/dedekind_domain_auto.lean | 2da5b7fc2c67dc1b1a8447da3667c52a87b4d3f3 | [] | 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 | 8,917 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.discrete_valuation_ring
import Mathlib.ring_... |
6914c9413751153f205485818be92d4ba53e1bb7 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/eq6.lean | 1a8784f4deeabff950148711a3e875284e562851 | [
"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 | 419 | lean | import data.list
open list
definition append {A : Type} : list A → list A → list A,
append nil l := l,
append (h :: t) l := h :: (append t l)
theorem append_nil {A : Type} (l : list A) : append nil l = l :=
rfl
theorem append_cons {A : Type} (h : A) (t l : list A) : append (h :: t) l = h :: (append t l) :=
rfl
... |
21dffbecc045d7854b5adb3378f558fee21231ec | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/tactic/omega/coeffs.lean | afe399286e96e22005642a1a6b2c163af9bfa6fc | [
"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 | 10,585 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
/-
Non-constant terms of linear constraints are represented
by storing their coefficients in integer lists.
-/
import data.list.func
import tactic.ring
import tactic.omega.mi... |
e0037617f0c6fcfc1a90c93ff5e7ec93fdc08f8c | a7dd8b83f933e72c40845fd168dde330f050b1c9 | /src/analysis/normed_space/basic.lean | 53fbc629f193a2da52bad6e19046a9689cbc6fa9 | [
"Apache-2.0"
] | permissive | NeilStrickland/mathlib | 10420e92ee5cb7aba1163c9a01dea2f04652ed67 | 3efbd6f6dff0fb9b0946849b43b39948560a1ffe | refs/heads/master | 1,589,043,046,346 | 1,558,938,706,000 | 1,558,938,706,000 | 181,285,984 | 0 | 0 | Apache-2.0 | 1,568,941,848,000 | 1,555,233,833,000 | Lean | UTF-8 | Lean | false | false | 24,315 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Normed spaces.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.pi_instances
import linear_algebra.basic
import topology.instances.nnreal topology.instances.complex
variables {α : Ty... |
42ee2ce18a8bc57e055d4229cc55b7d2edc2fee5 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/K_bug.lean | 0e56a3bb7a2e9c04b0ad8d65d13e2ca61032e8b8 | [
"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 | 379 | lean | open eq.ops
inductive Nat : Type :=
zero : Nat |
succ : Nat → Nat
namespace Nat
definition pred (n : Nat) := Nat.rec zero (fun m x, m) n
theorem pred_succ (n : Nat) : pred (succ n) = n := rfl
theorem succ_inj {n m : Nat} (H : succ n = succ m) : n = m
:= calc
n = pred (succ n) : pred_succ n⁻¹
... = pred (succ ... |
32fd84ccc8e0d61f256a33529a3939f7c754f4eb | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/special_functions/log/deriv.lean | aa7477d789953ffceb272fd211d9d101061d2c3a | [
"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 | 12,625 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne
-/
import analysis.special_functions.log.basic
import analysis.special_functions.exp_deriv
/-!
# Derivative and series expan... |
db42942abb523f95e817d57976749d45370bc680 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/mv_polynomial/basic.lean | 91b0e27c74232882907fad6f4350c2057834b09a | [
"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 | 4,259 | 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 algebra.char_p.basic
import data.polynomial.algebra_map
import data.mv_polynomial.variables
import linear_algebra.finsupp_vector_space
/-!
# Multivariate pol... |
4e492f4e768f2563c1e0aea8f19bc64638786e7f | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/ring_theory/localization.lean | aedc1ba28d44a11c490e60a15c94a8e0bb3a95e9 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 27,033 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin
-/
import tactic.ring data.quot data.equiv.ring ring_theory.ideal_operations group_theory.submonoid
universes u v
local attribute [instance, prio... |
977e05d961de4deec8d66aa6e84361fe81ebe989 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/category_theory/limits/cones.lean | 5f2a80784b953c667637cc4c7539a638868dda42 | [
"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 | 20,969 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.const
import category_theory.yoneda
import category_theory.reflects_isomorphisms
universes v u u' -- declare... |
97c99bff7c7bfd3837b5ad456129ef7ec521d5c0 | 6fbf10071e62af7238f2de8f9aa83d55d8763907 | /hw/hw1.lean | 8437264e1e0da2e4fc06c34b9aebede10be7d2ad | [] | no_license | HasanMukati/uva-cs-dm-s19 | ee5aad4568a3ca330c2738ed579c30e1308b03b0 | 3e7177682acdb56a2d16914e0344c10335583dcf | refs/heads/master | 1,596,946,213,130 | 1,568,221,949,000 | 1,568,221,949,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,061 | lean | section hw1
/-
1a. (10 pts) Define a binding from the name "seven" to the value 7.
-/
/-
1b. (10 pts) Use #check to determine the type of "seven"
-/
/-
2a. (15 pts) Define a function in "C Style" (see section 2.4.6.2)
called "cube" that takes a single argument, x, and returns the value x^3
-/
/-
2b. (5 pts) Use #ch... |
c46bbc1ccf0e6674fd4beb75612c759ebcd2e679 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/run/print_poly.lean | ce32610e497471134e9c2621e9e7be99ca75da05 | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 161 | lean | open nat
#print pp.max_depth
#print +
#print -
#print nat
#print nat.zero
#print nat.add
#print nat.rec
#print classical.em
#print quot.lift
#print nat.of_num
|
5ec12c3fb5c97baaea81cd314cd337ee459d0dca | e3b487086b7799a7f044a4ee72ad8f02b471d70a | /src/exercises_sources/thursday/morning/groups_rings_fields.lean | e0f868a112608e49d48203097ab355f9bcb31b4d | [] | permissive | sanderdahmen/lftcm2020 | aa47df3d5f6ffd630a9cf7851a79755c85040e2c | 47a894daf266fc45f3b72148a8161666dd56616e | refs/heads/master | 1,668,751,789,893 | 1,594,587,961,000 | 1,594,587,961,000 | 279,150,369 | 0 | 0 | MIT | 1,594,589,049,000 | 1,594,589,048,000 | null | UTF-8 | Lean | false | false | 1,970 | lean | import linear_algebra.finite_dimensional
import ring_theory.algebraic
import data.zmod.basic
import tactic
section exercise1
/-
We will warm up with a well-known result:
“Subgroups of abelian groups are normal.”
Hints for proving this result:
* Notice that `normal` is a structure,
which you can see by going to... |
09a730c7608fc0be003876dac1a2eadb63252919 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/pldi/intro.lean | 6bf74c380f70da0908a53ce574d26661f2f2b723 | [
"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,859 | lean | #check "hello"
#check 1
#check fun (x : Nat) => x + 1
#eval (fun (x : Nat) => x + 1) 3
-- Recursive functions
def fact : Nat → Nat
| 0 => 1
| n+1 => (n+1) * fact n
#eval fact 4
#eval fact 20
-- Dot notation
#eval List.map (fun x => toString x) [1, 2, 3]
#check @toString
#eval [1, 2, 3].map fun x => toString... |
0607010cd439fa8900833933bd0128452bd8f435 | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /examples/monoids.lean | 975706d7efd02a3bcf2b8f1e501eaf0c9487ab47 | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 2,492 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import ..category
import ..functor
import .semigroups.semigroups
namespace tqft.categories.examples.monoids
open tqft.categories
set_option pp.... |
5df38b36bdfe63b042720a143b6c4cfc3d15f70f | 38a6d5def645a1887e1306ceb4da06ff71452096 | /common/matrix_ops.lean | 2f0b6ecdd72818990d60e7332a07e6d4ecd74a55 | [] | no_license | QTM3x/Quantum-Internet | bcc2d61e2ae7233bb2b369fedaed22a1feb6fba1 | f90e09fb6c03d35043654d8b1bec1c63d6012268 | refs/heads/master | 1,609,224,401,937 | 1,599,911,583,000 | 1,599,911,583,000 | 238,495,221 | 45 | 33 | null | 1,603,625,079,000 | 1,580,919,815,000 | Jupyter Notebook | UTF-8 | Lean | false | false | 4,171 | lean | import data.complex.basic
import linear_algebra.matrix
variables {n m k l : ℕ}
noncomputable theory
---- EIGENVALUES
def eigenvalues (M : matrix (fin n) (fin n) ℂ) : list ℝ := sorry
def positive_semidefinite (M : matrix (fin n) (fin n) ℂ) : Prop :=
∀ (e : ℝ) (he : e ∈ eigenvalues M), e ≥ 0
---- DIAGONAL MATRIC... |
e4e5559025f9051b0eb80392f76408a1b88475cc | f0050a24971f1b7315211eec6e02a8eee618ce6b | /src/common/basic.lean | 9f65bddcf046ef34160e1865a461bdce503c4480 | [
"Apache-2.0"
] | permissive | ttowncompiled/excaLibur | 9574f2acb0bafcd59f59423b63a62c15442ea5f7 | 7d8371bf998012d4f8c49d3fe2bf540e2517c688 | refs/heads/master | 1,670,710,035,703 | 1,599,670,584,000 | 1,599,670,584,000 | 292,720,923 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,624 | lean | /-
Copyright (c) Ian Riley. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ian Riley
-/
constant Ill : Prop -- indeterminate "ill-defined" proposition
constant Nil : Prop -- null proposition
constant Undfn : Prop -- undefined proposition ; not within scope
... |
b45ad0d8567dd5b3f446c9e312651e159b0f24b1 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Compiler/IR/Basic.lean | 07db6ac494fbbd060a3c1204e61b5a58906e2bb2 | [
"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 | 25,766 | 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.Data.KVMap
import Lean.Data.Name
import Lean.Data.Format
import Lean.Compiler.ExternAttr
/-
Implements (extended) λPure and λRc proposed in the ... |
c875068d149f166d2c2a3517244699ee4719cbd9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Data/Json/Printer.lean | 8bc9ab08371e907eda6b48aaa0a8389e23b8728d | [
"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 | 3,733 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Data.Format
import Lean.Data.Json.Basic
namespace Lean
namespace Json
private def escapeAux (acc : String) (c : Char) : ... |
12aaf0ba6c937f25e67d5f002ab7f842bf220f30 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/analysis/specific_limits.lean | 7e0406126ce0f0641e26fa4de4f5fccf9849a32c | [
"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 | 34,659 | 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.geom_sum
import order.filter.archimedean
import order.iterate
import topology.instances.ennreal
import tactic.ring_exp
import analysis.asymptotics
/-!... |
51c855e32488332128089513e767c19f08777579 | 3adda22358e3c0fbae44c6c35fdddbebf9358ef4 | /src/for_mathlib/decimal_expansions.lean | 2781bf8301884c6318be438d2cc5c191b113dce6 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/M1F-exam-may-2018 | 1539951b055cea5bac915bdb6fa1969e2f323402 | 8b5eca2037d4a14d6cfac3da1858b6c4119216d3 | refs/heads/master | 1,586,895,978,182 | 1,557,175,794,000 | 1,557,175,794,000 | 164,093,611 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,471 | lean | import data.real.basic
import algebra.archimedean
import tactic.norm_num
variables {β : Type} [linear_ordered_ring β] [floor_ring β]
namespace decimal
section
parameters {α : Type} [linear_ordered_ring α] [floor_ring α]
-- ⌊(real.sqrt 2 : ℝ)⌋
definition expansion_aux (r : α) : ℕ → α
| 0 := (r - floor r) * 10
| (... |
a947d90a7472d4734337b364c8f74ba8e8a1109c | 99b5e6372af1f404777312358869f95be7de84a3 | /src/hott/types/arrow_2.lean | f48d61e652f3415e3ba32de822b6b5faa3a6c0c6 | [
"Apache-2.0"
] | permissive | forked-from-1kasper/hott3 | 8fa064ab5e8c9d6752a783d74ab226ddc5b5232a | 2db24de7a361a7793b0eae4ca5c3fd4d4a0fc691 | refs/heads/master | 1,584,867,131,028 | 1,530,766,841,000 | 1,530,766,841,000 | 139,797,034 | 0 | 0 | Apache-2.0 | 1,530,766,961,000 | 1,530,766,961,000 | null | UTF-8 | Lean | false | false | 7,157 | lean | /-
Copyright (c) 2015 Ulrik Buchholtz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ulrik Buchholtz
-/
import ..function
universes u v w
hott_theory
namespace hott
open hott.is_equiv hott.function fiber
namespace arrow
@[hott] structure arrow :=
(dom : Type... |
d390e4f75ae7893f7bf28fdb19e2932aa1fde149 | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/topology/algebra/module.lean | dec1473eb27fe9b88d55acd2a2970a22fb361b9c | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48,949 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo, Yury Kudryashov
-/
import topology.algebra.ring
import topology.uniform_space.uniform_embedding
import algebra.algebra.basic
import li... |
ff38ed364000ba7cfdb9d3f5474e75c842f12883 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebraic_geometry/open_immersion.lean | eb639a052a5093cfb14aee23e35d84f75e83fb13 | [
"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 | 85,034 | 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 algebraic_geometry.presheafed_space.has_colimits
import category_theory.limits.shapes.binary_products
import category_theory.limits.preserves.shapes.pullbacks
import... |
c68b1eb204dade86ca43cc25a58cc53c917c6042 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /IMO_2008_Pb_4.lean | d3eb26a827125256a2fae2d155e6d35f40775f13 | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 395 | lean | import data.real.basic
import algebra.ring.basic
import algebra.group_power.order
import algebra.group_with_zero.basic
theorem IMO_2008_Pb_4 (f:ℝ → ℝ)(hf0:∀(x:ℝ), (0<x) → (0 <f x))
(hf: ∀(x y z w :ℝ), (0<x∧0<z∧0<y∧0<w) → ((f w^2)+(f x^2))/ (f (y^2)+(f (z^2))) = (w^2+x^2)/(y^2+z^2)):
(∀ (x:ℝ), 0<x→ f x = x)∨(∀ (x:ℝ)... |
ca27b9b39f0c8c3dda1a2f9198961f274b61f4a5 | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/data/zmod/quadratic_reciprocity.lean | 86346b234821ad4bd28a689c3c080c041d3e3757 | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 33,324 | 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 field_theory.finite data.zmod.basic algebra.pi_instances
local attribute [instance, priority 0] nat.cast_coe
local attribute [instance, priority 0] int.cast_coe
... |
47a0d31242bfac7df3d95981e4a41879ae0fda68 | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /simple_group2.lean | 0367c1ac05f6fefa8eae862dafb164b738937ce6 | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,533 | lean | import group_theory.perm group_theory.order_of_element group_theory.quotient_group
universes u v
open finset is_subgroup equiv equiv.perm quotient_group
instance {α β : Type*} [group α] [group β] [decidable_eq β] (f : α → β) [is_group_hom f] :
decidable_pred (is_group_hom.ker f) :=
λ _, decidable_of_iff _ (is_group... |
f3698c9274712883cdf80418dbccc5db8f58be25 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/fourier.lean | 72f61715e102849290c1b0341841ee0807807d8c | [
"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 | 6,673 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import measure_theory.l2_space
import measure_theory.haar_measure
import analysis.complex.circle
import topology.continuous_function.stone_weierstrass
/-!
# Fouri... |
e333f9a513ae591fe8db1a61de173937bcd9856c | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/data/polynomial/field_division.lean | 15502edd1f7dbe7145adaa578f73aafb2683cd6f | [
"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 | 19,825 | 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 algebra.gcd_monoid
import data.polynomial.derivative
import data.polynomial.ring_division
import ring_theory.euclid... |
9b40a0c04549f5a78bdfd948a4342ad19834b509 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/int/cast.lean | b0b247760d5a14c6b96b7a7c8ee8cf2fb7b87bde | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 9,734 | 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 data.int.basic
import data.nat.cast
import tactic.pi_instances
/-!
# Cast of integers (additional theorems)
This file proves additional properties about the ... |
63330dd25b6b486d6d4dbe9581925772b812e2b7 | 1136b4d61007050cc632ede270de45a662f8dba4 | /library/init/meta/tactic.lean | 1a3b6f8b2b4b10c86838ec143ff317bc063fc2b6 | [
"Apache-2.0"
] | permissive | zk744750315/lean | 7fe895f16cc0ef1869238a01cae903bbd623b4a9 | c17e5b913b2db687ab38f53285326b9dbb2b1b6e | refs/heads/master | 1,618,208,425,413 | 1,521,520,544,000 | 1,521,520,936,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 52,910 | 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.function init.data.option.basic init.util
import init.category.combinators init.category.monad init.category.alternative init.category.m... |
1f79da37f5e099ed620cc9b6e1db7c3764450393 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/elab4.lean | 4a4ea5c84c8d5a35f4a8659b54a9ace1d6909ab2 | [
"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 | 144 | lean | check λ (A : Type) (a b c d : A) (H1 : a = b) (H2 : c = b) (H3 : d = c),
calc a = b : H1
... = c : eq.symm H2
... = d : eq.symm H3
|
06f96a748c2a893a4e546e9b2abc5232c7d83f34 | 69bc7d0780be17e452d542a93f9599488f1c0c8e | /exhaustive_exam_review.lean | 8eeaffbbf8c8159b549075d535a26ae387c56cc7 | [] | no_license | joek13/cs2102-notes | b7352285b1d1184fae25594f89f5926d74e6d7b4 | 25bb18788641b20af9cf3c429afe1da9b2f5eafb | refs/heads/master | 1,673,461,162,867 | 1,575,561,090,000 | 1,575,561,090,000 | 207,573,549 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,349 | lean | /-
* Give examples of terms of various types, including basic data types and function types.
* To answer the function-type-related questions, you really must know how to write lambda expressions.
-/
/-
Three types of terms:
-/
/-
literal terms → e.g. 3, "hello", tt, lambda expressions
-/
#eval 3
#eval tt
#eval "he... |
0acf0e042d32e44dcb9876c7e842222d6ec6e217 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/big_operators/fin.lean | 13040f2bf89b154612fdd2dd5a262d6b226ba684 | [
"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,595 | lean | /-
Copyright (c) 2020 Yury Kudryashov, Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Anne Baanen
-/
import data.fintype.card
import data.fintype.fin
import logic.equiv.fin
/-!
# Big operators and `fin`
Some results about products and su... |
6e49fac0ce8db709290d7958e79cd661b1c03d1c | 57fdc8de88f5ea3bfde4325e6ecd13f93a274ab5 | /data/set/basic.lean | 535fa7e54552badae419df65e294675ec704b695 | [
"Apache-2.0"
] | permissive | louisanu/mathlib | 11f56f2d40dc792bc05ee2f78ea37d73e98ecbfe | 2bd5e2159d20a8f20d04fc4d382e65eea775ed39 | refs/heads/master | 1,617,706,993,439 | 1,523,163,654,000 | 1,523,163,654,000 | 124,519,997 | 0 | 0 | Apache-2.0 | 1,520,588,283,000 | 1,520,588,283,000 | null | UTF-8 | Lean | false | false | 35,578 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Leonardo de Moura
-/
import tactic.finish data.sigma
open function
namespace set
universes u v w x
variables {α : Type u} {β : Type v} {γ : Type w} {ι : Sort x} {a : α} {... |
c2bdbc04308c653b6c16dfe23d169ed2a2558024 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/data/set/function.lean | a8f93d36f8d98e9f1e9031429c9031054341e68d | [
"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 | 10,550 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Andrew Zipperer, Haitao Zhang
Functions between subsets of finite types.
-/
import .basic
open function eq.ops
namespace set
variables {X Y Z : Type}
/- maps to -/
de... |
55c4e5fcbb23b5c204fe7ea8acfa7c0ef722dc37 | 137c667471a40116a7afd7261f030b30180468c2 | /src/ring_theory/dedekind_domain.lean | 62605f06fe418067daf7a3f4468daecaaaaa445d | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,218 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import ring_theory.discrete_valuation_ring
import ring_theory.fractional_ideal
import ring_theory.ideal.over
/-!
# Dedekind domain... |
e4293284c9b83cd64a9ca8567be7bd51fef1608e | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/tools/super/cdcl.lean | 70b965f27812cc01eecb9c101384e37aa0c9d172 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,431 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause .clausifier .cdcl_solver
open tactic expr monad super
private meta def theory_solver_of_tactic (th_solver : tactic unit) : cdcl.solver (option cdcl.proo... |
8775bcd8da27265ab73324df282dad5408b193e6 | e39f04f6ff425fe3b3f5e26a8998b817d1dba80f | /order/bounded_lattice.lean | d3a922cbb5ca9e1ae364f4ba2f9f71631e1effab | [
"Apache-2.0"
] | permissive | kristychoi/mathlib | c504b5e8f84e272ea1d8966693c42de7523bf0ec | 257fd84fe98927ff4a5ffe044f68c4e9d235cc75 | refs/heads/master | 1,586,520,722,896 | 1,544,030,145,000 | 1,544,031,933,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,250 | 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
Defines bounded lattice type class hierarchy.
Includes the Prop and fun instances.
-/
import order.lattice data.option
tactic.pi_instances
set_option old_stru... |
70009954f44a16093a89bef73efdf590803c40c2 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/for_mathlib/is_locally_constant.lean | 08d6faa5f3c806bb3e9846e2a3c70e2dd02d4edb | [] | 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 | 1,313 | lean | import topology.separation
import topology.locally_constant.basic
import topology.discrete_quotient
import data.setoid.partition
noncomputable theory
variables {X : Type*} [topological_space X]
open set
section
variables {Y : Type*}
lemma is_locally_constant_iff_clopen_fibers {f : X → Y} :
is_locally_constant f ... |
c390773a1a152c30b1c25594df0b91f2a1d72352 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/monoidal/internal/limits_auto.lean | 038fe978283a99fa611ac544795d2ba6613bda51 | [] | 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 | 4,481 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.monoidal.internal.functor_category
import Mathlib.category_theory.monoidal.... |
393a0d66b14728b56f9eba2e72bf9464527e8031 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/algebra/order/field_defs.lean | a345e440e108c8f2a944e91e913164c30ec3bfe1 | [
"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 | 1,654 | 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.basic
import algebra.group_power.lemmas
import algebra.group_power.order
import algebra.order.ri... |
d71721b1f5d2099aab67644f575c9167036408ca | 2f8bf12144551bc7d8087a6320990c4621741f3d | /library/init/lean/frontend.lean | c98c8808f755ae891ec5aff2d66cf7bd8007ab00 | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean4 | eb63a12960e69823749edceb4f23fd33fa2253ce | fa16920a6a7700cabc567aa629ce4ae2478a2f40 | refs/heads/master | 1,589,935,810,594 | 1,557,177,860,000 | 1,557,177,860,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,233 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich
-/
import init.lean.parser.module init.lean.expander init.lean.elaborator init.lean.util init.io
namespace Lean
open Lean.Parser
open Lean.Expander
open Lean.... |
f4137f8811d50cd94d6055648695b73e0bc61bad | 827a8a5c2041b1d7f55e128581f583dfbd65ecf6 | /weak_univalence.hlean | b871db83b8cf387adaabd144b4a4cda3a0e284bb | [
"Apache-2.0"
] | permissive | fpvandoorn/leansnippets | 6af0499f6f3fd2c07e4b580734d77b67574e7c27 | 601bafbe07e9534af76f60994d6bdf741996ef93 | refs/heads/master | 1,590,063,910,882 | 1,545,093,878,000 | 1,545,093,878,000 | 36,044,957 | 2 | 2 | null | 1,442,619,708,000 | 1,432,256,875,000 | Lean | UTF-8 | Lean | false | false | 743 | hlean |
import types.equiv
open eq is_equiv equiv is_trunc trunctype function
axiom weak_prop_ua {A B : Type} [is_prop A] [is_prop B] : A ≃ B → A = B :> Type
axiom is_equiv_of_imp_is_equiv {A B : Type} (f : A → B) (H : B → is_equiv f) : is_equiv f
--set_option pp.all true
--set_option pp.implicit true
theorem prop_ua {A B :... |
3601a24af5e488b5606c80ecdb6339d9285b35d5 | 93b17e1ec33b7fd9fb0d8f958cdc9f2214b131a2 | /src/sep/weak_identity.lean | 0f653f679818d8c5495a7fe656c861d87d0cd5c7 | [] | no_license | intoverflow/timesink | 93f8535cd504bc128ba1b57ce1eda4efc74e5136 | c25be4a2edb866ad0a9a87ee79e209afad6ab303 | refs/heads/master | 1,620,033,920,087 | 1,524,995,105,000 | 1,524,995,105,000 | 120,576,102 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,393 | lean | import .basic
import .prod
import .option
namespace Sep
universes ℓ
namespace WeakIdentity
inductive join {A : Alg.{ℓ}} (S : Set A)
: A.τ → A.τ → A.τ → Prop
| base : ∀ {x₁ x₂ x₃} (J : x₃ ∈ A.join x₁ x₂)
, join x₁ x₂ x₃
| in_l : ∀ {x₀ x} {q : {s // S s}} (D : A.Divides x₀ q.val)
, join x₀ x x
| i... |
cfdb0511ec7b1074b505fcbf7f301f207a1b0092 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/matchArrayLit.lean | fa820d6db949a862b52be2b3370ee87eb4af4b50 | [
"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 | 2,512 | lean | universe u v
theorem eqLitOfSize0 {α : Type u} (a : Array α) (hsz : a.size = 0) : a = #[] :=
a.toArrayLit_eq 0 hsz
theorem eqLitOfSize1 {α : Type u} (a : Array α) (hsz : a.size = 1) : a = #[a.getLit 0 hsz (of_decide_eq_true rfl)] :=
a.toArrayLit_eq 1 hsz
theorem eqLitOfSize2 {α : Type u} (a : Array α) (hsz : a.size ... |
cad939f41f10f3d38cbe7b265cfca84f343a23fc | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/Daniel1.lean | 8ac0e73d092571019e030a73cb68e40fffa8b170 | [
"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 | 449 | lean | def small (ps : Array (Nat × Nat)) : Array (Nat × Nat) :=
(ps.filter fun (p : Prod _ _) =>
match p with
| (x, y) => x == 0)
++
ps
#eval small #[(1, 2), (0, 3), (2, 4)]
variable {α β : Type} [Inhabited α] [Inhabited β]
def P (xys : Array (α × β)) (f : α → β) : Prop := True
example (xys : Array (α × β))... |
f113d0af23fee352094e52c08cd4762139339b65 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/field_theory/minimal_polynomial.lean | 3132eeb7b22d4de9696b4fb59a270dfeef8ccca9 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 9,190 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johan Commelin
-/
import ring_theory.integral_closure
import data.polynomial.field_division
/-!
# Minimal polynomials
This file defines the minimal polynomial of an eleme... |
36f8489495f623596c97fdda4d1c0454da06368b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/refine_struct.lean | cbfd6bd536c46c01443953960219423dca3f77b4 | [
"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 | 6,250 | lean | import tactic.interactive
import algebra.group.basic
/-!
`refine_struct` caused a variety of interesting problems,
which were identified in
https://github.com/leanprover-community/mathlib/pull/2251
and
https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/Need.20help.20with.20class.20instance.20resoluti... |
49648e83868dafd5e57d283ecab92864b604a25b | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/acc.lean | aa49023d7cd15688ffa3722e6c4f945d553a265e | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 170 | lean | import logic.prop
inductive acc (A : Type) (R : A → A → Prop) : A → Prop :=
intro : ∀ (x : A), (∀ (y : A), R y x → acc A R y) → acc A R x
check @acc.rec
|
eebb068cfe563ed6d844d40ebc33700da3047aaa | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/suffices.lean | fcf8d8c486f1292313af37256fc2c099f92a0719 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 727 | lean | variables {a b c : Prop}
theorem ex1 (Ha : a) (Hab : a → b) (Hbc : b → c) : c :=
suffices b from Hbc this
suffices a from Hab this
Ha
theorem ex2 (Ha : a) (Hab : a → b) (Hbc : b → c) : c :=
suffices b by apply Hbc; assumption
suffices a by apply Hab; exact this
Ha
theorem ex3 (Ha : a) (Hab : a → b) (Hbc ... |
020036e118990100e44814a37924df7205eb450d | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/linear_algebra/quadratic_form.lean | 87279e84eb47539ca9c4cec0ace8bc7b3d3e480a | [
"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 | 20,470 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen
-/
import algebra.invertible
import linear_algebra.bilinear_form
import linear_algebra.determinant
import linear_algebra.special_linear_group
/-!
# Quadratic forms
This file... |
b826ca7509ab204ff6a9eb7a82f5177f65c8e1e8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/list/min_max.lean | 734c8f13205426d76b3833ff052c3bc0939f01af | [
"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 | 13,329 | lean | /-
Copyright (c) 2019 Minchao Wu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Minchao Wu, Chris Hughes, Mantas Bakšys
-/
import data.list.basic
/-!
# Minimum and maximum of lists
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corre... |
a82250aae2b119c28d7184bf4f2e308f94138bbd | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/algebra/category/Mon/default.lean | 55478003a672d5cf4f8692bd6b47c9b851c819a9 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 71 | lean | import algebra.category.Mon.basic
import algebra.category.Mon.colimits
|
d92765a8db5e97352011d0a6d09bd5881658c652 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/reassoc_axiom.lean | 100b4a130be59847332e66d74bd7614205b1c204 | [
"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,991 | 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 category_theory.category.basic
/-!
# Tools to reformulate category-theoretic axioms in a more associativity-friendly way
## The `reassoc` attribute
The `reassoc` ... |
6848f27517fb4a3ac8f754a08270521678a5593e | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/topology/subset_properties.lean | 88fff4fb5e1a48264e84c57ed3387b68b59aac19 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 56,180 | 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 topology.bases
import data.finset.order
import data.set.accumulate
/-!
# Properties of subsets of topological spaces
In this... |
607b7c3185682e8df0bd948e39864a2dc0e31b7c | 618003631150032a5676f229d13a079ac875ff77 | /src/data/pfun.lean | 7ea6c9ec812d20427789ba03a72df3b30d7522fd | [
"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 | 22,640 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Jeremy Avigad
-/
import data.rel
/-- `roption α` is the type of "partial values" of type `α`. It
is similar to `option α` except the domain condition can be an
arbi... |
90f54237c3322ba0b4888fb0519a3eb7683bdaf1 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/number_theory/legendre_symbol/zmod_char.lean | 242b7b573309b6bf1ee0ec1382ebe544e6e446cc | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 5,452 | 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 tactic.basic
import data.int.range
import data.zmod.basic
/-!
# Quadratic characters on ℤ/nℤ
This file defines some quadratic characters on the rings ℤ/4ℤ and ... |
01e69ae484ec0868dc2320f82b46c9d6e2cec23b | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/ring_theory/mv_polynomial/basic.lean | 9f9c63622671f0990fe7884aae66a2bfba424f60 | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 3,891 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import ring_theory.ideal.operations
import linear_algebra.finsupp_vector_space
import algebra.char_p.basic
/-!
# Multivariate polynomials over commutative rings
Thi... |
a8e34a874ec733f589a1b17e99dcd54f9af81042 | 8c02fed42525b65813b55c064afe2484758d6d09 | /src/common.lean | bf73b33406676763105f4e43e03a9757f7f42fb2 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/AliveInLean | 3eac351a34154efedd3ffc4fe2fa4ec01b219e0d | 4b739dd6e4266b26a045613849df221374119871 | refs/heads/master | 1,691,419,737,939 | 1,689,365,567,000 | 1,689,365,568,000 | 131,156,103 | 23 | 18 | NOASSERTION | 1,660,342,040,000 | 1,524,747,538,000 | Lean | UTF-8 | Lean | false | false | 1,777 | lean | -- Copyright (c) Microsoft Corporation. All rights reserved.
-- Licensed under the MIT license.
def size := { n:nat // 0 < n }
namespace size
instance size_to_nat: has_coe size nat :=
⟨λ s, s.1⟩
instance : has_to_string size :=
⟨λ s, to_string s.1⟩
@[pattern, reducible] def one : size := ⟨1, dec_trivial⟩
@[reduci... |
87a697b63ad48db6f76be66f5e179df835a71c94 | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /library/tools/super/prover_state.lean | 2cc19a84ed87d38ba2f9b7f3c39435795b3cfca3 | [
"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 | 15,482 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause .lpo .cdcl_solver
open tactic monad expr
namespace super
structure score :=
(priority : ℕ)
(in_sos : bool)
(cost : ℕ)
(age : ℕ)
namespace score
def pr... |
2693165a9cd4d50fb7c9dfcd700ac53bf9704145 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/category_theory/types.lean | a6b92f782daf8707fa0666e78bdd05bf58ead748 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,787 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison, Johannes Hölzl
-/
import category_theory.functor_category
import category_theory.fully_faithful
import data.equiv.basic
namespace category_theory
univ... |
164c1ec5dc26791c4c623bcfd910c0e5ad01562a | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/order_functions.lean | 800ca13728db8d70e9895ba16a06bf5c36900070 | [
"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 | 4,737 | 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 algebra.order
import order.lattice
/-!
# `max` and `min`
This file proves basic properties about maxima and minima on a `linear_order`.
## Tags
min, max
-/... |
71e1b0bcdfbdab126a63343528151f83951fe308 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Compiler/LCNF/Level.lean | c0d4d1e9b3966d11522ba7caed80df2c3a90e0dd | [
"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 | 4,905 | 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.Util.CollectLevelParams
import Lean.Compiler.LCNF.Basic
namespace Lean.Compiler.LCNF
/-!
# Universe level utilities for the code generator
-/
... |
342e9462028a6d7f6b139c87f851314e7bfb7a33 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/omega_complete_partial_order.lean | 265ab4aecd9ffab63c383e7104f325d49e53dfcd | [] | 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 | 3,024 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.basic
import Mathlib.order.omega_complete_partial_order
import Mathlib.PostPort
universe... |
d2688ed97bbebf37b89a2a8ee01dfbc73fd49a56 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/data/int/parity.lean | 9e140062bcca945c4a09166f2b065fa32645f7f8 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 2,858 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The `even` predicate on the integers.
-/
import .modeq data.nat.parity algebra.group_power
namespace int
@[simp] theorem mod_two_ne_one {n : int} : ¬ n % 2 = 1 ↔ n % 2 ... |
68124875b59bdf94da5fa39b1e523372d855ddc0 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/algebra/homomorphism.lean | e1c0cde56a36570cf9e7457a22dd5ad721ae3960 | [
"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 | 7,057 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Homomorphisms between structures:
is_add_hom : structures with has_add
is_mul_hom : structures with has_mul
is_module_hom : structures with has_add, has_smul... |
72f5bd7b3ce0dc6ccc7dadaa1bd37285846b94b7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/number_theory/pell_auto.lean | 0b91ab2d8a6de61e9c7afe1cd0974c26b3ebbba4 | [] | 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 | 12,993 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.modeq
import Mathlib.data.zsqrtd.basic
import Mathlib.tactic.omega.default
import ... |
58f804044a1f376a97fdc34b57d46737dd3de33d | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /univariate_poly_unit.lean | ba8a7cedfb2b9e8117334effde971f027b3c22f8 | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,834 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
Theory of univariate polynomials, represented as finsupps, ℕ →₀ α, with α a comm_semiring
mono
-/
import linear_algebra.multivariate_polynomial algebra.euclidean_domain
... |
0273a752c9df68f102e8ae4d1104cc7d4a7a084c | aa2345b30d710f7e75f13157a35845ee6d48c017 | /data/real/basic.lean | 00b4ada7cdb4d52c9e47d39fee6314786ac4c5df | [
"Apache-2.0"
] | permissive | CohenCyril/mathlib | 5241b20a3fd0ac0133e48e618a5fb7761ca7dcbe | a12d5a192f5923016752f638d19fc1a51610f163 | refs/heads/master | 1,586,031,957,957 | 1,541,432,824,000 | 1,541,432,824,000 | 156,246,337 | 0 | 0 | Apache-2.0 | 1,541,434,514,000 | 1,541,434,513,000 | null | UTF-8 | Lean | false | false | 28,674 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
The (classical) real numbers ℝ. This is a direct construction
from Cauchy sequences.
-/
import order.conditionally_complete_lattice data.real.cau_seq_completion
algeb... |
91bd16b45c59a56b96c10cd97bbe5eefdbae7876 | 02fbe05a45fda5abde7583464416db4366eedfbf | /library/init/meta/widget/basic.lean | e753bd7a640ad0a757bff3ac616b6c7d033d50e5 | [
"Apache-2.0"
] | permissive | jasonrute/lean | cc12807e11f9ac6b01b8951a8bfb9c2eb35a0154 | 4be962c167ca442a0ec5e84472d7ff9f5302788f | refs/heads/master | 1,672,036,664,637 | 1,601,642,826,000 | 1,601,642,826,000 | 260,777,966 | 0 | 0 | Apache-2.0 | 1,588,454,819,000 | 1,588,454,818,000 | null | UTF-8 | Lean | false | false | 15,554 | lean | /-
Copyright (c) E.W.Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: E.W.Ayers
-/
prelude
import init.function
import init.data.option.basic
import init.util
import init.meta.tactic
import init.meta.mk_dec_eq_instance
import init.meta.json
/-! A component is a p... |
cff04b71cf34627a6fe3b68040f91f3fa8d4acb3 | ac89c256db07448984849346288e0eeffe8b20d0 | /src/Init/Data/Array/Subarray.lean | f51a5d9c468121a51ca625a2a171e8e59c4128da | [
"Apache-2.0"
] | permissive | chepinzhang/lean4 | 002cc667f35417a418f0ebc9cb4a44559bb0ccac | 24fe2875c68549b5481f07c57eab4ad4a0ae5305 | refs/heads/master | 1,688,942,838,326 | 1,628,801,942,000 | 1,628,801,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,272 | 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
-/
prelude
import Init.Data.Array.Basic
universe u v w
structure Subarray (α : Type u) where
as : Array α
start : Nat
stop : Nat
h₁ : start ≤ stop
... |
44f28e895424c97fbea0619cb8e8dcee8acfda58 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/limits/shapes/constructions/over/products.lean | a1ae44baf61d0ef487f93050525fee4fefd0f627 | [
"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 | 5,857 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Bhavik Mehta
-/
import category_theory.over
import category_theory.limits.shapes.pullbacks
import category_theory.limits.shapes.wide_pullbacks
import categ... |
d1af27add6cbd9db3cd246c62479c8426cfacb7d | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/overload_issue.lean | 7f85502f8dfa066c9bc9e267aa6acf2ddcdc3eae | [
"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 | 72 | lean | open tactic
example : true :=
by do
trace $ "hello",
constructor
|
10db56176dc86738e423f94006fa114e2eeb79bb | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/topology/local_homeomorph.lean | ea287f561f79af6127929a8e7a56b582973fdaa7 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 30,966 | lean | /-
Copyright (c) 2019 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.equiv.local_equiv
import topology.homeomorph
/-!
# Local homeomorphisms
This file defines homeomorphisms between open subsets of topological space... |
12d86e85061dbb92724ca854d6885c8953233e76 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/combinatorics/simple_graph/basic.lean | 87d73391c982c058abff27e1053a1aeaa6984ec1 | [
"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 | 15,932 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark, Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson, Jalex Stark, Kyle Miller, Alena Gusakov
-/
import data.fintype.basic
import data.sym2
import data.set.finite
/-!
# Simple graphs
This module d... |
f1188ab189d1032609a10986e63677ef0f2a8d1e | e1fb097d56131b99641125824bf370019b30ab6b | /src/mywork/lecture_5.lean | dffec793c64943b78c88434e8c170d1044ee4645 | [] | no_license | pcarey627/CS-2120-Base-Repository | fc18fc35b7d40928af7637625077abff6055271c | 434b2391b131e04cbc3be60dc0320639d0e20fb4 | refs/heads/main | 1,690,861,648,224 | 1,632,323,226,000 | 1,632,323,226,000 | 399,946,234 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,714 | lean | /-
INTRODUCTION and ELIMINATION RULES
-/
/-
For ∀ x, P x (every x has property P)
- introduction rule: assume arbitrary x, then show P x
- elimination rule: *apply* a proof of ∀ x, P x, as a
kind of function to a specific value of x, say k, to
produce a proof of P k.
-/
theorem silly : ∀ (n : ℕ), true :=
be... |
d1146642a9189fcdf08dd3e9485f77be61632228 | e031d1fbf8353b338e3189e0d9aec3adb5bb0512 | /src/birkhoff.lean | e3fb0e37377ba51c816439534a2868e27f229df5 | [
"Apache-2.0"
] | permissive | UniversalAlgebra/lean-ualib | e64431a70007a835b1dd933d66be04ffca118601 | ab9cbddbb5bdf1eeac4b0d5994bd6cad2a3665d4 | refs/heads/master | 1,584,931,281,084 | 1,558,364,533,000 | 1,558,364,533,000 | 140,986,567 | 6 | 0 | Apache-2.0 | 1,532,718,578,000 | 1,531,613,794,000 | Lean | UTF-8 | Lean | false | false | 12,306 | lean | /-birkhoff.lean -- Birkhoff's HSP Theorem in Lean
Author: William DeMeo <williamdemeo@gmail.com>
Date: 26 Nov 2018
References
[1] Bergman, Clifford, "Universal algebra," CRC Press, 2012
Copyright (c) 2018 William DeMeo
See LICENSE file: https://github.com/UniversalAlgebra/lean-ualib/blob/master/LICENSE
... |
f185c03c35b0fff1707f24e31c1f856ad9c643b2 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /docs/tutorial/category_theory/Ab.lean | f62da617aa52dfc633a1d7bfd6fd53fada7d8829 | [
"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 | 607 | 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 algebra.category.Group.abelian
import category_theory.limits.shapes.kernels
noncomputable theory
open category_theory
open category_theory.limits
/-!
Some s... |
dd7af65658438925236ffad5c72cc1ceaeb636ea | f313d4982feee650661f61ed73f0cb6635326350 | /Mathlib/Tactic/NormNum.lean | 4bfe83fcff558b8d73e9216f2d891edf661229ed | [
"Apache-2.0"
] | permissive | shingtaklam1324/mathlib4 | 38c6e172eec1385944db5a70a3b5545c924980ee | 50610c343b7065e8eec056d641f859ceed608e69 | refs/heads/master | 1,683,032,333,313 | 1,621,942,699,000 | 1,621,942,699,000 | 371,130,608 | 0 | 0 | Apache-2.0 | 1,622,053,166,000 | 1,622,053,166,000 | null | UTF-8 | Lean | false | false | 3,356 | lean | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Lean.Elab.Tactic.Basic
class Numeric (α : Type _) where
ofNat : Nat → α
instance Numeric.OfNat (α) [Numeric α] (n) : OfNat α n := ⟨Numeric.ofNat n⟩
-- TOD... |
a4ba07a994c673620d8f6d8d6316735ad1f72706 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/number_theory/sum_four_squares.lean | b71c5073d74e0a127694ab41d30cd0a921355384 | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,935 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
## Lagrange's four square theorem
The main result in this file is `sum_four_squares`,
a proof that every natural number is the sum of four square numbers.
# Implementatio... |
139afa1bc43819eb9d209cee659af587a408f9b3 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/measure_theory/measure/finite_measure_weak_convergence.lean | 0597a4d2953d764e638650e871c864b8478556ba | [
"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 | 8,332 | lean | /-
Copyright (c) 2021 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
import measure_theory.measure.measure_space
/-!
# Weak convergence of (finite) measures
This file will define the topology of weak convergence of finite measures and pr... |
8a59b90f22531247d65a143e018a4e560cbf4df3 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/polynomial/degree/trailing_degree.lean | a367ae46fd77b5dd65dd4c244a2d8f5cb798632a | [
"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,165 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import data.polynomial.degree.basic
/-!
# Trailing degree of univariate polynomials
## Main definitions
* `trailing_degree p`: the multiplicity of `X` in the polynom... |
f9cd975b1d7faf76f147d48c8450e2b55341fe0d | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/omega/coeffs.lean | d0de42dcc125a77e74938288250d069f7f575100 | [
"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 | 10,600 | lean | /- Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Non-constant terms of linear constraints are represented
by storing their coefficients in integer lists. -/
import data.list.func
import tactic.ring
import tactic.omega.misc
name... |
67961abe34fee4153384fa3f2fdf518e6e7fc1fa | b561a44b48979a98df50ade0789a21c79ee31288 | /src/Lean/Meta/Check.lean | 72ed0e4d565d8ec7d2cb64bcc5821c6496994f99 | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,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
-/
import Lean.Meta.InferType
import Lean.Meta.LevelDefEq
/-
This is not the Kernel type checker, but an auxiliary method for checking
whether terms produced ... |
aa52c1372c2ac4a97ce32df624c5b265c7905788 | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/valuation/valuation_field_completion.lean | bee8a1e08f845c10dacb9ef2bcf44c8d59c43564 | [
"Apache-2.0"
] | permissive | leanprover-community/lean-perfectoid-spaces | 16ab697a220ed3669bf76311daa8c466382207f7 | 95a6520ce578b30a80b4c36e36ab2d559a842690 | refs/heads/master | 1,639,557,829,139 | 1,638,797,866,000 | 1,638,797,866,000 | 135,769,296 | 96 | 10 | Apache-2.0 | 1,638,797,866,000 | 1,527,892,754,000 | Lean | UTF-8 | Lean | false | false | 2,098 | lean | import valuation.field
import valuation.canonical
/-!
# The valuation on the completion of the valuation field
In this file we extend the canonical valuation on the the valuation field of (R, v) to its
completion (for the topological field structure coming from the valuation).
-/
noncomputable theory
open valuation... |
008ad28ea15c4ecf0f3bac394a7e3d16da3bb807 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/init/bool.lean | 4b7b08baf566a3bda9d78516d44d5f7fd6a7920f | [
"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 | 554 | 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
prelude
import init.datatypes init.reserved_notation
namespace bool
definition cond {A : Type} (b : bool) (t e : A) :=
rec_on b e t
definition bor... |
a759617d36ada0b65825662f43a1b9864948a418 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/logic/unique.lean | 6636f9dbe15144e97963e1222ab34eb88377b3f3 | [
"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 | 2,563 | 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 tactic.basic
universes u v w
variables {α : Sort u} {β : Sort v} {γ : Sort w}
@[ext]
structure unique (α : Sort u) extends inhabited α :=
(uniq : ∀ a:α, a =... |
9ec56a26fcc9c4d5c93fcf3165fcba2fce36fc67 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/synth_instances_order.lean | 7812141aba873f0ae1610c6ced3fdd21c4a23975 | [
"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 | 563 | lean | /- See bug report and discussion at
https://leanprover-community.github.io/archive/113488general/35222rewritingandtypeclassinference.html#176608876
-/
class foo (G : Type)
class bar (G : Type) [foo G]
lemma silly {G : Type} [foo G] [bar G] : nonempty G ↔ nonempty G := iff.rfl
example (G : Type) [foo G] [bar G] (h :... |
e9977a05866bea30634f160e68745c19a8e374ee | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/thin.lean | b402d5135f7ae2ade5b044e219773e6a137647bb | [
"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,097 | lean | /-
Copyright (c) 2019 Scott Morrison, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.functor.category
import category_theory.isomorphism
/-!
# Thin categories
> THIS FILE IS SYNCHRONIZED WITH MATHLI... |
f2ff0b8789a5f2c4f98e1e53735ebec2b9505f57 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/list/basic.lean | e533cf214c672261a19a590117785f5ec5a723fd | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 157,725 | 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 deprecated.group
import data.nat.basic
import order.rel_classes
import algebra.order_fu... |
5e7c3f67477126ce2101018b61ebe7abbdd80072 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Init.lean | fab02652d904f82e038c6ce4de9f556a91031c12 | [
"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 | 400 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Prelude
import Init.Notation
import Init.Core
import Init.Control
import Init.Data.Basic
import Init.WF
import Init.Data
import Init.Sys... |
539a00fdeeeea420978d76def0b327eeaa21fa1d | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/fintype/basic.lean | 4b43f316e564e34b02640ce00b75157ddb4b8661 | [
"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 | 99,475 | 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 data.array.lemmas
import data.finset.fin
import data.finset.option
import data.finset.pi
import data.finset.powerset
import data.finset.prod
import data.finset... |
c4d97e4d0ec8122a46bfb6118f8c8ad15711d8fb | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/diamond4.lean | 89d476bafd2cd8d9d70780542a787fbf159a926c | [
"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 | 313 | lean | class A (α : Type) where
one : α
zero : α
class B (α : Type) extends A α where
add : α → α → α
class C (α : Type) extends A α where
mul : α → α → α
set_option structureDiamondWarning false
class D (α : Type) extends B α, C α
set_option pp.all true
#print D.toB
#print D.toC
|
0e68b960f2bb0426fc275f50dae2b50d69d197ba | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch6/ex0303.lean | 380ca2f0869cbe951793faff8bedbd01f16f24f8 | [] | 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 | 78 | lean | #check add_sub_cancel
#check nat.add_sub_cancel
#check _root_.add_sub_cancel
|
7be251f4f231f9584f1ba9b027ceeb02b5a66cc6 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/coe_to_fn.lean | 8f93fdf34ccb2b200a9c706d4886a20ef2d896a4 | [
"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 | 685 | lean | universes u v w
structure equiv (α : Type u) (β : Type v) :=
(f : α → β) (g : β → α)
infix ` ≃ `:50 := equiv
variables {α : Type u} {β : Type v} {γ : Type w}
instance: has_coe_to_fun (α ≃ β) (λ _, α → β) := ⟨equiv.f⟩
@[symm] def equiv.inv : α ≃ β → β ≃ α
| ⟨f,g⟩ := ⟨g,f⟩
local postfix (name := inv) `⁻¹` := equiv.... |
94a567b570e2f4d7cab3804008ed3ab9a255071b | eeee7bfb5e0033ce2c5099a3cf5c87a3c71b1f62 | /src/for_mathlib/subrel.lean | d331b37a49b193d40e5570be1e9d6e170d03e0cc | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean-perfectoid-spaces | f0c652bc1a0de64de90bb8c98f26d9579b226a9c | 45b42a5302dca28910ae9c6e3847c025e5ba4180 | refs/heads/master | 1,584,646,248,214 | 1,528,569,065,000 | 1,528,569,065,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 328 | lean | import order.complete_lattice order.order_iso
namespace subrel
variables {α : Type} [partial_order α] {p : α → Prop}
instance : partial_order {x // p x} :=
{ le := subrel (≤) p,
le_refl := λ x, le_refl x,
le_trans := λ x y z, le_trans,
le_antisymm := λ x y hx hy, subtype.eq $ le_antisymm hx hy }
end subrel
|
a5cc595cc939c861875a2a42e6e18c16e07c9036 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Compiler/IR/Boxing.lean | c19a7e5b354021de541bd4ffaf8ce72defbcc1ff | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,861 | 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.Runtime
import Lean.Compiler.ClosedTermCache
import Lean.Compiler.ExternAttr
import Lean.Compiler.IR.Basic
import Lean.Compiler.IR.CompilerM
imp... |
6f573091c7b673172233bd3e3a07ee91e0f1544b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/int/conditionally_complete_order.lean | d1a7e50388e3aff395f8d07f13e31554b70a7b9f | [
"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 | 2,968 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import order.conditionally_complete_lattice.basic
import data.int.least_greatest
/-!
## `ℤ` forms a conditionally complete linear order
The integers form a cond... |
8310f4223a47dfa8cb52dc0cf4576615947cfe33 | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/types/eq.lean | 10c9e5f4b121e86d1c18061a58c8e9d144126101 | [
"Apache-2.0"
] | permissive | daniel-carranza/hott3 | 15bac2d90589dbb952ef15e74b2837722491963d | 913811e8a1371d3a5751d7d32ff9dec8aa6815d9 | refs/heads/master | 1,610,091,349,670 | 1,596,222,336,000 | 1,596,222,336,000 | 241,957,822 | 0 | 0 | Apache-2.0 | 1,582,222,839,000 | 1,582,222,838,000 | null | UTF-8 | Lean | false | false | 21,532 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about path types (identity types)
-/
import .sigma
universes u v w
hott_theory
namespace hott
open hott.eq hott.sigma hott... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.