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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
72fbeecb120904bd3853903a1fc0e5bde464941b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/symmetrized.lean | 3eccd1459a78b2dfa3260855727667d0ff6e66cd | [
"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 | 8,811 | lean | /-
Copyright (c) 2021 Christopher Hoskin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christopher Hoskin
-/
import algebra.module.basic
import tactic.abel
/-!
# Symmetrized algebra
A commutative multiplication on a real or complex space can be constructed from any... |
5de826c07d50f2c7bf3d559b43c8aea0c66c2da3 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/simp_auto_param.lean | 8e3bb4b8ee21e11ece28ec732f50703adb9b886d | [
"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 | 158 | lean | constant f : nat → nat
axiom fax (x : nat) (h : x > 0 . tactic.assumption) : f x = x
example (a : nat) (h : a > 0) : f (f a) = a :=
begin
simp [fax]
end
|
2932054eda19f192f77b0c8e25e4213ad22d5be2 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/tactic/omega/nat/main.lean | b52a8c6d236f8cea20628d5205fb089cb2d5c9c9 | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 5,190 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Main procedure for linear natural number arithmetic.
-/
import tactic.omega.prove_unsats
import tactic.omega.nat.dnf
import tactic.omega.nat.neg_elim
import tactic.omega.nat.sub_... |
b35747f1ffbcc992b71c25888e7a891084fc283c | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/normed_space/lattice_ordered_group.lean | c548b6392cfd2369988ab1436b972b6e1ff5ab42 | [
"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 | 5,857 | lean | /-
Copyright (c) 2021 Christopher Hoskin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christopher Hoskin
-/
import analysis.normed_space.basic
import algebra.lattice_ordered_group
import topology.order.lattice
/-!
# Normed lattice ordered groups
Motivated by the t... |
37b1b24adbcfa002a68110d89a13261655781d0d | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/category_theory/monoidal/transport.lean | 0ef8ded16ceffe6fe1d28ab70d0c111c8b272812 | [
"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 | 11,377 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monoidal.natural_transformation
/-!
# Transport a monoidal structure along an equivalence.
When `C` and `D` are equivalent as categories,
we ... |
4dcf5bdbfc541049d79b6d21d6ea6521d659cd55 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/seq/seq.lean | 0b308c83fccbf13df04a3fae5c08366f7b65d1eb | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 25,150 | lean | import data.stream data.lazy_list data.seq.computation logic.basic tactic.interactive
universes u v w
/-
coinductive seq (α : Type u) : Type u
| nil : seq α
| cons : α → seq α → seq α
-/
/-- `seq α` is the type of possibly infinite lists (referred here as sequences).
It is encoded as an infinite stream of options s... |
8102d5cf7020047e5230a41f50b42e5d32a6f433 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_tuple1.lean | 129c77442884cc5cf332a4a74d85f52a3bb65f72 | [
"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 | 841 | lean | import data.nat
open nat
constant tuple.{l} : Type.{l} → nat → Type.{l}
constant nil {A : Type} : tuple A 0
constant cons {A : Type} {n : nat} : A → tuple A n → tuple A (succ n)
constant append {A : Type} {n m : nat} : tuple A n → tuple A m → tuple A (n + m)
infix ` ++ ` := append
axiom append_nil {A : Type} {n : nat}... |
7d145c09068cf56378142356caec750a76b3f3c4 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/category_theory/functor/category.lean | d19024ee0f9a58c769cc966a444ccb17b1b5e5f2 | [
"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 | 5,285 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.natural_transformation
import category_theory.isomorphism
/-!
# The category of functors and na... |
e464992abbbdac7ac19d217bc5e3349a906ead8e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/sheaves/sheaf_auto.lean | 6c0bffd6a0294aaed4529a2f09109c377c6ffa99 | [] | 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,528 | 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.topology.sheaves.sheaf_condition.equalizer_products
import Mathlib.category_theory.full_sub... |
d5123052ee90821a650bd2e098371fead6d06e94 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/groupoid.lean | a48a7b01338e61890eac30e172851e4465221803 | [] | 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,992 | 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, David Wärn
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.epi_mono
import Mathlib.PostPort
universes v u l u₂
... |
9f5a976456e522fea5eef5f1ca5f055ac1c79242 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/uniform_space/compare_reals.lean | 4da0b8014a4e1070eb06c58f0b30d6fa0c041fb6 | [
"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,836 | 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.absolute_value
import topology.instances.real
import topology.instances.rat
import topology.uniform_space.completion
/-!
# Comparison o... |
a4cc860a4fde8aa86ec8b310021eb78d94eaf295 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/group_theory/submonoid/membership.lean | 849d63fdeb40dcca1e8248357f8534f62275b7f1 | [
"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 | 14,028 | 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, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov
-/
import group_theory.submonoid.operations
import algebra.big_operators.ba... |
c78c8e01649336c06274823f8f9db30f822e9ab1 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /tests/pkg/misc/Misc.lean | ec165e72ce7158a4b56ba1c15ea907512d20a72c | [
"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 | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 360 | lean | import Misc.Foo
import Lean
open Lean Meta
#eval id (α := MetaM Unit) do
assert! (← getEnv).getModuleIdxFor? ``foo == (← getEnv).getModuleIdxFor? `auxDecl1
IO.println <| (← getEnv).getModuleIdxFor? ``Lean.Environment
IO.println <| (← getEnv).getModuleIdxFor? ``foo
IO.println <| (← getEnv).getModuleIdxFor? `au... |
7d06646e377ac6e5d3d77408037bab262ebee0e6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/free_product.lean | 8471ceda859890983a18c488306c072cd014e7c1 | [
"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 | 34,166 | lean | /-
Copyright (c) 2021 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn, Joachim Breitner
-/
import algebra.free_monoid
import group_theory.congruence
import group_theory.is_free_group
import group_theory.subgroup.pointwise
import data.list.chain
im... |
ceec5ded5e655c63aac630dfe0d087b1e2e6359d | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /kb_solns/sets_level02.lean | 7da0e66a35502bccec0f0fed48ea55f70f5028e0 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,909 | lean | import game.sets.L01defs -- hide
namespace xena -- hide
variable X : Type -- hide
/-
# Chapter 1 : Sets
## Level 2
-/
/-
Working with sets is very similar to working with propositions.
Let's now prove that any set $A$ is included in its union with
any other set $B$, or $A ⊆ A ∪ B$.
Our goal is definitionally e... |
7958d35245b7ab55ac80827c7be5047b9d294e7b | 3268ab3a126f0fef71459fbf170dc38efe5d0506 | /colimit/sequence.hlean | 0f1d9df2306d73ba2cec7d6403d179e0323c3438 | [
"Apache-2.0"
] | permissive | soraismus/Spectral | f043fed1a4e02ddfeba531769b2980eb817471f4 | 32512bf47db3a1b932856e7ed7c7830b1fc07ef0 | refs/heads/master | 1,585,628,705,579 | 1,538,609,948,000 | 1,538,609,974,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,467 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Egbert Rijke
-/
import ..move_to_lib types.fin types.trunc
open nat eq equiv sigma sigma.ops is_equiv is_trunc trunc prod fiber function is_conn
namespace seq_co... |
77b97dec8ce34ccb4aecfd0b15336e20cf9c85d9 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/polynomial/basic.lean | ae594c56244da2a5ba52e2b68ed27510cb9abf6c | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,935 | 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 tactic.ring_exp
import tactic.chain
import algebra.monoid_algebra
import data.finset.sort
/-!
# Theory of univaria... |
93afda6b20ae18a02bed6f296e142a929df3909d | 46125763b4dbf50619e8846a1371029346f4c3db | /src/data/complex/exponential.lean | 3ebba555aac9afc2ed37b8bf17e61eede2283dd9 | [
"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 | 47,836 | 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
-/
import algebra.archimedean algebra.geom_sum
import data.nat.choose data.complex.basic
import tactic.linarith
local notation `abs'` := _root_.ab... |
5c875ad8ae298158630c7d5db6fdd338f1d780c9 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /group_theory/free_group.lean | 54b57fa91b4232c4d8188ddfb15327e2f905087c | [
"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 | 28,879 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Free groups as a quotient over the reduction relation `a * x * x⁻¹ * b = a * b`.
First we introduce the one step reduction relation
`free_group.red.step`: w * x * x⁻¹ * v ~... |
2a1671355ec2cac2850960f6bacb1fdff73618d4 | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/meta/smt/interactive.lean | 458141d38c616d189dfcc890d0d0dfaca25e8129 | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 8,940 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.smt.smt_tactic init.meta.interactive
namespace smt_tactic
meta def skip : smt_tactic unit :=
return ()
meta def solve_goals : smt... |
ec539419d7d7fea96f44f461c4dea4b8dba39b7d | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /test/solve_by_elim.lean | 5f25a59b593ba07b2ed72e2fcd49e1166e8a1781 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 2,702 | 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.solve_by_elim
example {a b : Prop} (h₀ : a → b) (h₁ : a) : b :=
begin
apply_assumption,
apply_assumption,
end
example {X : Type} (x : X)... |
6cdad5ba10a29c29c72e0d37f444dea79345cdbb | b561a44b48979a98df50ade0789a21c79ee31288 | /stage0/src/Init/Prelude.lean | 737332a7f5e7eb3025c1256ca85d428cb2aa3091 | [
"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 | 78,715 | 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
universe u v w
@[inline] def id {α : Sort u} (a : α) : α := a
abbrev Function.comp {α : Sort u} {β : Sort v} {δ : Sort w} (f : β → δ) (g : α → β)... |
172393e992079618dad89af8b8d4c078703d2fb7 | 750acab0c635b67751bcfec43c5411aa3941c441 | /hilbert.lean | 7a6cc3de0663483ff063e9f4778271e3a23807ac | [] | no_license | nthomas103/lean_work | 912f8e662cdd73ba97f5d3655ddb8a5d2cd204c9 | 7e9785cae2b60a77b41922fd5d5b159a1fae415c | refs/heads/master | 1,586,739,169,355 | 1,455,759,226,000 | 1,455,759,226,000 | 50,978,095 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,104 | lean | import standard algebra.module theories.topology.basic
import theories.analysis.normed_space theories.analysis.ivt
import theories.analysis.metric_space
open real nat algebra prod function analysis classical
open fin set topology
definition vector [reducible] (T : Type) (n : ℕ) := fin n → T
definition δ {n} : fin n ... |
1e31434a52c37c2f574677ba0e304f995ff24b68 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/order/priestley.lean | 8cbdc517584256a7bc9258eab83683be207571be | [
"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,794 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.upper_lower.basic
import topology.separation
/-!
# Priestley spaces
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresp... |
d0ae6802b6f87b79a9da702d0accbf3b15367b5b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/elabissues/patternIssue.lean | 9ad88efeffc7f37f89e0ce851f47c86490895b3e | [
"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 | 214 | lean | inductive Moo : Type
| M1 : Moo
| M2 : Moo
inductive Foo : Type
| mk₁ : Moo → Foo
| mk₂ : Foo
def bar : Foo → String
| Foo.mk₁ M1 => "mk₁ M1"
| _ => "else"
#eval bar (Foo.mk₁ Moo.M2) -- "mk₁ M1"
|
92d925a8ff6028ed0eb10e8146948eb9ab95a923 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/widget/html_cmd.lean | b5d54efd2ccffc3182744529757f9adab8398a83 | [] | 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 | 482 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.widget.basic
import Mathlib.Lean3Lib.init.meta.lean.parser
import Mathlib.Lean3Lib.init.meta.interactive_base
import Mathlib... |
9ab26a0dc0666df77d9cf55ce2f3c4a95bec87df | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /library/data/vector.lean | 7fe2f6614b3f58663edc235b90204ac7cbfa5ef6 | [
"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 | 3,689 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Tuples are lists of a fixed size.
It is implemented as a subtype.
-/
import data.list
universes u v w
def vector (α : Type u) (n : ℕ) := { l : list α // l.le... |
9f3d81b09f00308f7d877df573b007e7cea1c166 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/inner_product_space/calculus.lean | 9f95e4b6a1992add2eb84f9520ce5763fafd59fb | [
"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 | 15,342 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.inner_product_space.pi_L2
import analysis.special_functions.sqrt
/-!
# Calculus in inner product spaces
In this file we prove that the inner produ... |
ff3053a52ac6fcdddff79b08393876cfd2365250 | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /old/test/lang_test_Q.lean | 6da6964ee6f044a5f30181829399c63400e445bf | [] | no_license | kevinsullivan/lang | d3e526ba363dc1ddf5ff1c2f36607d7f891806a7 | e9d869bff94fb13ad9262222a6f3c4aafba82d5e | refs/heads/master | 1,687,840,064,795 | 1,628,047,969,000 | 1,628,047,969,000 | 282,210,749 | 0 | 1 | null | 1,608,153,830,000 | 1,595,592,637,000 | Lean | UTF-8 | Lean | false | false | 3,148 | lean | import ..imperative_DSL.physlang
#check 1
/-
uncertain how this should get printed
-/
abbreviation K := ℚ
/-
If we want to include in a different space, whether it be a 2nd time or geom,
problems come up here. Either we share the same space in the environment,
or we add in new space type arguments to env. This do... |
543dac31b5657857b8821cb43f9ed3948d703ce7 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/algebra/euclidean_domain.lean | 51cbe64d627aafccd70a2264959c2367cc8e335a | [
"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 | 17,130 | lean | /-
Copyright (c) 2018 Louis Carlin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Louis Carlin, Mario Carneiro
-/
import data.int.basic
import algebra.field
/-!
# Euclidean domains
This file introduces Euclidean domains and provides the extended Euclidean algorithm... |
d5c00e5fbfd5a54325208257dc6604a3888e1ff6 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/new_inductive.lean | 11f6e58bb6cd4a5b091cd17a8f4e2e6376af9094 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 1,899 | lean | universes u v
inductive myList (α : Type u)
| nil : myList
| cons : α → myList → myList
inductive myPair (α : Type u) (β : Type v)
| mk : α → β → myPair
mutual inductive bla, boo (α : Type u) (m : α → Type v)
with bla : Nat → Type (max u v)
| mk₁ (n : Nat) : α → boo n → bla (n+1)
| mk₂ (a : α) : m a → String → bl... |
3cc85788b16d02944740ea35c72b60c0de2a2f8b | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/calculus/tangent_cone.lean | 10009a260f2712e031e1db684f947da53d6e5ec1 | [
"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 | 20,165 | 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.convex.topology
import analysis.normed_space.basic
import analysis.specific_limits.basic
/-!
# Tangent cone
In this file, we define two predic... |
2084047b8ed70f56d6e727267e6a027d9f488e58 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/measure_theory/indicator_function.lean | 9338e638f01f7bdb80f58dff691d62664fa120d7 | [
"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 | 5,671 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import data.indicator_function
import measure_theory.measure_space
import analysis.normed_space.basic
/-!
# Indicator function
Properties of indicator functions.
##... |
8be9f7dd49f1e6c03175d73b4bbe7223936cfd74 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/standard/logic/axioms/piext.lean | 56c17084b5a02e5cf8bf094945b50f012af737c6 | [
"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 | 1,511 | 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
-----------------------------------------------------... |
30eafac6406953d391f2727e6a45975a9a626614 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/data/fin_enum.lean | 920a968caf215cc8eaa84388d36df026aa1e5a16 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 9,007 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Simon Hudon
-/
import category.monad.basic
import data.list.basic
import data.equiv.basic
import data.finset
import data.fintype
/-!
Type class for finitely enumerable types. The prope... |
05382a97e0bd5cfd153ef3939d1a9f660de77890 | e0b0b1648286e442507eb62344760d5cd8d13f2d | /tests/lean/interactive/plainGoal.lean | 894a63cc728eda4abfa88448b0821e0b11b74ae1 | [
"Apache-2.0"
] | permissive | MULXCODE/lean4 | 743ed389e05e26e09c6a11d24607ad5a697db39b | 4675817a9e89824eca37192364cd47a4027c6437 | refs/heads/master | 1,682,231,879,857 | 1,620,423,501,000 | 1,620,423,501,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 859 | lean | example : α → α := by
--^ $/lean/plainGoal
--^ $/lean/plainGoal
intro a
--^ $/lean/plainGoal
--^ $/lean/plainGoal
--v $/lean/plainGoal
focus
apply a
example : α → α := by
--^ $/lean/plainGoal
example : 0 + n = n := by
induction n with
| zero => simp... |
20028b17ea566fca2bc521aa1229bea27e3cff71 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/obtain_hott.hlean | 3f6c0178af1720ef6a8d5348dbd3d9b76e590291 | [
"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 | 961 | hlean | open prod sigma
theorem tst2 (A B C D : Type) : (A × B) × (C × D) → C × B × A :=
assume p : (A × B) × (C × D),
obtain [a b] [c d], from p,
(c, (b, a))
theorem tst22 (A B C D : Type) : (A × B) × (C × D) → C × B × A :=
assume p,
obtain [a b] [c d], from p,
(c, (b, a))
theorem tst3 (A B C D : Type) : A × B × C × D → C ... |
7ffd1f3d2f2b4107ebe548f5fcccb34e04351651 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/transport.lean | 6a977d2e05e85ca988e8cb1df1e787677220ee4c | [
"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 | 5,386 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Simon Hudon, Scott Morrison
-/
import tactic.equiv_rw
/-!
## The `transport` tactic
`transport` attempts to move an `s : S α` expression across an equivalence `e : α ≃... |
9860557f3642b46508225acc1c37a5a3cbb7c348 | 7617a8700fc3eebd9200f1e620ee65b3565d2eff | /src/vc0/determ.lean | 29077a588c47e884e95037e0ae854b6a777a01d0 | [] | no_license | digama0/vc0 | 9747eee791c5c2f58eb53264ca6263ee53de0f87 | b8b192c8c139e0b5a25a7284b93ed53cdf7fd7a5 | refs/heads/master | 1,626,186,940,436 | 1,592,385,972,000 | 1,592,385,972,000 | 158,556,766 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,696 | lean | import vc0.basic
namespace c0
open ast
namespace value
theorem step_comp.determ {op v₁ v₂ b₁ b₂}
(h₁ : step_comp op v₁ v₂ b₁)
(h₂ : step_comp op v₁ v₂ b₂) : b₁ = b₂ :=
begin
suffices : ∀ {op' v₁' v₂'} (e : (op, v₁, v₂) = (op', v₁', v₂'))
(h₂ : step_comp op' v₁' v₂' b₂), b₁ = b₂,
from this rfl h₂,
clear... |
45abf15806f84828611c415ba4b263df46436b61 | a1179fa077c09acc49e4fbc8d67084ba89ac4f4c | /src/sublattice.lean | b174f36e32424a8ecc3e25c814dc2124aada96e5 | [] | no_license | Seeram/Lean-proof-assistant | 11ca0ca0e0446bacdd1773c4c481a3653b2f1074 | e672d46e0e5f39d8de2933ad4f4cac095ca6094f | refs/heads/master | 1,682,754,224,366 | 1,620,959,431,000 | 1,620,959,431,000 | 299,000,950 | 0 | 1 | null | 1,620,680,462,000 | 1,601,200,258,000 | Lean | UTF-8 | Lean | false | false | 2,914 | lean | import order.lattice
variables { L : Type* } [ lattice L]
set_option old_structure_cmd true
structure sublattice ( L : Type* ) [lattice L] :=
( carrier : set L)
( inf_mem' {a b : L} : a ∈ carrier → b ∈ carrier → a ⊓ b ∈ carrier )
( sup_mem' {a b : L} : a ∈ carrier → b ∈ carrier → a ⊔ b ∈ carrier )
namespace ... |
6e7b39011dbef983db591caf7b50881a5b1ad376 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/algebra/ordered_group.lean | 207acd2577f850b3ee919d28688237a06e36312f | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,206 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.algebra.order init.algebra.group
/- Make sure instances defined in this file have lower priority than the ones
define... |
2b5d5cfcd56f51b746acb91189ca63420ffcd782 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1820.lean | d4860d6701e794d1b9c13edbf21ff02fe3f2f66a | [
"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 | 242 | lean | def f (p : nat × nat) : nat × nat := {p with}
structure P (A : Type) extends prod A A :=
(third : A)
def g (s : P nat) : nat × nat := {s with}
example : g (P.mk (1, 2) 3) = (1, 2) :=
rfl
example : g ⟨⟨1, 2⟩, 3⟩ = (1, 2) :=
rfl
|
71e927246514c4bff1e670ddd677c7e35ca28967 | 32317185abf7e7c963f4c67c190aec61af6b3628 | /library/data/real/basic.lean | 472a7c11825cfdf44d3e9100c998b6ecd3d16561 | [
"Apache-2.0"
] | permissive | Andrew-Zipperer-unorganized/lean | 198a2317f21198cd8d26e7085e484b86277f17f7 | dcb35008e1474a0abebe632b1dced120e5f8c009 | refs/heads/master | 1,622,526,520,945 | 1,453,576,559,000 | 1,454,612,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 42,486 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
The real numbers, constructed as equivalence classes of Cauchy sequences of rationals.
This construction follows Bishop and Bridges (1985).
The construction of the rea... |
301a5f6054a4772724f12b05e2bd2786b430c1fc | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/continuous_function/compact.lean | 30844763f0d4dd061c1b97a3e505add21a3eb084 | [
"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 | 15,975 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.continuous_function.bounded
import topology.uniform_space.compact_separated
import topology.compact_open
import topology.sets.compacts
/-!
# Continuo... |
ca8ca250bbd6e41952a2e34c784b858ab460c51e | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/inner_product_space/positive.lean | 8b35a1d815b431a1855d26dc9ba71e780efa2e24 | [
"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 | 4,409 | lean | /-
Copyright (c) 2022 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import analysis.inner_product_space.adjoint
/-!
# Positive operators
In this file we define positive operators in a Hilbert space. We follow Bourbaki's choice
o... |
006906688e3aa658ab22812ad86b6d7213140ab0 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/584c.lean | cd4abd8b67d97d21ef0b80509d5d123b86d91722 | [
"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 | 494 | lean | section
universe variables u parameter (A : Type u)
section
parameters (a b : A)
parameter (H : a = b)
definition tst₁ := a
parameter {A}
definition tst₂ := a
lemma symm₂ : b = a := eq.symm H
parameters {a b}
lemma foo (c : A) (h₂ : c = b) : c = a :=
eq.trans h₂ symm₂
en... |
aedbe9d1c3b22d7f11619c3a33ab00768ea551d5 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Data/UInt.lean | 4ed037ca6d8696a9c02d4d83852dd8b578ca2d60 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 15,086 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Fin.Basic
import Init.System.Platform
open Nat
def uint8Sz : Nat := 256
structure UInt8 :=
(val : Fin uint8Sz)
@[extern "lean_ui... |
92ef31e52a707ad6abc2fc09df37a8e9ae85dd19 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/tst1.lean | 6a80d242d6d75fde82662562d33651851984fadb | [
"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 | 1,146 | lean | -- Define a "fake" type to simulate the natural numbers. This is just a test.
variable N : Type
variable lt : N -> N -> Bool
variable zero : N
variable one : N
variable two : N
variable three : N
infix 50 < : lt
axiom two_lt_three : two < three
definition vector (A : Type) (n : N) : Type := forall (i : N) (H : i < n), ... |
d2c53f88a3e1b2718045c94bbfc630f2188a0156 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/fun_like/embedding.lean | e896144a9f438b2099cdcaf3cda35d71d29ee20a | [
"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,789 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import data.fun_like.basic
/-!
# Typeclass for a type `F` with an injective map to `A ↪ B`
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-com... |
7c30af2a98d25f30008c613db489f876397fd64a | e8159fb1a58abf09f7d75106ba3aa6c1c504c038 | /theorem-proving-in-lean/5.8.2. tactic combinators.lean | 3426df65c2ac61db41fab1af9c5966a8d3779943 | [] | no_license | ndcroos/lean-snippets | cbf53e777a72964b6875a8c98bdd7eb02e74e246 | b66736347cd80a4143e43397f359dbdf9cbcd491 | refs/heads/master | 1,584,160,922,314 | 1,525,542,053,000 | 1,525,542,053,000 | 131,447,243 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 178 | lean | /-
Use tactic combinators to obtain a one line proof of the following:
example (p q r : Prop) (hp : p) :
(p ∨ q ∨ r) ∧ (q ∨ p ∨ r) ∧ (q ∨ r ∨ p) :=
by admit
-/
|
1866aa41f05cf8025bc257a4f9f6ea18d2556cb9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/monoidal/CommMon_.lean | a1927522cdd782cc05c751dbed11113ebdb6d6e3 | [] | 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,945 | 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.braided
import Mathlib.category_theory.monoidal.Mon_
import Mathli... |
ac48442436ae77e4eb0e96d499e654a70ac415b9 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/analysis/convex/slope.lean | 4fac058af33e965116a935b0898d2e72c283c5e5 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,344 | lean | /-
Copyright (c) 2021 Yury Kudriashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudriashov, Malo Jaffré
-/
import analysis.convex.function
/-!
# Slopes of convex functions
This file relates convexity/concavity of functions in a linearly ordered field and t... |
e994c64067815bca9fade1fb597fc59b7936fe61 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/polynomial/gauss_lemma.lean | c0681583f97d54ec52730343a1d00d3224965cd4 | [
"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 | 8,008 | 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 ring_theory.int.basic
import ring_theory.localization.integral
/-!
# Gauss's Lemma
Gauss's Lemma is one of a few results pertaining to irreducibility of prim... |
bb5c0c21ecfaae5619b15f15055795a8fa5ae829 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/fin.lean | 252834abbb256cb03970ff6eb5ef9ed92a3a94f4 | [
"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 | 68,518 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
-/
import data.nat.cast
import data.int.basic
import tactic.localized
import tactic.apply_fun
import order.rel_iso
/-!
# The finite type with `n` element... |
9f1553b6053a354eeb4d9b1b801e0e49305b7b1a | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/group_theory/congruence.lean | 4d5d10def7e96c0ee64fc9df6f30550b9ca41260 | [
"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 | 51,439 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston
-/
import group_theory.submonoid.operations
import data.equiv.mul_add
import data.setoid.basic
import algebra.group.prod
/-!
# Congruence relations
This file def... |
ccea730f6c627027fac713c9884370c1e504ee9a | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/ring_theory/discrete_valuation_ring.lean | 39e408c5cf81177ec136ff55527a4b9543427b07 | [
"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 | 16,260 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import ring_theory.principal_ideal_domain
import order.conditionally_complete_lattice
import ring_theory.multiplicity
import ring_theory.valuation.basic
/-!
# Discret... |
bcdf39f5a54ada6424ae8356b2f8d06002eafa94 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/ToExpr.lean | bc81fc99fc774a9b6087bfe94eaef783dd9a5eb6 | [
"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 | 3,092 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Expr
universe u
namespace Lean
/--
We use the `ToExpr` type class to convert values of type `α` into
expressions that denote these values in L... |
dc2af3f6a65af445c668dd4c7cd0d36f2f4368f2 | 61c3861020ef87c6c325fc3c3dcbabf5d6b07985 | /types/prod.lean | cc7cb917857fc037228029e4cbc72ba58f614929 | [
"Apache-2.0"
] | permissive | jonas-frey/hott3 | a623be2959e8a713c03fa1b0f34bf76a561dfa87 | a944051b4eb5919bdc70978ee15fcbb48a824811 | refs/heads/master | 1,628,408,720,559 | 1,510,267,042,000 | 1,510,267,042,000 | 106,760,764 | 0 | 0 | null | 1,507,856,238,000 | 1,507,856,238,000 | null | UTF-8 | Lean | false | false | 12,610 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jakob von Raumer
Ported from Coq HoTT
Theorems about products
-/
import ..init
universes u v w
hott_theory
namespace hott
open eq equiv is_equiv is_trunc prod u... |
c5ecd1e32cb58835b2669eae3530f55caf67acc6 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/algebra/direct_limit.lean | 2a2ffa9e9b9f7087604fce20f2088298c27500b1 | [
"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 | 25,502 | lean | /-
Copyright (c) 2019 Kenny Lau, Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes
Direct limit of modules, abelian groups, rings, and fields.
See Atiyah-Macdonald PP.32-33, Matsumura PP.269-270
Generalizes the notion of "union", o... |
29a7d9f476b67195d1feaff678966b03fef9229e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/normed_space/add_torsor_bases.lean | fe7cb7765458d9ce0fd02cf96bc8328a2bfec6e0 | [
"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 | 6,959 | 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.convex.combination
import linear_algebra.affine_space.basis
import linear_... |
3dd9965d7ebc3c3d1d23be07ef65b4f39699be22 | 8f209eb34c0c4b9b6be5e518ebfc767a38bed79c | /code/src/internal/tactics.lean | fe56557063f5c57f48b834de0ff05129790b17d9 | [] | no_license | hediet/masters-thesis | 13e3bcacb6227f25f7ec4691fb78cb0363f2dfb5 | dc40c14cc4ed073673615412f36b4e386ee7aac9 | refs/heads/master | 1,680,591,056,302 | 1,617,710,887,000 | 1,617,710,887,000 | 311,762,038 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,836 | lean | import tactic
open tactic expr
namespace tactic
namespace interactive
setup_tactic_parser
private meta def try_specialize_all (v: pexpr) : tactic unit :=
do
ctx ← local_context,
ctx.mall (λ e,
do
try `[ specialize %%e %%v ],
return tt
),
skip
meta def induction_ant_di... |
b7118768fa75dfc7897462b1672d28c4af50f62e | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Init/Data/Range.lean | c9791906fca735eb02b3e19c40677d1ce717afc0 | [
"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 | 3,266 | 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
namespace Std
-- We put `Range` in `Init` because we want the notation `[i:j]` without importing `Std`
-- We don't put `Range` in... |
5e4df86ab6874ebd409894a0f6d7bf7224fef900 | ec62863c729b7eedee77b86d974f2c529fa79d25 | /24/a.lean | 5a13d336d005fc8581421333227df487e3a93270 | [] | no_license | rwbarton/advent-of-lean-4 | 2ac9b17ba708f66051e3d8cd694b0249bc433b65 | 417c7e2718253ba7148c0279fcb251b6fc291477 | refs/heads/main | 1,675,917,092,057 | 1,609,864,581,000 | 1,609,864,581,000 | 317,700,289 | 24 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 922 | lean | import Std.Data.HashSet
open Std
instance : Hashable Int where
hash n := hash n.toNat
@[reducible] def Hex := Int × Int
def Hex.x : Hex → Int := Prod.fst
def Hex.y : Hex → Int := Prod.snd
instance : Add Hex where
add h₁ h₂ := ⟨h₁.x + h₂.x, h₁.y + h₂.y⟩
def parseLine : List Char → Hex
| [] => ⟨0, 0⟩
| 'e' :: re... |
4093ad9dde4c438bf6784be4e5b8678754c52fdc | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/torsion.lean | d68a355364f9883a98c2eb9ac4feaf47119df3a0 | [
"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 | 14,840 | lean | /-
Copyright (c) 2022 Julian Berman. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Berman
-/
import algebra.is_prime_pow
import group_theory.exponent
import group_theory.order_of_element
import group_theory.p_group
import group_theory.quotient_group
import gro... |
05eedd1ca56f3a27efab04ddbb1ba951c4cd1699 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/logic/function.lean | 43ea7e7c491ad12910e75703a6f8b16ae6e905e9 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 9,154 | lean | /-
Copyright (c) 2016 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Miscellaneous function constructions and lemmas.
-/
import logic.basic data.option.defs
universes u v w
namespace function
section
variables {α : Sor... |
1549387d98e7cc2790db3e0d94e616696e2d6b6c | 1a0ffdcf53257a17fc84389d095ed455abfee1f4 | /src/mobius.lean | 21aa581882c9479ecde09a614a31f698eab4830e | [] | no_license | Nolrai/mobius | e0add98c20bbdd2cc3b2b4a1c5b85615698f13d9 | 34c972f4eb458d8c625cd0d74c50b78629e8d833 | refs/heads/master | 1,669,056,745,051 | 1,594,030,395,000 | 1,594,030,395,000 | 277,259,867 | 0 | 0 | null | 1,594,485,089,000 | 1,593,937,214,000 | Lean | UTF-8 | Lean | false | false | 2,725 | lean | import data.matrix.basic
import data.matrix.notation
import data.complex.basic
import wheel
noncomputable def non_zero : submonoid ℂ :=
{ carrier := (≠ 0),
one_mem' := by {unfold has_mem.mem set.mem, norm_num},
mul_mem' :=
begin unfold has_mem.mem set.mem, intros a b a0 b0 ab0
, have h : a = 0 ∨ b = 0
, {app... |
63ff1fd579a6a11397663a987303ad69d3d1b14c | 26ac254ecb57ffcb886ff709cf018390161a9225 | /test/conv/apply_congr.lean | b3803216f8c16aec5a3e3971de6b69b3ce60c05a | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 3,154 | lean | /-
Copyright (c) 2019 Lucas Allen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen, Scott Morrison
-/
import algebra.big_operators
import data.finsupp
import tactic.converter.apply_congr
import tactic.interactive
example (f g : ℤ → ℤ) (S : finset ℤ) (h : ∀... |
04c9514510913f0cb93732c30fcbea329e526710 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/special_functions/pow.lean | 014d93414a15859008be1b0cd8b6b48cad72ba63 | [
"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 | 85,321 | 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, Sébastien Gouëzel,
Rémy Degenne, David Loeffler
-/
import analysis.special_functions.complex.log
/-!
# Power function on ... |
c630ae2c57fd4b705dca0ad7746f9afff04972ac | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/fin/succ_pred.lean | 1a8277e5e971f285c56dadc5b2716efd1e50af7d | [
"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,997 | lean | /-
Copyright (c) 2022 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import data.fin.basic
import order.succ_pred.basic
/-!
# Successors and predecessors of `fin n`
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this fil... |
d6cccf73a733021e97cbbae80654c726cc3de934 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/support.lean | 79286fe5e723250f2bb0dbc0822d2aa3761bfd05 | [
"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 | 12,640 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import order.conditionally_complete_lattice.basic
import data.set.finite
import algebra.big_operators.basic
import algebra.group.prod
import algebra.group.pi
import... |
28e39a3e6aff2cb4506b4f98f1f38b078647cde6 | 69bc7d0780be17e452d542a93f9599488f1c0c8e | /exam_2_rev.lean | fa294ae9024a107d0377be85e28f5985c1e61117 | [] | 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 | 849 | lean | def there_is_no_largest_nat := ¬ ∃ (n : nat), ∀ (k : nat), n > k
inductive friend : Type
| harsh : friend
| joe : friend
| will : friend
| sullivan : friend
inductive taller : friend → friend → Prop
| trans : ∀ (a b c : friend), (taller a b) → (taller b c) → taller a c
open friend
def joe_taller_harsh := taller joe ... |
49eefe315e0ccb926e86905fb862dfdd078c66b1 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/order/filter/lift.lean | 01669badfeaeef0ea447893382001328c34073e5 | [
"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 | 21,239 | 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 order.filter.bases
/-!
# Lift filters along filter and set functions
-/
open set
open_locale classical filter
namespace filter
variables {α : Type*} {β : T... |
ca95f24fca5d0a92c17fe242243d3afb6645dd45 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/function/simple_func.lean | 7e69629179f8c97c83caaac2c70f9d69843d71d8 | [
"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 | 47,052 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
-/
import measure_theory.constructions.borel_space.basic
import algebra.indicator_function
import algebra.support
/-!
# Simple functions
> THIS FILE IS... |
9c1af03661d9a0b8e196e53a3a8dcb051504b243 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/nat/modeq.lean | c942faa21cf5577f60f1c8852939f9d049305c27 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 4,130 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Modular equality relation.
-/
import data.int.basic data.nat.gcd
namespace nat
/-- Modular equality. `modeq n a b`, or `a ≡ b [MOD n]`, means
that `a - b` is a mult... |
bae7d068c1728836a6d9fd80669303f9e2968c9f | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/algebra/category/Algebra/limits.lean | e2540fbf085e309c61590db4d82d534fd5cf0d5c | [
"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,248 | 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.Algebra.basic
import algebra.category.Module.limits
import algebra.category.CommRing.limits
/-!
# The category of R-algebras has all limits
... |
daa4b1c827fc841b68434cfa9b31d4848648fa31 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/list/default.lean | 9523af124b170bca64a267eaa1d9dfdf9459e674 | [
"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 | 718 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import data.list.alist
import data.list.bag_inter
import data.list.basic
import data.list.chain
import data.list.defs
import data.list.erase_dup
import data.lis... |
6cb68544889ef20d6f7f34282718d5aaf6300a4b | 3ef5255cebe505e5ab251615d9fbf31a132f461d | /lean/old/my_opaque_pairs.lean | b5b210f1fc01bc5e057ae7069b685f00af1487c1 | [] | no_license | avigad/scratch | 42441a2ea94918049391e44d7adab304d3adea51 | 3fb9cef15bc5581c9602561427a7f295917990a2 | refs/heads/master | 1,608,917,412,424 | 1,473,078,921,000 | 1,473,078,921,000 | 17,224,172 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,630 | lean | import macros tactic
universe U ≥ 2 -- needed to state Sigma_inj below
-- the "right" equality axioms
axiom subst' {A : (Type U)} {a b : A} {P : A → (Type 1)} (H1 : P a) (H2 : a = b) : P b
-- not needed here
-- axiom subst_id {A : (Type U)} {a : A} {P : A → (Type 1)} (H1 : P a) (e : a = a) : subst' H1 e = H1
-- defi... |
f77a4a4ffd40072b7ff4d1a60ef1ba37092c8951 | 3cb7d30bb276fa1e8fe9ca7b979f53cbfafb2dbb | /leanpkg/leanpkg/manifest.lean | a222ae04428b0c88ab57808ce5888eb5ad487fc2 | [
"Apache-2.0"
] | permissive | andrejtokarcik/lean | e4148f69d020385c4fc07662b77792681b26c4d9 | ceacfa7445953cbc8860ddabc55407430a9ca5c3 | refs/heads/master | 1,584,800,445,031 | 1,529,598,225,000 | 1,529,598,469,000 | 138,652,902 | 0 | 0 | Apache-2.0 | 1,529,962,767,000 | 1,529,962,767,000 | null | UTF-8 | Lean | false | false | 3,646 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import leanpkg.toml leanpkg.lean_version system.io
namespace leanpkg
inductive source
| path (dir_name : string) : source
| git (url rev : string) : source
na... |
bf4dd8f5e9b8a5146e9cbd942fc6da07ba7ff9f2 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Elab/App.lean | 825cf8f3b343dca802d2393cc53fda2a32a63f3d | [
"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 | 41,860 | 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.FindMVar
import Lean.Elab.Term
import Lean.Elab.Binders
import Lean.Elab.SyntheticMVars
namespace Lean.Elab.Term
open Meta
/--
Auxiliar... |
13a0dc0d2838dbe643d1262c2506206f9f31c012 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/number_theory/bernoulli.lean | 9cf7b72ad0cf30a618ee4823f06acfca48ff67d4 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,507 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kevin Buzzard
-/
import data.rat
import data.fintype.card
/-!
# Bernoulli numbers
The Bernoulli numbers are a sequence of rational numbers that frequently show up in
... |
51783a63376482e7e2c434d4036878c870f8eac0 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/polynomial/basic.lean | d7d2c1932d08971dc1c3d2aebf6fb5650d7fae9b | [
"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 | 24,530 | 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 tactic.ring_exp
import tactic.chain
import algebra.monoid_algebra
import data.finset.sort
import tactic.ring
/-!
#... |
b9ae4a2e5e564c7ca4171c46efbf33934da4ad0a | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/algebra/valued_field.lean | a1477dd844ac0a3426eb5898bfdcb7ad5982d189 | [
"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 | 14,907 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.algebra.valuation
import topology.algebra.with_zero_topology
import topology.algebra.uniform_field
/-!
# Valued fields and their completions
In thi... |
d1cdd0dc38fdb2d70dec3cbfc7fdf73ba4b32241 | bb31430994044506fa42fd667e2d556327e18dfe | /src/measure_theory/pi_system.lean | eeb339d764f3346fff78777b7f4f82db25ffb994 | [
"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 | 31,219 | lean | /-
Copyright (c) 2021 Martin Zinkevich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Martin Zinkevich, Rémy Degenne
-/
import logic.encodable.lattice
import measure_theory.measurable_space_def
/-!
# Induction principles for measurable sets, related t... |
14be6b6aaa496d9f7fda98636b8160bf1aa7ab9e | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/algebra/linear_ordered_comm_group_with_zero.lean | 1a3a2a19f91ee656bb7ad91ef5a44bf4d6a83ce3 | [
"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 | 7,633 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Johan Commelin, Patrick Massot
-/
import algebra.ordered_group
import algebra.group_with_zero
import algebra.group_with_zero.power
import tactic.abel
/-!
# Linearly ordered com... |
c26864783dbdeaab579292931b3a31e41e8e246f | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/kernel2.lean | 367c2f280738b6d9b851834b48ab424d2781cad4 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 1,160 | lean | import Lean
open Lean
def checkDefEq (a b : Name) : CoreM Unit := do
let env ← getEnv;
let a := mkConst a;
let b := mkConst b;
let r := Kernel.isDefEq env {} a b;
IO.println (toString a ++ " =?= " ++ toString b ++ " := " ++ toString r)
def whnf (a : Name) : CoreM Unit := do
let env ← getEnv;
let a := mkConst a;
let ... |
ba6699351406f95743d977d53166e37faaa1a7aa | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/big_operators/default.lean | 88af55b7f337088e72a557ce91d6ba5bc7a5222a | [
"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 | 308 | lean | -- Import this file to pull in everything about "big operators".
-- When preparing a contribution to mathlib, it is best to minimize the imports you use.
import algebra.big_operators.order
import algebra.big_operators.intervals
import algebra.big_operators.ring
import algebra.big_operators.nat_antidiagonal
|
2b5e43c267592d241607d2df87de391155b0b04b | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/metric_space/gluing.lean | e767959abaf32bc17e14eaaef8283cf690ceeb48 | [
"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 | 23,984 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Gluing metric spaces
Authors: Sébastien Gouëzel
-/
import topology.metric_space.isometry topology.metric_space.premetric_space
/-!
# Metric space gluing
Gluing two metric spaces along a c... |
58c7234514236ea98084d3056881381f29eaf61f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monoidal/free/coherence.lean | 8aab1c0a2e6f7fdf64b9a71ef28ad2864705c22b | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 12,206 | lean | /-
Copyright (c) 2021 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.monoidal.free.basic
import category_theory.groupoid
import category_theory.discrete_category
/-!
# The monoidal coherence theorem
> THIS FILE I... |
2c3d6dbba9d191556e8ef09d686bb0ac07dc0f95 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /archive/100-theorems-list/73_ascending_descending_sequences.lean | e4736cc43075c813a933ce7d7cf0c57c424199c5 | [
"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 | 8,116 | 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 tactic.basic
import data.fintype.basic
/-!
# Erdős–Szekeres theorem
This file proves Theorem 73 from the [100 Theorems List](https://www.cs.ru.nl/~freek/100/), a... |
3e69474fe205ea7e03699cb9bd35cbe5cf984654 | 02fbe05a45fda5abde7583464416db4366eedfbf | /library/init/algebra/functions.lean | 95f73074074a4a659023cdebe11fd04416d5a84c | [
"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 | 4,456 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.algebra.order init.meta
universe u
definition min {α : Type u} [decidable_linear_order α] (a b : α) : α := if a ≤ b th... |
f921d3d06d8ede2a0a3e523c40763224bf82860f | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/types/nat/basic.hlean | 210c0c38488e98beefb08deb03147d527ec0e854 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 10,021 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
(Ported from standard library)
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad
Basic operations on the natural numbers.
-/
import ..num algebra.ring
open prod binary eq algebra l... |
28896d4043408a654e0169e1b826807c8411fe85 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/linear_algebra/free_module/pid.lean | 73df194265e5949cf6a262f02271f0d78806a23f | [
"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 | 25,503 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import linear_algebra.dimension
import ring_theory.principal_ideal_domain
import ring_theory.finiteness
/-! # Free modules over PID
A free `R`-module `M` is a module wit... |
5c55cf46bc1d0386b913f64e3bff9dced3a33a81 | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/sup_inf/GLBprop_if_LUBprop.lean | c296e88383ec5478015c6512882b7d221726ae27 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,401 | lean | import game.sup_inf.rat_complete
namespace xena --hide
/-
# Chapter 3 : Sup and Inf
## Level 14
-/
/-
The Least Upper Bound property implies
Greatest Lower bound Property
-/
-- begin hide
--NOTE: We have a form of the completeness axiom at Sup/Inf World
--level 13.
--Here I'll assume LUB property as an axiom, a... |
330e1b87e58ae14b3ceba733400cc0755216c924 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/int/order/units.lean | d9970503fa589d3bbb24b11aff2862aa4b656ad7 | [
"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,938 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import data.int.order.basic
import data.int.units
import algebra.group_power.order
/-!
# Lemmas about units in `ℤ`, which interact with the order structure.
> THIS F... |
08c214daef066fbb1dca4234834ad7b6dded5ae5 | e898bfefd5cb60a60220830c5eba68cab8d02c79 | /uexp/src/uexp/rules/mergeJoinFilter.lean | 9079895166d74333d3796ce0117120f9cdef16f7 | [
"BSD-2-Clause"
] | permissive | kkpapa/Cosette | 9ed09e2dc4c1ecdef815c30b5501f64a7383a2ce | fda8fdbbf0de6c1be9b4104b87bbb06cede46329 | refs/heads/master | 1,584,573,128,049 | 1,526,370,422,000 | 1,526,370,422,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,581 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..ucongr
import ..TDP
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
variable integer_10: const datatypes.int
theorem rule:
forall ( Γ scm_dept scm_emp: Schema) (rel_dept: r... |
f9d4df07ddd69bc9729ec3c3c6b81c615111a08a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/badreset.lean | aa4ea33e55e809231d88c8254d315b78c5b279d4 | [
"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 | 706 | lean | @[noinline] def g (x : Nat × Nat) := x
set_option trace.compiler.boxed true
set_option trace.compiler.lambda_pure true
@[noinline] def f (b : Bool) (x : Nat × Nat) : (Nat × Nat) × (Nat × Nat) :=
let done (y : Nat × Nat) := (g (g (g x)), y) in
match b with
| true := match x with | (a, b) := done (a, 0)
| false := mat... |
3bfb01c1642e84f3653837740529cc7e14e8512d | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/ParserCompiler.lean | 0076f3c4e8693df3a8f4aac77ca51a15b5d54fcd | [
"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 | 7,383 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
/-!
Gadgets for compiling parser declarations into other programs, such as pretty printers.
-/
import Lean.Util.ReplaceExpr
import Lean.Meta.Basic
import Lean... |
cd7ee612f656bf52b3cf39e8946c45ddb11ce95c | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/typeclass_easy.lean | 30e2690bab99f0d7432e8544f31f9d55f2db7c6d | [
"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 | 168 | lean | new_frontend
#synth HasToString (Nat × (Nat × Bool))
#synth HasAdd Nat
#synth HasCoe Bool Prop
#synth Decidable (True ∧ 1 = 1)
#synth DecidableEq (Nat × Nat)
|
9a2377b7d391870985ec104419f10e35d345ae77 | a88f0086fb3e2025ebb21e0ba2f2725774c6979f | /src/topology/continuous_on.lean | a0f5de2dec56bf7f3aff2a23de0d2c1d1b21bf06 | [
"Apache-2.0"
] | permissive | Kha/stdlib | b5a4456c35def0ca8f1bf2d32dbeebd7639cbc4d | e44b105c72ec77120f43a7a7dd1cd49867a65a41 | refs/heads/master | 1,609,528,111,500 | 1,572,963,395,000 | 1,572,963,395,000 | 98,516,307 | 0 | 1 | null | 1,501,146,352,000 | 1,501,146,352,000 | null | UTF-8 | Lean | false | false | 18,667 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.constructions
/-!
# Neighborhoods and continuity relative to a subset
This file defines relative versions
`nhds_within` of `nhds`
`contin... |
075793bc8143593d42a30e18ee462fe0eed4681d | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebraic_geometry/locally_ringed_space/has_colimits.lean | 77a30cfb666e914f7bb45788f51f90b7fd10a521 | [
"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 | 12,846 | 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.locally_ringed_space
import algebra.category.Ring.constructions
import algebraic_geometry.open_immersion
import category_theory.limits.constructio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.