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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24bf8da0d585da0f47e90ac5eb3bf2fc0de7e22a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/field_type_mismatch.lean | 6371cbb2141c3cd463086bfda2937a53ce1146e1 | [
"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 | 251 | lean | namespace test
instance : has_add nat :=
{add := nat.succ}
class semigroup (α : Type) extends has_mul α :=
(mul_assoc : ∀ x y z : α, x * y * z = x * (y * z))
instance : semigroup nat :=
{mul := nat.add,
mul_assoc := trivial }
end test
|
2189865243cee10d35902fec290840aa05d8db49 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/algebra/module.lean | 593b0b091299d570c07266bbb2c8830be137312d | [
"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 | 24,640 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
Modules over a ring.
## Implementation notes
Throughout the `linear_map` section implicit `{}` brackets are often ... |
c38b8d1ec81889c941c573bd1d2a2d823f78241b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/convex/cone.lean | 2844d320e217c6e5c4bb03977178aea47b440f62 | [] | 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 | 18,473 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Frédéric Dupuis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.linear_algebra.linear_pmap
import Mathlib.analysis.convex.basic
import Ma... |
75474f89a4dca7be742b814c9d521e89d0ac1f2f | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/normed_space/add_torsor_bases.lean | 18a1c19ef60ad692bfa737a1c1e309f6c9dac63e | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 7,429 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import analysis.normed_space.banach
import analysis.normed_space.finite_dimension
import analysis.calculus.affine_map
import analysis.convex.combination
import linear_algeb... |
bfb9892bb7f764a352ea8ab10f0439bfb9b5976d | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/Unital.lean | 6657f61d1d5d3c1b969a67d930345ce704dd18c6 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,502 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section Unital
structure Unital (A : Type) : Type :=
(e : A)
(op : (A → (A → A)))
(lunit_e : (∀ {x : A} , (op e x) = x))
(runit_e : (∀ {x : A} , (op x e) ... |
4305d96da9a317106eedc0528b315a6da7b6d2a3 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/category_theory/limits/preserves/shapes/terminal.lean | 3b3b9fd2059fc416154a87172e642e01f9679a35 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,604 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.preserves.limits
import category_theory.limits.shapes.terminal
/-!
# Preserving terminal object
Constructions to relate the notions of pre... |
99aba5f26731e89119dd9f5e78b491e8145b354f | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/nat/squarefree.lean | f0ab22e538b91ecfe8a448aef9d145797aa039ac | [
"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 | 22,057 | 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 algebra.squarefree
import data.nat.factorization.prime_pow
import data.nat.prime_norm_num
import ring_theory.int.basic
/-!
# Lemmas about squarefreeness of na... |
1563a54d403023c3913aebb78dd1ebdbe1e6897e | 8f67b34bba98f894155dedf263bc8d61c31e89cd | /2ltt/fibrantlimits_aux.lean | 0fe3b0698b281142e9332bbc2f2fd08009e0032e | [] | no_license | 5HT/two-level | 3b1523db242cba819681b862fbc8f490d9571a66 | 370f5a91311db3b463b10a31891370721e2476e2 | refs/heads/master | 1,648,254,367,420 | 1,576,269,550,000 | 1,576,269,550,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,096 | lean | import .fibrant .matching .inverse algebra.category
.limit .pullbacks .finite .matching_facts
import data.fin
open invcat category functor matching_object Fib
sigma.ops fincat natural_transformation eq
universe variable u
variables {C : Category.{1 1}}
{D : Category}
open subcat_obj reedy
ope... |
9da61fa2d227a37fd978b82b777d9ac05843e45b | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/order/complete_lattice.lean | eeab9b77a60254a1478126af5fc6fe06fb230cbb | [
"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 | 39,252 | 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 order.bounds
/-!
# Theory of complete lattices
## Main definitions
* `Sup` and `Inf` are the supremum and the infimum of a set;
* `supr (f : ι → α)` and `in... |
1be292d4175d965f65940836a53d7dbfc06c9adc | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/concrete_category/bundled.lean | 824b25cadc1b2d7487f4652da432328dbb272d3b | [] | 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,469 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Reid Barton, Sean Leather
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.category.default
import Mathlib.... |
6ea7016a25c26ae691f92d596f69e256fed3098b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/direct_sum/algebra.lean | e08cc480379f0feedf09b8a6a85f38e3b65a350f | [
"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,895 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.algebra.basic
import algebra.direct_sum.module
import algebra.direct_sum.ring
/-! # Additively-graded algebra structures on `⨁ i, A i`
> THIS FILE IS SYNCH... |
180f5f62ae1abd52f7db3b4c7b0edd21497f1d8b | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/ring_theory/algebra.lean | f50fe43d4f78935db678985b6cda2f0f6f0bb5ca | [
"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 | 20,355 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Algebra over Commutative Ring (under category)
-/
import data.complex.basic
import data.matrix.basic
import linear_algebra.tensor_product
import ring_theory.subring
import algeb... |
0321af5f1ea5a32f21ae1135015968ae892663fd | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/solve_by_elim.lean | 399a6e67ee550f20e056c9ffc44e59efce920567 | [
"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 | 12,153 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Scott Morrison
-/
import tactic.core
/-!
# solve_by_elim
A depth-first search backwards reasoner.
`solve_by_elim` takes a list of lemmas, and repeating tries to `apply` th... |
2b9fde8069664ee08a5bf37bac75dff705ef543f | 92b50235facfbc08dfe7f334827d47281471333b | /library/logic/eq.lean | d42f7f5d4ea7cb940b92b87f7a47c90ccbffb189 | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 3,899 | 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, Jeremy Avigad, Floris van Doorn
Additional declarations/theorems about equality. See also init.datatypes and init.logic.
-/
open eq.ops
namespace eq
vari... |
8af89a9bc3c491db2d2447a53cb8b576d6e83384 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/control/option_auto.lean | 1b8dfd273eb8fa30d92c26cad20b0d8efcf354cb | [] | 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,891 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.control.alternative
import Mathlib.Lean3Lib.init.control.lift
import Mathlib.Lean3Lib... |
45cf07dfb4fb81ab01d9389adf898377255531b5 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/set_theory/ordinal_arithmetic.lean | fc19de9ebab8747efc929ed9a2a366da9985172f | [
"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 | 69,933 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import set_theory.ordinal
/-!
# Ordinal arithmetic
Ordinals have an addition (corresponding to disjoint union) that turns them into an additive
monoid, and a multipl... |
a80ef6d1a2e034a2cd51c56f780cbd973c9e3ec9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/combinatorics/simple_graph/matching.lean | 97e3a11465b27a9bbc38412b63c02bd37a315050 | [] | 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,353 | lean | /-
Copyright (c) 2020 Alena Gusakov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Alena Gusakov.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fintype.basic
import Mathlib.data.sym2
import Mathlib.combinatorics.simple_graph.basic
i... |
c48185897fc9734c915d6bbb350e448767030edd | 4fa161becb8ce7378a709f5992a594764699e268 | /src/measure_theory/ae_eq_fun.lean | c69b9abfff2eed53b947c88cd220cc1d4ccb3228 | [
"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 | 21,597 | lean | /-
Copyright (c) 2019 Johannes Hölzl, Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Zhouhang Zhou
-/
import measure_theory.integration
/-!
# Almost everywhere equal functions
Two measurable functions are treated as identical if they a... |
c9941e9ff6d84b3786a1550c6aa12c9b24db5791 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/set_theory/ordinal_arithmetic.lean | a4f9f5128fb7c46dc603810ae8f39b50ae8a0a7c | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 70,433 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
-/
import set_theory.ordinal
/-!
# Ordinal arithmetic
Ordinals have an addition (corresponding to disjoint union) that turns them into an additive
mo... |
10dc622f18b235b0e6f9272e4527b10b633a2525 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/finset/basic.lean | cc369ee8984ad45dd1c468c863293a010608040e | [
"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 | 126,449 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Minchao Wu, Mario Carneiro
-/
import data.int.basic
import data.multiset.finset_ops
import tactic.apply
import tactic.monotonicity
import tacti... |
f396d26be64216067062b6c55dc03ad8ec2c56dc | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/number_theory/sum_two_squares.lean | 9c066fcc1793dc3776e918034568161901bb796b | [
"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 | 776 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
-/
import data.zsqrtd.gaussian_int
/-!
# Sums of two squares
Proof of Fermat's theorem on the sum of two squares. Every prime congruent to 1 mod 4 is the sum
of two squares
... |
c4f16c5efc533213a10954472db07452d8b26d1b | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/uniform_space/basic.lean | 5aad3035aa56cd20ed5c26698703f047de3c3a1b | [
"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 | 80,776 | 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
-/
import order.filter.small_sets
import topology.subset_properties
/-!
# Uniform spaces
Uniform spaces are a generalization of metric s... |
522d810480dcccdab0e4d47b9c113bc5d272ac3c | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/init/num.lean | 9a56aa0e75853cf5094a0743cb49207352626d28 | [
"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,284 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.num
Authors: Leonardo de Moura
-/
prelude
import init.logic init.bool
open bool
definition pos_num.is_inhabited [instance] : inhabited pos_num :=
inhabited.mk pos_num.one... |
8777a2f77c73a5b921580e5c04857fc9974e8d99 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/complex/phragmen_lindelof.lean | 4ed88cff0bf7b914343fb03fb81fb18ac44f9fb2 | [
"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 | 49,550 | 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 analysis.complex.abs_max
import analysis.asymptotics.superpolynomial_decay
/-!
# Phragmen-Lindelöf principle
In this file we prove several versions of the ... |
b86223e9a99626bfc7a3a4f0f5a7669ec3a36ce2 | 9db059bff49b1090a86ec0050ac6c577eb16ac67 | /src/exercises/order.lean | 878a5c2c5e371b8cad53801938c3164541015626 | [] | no_license | fpvandoorn/Harvard-tutoring | d64cd75c4c529009ee562c30e9cb245fe237e760 | a8846c08e32cdc7b91a7e28adfa5d9b2810088b0 | refs/heads/master | 1,680,870,428,641 | 1,617,022,194,000 | 1,617,022,194,000 | 330,297,467 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,743 | lean | /-
# Orders
Groups, rings, fields, modules etc are in the "algebra hierarchy".
Metric and topological spaces are in the "topology hierarchy".
The other important hierarchy is the "order hierarchy".
It starts with partially ordered sets, and then goes on to lattices.
Because I like algebra, let's demonstrate the or... |
ac17993e649a04e19260bfbac55e12680317c2d3 | a7dd8b83f933e72c40845fd168dde330f050b1c9 | /src/category_theory/instances/Mon/colimits.lean | ca5da8d9ebe50953e7327d6dcc3e765849ff6ef6 | [
"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 | 6,628 | lean | import category_theory.instances.Mon.basic
import category_theory.limits.limits
universes v
open category_theory
open category_theory.instances
open category_theory.limits
/-
We build colimits of monoids.
We do so knowing nothing about monoids.
In particular, I want to claim that this file could be produced by a py... |
36e9bda1f7fc4d0d0f92423d6db1b0cffcc8d3fd | f57749ca63d6416f807b770f67559503fdb21001 | /library/theories/group_theory/cyclic.lean | ce3c7b36eab3ee140ae3ed0069ac934e65d0b806 | [
"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,758 | 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 data algebra.group algebra.group_power .finsubg .hom .perm
open function algebra finset
open eq.ops
namespace group
section cyclic
open nat fin list
local att... |
dbfcc3cd8342336ee96e609ed2495608f74d3f54 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_1097.lean | 28acec8fccf7c9e03401ed92855524d3636fa8e0 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 175 | lean | import data.real.basic
variables a b c : ℝ
-- BEGIN
example (a b c d e : ℝ) (h₀ : a ≤ b) (h₁ : b < c) (h₂ : c ≤ d)
(h₃ : d < e) :
a < e :=
sorry
-- END |
08628bb160c683e5b0c924bde34c99ee8e01bfef | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Data/OfScientific.lean | 772ce0b0f986681fe2e900359c4bb61eb58df4ae | [
"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,665 | 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.Meta
import Init.Data.Float
import Init.Data.Nat
/-- For decimal and scientific numbers (e.g., `1.23`, `3.12e10`).
Examples:
- `O... |
cc5c1969d0c3eaa8ad3bd4b1bb64f5369219911e | a7dd8b83f933e72c40845fd168dde330f050b1c9 | /src/category_theory/instances/CommRing/adjunctions.lean | 8ed386e4a5361693ca209407be12ad2b68bd5e0a | [
"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 | 1,588 | lean | /- Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl
Multivariable polynomials on a type is the left adjoint of the
forgetful functor from commutative rings to types.
-/
import category_theory.instances.C... |
dbdb9ec2b1d0d9c5aaf94b5ad9729bd8aca86cc2 | e4a7c8ab8b68ca0e53d2c21397320ea590fa01c6 | /src/data/polya/field/pterm.lean | bbf7e6ce803b7c78534adae243da18d2df1a7de3 | [] | no_license | lean-forward/field | 3ff5dc5f43de40f35481b375f8c871cd0a07c766 | 7e2127ad485aec25e58a1b9c82a6bb74a599467a | refs/heads/master | 1,590,947,010,909 | 1,563,811,881,000 | 1,563,811,881,000 | 190,415,651 | 1 | 0 | null | 1,563,643,371,000 | 1,559,746,688,000 | Lean | UTF-8 | Lean | false | false | 10,758 | lean | import .basic
namespace polya.field
open nterm
--@[derive decidable_eq]
structure xterm (γ : Type) [const_space γ] : Type :=
(term : nterm γ)
(exp : znum)
namespace xterm
variables {α : Type} [discrete_field α]
variables {γ : Type} [const_space γ]
variables [morph γ α] {ρ : dict α}
def to_nterm (x : xterm γ) : nte... |
9b37b4693780580d4351a02f6ecdd0a40716f13e | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/shrinking_lemma.lean | c004f3055f44a7d57c2d2cda3142acc075da9736 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 10,812 | 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
In this file we prove a few versions of the shrinking lemma. The lemma says that in a normal
top... |
f51fc5e622c8c7ab361db8bf8f117e895c40c3a6 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/ring_theory/localization.lean | fc612f58f95d043049f88876b5954605b77b9f2d | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 24,520 | 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.algebra ring_theory.ideal_operations group_theory.submonoid
universes u v
namespace localization
varia... |
d26d1cc71f1886061bca2aa92b082b46bf702ec2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /archive/imo/imo1998_q2.lean | 559b381b4c9345664f8b490b0abfac2da663af95 | [
"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 | 9,503 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import data.fintype.basic
import data.int.parity
import algebra.big_operators.order
import tactic.ring
import tactic.noncomm_ring
/-!
# IMO 1998 Q2
In a competition, there... |
d486d2b7ae2976b94ff83f219c6840d7ad33ca89 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/nateq.lean | ac5723e07b2ceffc3aeea8a81cb2fb2bbfc87e22 | [
"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 | 421 | lean | open bool nat
definition is_eq (a b : nat) : bool :=
nat.rec_on a
(λ b, nat.cases_on b tt (λb₁, ff))
(λ a₁ r₁ b, nat.cases_on b ff (λb₁, r₁ b₁))
b
example : is_eq 3 3 = tt :=
rfl
example : is_eq 3 5 = ff :=
rfl
theorem eq.to_is_eq (a b : nat) (H : a = b) : is_eq a b = tt :=
have aux : is_eq a a = tt, from
n... |
effdd2a075f50a328ca2df0bae13a1f1a304a589 | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/init/data/nat/basic.lean | a2d2d7b0a3f10a8ab30a019db6881dfbed0137a6 | [
"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 | 4,197 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import init.logic init.data.num.basic
notation `ℕ` := nat
namespace nat
inductive less_than (a : ℕ) : ℕ → Prop
| refl : less_th... |
253c20802e5a61fd13c3fa2415602a86df163cd6 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/linear_algebra/finsupp.lean | 3ec06577d567a03580bf5bb75cb4cc01e567e39d | [
"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 | 16,370 | 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
Linear structures on function with finite support `α →₀ β`.
-/
import data.finsupp linear_algebra.basic
noncomputable theory
open lattice set linear_map submodule
name... |
64fe86186f781a87e223aef18145203775d073b6 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/sets_functions_and_relations/unnamed_1329.lean | 2a8e20b6c60cb43130bc6c96a87854c03e578d28 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 591 | lean | import data.set.function tactic
open set function
variables {α β : Type*} [inhabited α]
noncomputable theory
open_locale classical
def inverse (f : α → β) : β → α :=
λ y : β, if h : ∃ x, f x = y then classical.some h else default α
theorem inverse_spec {f : α → β} (y : β) (h : ∃ x, f x = y) :
f (inverse f y) = y... |
61c5388ccc01a1b3d5e1640a0c07a629ae8957f1 | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /src/Init/Lean/Meta/Basic.lean | 61883e19f11ce43f80d692e2a357cf1aaf51c39f | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,655 | 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.Control.Reader
import Init.Lean.Data.LOption
import Init.Lean.Environment
import Init.Lean.Class
import Init.Lean.ReducibilityAttrs
impo... |
d8d0b7b364a019f149b2857cf51809f3b4585f46 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/monotonicity/interactive.lean | fd9ab6624ceb224988f16a0379d4736ef18c326f | [
"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 | 23,634 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.traversable.derive
import control.traversable.lemmas
import data.dlist
import tactic.monotonicity.basic
variables {a b c p : Prop}
namespace tactic.interac... |
d59576786e5256b5aad584fd0188240461221233 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/set_theory/surreal.lean | 2efc64cbeccbbecac9381aad0d593c6ff49051d9 | [
"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 | 15,129 | lean | /-
Copyright (c) 2019 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Scott Morrison
-/
import set_theory.pgame
/-!
# Surreal numbers
The basic theory of surreal numbers, built on top of the theory of combinatorial (pre-)games.
A prega... |
43835c0d7579a616941f20b27d2ed92bd0f6767d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/algebra/module/determinant.lean | 4613a6f35a2c7e045f7adc7c8d15539355044b5d | [
"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 | 1,189 | 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, Frédéric Dupuis,
Heather Macbeth
-/
import topology.algebra.module.basic
import linear_algebra.determinant
/-!
# T... |
74da09b29e17102e644222c85940ac9a8a1d7605 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/rat/denumerable.lean | e4a435c7d012b8a353ce5cfad9b8307b42b556fb | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,062 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.rat
import set_theory.cardinal
namespace rat
open denumerable
instance : infinite ℚ :=
infinite.of_injective (coe : ℕ → ℚ) nat.cast_injective
private def d... |
f8e5347702053ee50a45509035d1df79e2b272bd | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/induction_generalizing_bug.lean | 33a093e9d6978c2cb2ada81337d53aeb6d4ff4cf | [
"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 | 138 | lean | open nat
example (n : nat) (h : n > 0) : succ n > 0 ∧ n = n :=
begin
split,
induction n generalizing h,
all_goals { admit },
end
|
d96f260fc406cf454c5f00aa5665c64ba922d9ac | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Compiler/IR/EmitC.lean | e760088496f4f667374eea67f5402568495e85ad | [
"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 | 24,581 | 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.NameMangling
import Lean.Compiler.ExportAttr
import Lean.Compiler.InitAttr
import Lean.Compiler.IR.CompilerM
import... |
db75d76d04f82c21b48815fe27c7aa03ad554e9b | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/simp10.lean | a180800f4f3072e02dfd74afa4aa936d9c9dde6b | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 359 | lean | variable f : Nat → Nat
variable g : Nat → Nat
variable a : Nat
axiom fid (x : Nat) : g x ≠ 0 → f x = x
add_rewrite fid
axiom gcnst (x : Nat) : g x = 1
add_rewrite gcnst
theorem one_neq_0 : 1 ≠ 0
:= Nat::succ_nz 0
add_rewrite one_neq_0
(*
local t = parse_lean("f a")
local r, pr = simplify(t)
print(r)
print(pr)
get_en... |
f7f5653166f11cd6d890cdd05616cb98d8b93da8 | f608b09bd951f29eccb4c27187f55223000fa85f | /2020/lean/lovelib.lean | 2707a935217f4a239b763b13d6dc510b8a95221e | [] | no_license | bobismijnnaam/advent-of-code | 9482d954b8f381b28a4823337e3688963fd05d6d | 471b9cad04eba7010da79416aef7a3218b1f4541 | refs/heads/master | 1,639,530,767,572 | 1,639,425,773,000 | 1,639,425,773,000 | 225,140,719 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,810 | lean | import algebra
import data.real.basic
import data.vector
import tactic.explode
import tactic.find
import tactic.induction
import tactic.linarith
import tactic.rcases
import tactic.rewrite
import tactic.ring_exp
import tactic.tidy
import tactic.where
/-! # LoVe Library
This files contains a few extensions on top of L... |
668f6eac8ea5ec9c1c68efbfdc783d0969b59913 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/extra/597a.hlean | 66769a3b6ad43272422d5ca3491e999c37ca7c84 | [
"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 | 81 | hlean | open equiv
constants (A B : Type₀) (f : A ≃ B)
definition foo : A → B := f
|
4778e390f4ca1110d3808b98ce21995b620d5f1d | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Std/Data/Queue.lean | 99f0aae3750673faf582700a3c4f4972287380bb | [
"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 | 957 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
Simple queue implemented using two lists.
Note: this is only a temporary placeholder.
-/
namespace Std
universes u v w
structure Queue (α : Type u) :=
(eList d... |
662a9c9276e4a74c8074dfc9f0e77f207e762a26 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /category_theory/examples/measurable_space.lean | f14d2cfb08001aa3e897982713a38aaabd6b9c22 | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 926 | 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
Basic setup for measurable spaces.
-/
import category_theory.examples.topological_spaces
import category_theory.types
import analysis.measure_theory.borel_space
open ... |
a8d50c1829ba95876476f532b973ae725c46e8a5 | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/opens.lean | 3ddcbb93f1cf5187e25bdf0d49e41bfe73515eb7 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 8,780 | 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, Floris van Doorn
-/
import topology.bases
import topology.homeomorph
/-!
# Open sets
## Summary
We define the subtype of open sets in a topological sp... |
ce940da0a5ba791112f8e4caf3fd0ece3b64cd70 | a6b711a4e8db20755026231f7ed529a9014b2b6d | /ZZ_IGNORE/RAW/functions.lean | 0be38a66c3bee17753021bdc45a237f442862039 | [] | no_license | chaseboettner/cs-dm-1 | b67d4a7e86f56bce59d2af115503769749d423b2 | 80b35f2957ffaa45b8b7a4479a3570a2d6eb4db0 | refs/heads/master | 1,585,367,603,488 | 1,536,235,675,000 | 1,536,235,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,251 | lean | /-
Return to your earliest days of high school algebra and
consider the simple function f(x) = x + 1. Reflect on how
do you think about it?
* Do you first see a graph in your mind -- a line rising
from left to right at a 45 degree angle and crossing the
y-axis at the point y = 1?
* Do you think of the function ... |
da65706b64ccccf14e16f7651ab5550e9ad61019 | e61a235b8468b03aee0120bf26ec615c045005d2 | /stage0/src/Init/Lean/Elab/Tactic/Basic.lean | 0df895aefb05ca1c06aadd1e555cb166feaa3828 | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,796 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Lean.Util.CollectMVars
import Init.Lean.Meta.Tactic.Assumption
import Init.Lean.Meta.Tactic.Intro
import Init.Lean.Me... |
b1d1f84b420b3ff2af0eef9fbf01f482829c7849 | b147e1312077cdcfea8e6756207b3fa538982e12 | /analysis/real.lean | 8959bce9fa326bf30eca1c6af1a7ffe413f9158d | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,110 | 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
The real numbers ℝ.
They are constructed as the topological completion of ℚ. With the following steps:
(1) prove that ℚ forms a uniform space.
(2) subt... |
d08d6ff0a729fb2baac5130c014f6c7b52bc4479 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.29.lean | 91b9010aecd5682e3c57b73a5678c13b5ec2025c | [] | 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 | 641 | lean | /- page 86 -/
import standard
namespace hide
inductive nat : Type :=
| zero : nat
| succ : nat → nat
namespace nat
definition add (m n : nat) : nat :=
nat.rec_on n m (fun n add_m_n, succ add_m_n)
notation 0 := zero
infix `+` := add
theorem add_zero (m : nat) : m + 0 = m := rfl
theorem add_succ (m n : nat) : m + s... |
9bcc7c777835c23980dd67c491e2fbe339dbe9d1 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/category_theory/preadditive/schur.lean | 533e1234c484f0956913aded261b3f7cdded3ab6 | [
"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 | 8,302 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import algebra.group.ext
import category_theory.simple
import category_theory.linear.basic
import category_theory.endomorphism
import algebra.algebra.s... |
d3691bdc5fa65b29fa0ebfa2984ec240cf5e6b4c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/category/pairwise.lean | a4d82a1c13af1a5d73ce6b6e3a4bccf8236b944b | [
"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 | 4,264 | 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.category.preorder
import category_theory.limits.is_limit
/-!
# The category of "pairwise intersections".
Given `ι : Type v`, we build the di... |
cc81aef962973413f0d713613ad5bc7b860d7b3d | fe25de614feb5587799621c41487aaee0d083b08 | /stage0/src/Init/Core.lean | 8ab9b353f3bde92ced5a55eaa17b8ab8aff30795 | [
"Apache-2.0"
] | permissive | pollend/lean4 | e8469c2f5fb8779b773618c3267883cf21fb9fac | c913886938c4b3b83238a3f99673c6c5a9cec270 | refs/heads/master | 1,687,973,251,481 | 1,628,039,739,000 | 1,628,039,739,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 34,993 | 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
notation, basic datatypes and type classes
-/
prelude
import Init.Prelude
import Init.SizeOf
universe u v w
def inline {α : Sort u} (a : α) : α := a
@[inli... |
a65da842576fe3d9a358c3b9767e12206a55f91a | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Elab/Util.lean | 5f2db9d1901e0f5d9dda92f1024a4aff2f23dce0 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 7,371 | 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.Util.Trace
import Lean.Parser.Syntax
import Lean.Parser.Extension
import Lean.KeyedDeclsAttribute
import Lean.Elab.Exception
namespace Lean
de... |
0f9c6528748b7a68662d92b0892793e4bc2377a6 | 556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e | /src/starkware/cairo/lean/semantics/air_encoding/instruction.lean | 975e6191590b09cfa4223707f9b3da3371501984 | [
"Apache-2.0"
] | permissive | starkware-libs/formal-proofs | d6b731604461bf99e6ba820e68acca62a21709e8 | f5fa4ba6a471357fd171175183203d0b437f6527 | refs/heads/master | 1,691,085,444,753 | 1,690,507,386,000 | 1,690,507,386,000 | 410,476,629 | 32 | 9 | Apache-2.0 | 1,690,506,773,000 | 1,632,639,790,000 | Lean | UTF-8 | Lean | false | false | 11,065 | lean | /-
Theorem 1 in Section 9.4 of the whitepaper, dealing with the encoding of an instruction as a field
element.
-/
import starkware.cairo.lean.semantics.cpu
import starkware.cairo.lean.semantics.air_encoding.constraints
open_locale big_operators
/-
Note: this is needed for the `classical.some`, but we can possibly rem... |
255638e04a41184cd7b5f750f2007a75eeab5e1d | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/geometry/manifold/smooth_manifold_with_corners.lean | c9420ce7121ddfa4d594f77bdf8424c4903b9212 | [
"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 | 41,647 | 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 analysis.calculus.times_cont_diff
import geometry.manifold.charted_space
/-!
# Smooth manifolds (possibly with boundary or corners)
A smooth manifold i... |
cb7cc1c0c8232173e77a97e0bfc95a162163913f | 0d2e44896897eda703992595d71a0b19ed30b8a1 | /uexp/tactic_paper_supplemental_material/monoid_cancellation/cancellation_solver.lean | 2c8597947abc057d25c9caaf848eb1e7a7c629af | [
"BSD-2-Clause"
] | permissive | wwombat/Cosette | a87312aabefdb53ea8b67c37731bd58c7485afb6 | 4c5dc6172e24d3546c9818ac1fad06f72fe1c991 | refs/heads/master | 1,619,479,568,051 | 1,520,292,502,000 | 1,520,292,502,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,312 | lean | import .smt
local infix * := star
open tactic smt_tactic
attribute [ematch] one_star
meta def qf_monoid := using_smt $ smt_tactic.intros; eblast
section
variables {a b c d : m}
lemma plus_unit_p : a = b → o * a = b := by qf_monoid
lemma plus_assoc_p1 : a * (b * c) = d → (a * b) * c = d := by qf_monoid
lemma plus_asso... |
09dd53b2618f09231b5e0a3bf66c42a15772fe67 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/analysis/normed_space/multilinear.lean | 78ca625114f2b5933fd3e9de8613de0343d6200b | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 48,850 | 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 analysis.normed_space.operator_norm topology.algebra.multilinear
import data.fintype.card
/-!
# Operator norm on the space of continuous multilinear ma... |
d255a9a9a9b7a93ba83cb23721e68a2c2ac059ce | b2e508d02500f1512e1618150413e6be69d9db10 | /src/category_theory/limits/cones.lean | 1ab991acdc95d027a854eca6325e6ddac94fa608 | [
"Apache-2.0"
] | permissive | callum-sutton/mathlib | c3788f90216e9cd43eeffcb9f8c9f959b3b01771 | afd623825a3ac6bfbcc675a9b023edad3f069e89 | refs/heads/master | 1,591,371,888,053 | 1,560,990,690,000 | 1,560,990,690,000 | 192,476,045 | 0 | 0 | Apache-2.0 | 1,568,941,843,000 | 1,560,837,965,000 | Lean | UTF-8 | Lean | false | false | 15,544 | 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.concrete_category
import category_theory.equiv... |
3fba9092ae2ef0fdaef688576ed5b8573f8a9b8d | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/nat/basic.lean | 10c69a3326b70b7cb81e652046acbc6502c647e6 | [
"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 | 65,236 | lean | /-
Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import algebra.group_power.basic
import algebra.order_functions
import algebra.or... |
68c49499e3cd8d9a5b769679d1ed2cc4d9118b47 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/uniform_space/abstract_completion.lean | 06110a8d31994b019fa5d4c0a796e97dd7e617ac | [
"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 | 11,692 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.uniform_space.uniform_embedding
import topology.uniform_space.equiv
/-!
# Abstract theory of Hausdorff completions of uniform spaces
This file chara... |
7fcae2bb116e714cb1ccfeeff722171fda263885 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/group_power/order.lean | fd8c29cf9f09ae34dd78c99c802dfdce3d9a581f | [
"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 | 9,916 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import algebra.ordered_ring
import algebra.group_power.basic
/-!
# Lemmas about the interaction of power operations with order
Note that some lemmas ... |
9f741abcbec89b72b2c64c7758c4067f8c8b3267 | 6b02ce66658141f3e0aa3dfa88cd30bbbb24d17b | /src/Lean/CoreM.lean | 9379c2a4486609c91e489f221d93e0d43f4d47eb | [
"Apache-2.0"
] | permissive | pbrinkmeier/lean4 | d31991fd64095e64490cb7157bcc6803f9c48af4 | 32fd82efc2eaf1232299e930ec16624b370eac39 | refs/heads/master | 1,681,364,001,662 | 1,618,425,427,000 | 1,618,425,427,000 | 358,314,562 | 0 | 0 | Apache-2.0 | 1,618,504,558,000 | 1,618,501,999,000 | null | UTF-8 | Lean | false | false | 5,886 | 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.RecDepth
import Lean.Util.Trace
import Lean.Data.Options
import Lean.Environment
import Lean.Exception
import Lean.InternalExceptionId
impo... |
893e25eb2b2c4135ff360d9f1dfa81742cfd6d59 | cbcb0199842f03e7606d4e43666573fc15dd07a5 | /src/topology/basic.lean | 0234fe5e4ead5d5e255197bd7cbda463425bdec8 | [
"Apache-2.0"
] | permissive | truonghoangle/mathlib | a6a7c14b3767ec71156239d8ea97f6921fe79627 | 673bae584febcd830c2c9256eb7e7a81e27ed303 | refs/heads/master | 1,590,347,998,944 | 1,559,728,860,000 | 1,559,728,860,000 | 187,431,971 | 0 | 0 | null | 1,558,238,525,000 | 1,558,238,525,000 | null | UTF-8 | Lean | false | false | 35,249 | 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
Theory of topological spaces.
Parts of the formalization is based on the books:
N. Bourbaki: General Topology
I. M. James: Topologies and Uniformit... |
477ca6d8d4a9a1e2e8a70afaa37a091ea4d19223 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/order/absolute_value.lean | e5036eb1c1d9c9f531779b677499ae9899d2fb17 | [
"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 | 10,561 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Anne Baanen
-/
import algebra.order.field
import algebra.order.hom.basic
/-!
# Absolute values
This file defines a bundled type of absolute values `absolute_value R S`.
... |
145c4a85e876b60fd1462f5814c13f79491346c1 | 17eb1a9fda67ea006b0ea6e9f09e891681861bf9 | /iso.lean | 654e3d9a5d040483eb43ca25648f5d2746a8acba | [] | no_license | skaslev/zero-to-zipper | a9a402240a004da002aa9d4864ca910483e842b1 | d0615fc765d4a023df844fad5bb7f78a27bd01c2 | refs/heads/master | 1,597,028,473,080 | 1,571,393,101,000 | 1,571,393,101,000 | 214,240,337 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 415 | lean | structure iso (a b : Type) :=
(f : a → b) (g : b → a) (gf : Π x, g (f x) = x) (fg : Π x, f (g x) = x)
def inv {a b} : iso a b → iso b a
| ⟨f, g, gf, fg⟩ := ⟨g, f, fg, gf⟩
def comp {a b c} : iso a b → iso b c → iso a c
| ⟨f₁, g₁, g₁f₁, f₁g₁⟩ ⟨f₂, g₂, g₂f₂, f₂g₂⟩ := ⟨f₂ ∘ f₁, g₁ ∘ g₂, by simp [g₂f₂, g₁f₁], by simp [f₁... |
66c2adc12bee12d8a2dbdfb83b6f9e0739047908 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/number_theory/padics/ring_homs.lean | 2e90b9c350fea66282ad4c9d6cea7afd98ce4a78 | [
"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 | 24,349 | lean | /-
Copyright (c) 2020 Johan Commelin, Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import data.zmod.basic
import number_theory.padics.padic_integers
/-!
# Relating `ℤ_[p]` to `zmod (p ^ n)`
In this file we estab... |
5942fd8454d7df463a7fecb969c3bae25b4c99b0 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/testing/slim_check/sampleable.lean | ce17328b73888c74023d9236f4ddbcd16cd01a6b | [
"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,364 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.lazy_list.basic
import data.tree
import data.int.basic
import control.bifunctor
import control.ulift
import tactic.linarith
import testing.slim_check.gen
/-!
#... |
8d0970891b04a027eb4b859edf18157971525587 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/zmod/basic.lean | 487128e792bdec91e0bc4d35e0d711a87570a45d | [
"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 | 32,686 | 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 algebra.char_p.basic
import ring_theory.ideal.operations
import tactic.fin_cases
/-!
# Integers mod `n`
Definition of the integers mod n, and the field structur... |
1a00e6816eb4fb30fdcbbcc51f0af06ca925e873 | a46270e2f76a375564f3b3e9c1bf7b635edc1f2c | /5.8.1-3.7.classical.lean | 1f0ce1680831301d27e3a39bde08538fecb2a149 | [
"CC0-1.0"
] | permissive | wudcscheme/lean-exercise | 88ea2506714eac343de2a294d1132ee8ee6d3a20 | 5b23b9be3d361fff5e981d5be3a0a1175504b9f6 | refs/heads/master | 1,678,958,930,293 | 1,583,197,205,000 | 1,583,197,205,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,471 | lean | open classical
variables p q r s : Prop
example : (p → r ∨ s) → ((p → r) ∨ (p → s)) := begin
intro h, apply by_cases, {
assume hp: p,
cases (h hp),
left, intro, assumption,
right, intro, assumption,
}, {
assume hnp: ¬ p,
exact (or.inl $ λ hp:p, absurd hp hnp)
}
end
example : ¬(p ∧ q) ... |
c95e7215608d8779266b7c2a3be30c3d96523240 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1594_comment_issue.lean | 87d9b9c9b8489880ec2285991410f9e03c0df435 | [
"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 | 243 | lean | variables (A : Type) (f : A → ℕ → A) [has_mul A]
open nat
theorem thm' (a : A) : ∀ m n, f a m * f a n = f a n * f a m
| 0 n := sorry
| m 0 := sorry
| (succ m) (succ n) :=
have h : f a m * f a n = f a n * f a m, from thm' _ _,
sorry
|
9c266cb6007761f17615658d36b84f538225c06d | bce603343785d07c32cb8b35950aba0b4d9415ae | /lean4/Crypto.lean | 2d13df12191d91496dfc18044181bbddfe3a0ab1 | [] | no_license | fpvandoorn/cryptomorphism | db00cf0b12c8fd561a6200eee6a6ff2a023f1228 | d486419ecced54de3db759dae81110be44b7c28b | refs/heads/master | 1,693,198,883,854 | 1,636,562,038,000 | 1,636,562,038,000 | 363,219,330 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 75 | lean | import Crypto.Structure
def main : IO Unit :=
IO.println "Hello, world!" |
0107a105ca61b3b6e72e348683f423254dbee9e9 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/number_theory/padics/padic_norm.lean | dca3e8b178dc520332bc6339e5e3500ee487c3d0 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,970 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import algebra.order.absolute_value
import algebra.field_power
import ring_theory.int.basic
import tactic.basic
import tactic.ring_exp
/-!
# p-adic norm
This file... |
7504a3242a0c0b206e69db42a912f183c8e86c01 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/openInScopeBug.lean | b1498aab4ca56074dac4da2a3f12b17fcf3d26c2 | [
"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 | 809 | lean | opaque f : Nat → Nat
opaque g : Nat → Nat
namespace Foo
@[scoped simp] axiom ax1 (x : Nat) : f (g x) = x
@[scoped simp] axiom ax2 (x : Nat) : g (g x) = g x
end Foo
theorem ex1 : f (g (g (g x))) = x := by
simp -- does not use ax1 and ax2
simp [Foo.ax1, Foo.ax2]
theorem ex2 : f (g (g (g x))) = x :=
have h₁ : f... |
f228f69965005d6ea952ca6d8286ea99e2f7c61a | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/eq_to_hom.lean | 482160c728b5281c0b0d3d393046c9d9d457e750 | [
"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 | 3,967 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison
-/
import category_theory.opposites
universes v₁ v₂ u₁ u₂ -- declare the `v`'s first; see `category_theory.category` for an explanation
namespace category_th... |
5e533f464e1aa79c0d266f4c207910e438c469e0 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/real/cau_seq_completion.lean | 3f603be43de9754f2137e11b025e481dfde2904e | [
"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 | 9,474 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Robert Y. Lewis
Generalizes the Cauchy completion of (ℚ, abs) to the completion of a
commutative ring with absolute value.
-/
import data.real.cau_seq
namespace cau_s... |
4addee6141d74a2dcab2f3c1fe966242d20a001f | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/field_theory/fixed.lean | 115e8d2481a6d0616539c0dda51ff6ec2cb4811e | [
"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 | 6,529 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.group_action_hom
import field_theory.normal
import field_theory.subfield
import ring_theory.polynomial
/-!
# Fixed field under a group action.
This is the bas... |
4eac4049eb1fcb2b7f8c955ceed06b91f8dc38fa | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/part.lean | 28671676fba0e622f02735027eed50f37660eb31 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,808 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Jeremy Avigad, Simon Hudon
-/
import data.equiv.basic
/-!
# Partial values of a type
-/
/-- `part α` is the type of "partial values" of type `α`. It
is similar to `... |
39e0c9da900271d2320fb174202cb22250014dfc | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Server/Completion.lean | ed1803da9fcec8f23a2d6233fff0199e993cb10d | [
"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 | 12,732 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Environment
import Lean.Parser.Term
import Lean.Data.Lsp.LanguageFeatures
import Lean.Meta.Tactic.Apply
import Lean.Meta.Match.MatcherInfo
impor... |
e6ce31c33abe07f2a2dffbf0eb0a9652e3b80581 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebraic_geometry/prime_spectrum.lean | 35c54069462b03fbad19432d0e110243e9f03d63 | [
"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 | 13,562 | 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 topology.opens
import ring_theory.ideal.operations
import linear_algebra.finsupp
import algebra.punit_instances
/-!
# Prime spectrum of a commutative ring
Th... |
f19887ba739dab19f7a3a1ed7bcad28158902def | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/analysis/special_functions/integrals.lean | 8d471226dd47720658c6caf8cd72fc8595b4bfb0 | [
"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 | 18,944 | lean | /-
Copyright (c) 2021 Benjamin Davidson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Benjamin Davidson
-/
import measure_theory.integral.interval_integral
/-!
# Integration of specific interval integrals
This file contains proofs of the integrals of various specif... |
f71855f703deff82c16d88875e66d64947a6b215 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/equiv_rw.lean | 4ec7390db0bd777a92193a56d51e373adb340367 | [
"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 | 12,008 | 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 category.equiv_functor
import tactic.simp_result
/-!
# The `equiv_rw` tactic transports goals or hypotheses along equivalences.
The basic syntax is `equiv_rw... |
bb6903b9fd75c29b4cceefc94576fec19f347f85 | 8c9f90127b78cbeb5bb17fd6b5db1db2ffa3cbc4 | /divisibility.lean | 07ae226ee531a70fa23c70be621e225daf3e70d2 | [] | no_license | picrin/lean | 420f4d08bb3796b911d56d0938e4410e1da0e072 | 3d10c509c79704aa3a88ebfb24d08b30ce1137cc | refs/heads/master | 1,611,166,610,726 | 1,536,671,438,000 | 1,536,671,438,000 | 60,029,899 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,019 | lean | def isEven (n : nat) : Prop :=
∃ (m : nat), 2 * m = n
lemma FourIsEven : isEven 4 :=
exists.intro 2 (eq.refl 4)
-- (isEven 4) fourIsEven = .....
--int four = 4
--class proofsOfFour {}
--proofsOfFour myProof = ...
lemma nat.lte_zero (n : nat) : 0 ≤ n :=
@nat.rec_on (λ k', 0 ≤ k') n (le_refl 0) (λ k (p ... |
16d6bc00cc984161a96b5e02020097090a78caf9 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Elab/Util.lean | 07958760059dba8bd6d98808ef0c6c4c8dfa7dc5 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,744 | 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.Util.Trace
import Lean.Parser.Syntax
import Lean.Parser.Extension
import Lean.KeyedDeclsAttribute
import Lean.Elab.Exception
namespace Lean
de... |
bda9cfe8477f1adac742db6b6e641874f50ab694 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/sesquilinear_form.lean | 28fe5b9b2159881ed62f4e3d5b84dc65ddf34f35 | [] | 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 | 10,085 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Andreas Swerdlow
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.module.basic
import Mathlib.ring_theory.ring_invo
import Mathlib.PostPort
unive... |
5b85e85d2e88983ccf255ad4799b8ffe0bd6c51c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Parser.lean | 7745db80ed2083efeda7c44318e7c7634824dc38 | [
"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 | 7,692 | 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, Sebastian Ullrich
-/
import Lean.Parser.Basic
import Lean.Parser.Level
import Lean.Parser.Term
import Lean.Parser.Tactic
import Lean.Parser.Command
import Lea... |
5e2ab54098b7e2a23d68dd0a69833c1a332c46a7 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/clifford_algebra/contraction.lean | 152ebc5bd63b3c026786c8bcc3d992f968d165fb | [
"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 | 15,014 | lean | /-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.exterior_algebra.basic
import linear_algebra.clifford_algebra.fold
import linear_algebra.clifford_algebra.conjugation
/-!
# Contraction in Clifford ... |
c30a83ac0e2dc7d90663822196ca4c2a58cf5874 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /algebra/field.lean | b6c62c49a0e15882cd9bbfbd83852c83abd698e7 | [
"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 | 6,699 | 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
-/
import algebra.ring logic.basic
open set
universe u
variables {α : Type u}
instance division_ring.to_domain [s : division_ring α] : domain α :=
{ eq... |
fe6ebe03e1fb2603ac6dc166418c463e97e43c7e | 76df16d6c3760cb415f1294caee997cc4736e09b | /lean/src/cs/hp.lean | 5f86e2911a873a58421fb40d851dbdcedee4384c | [
"MIT"
] | permissive | uw-unsat/leanette-popl22-artifact | 70409d9cbd8921d794d27b7992bf1d9a4087e9fe | 80fea2519e61b45a283fbf7903acdf6d5528dbe7 | refs/heads/master | 1,681,592,449,670 | 1,637,037,431,000 | 1,637,037,431,000 | 414,331,908 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 6,310 | lean | import tactic.basic
import tactic.split_ifs
import tactic.linarith
import tactic.apply_fun
import .svm
import .lib
import .mrg
namespace sym
open lang
section hp
variables
{Model SymB SymV D O : Type}
[inhabited Model] [inhabited SymV]
(f : factory Model SymB SymV D O) {m : Model}
lemma factory.c... |
5dbc3e0bffbd031cc439b6a393539ea59916ff1b | 56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3 | /src/evaluation/bfs/baseline.lean | 3b97623da9ace96d5326d887f328d572f0e91ca8 | [
"Apache-2.0"
] | permissive | DyeKuu/lean-tpe-public | 3a9968f286ca182723ef7e7d97e155d8cb6b1e70 | 750ade767ab28037e80b7a80360d213a875038f8 | refs/heads/master | 1,682,842,633,115 | 1,621,330,793,000 | 1,621,330,793,000 | 368,475,816 | 0 | 0 | Apache-2.0 | 1,621,330,745,000 | 1,621,330,744,000 | null | UTF-8 | Lean | false | false | 841 | lean | import evaluation_step
import backends.bfs.baseline
import utils
section main
open baseline
-- use this version for testing using tidy_greedy_proof_search
meta def main : io unit := do {
args ← io.cmdline_args,
decls_file ← args.nth_except 0 "decls_file",
dest ← args.nth_except 1 "dest",
fuel ← string.to_nat... |
e2ea1d3080f9f6ece6d7f4f9a34e852d17c980d9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/set_theory/ordinal/cantor_normal_form.lean | 148bc847319ef3dd03d752e38a8de96fbab172b5 | [
"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 | 5,511 | 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 set_theory.ordinal.arithmetic
/-!
# Cantor Normal Form
The Cantor normal form of an ordinal is generally defined as its base `ω` expansion, with its
non-zer... |
3cc690fd65051198e64a39f57860187ae387a951 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/algebra/mul_action.lean | b5719e3c8d659846243cb5ee73137405c1ae0715 | [
"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 | 6,765 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import topology.algebra.constructions
import group_theory.group_action.prod
import group_theory.group_action.basic
import topology.algebra.const_mul_action
/-!
# C... |
6cc33475f735ac6b18b48c541bd2d0af3fb73a86 | 618003631150032a5676f229d13a079ac875ff77 | /test/interval_cases.lean | 1c4d65a2ea8854be769f7557e831203409c6dacd | [
"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 | 3,887 | 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 tactic.interval_cases
example (n : ℕ) : true :=
begin
success_if_fail { interval_cases n },
trivial
end
example (n : ℕ) (h : 2 ≤ n) : true :=
begin
su... |
749e95a7b40b7c4b7e17dd8be713954694eb4ad9 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/deprecated/group.lean | a5ff15ccb53fcbee48ca2e1fd2b0ff88b3d9c821 | [
"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 | 12,520 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import algebra.group.type_tags
import algebra.group.units_hom
import algebra.ring.basic
/-!
# Unbundled monoid and group homomorphisms (deprecated)
This file defin... |
4e23a2dda467744efe382ed0bd69b64b45de7bdd | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/sites/whiskering.lean | 595368886b0d1323cb6a5bf30fe3c90ff55678c3 | [
"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 | 4,247 | 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.sheaf
/-!
In this file we construct the functor `Sheaf J A ⥤ Sheaf J B` between sheaf categories
obtained by composition with a functor `F : A... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.