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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
79f9af30f614ddae98d09b659e2cb73e6d503045 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/nat/modeq.lean | ddae93134771127fd49c5127684911a9defb9189 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,328 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.int.gcd
import data.list.rotate
import tactic.abel
/-!
# Congruences modulo a natural number
This file defines the equivalence relation `a ≡ b [MOD n]` ... |
558f03d41e029da6f6c948ac953a3d88373bf102 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/lexicographic.lean | 52b6de6f017acbb0b284a10b3296e96007331177 | [
"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 | 3,993 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Minchao Wu
-/
import order.synonym
/-!
# Lexicographic order
This file defines the lexicographic relation for pairs and dependent pairs of orders, partial orders
and ... |
4b51b13daad58e05df5a359f91b72ce6dcdde995 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/toLCNFCacheBug.lean | 6923bf994044e45b280911254f75342c084e890f | [
"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 | 146 | lean | import Lean
def f' (x y : Nat) :=
let s := (x, y)
let y := s.2
y + s.2
set_option trace.Compiler true
#eval Lean.Compiler.compile #[``f']
|
12573626f0b52d9f294b9ec9737de7d5a17cf89e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/probability/variance.lean | 8b67daebd8f56114eb377b4e81598a4f83b6ae58 | [
"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 | 17,298 | lean | /-
Copyright (c) 2022 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Kexing Ying
-/
import probability.notation
import probability.integration
/-!
# Variance of random variables
We define the variance of a real-valued random vari... |
227c916d67e493904adebc820b5921e6b028bb4a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/sheaves/sheaf_condition/pairwise_intersections.lean | 76d52a1b66a441aa6bab96ad99e5a358a62b1990 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 14,329 | 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 topology.sheaves.sheaf
import category_theory.limits.preserves.basic
import category_theory.category.pairwise
/-!
# Equivalent formulations of the sheaf cond... |
0bc03c58055161a991cb1f29b61bba8f72020efa | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/set/disjointed.lean | 03dfefce75f1b0f638903bb23fa29311b421f750 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 3,760 | 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
Disjointed sets
-/
import data.set.lattice data.nat.basic tactic.wlog
open set classical lattice
open_locale classical
universes u v w x
variables {α : Type u} {β : Ty... |
7b7e1b7a7896b8471ec22370d5c8c45b67829a37 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/tactic/monotonicity/interactive.lean | 7f1f29fcdaeecaccd06acacb502aa1579920807f | [
"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 | 21,322 | lean |
import tactic.monotonicity.basic
import category.basic
import category.traversable
import category.traversable.derive
import data.dlist
import logic.basic
import tactic.basic
variables {a b c p : Prop}
namespace tactic.interactive
open lean lean.parser interactive
open interactive.types
open tactic
local postfix... |
ed005c77b9b63afae42c8bd979050c88112f6f00 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebraic_geometry/projective_spectrum/topology.lean | cc3cc424344d9c3285fe551a2cbedf1b30ffc440 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 18,822 | lean | /-
Copyright (c) 2020 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang, Johan Commelin
-/
import topology.category.Top
import ring_theory.graded_algebra.homogeneous_ideal
/-!
# Projective spectrum of a graded ring
The projective spectrum of ... |
aa62835eb9bef6a7dfc1194a4d6c5125c72cd41d | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.36.lean | af8e7ca9499333e55511447af99d55f519a648ec | [] | 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 | 1,887 | lean | /- page 89 -/
import standard
namespace hide
inductive list (A : Type) : Type :=
| nil {} : list A
| cons : A → list A → list A
namespace list
notation `[` l:(foldr `,` (h t, cons h t) nil) `]` := l
variable {A : Type}
notation h :: t := cons h t
definition append (s t : list A) : list A :=
list.rec_on s t (λ x... |
faed6861382ec4c0fba0e0c9ef68b9f594a984bf | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/algebra/pointwise.lean | a4cff49bf0e3e0212625d5d50abb51da8cb89dae | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 11,414 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.set.finite data.set.lattice group_theory.group_action algebra.module
/-!
# Pointwise addition, multiplication, and scalar multiplication of sets.
This... |
61add050ac734fadb1bae3811a8c78ddd3d0e1eb | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/ctorAutoParams.lean | 668ba3415a5ec36c82c9398224dfba9205e8c9dc | [
"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,524 | lean | structure State -- TODO
structure Expr -- TODO
def eval : State → Expr → Bool :=
fun _ _ => true
inductive Command where
| skip
| cond : Expr → Command → Command → Command
| «while» : Expr → Command → Command
| seq : Command → Command → Command
open Command
infix:10 ";;" => Command.seq
inductive ... |
adbbabd1763c125618b494f9d3301f308fac7e4d | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/tactic_paper_supplemental_material/monoid_cancellation/cancellation_solver_opt.lean | b83708b9467dbd9d1a497712c9318e699e8b786d | [
"BSD-2-Clause"
] | permissive | ReinierKoops/Cosette | e061b2ba58b26f4eddf4cd052dcf7abd16dfe8fb | eb8dadd06ee05fe7b6b99de431dd7c4faef5cb29 | refs/heads/master | 1,686,483,953,198 | 1,624,293,498,000 | 1,624,293,498,000 | 378,997,885 | 0 | 0 | BSD-2-Clause | 1,624,293,485,000 | 1,624,293,484,000 | null | UTF-8 | Lean | false | false | 1,145 | lean | import .cancellation_solver
local infix * := star
open tactic expr
namespace opt
set_option eqn_compiler.max_steps 20000
meta def apply_ (e : pexpr) :=
do e ← tactic.to_expr e, apply e >> return ()
meta def iter_right : tactic unit :=
do t ← target,
match t with
| `(%%a = o * %%b) := apply_ ``(@plus... |
1a2ee370d7bf6ed06d610eb3acd34f878e25b741 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/meta/rb_map.lean | 386014dc29b5a2a30f2304a5ed413258afcf0142 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 5,147 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import data.option.defs
/-!
# rb_map
This file defines additional operations on native rb_maps and rb_sets.
These structures are defined in core in `init.meta.rb_m... |
8fd6fb7e6b63ed223951a3a08f98abd97d47474d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/instances/irrational.lean | 1fe1ed9145659fb83d76609c82347285d7f665ac | [
"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 | 3,391 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import data.real.irrational
import data.rat.encodable
import topology.metric_space.baire
/-!
# Topology of irrational numbers
In this file we prove the foll... |
a36a9c425764036ce735097444a84ed8011265d7 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/category/Cat.lean | 96cb69c50b1cb76923cc0397d59d230ee7a72d8c | [
"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 | 1,448 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import category_theory.concrete_category
/-!
# Category of categories
This file contains the definition of the category `Cat` of all categories.
In this category ... |
ef4aa2437db9ba3d046ad67543ef1c8b822722d5 | b561a44b48979a98df50ade0789a21c79ee31288 | /src/Lean/Elab/StructInst.lean | d5a74de5688117c65e43c493a58b731f701dbc53 | [
"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 | 36,967 | 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.FindExpr
import Lean.Parser.Term
import Lean.Meta.Structure
import Lean.Elab.App
import Lean.Elab.Binders
namespace Lean.Elab.Term.StructI... |
b70a65d6414c1e1cb3a67fa33ab8e4521df22c4d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/add_torsor.lean | 21d02eeb0372b24283620fbe6e94bed17b900fc6 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 7,272 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Yury Kudryashov
-/
import analysis.normed_space.basic
import analysis.normed.group.add_torsor
import linear_algebra.affine_space.midpoint
import linear_algebra.affine_space... |
2d10810106aee5804cd0631c4be0bc22c54e9ce6 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/library_search/basic.lean | 028fb374050f3f788bf163f6b705f4ca54e12855 | [
"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 | 4,725 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.suggest -- No other imports, for fast testing
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace.silence_library_sear... |
8a3014afb71cb9f1162a2d2e2c967ef1afb904fc | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/star/chsh.lean | fef812a0a46a72d1ca079b085a67196d5b050e27 | [
"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 | 11,331 | 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.star.basic
import algebra.order.algebra
import analysis.special_functions.pow
/-!
# The Clauser-Horne-Shimony-Holt inequality and Tsirelson's inequali... |
8e8adf062b4e352182b1cf70c5d20616a7d302f9 | 02fbe05a45fda5abde7583464416db4366eedfbf | /tests/lean/case.lean | 91e3a8eeb41835f6854fed0c0840ec2fa03a510c | [
"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 | 1,292 | lean | example (xs : list ℕ) : ℕ :=
begin
induction xs,
case list.cons {}
end
example (xs : list ℕ) : ℕ :=
begin
cases xs,
case list.cons {}
end
example (xs : list ℕ) : ℕ :=
begin
induction xs,
case list.cons : x xs {
cases xs,
case list.cons : x xs {}
}
end
open list
example (xs : list ℕ) : ℕ :=
begi... |
b596f298bee1ea65392f977b49f43b3c8b040eca | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/order/field_defs.lean | ee0bc5d2c7b0fe486f0b4dc7d64f7b996365dc7b | [
"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 | 2,591 | lean | /-
Copyright (c) 2014 Robert Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Lewis, Leonardo de Moura, Mario Carneiro, Floris van Doorn
-/
import algebra.field.basic
import algebra.group_power.lemmas
import algebra.group_power.order
import algebra.order.ri... |
c434d34a830cbb191572cad688496b075b668148 | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Data/RBTree/Basic.lean | 153ea1b4c4079c2cf77511ddceaf607660250a55 | [
"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 | 2,875 | 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.Data.RBMap.Basic
universes u v w
def RBTree (α : Type u) (lt : α → α → Bool) : Type u :=
RBMap α Unit lt
@[inline] def mkRBTree (α : T... |
fadf16f15e948ac2a8d61451b4d251f1c9a1770c | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/tactic/norm_cast.lean | 7bca6f13e19c816fb079412d197185ad5310e04f | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 25,152 | lean | /-
Copyright (c) 2019 Paul-Nicolas Madelaine. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul-Nicolas Madelaine, Robert Y. Lewis
Normalizing casts inside expressions.
-/
import tactic.converter.interactive tactic.hint
/-!
# A tactic for normalizing casts inside ... |
225c742ea359d4c253c048a250eaa0cc84a190ea | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/rel_classes.lean | 07d26e85e19270c131d837060b326fd54f85e488 | [
"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 | 28,914 | lean | /-
Copyright (c) 2020 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro, Yury G. Kudryashov
-/
import order.basic
import logic.is_empty
/-!
# Unbundled relation classes
In this file we prove some properties of `is_*` classes ... |
6abdcd6dbef53ec262d16bf5cce06affad526f83 | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /derive_fintype.lean | 2cf7f9872ede089fbccfef50fcf080ef4b70890e | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 293 | lean | import data.fintype
open tactic environment declaration
#eval fintype.card (equiv.perm (fin 5))
meta def mk_equiv_psigma (n : name) : tactic (expr × ℕ) :=
do e ← get_env,
match is_structure_like e n with
| some (0, n) := return (`(empty), 0)
| some (1, n) := do d ← get_decl n, _
end
|
bf1d14d9ff9c21099d54b95c7ae339237882f5e0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/products/bifunctor.lean | f20ec369fff1adde62256cab60d73c43c2d25b4d | [
"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,989 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison
-/
import category_theory.products.basic
/-!
# Lemmas about functors out of product categories.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any change... |
c65286422b99d3390f8b4e5c8297582aee3ee9f1 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/KeyedDeclsAttribute.lean | a452d3d4e4bf7cbbbfa33453a922b764610d087e | [
"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 | 6,758 | 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.Attributes
import Init.Lean.Compiler.InitAttr
import Init.Lean.ToExpr
import Init.Lean.Meta.Message
/-!
A build... |
79330d87ce6c3732058bff86b286b9dec6ab2aea | 10834b3de906c60d1989336d7506a00ee5e52c08 | /library/init/core.lean | 429e756a093a67f5814659a08097c3bfe1fe9100 | [
"Apache-2.0"
] | permissive | Jack-Pumpkinhead/lean | 16657b5ad7f5316f007842fa2426b7f91212eae8 | 81cabd7b5a8f789633639f5fba64b45d31e37259 | refs/heads/master | 1,621,358,983,310 | 1,585,070,616,000 | 1,585,070,616,000 | 251,335,905 | 0 | 0 | Apache-2.0 | 1,585,579,683,000 | 1,585,579,682,000 | null | UTF-8 | Lean | false | false | 18,580 | 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
notation `Prop` := Sort 0
notation f ` $ `:1 a:0 := f a
/- Reserving notation. We do this sot that the... |
28a1f68bcffe3045a0b8c07c22948396d62ddf1d | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/Deriving/Ord.lean | 77260c1b95f7561da81904ae9e307a5c12213e5b | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 4,392 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dany Fabian
-/
import Lean.Meta.Transform
import Lean.Elab.Deriving.Basic
import Lean.Elab.Deriving.Util
namespace Lean.Elab.Deriving.Ord
open Lean.Parser.Term
open Meta
def m... |
a51c314785387206f1fcdcfe448d54851f84c0a3 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/634d.lean | 9223d35471de558bdd740f5c3a03ca3f0e29355c | [
"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 | 431 | lean | open nat
section
universe l
definition A {n : ℕ} (t : Type.{l}) := t
check A
check _root_.A.{1}
set_option pp.universes true
check A
check _root_.A.{1}
end
section
universe l
parameters {B : Type.{l}}
definition P {n : ℕ} (b : B) := b
check P
check @_root_.P.{1} nat
set_option pp.universes tr... |
f5e0d0c4d7380c64181b820431ca8a86afbad932 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/nat/sub.lean | 4ded20aa699a9e81f74f946af64dce239fe3985a | [
"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 | 17,140 | 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, Jeremy Avigad
Subtraction on the natural numbers, as well as min, max, and distance.
-/
import .order
namespace nat
/- subtraction -/
attribute [simp]
protected... |
2c712226719d53f33edc66ef6a985833db89bc8c | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/linear_algebra/dimension.lean | ca91abf77af36e30ab00769b868cc01e02308265 | [
"Apache-2.0"
] | permissive | joehendrix/mathlib | 84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5 | c15eab34ad754f9ecd738525cb8b5a870e834ddc | refs/heads/master | 1,589,606,591,630 | 1,555,946,393,000 | 1,555,946,393,000 | 182,813,854 | 0 | 0 | null | 1,555,946,309,000 | 1,555,946,308,000 | null | UTF-8 | Lean | false | false | 14,716 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Johannes Hölzl, Sander Dahmen
Dimension of modules and vector spaces.
-/
import linear_algebra.basis
import set_theory.ordinal
noncomputable theory
local attribute [in... |
a1d04639bd6163d5fa860004789e0a6d4ff6ec5f | df561f413cfe0a88b1056655515399c546ff32a5 | /2-addition-world/l2.lean | a567582791bab4ac5f76f1d8075428dc93750762 | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 189 | lean | lemma add_assoc (a b c : mynat) : (a + b) + c = a + (b + c) :=
begin
induction c with k Pk,
rw add_zero b, rw add_zero, refl,
rw add_succ, rw Pk, rw ← add_succ, rw ← add_succ, refl,
end |
70a87ce6147b6d781f9c4bc1d58cf281ec8251c1 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/control/basic.lean | d57d28c9da6c7d3b671b5ea8ded6fd3756425126 | [
"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 | 6,743 | 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
Extends the theory on functors, applicatives and monads.
-/
universes u v w
variables {α β γ : Type u}
notation a ` $< `:1 f:1 := f a
section functor
variables {f : ... |
ea27c2d0a3d16de0fd7cc414337feaf76ac7bad0 | 5e60919d574b821fabd9387be5589c0c4d3f3fe2 | /src/meta/declaration.lean | 88527577ac46f259fe5ec482d3f27c140fa31d57 | [] | no_license | unitb/unitb-pointers | 3fc72b873377a12e3f677ccd30143fc001a56c63 | c057420c1e72bba00181bc6db30cf369ef2bfd23 | refs/heads/master | 1,629,969,967,065 | 1,511,386,892,000 | 1,511,386,892,000 | 110,323,164 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,311 | lean | import meta.tactic
import util.control.applicative
import util.meta.tactic
namespace tactic
open list applicative (mmapp)
meta def add_selector (obj : expr) (fs : list name) (n : name) (ft : expr) : tactic unit :=
do let t := (obj.imp ft),
(_,val) ← solve_aux t (do
x ← intro1, vs ← induction x fs, get_loca... |
10fbe17e5b2af29f6c76942480cc3a74c8fb7976 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/set_theory/ordinal_notation.lean | 8301d2dfa349ab1804342dde0a1c80a59b0dbeec | [
"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 | 35,924 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import set_theory.ordinal_arithmetic
/-!
# Ordinal notations
constructive ordinal arithmetic for ordinals `< ε₀`.
-/
open ordinal
open_locale ordinal -- get notati... |
75dc4ed43c5cf08124af74083b9dc2edffe4e653 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/ring_theory/free_comm_ring.lean | 1ad9d0b3cd7629bb37c85592c5cd370633cbdd0a | [
"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 | 15,085 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Johan Commelin
-/
import group_theory.free_abelian_group data.equiv.algebra data.equiv.functor data.polynomial
import ring_theory.ideal_operations ring_theory.free_ring
univers... |
dd5e1c7e5b09eb45ac984c9324c70fd0d67c0e4a | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/algebra/category/constructions/initial.hlean | e73038823e10acd8a71faa1e3159171ba82453ef | [
"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 | 1,380 | 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
Initial category
-/
import .indiscrete
open functor is_trunc eq
namespace category
definition initial_precategory [constructor] : precategory empty :=
indi... |
8ddb1ca46401370df3a4e6d9d800f9280a16aa20 | ac49064e8a9a038e07cf5574b4fccd8a70d115c8 | /hott/algebra/homological_algebra/homological_lemmas.hlean | 18e7e2544b4f6a89dddf04d92e7273fdced01ee3 | [
"Apache-2.0"
] | permissive | Bolt64/lean2 | 7c75016729569e04a3f403c7a4fc7c1de4377c9d | 75fd8162488214a959dbe3303a185cbbb83f60f9 | refs/heads/master | 1,611,290,445,156 | 1,493,763,922,000 | 1,493,763,922,000 | 81,566,307 | 0 | 0 | null | 1,486,732,167,000 | 1,486,732,167,000 | null | UTF-8 | Lean | false | false | 10,350 | hlean | /-
Copyright (c) 2017 Sayantan Khan
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sayantan Khan
Proofs of elementary homological lemmas.
-/
import algebra.group_theory
import .chain_complex_abelian_group
import .algebraic_lemmas
open int
open sigma.ops
open algebra
open group
open abel... |
24f76012ba009b91f20fc30a89868046f3f7840f | a047a4718edfa935d17231e9e6ecec8c7b701e05 | /src/algebra/direct_sum.lean | 6e02c50db4222f527ead6c98ea6d4ccc83ced3b7 | [
"Apache-2.0"
] | permissive | utensil-contrib/mathlib | bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767 | b91909e77e219098a2f8cc031f89d595fe274bd2 | refs/heads/master | 1,668,048,976,965 | 1,592,442,701,000 | 1,592,442,701,000 | 273,197,855 | 0 | 0 | null | 1,592,472,812,000 | 1,592,472,811,000 | null | UTF-8 | Lean | false | false | 6,339 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Direct sum of abelian groups, indexed by a discrete type.
-/
import data.dfinsupp
open_locale big_operators
universes u v w u₁
variables (ι : Type v) [decidable_eq ι] (β : ι →... |
15bfd550bf0f353f939455cbcc108cdf4df3e5f7 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/nat/factorial.lean | 73ec64cfc4578079aae2f4224eb1c3bd7a885e55 | [
"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,383 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes, Floris van Doorn
-/
import data.nat.basic
/-!
# The factorial function
-/
namespace nat
variables {m n : ℕ}
/-- `nat.factorial n` is the factorial of `... |
bc3b6cfc7a6082ac16bd185050e85c20da549ca3 | 041929c569a4eeeafb4efdddab8a644f6df383c5 | /src/mazes/maze_with_fire/level.lean | 3d373719efdce8c940610613f5aa15fa0680e206 | [] | no_license | kbuzzard/xena-maze-game | 30ffbe956762dd6603e74efd823d375649e037c3 | 098454dd6acc4c06beccf52b6547bf4cd99cc581 | refs/heads/master | 1,670,840,300,174 | 1,598,554,198,000 | 1,598,554,198,000 | 290,856,036 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 633 | lean | -- import the definition of the maze surrounded by fore
import mazes.maze_with_fire.solutions.definition
namespace maze
/-
# Maze with fire.
You are in a maze of twisty passages, all distinct.
You can go north, south east or west.
If you fall into the fire, you will end up in the room of death,
room 5, from which... |
fdb1cacbfcaa924b316e0ad565194b9df5408d0a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/wfEqns1.lean | 59c7de89b56e1fefb87fcfc9d10a80a8b7f39c23 | [
"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 | 529 | lean | import Lean
open Lean
open Lean.Meta
def tst (declName : Name) : MetaM Unit := do
IO.println (← getUnfoldEqnFor? declName)
mutual
def isEven : Nat → Bool
| 0 => true
| n+1 => isOdd n
def isOdd : Nat → Bool
| 0 => false
| n+1 => isEven n
end
termination_by' measure fun
| PSum.inl n => n
| PSu... |
427a661572883993071d96db0a7dedd53b2556f4 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/analysis/normed_space/real_inner_product.lean | 6ff94b614ae2d4201a01054c2f0bdad539f6f215 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 21,520 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import analysis.convex algebra.quadratic_discriminant analysis.complex.exponential
analysis.specific_limits
import tactic.monotonicity
/-!
# Inner Product Spa... |
58256968d99d8c0d9c1d516f7c71a2d979f9f081 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Data/Name.lean | b3fd32040e6f57e47f3ec3699484983477491ae5 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 3,969 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
namespace Lean
instance : Coe String Name := ⟨Name.mkSimple⟩
namespace Name
-- Remark: we export the `Name.hash` to make sure it matches the hash implement... |
6e1d87ed458d3e41ee863f829e8c416724ce6b4e | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/tools/super/datatypes.lean | 063d6b9a650ae8fb151998b89466b1b42caa3e7e | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,506 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause_ops .prover_state
open expr tactic monad
namespace super
meta def has_diff_constr_eq_l (c : clause) : tactic bool := do
env ← get_env,
return $ list.bo... |
05928e620e455a2f175a63147b8ab68addbe5345 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/rat/cast.lean | d4040ea4f3b16108e619becf8795d55a113a0c8e | [
"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 | 14,349 | 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, Mario Carneiro
-/
import data.rat.order
import data.rat.lemmas
import data.int.char_zero
import algebra.group_with_zero.power
import algebra.field.opposite
import algeb... |
d1f69071c5415ceefb456b2a1ae8164af4eba674 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0714.lean | d2d2954126ea35dd3836de7339a6ab0050bcd527 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 259 | lean | import data.list.basic
open list
universe u
variables {α : Type} (x y z : α) (xs ys zs : list α)
def mk_symm (xs : list α) := xs ++ reverse xs
theorem reverse_mk_symm (xs : list α) :
reverse (mk_symm xs) = mk_symm xs :=
by { unfold mk_symm, simp }
|
a32a69c593f6f3020720ed4d0ed92a2db7c47dec | 6e9cd8d58e550c481a3b45806bd34a3514c6b3e0 | /src/deprecated/subgroup.lean | 48d7597b141284c8fff6abc61fe443f49328fbbd | [
"Apache-2.0"
] | permissive | sflicht/mathlib | 220fd16e463928110e7b0a50bbed7b731979407f | 1b2048d7195314a7e34e06770948ee00f0ac3545 | refs/heads/master | 1,665,934,056,043 | 1,591,373,803,000 | 1,591,373,803,000 | 269,815,267 | 0 | 0 | Apache-2.0 | 1,591,402,068,000 | 1,591,402,067,000 | null | UTF-8 | Lean | false | false | 29,758 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mitchell Rowett, Scott Morrison, Johan Commelin, Mario Carneiro,
Michael Howes
-/
import group_theory.subgroup
import deprecated.submonoid
open set function
variable... |
994ead0c227206f606df464897f123de9547a3ca | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/mllist.lean | f7d8141c5c7b10b0341a23b9123ec0786f43c32c | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 5,648 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Keeley Hoek, Simon Hudon, Scott Morrison
Monadic lazy lists.
The inductive construction is not allowed outside of meta (indeed, we can build infinite objects).
This is... |
35e19fb0cb652e613a6c6acf24dffdb93fde8804 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/interactive/t13.lean | 2bad4f5266bea831dbf55b1ca716b969625d2f68 | [
"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 | 330 | lean | (*
-- Define a simple tactic using Lua
auto = Repeat(OrElse(assumption_tac(), conj_tac(), conj_hyp_tac()))
*)
theorem T1 (A B : Bool) : A /\ B -> B /\ A :=
fun assumption : A /\ B,
let lemma1 := (show A, by auto),
lemma2 := (show B, by auto)
in (show B /\ A, by auto)
print envir... |
b0d3266ea548fd1b3bdc3c6fd22febb47931bf03 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/logic.hlean | 66214811352f04a8e3e22a5a52fb45d4e6190aac | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 674 | hlean | /-
Copyright (c) Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer
Logic lemmas we don't want/need in the prelude.
-/
import types.pi
open eq is_trunc decidable
theorem dif_pos {c : Type} [H : decidable c] [P : is_hprop c] (Hc : c)
... |
9aebe32f8d7814e3e1c18e60cca088de6eacd0eb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/int/cast/field.lean | 30f364581d4bd351fc72e39b8add19af0666ea0c | [
"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,292 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import data.int.cast.lemmas
import algebra.field.defs
import algebra.group_with_zero.units.lemmas
/-!
# Cast of integers into fields
> THIS FILE IS SYNCHRONIZED WITH ... |
7edefee744e6511f20c6b2173dde2dee55da9370 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/analysis/complex/isometry.lean | e3c446ee24cc5f7638fb7208f003647fcd4dd7ac | [
"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 | 6,000 | lean | /-
Copyright (c) 2021 François Sunatori. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: François Sunatori
-/
import analysis.complex.circle
/-!
# Isometries of the Complex Plane
The lemma `linear_isometry_complex` states the classification of isometries in the comple... |
2833e681c8c56ddeb4c0eeea00b66775bec852cc | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/linear_algebra/lagrange.lean | 1d54ba5750c018a6bbbcd43e3888272008dc09de | [
"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 | 7,173 | 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 ring_theory.polynomial
import algebra.big_operators.basic
/-!
# Lagrange interpolation
## Main definitions
* `lagrange.basis s x` where `s : finset F` and `x : F`: t... |
bbc58c4804c3454b8bb42a4a1b4e1431d78c40ba | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /library/init/data/option_t.lean | 890520fba3935b88d6fca5798cf4a424405f8449 | [
"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 | 2,237 | 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.interactive
universes u v
def option_t (m : Type u → Type v) [monad m] (α : Type u) : Type v :=
m (option α)
@[inline] def optio... |
fe3c32a0497e18332e12ea41f12e805dace3a5cb | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/smt/arith.lean | 432e3af8d2dc8cf0eb47614760a02f295c7ee362 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 834 | lean | -- TODO(Leo): remove after we port reals to new stdlib and add int.has_div and int.has_mod
constants (int.has_div : has_div int)
constants (int.has_mod : has_mod int)
attribute [instance] int.has_div int.has_mod
constants (real : Type)
constants (real.has_zero : has_zero real)
constants (real.has_one : has_one real)... |
52b023c3cb778e64d9a8455a1bbcd69b7aba9229 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/extern.lean | cc91eb00dc611198b1fc0572dfea5a71547c731b | [
"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 | 304 | lean | @[extern]
def foo (x : Nat) := x
@[extern "bla"]
def foo2 (x : Nat) := x
@[extern 2 "boo"]
def foo3 (x : Nat) := x
@[extern cpp "Lean::bla" llvm "lean_bla"]
def foo4 (x : Bool) := x
@[extern cpp inline "#1 && #2"]
def foo5 (x y : Bool) := x
@[extern cpp adhoc llvm "foo"]
def foo6 (x y : Bool) := x
|
15b143a446691d89b22901de5b4f935d0285946e | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /old/eval/timeEval.lean | b626f598e360415274f47e328b144b9387ebdf4a | [] | no_license | kevinsullivan/lang | d3e526ba363dc1ddf5ff1c2f36607d7f891806a7 | e9d869bff94fb13ad9262222a6f3c4aafba82d5e | refs/heads/master | 1,687,840,064,795 | 1,628,047,969,000 | 1,628,047,969,000 | 282,210,749 | 0 | 1 | null | 1,608,153,830,000 | 1,595,592,637,000 | Lean | UTF-8 | Lean | false | false | 1,527 | lean | import ..imperative_DSL.environment
open lang.classicalTime
attribute [reducible]
def classicalTimeEval : lang.classicalTime.spaceExpr → environment.env → classicalTime
| (lang.classicalTime.spaceExpr.lit V) i := V
| (lang.classicalTime.spaceExpr.var v) i := i.t.sp v
attribute [reducible]
def classicalTimeFrameEval... |
bc9b7177dfca95cc27c6b3b2ab752005e8f2bdae | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/tactic/lint/simp.lean | 68e1ca447cb853622d1614741efa6e34a67a6101 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 8,543 | lean | /-
Copyright (c) 2020 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import tactic.lint.basic
/-!
# Linter for simplification lemmas
This files defines several linters that prevent common mistakes when declaring simp lemmas:
* `simp_... |
8d322fbcb52f34fb47fc4e9ef0b0125403e88654 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/epi_mono.lean | 1c35d84ebd2ff80e5222f7ed3ca00a64ebfd4774 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 7,161 | lean | /-
Copyright (c) 2019 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.adjunction.basic
import category_theory.opposites
import category_theory.groupoid
/-!
# Facts about epimorphisms and monomorphisms.
... |
c8aad508ae3f140665866ca00ca1b6da326e04f3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/set_theory/game/basic.lean | 254cc2f38334427be59ddcabd5eb6d3e0193648e | [
"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 | 25,132 | lean | /-
Copyright (c) 2019 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Mario Carneiro, Isabel Longbottom, Scott Morrison, Apurva Nakade
-/
import set_theory.game.pgame
import tactic.abel
/-!
# Combinatorial games.
In this file we define the... |
087f74db7480210180b166fef65612b233835b13 | e030b0259b777fedcdf73dd966f3f1556d392178 | /tests/lean/run/simplify_with_hypotheses.lean | 6ae43c9ccdf1131cfb139038efa73c0679134bfd | [
"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 | 640 | lean | open tactic
example (A : Type) (a₁ a₂ : A) (f : A → A) (H₀ : a₁ = a₂) : f a₁ = f a₂ := by simp_using_hs >> try reflexivity
example (A : Type) (a₁ a₁' a₂ a₂' : A) (f : A → A) (H₀ : a₁' = a₂') (H₁ : f a₁ = a₁') (H₂ : f a₂ = a₂')
: f a₁ = f a₂ := by simp_using_hs >> try reflexivity
constants (A : Type.{1}) (x y z w : A... |
bf4db33da908b8ce1637ff48eefc4c0fb3ae923a | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /library/smt/prove.lean | 0c052187919b8d957e5615a5aba8fe845da37716 | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 563 | lean | namespace smt
open tactic
private meta def collect_props : list expr → tactic (list expr)
| [] := return []
| (H :: Hs) := do
Eqs ← collect_props Hs,
Htype ← infer_type H >>= infer_type >>= whnf,
return $ if Htype = ```(Prop) then (H :: Eqs) else Eqs
-- This tactic is just a placeholder, designed to be... |
15174ce96d9aeb14b715fa0dc91aed3b1fc22b67 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/topology/algebra/group.lean | 663f6873be4621f077c8c779b6934768df2a439b | [
"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 | 18,084 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot
Theory of topological groups.
-/
import data.equiv.algebra
import algebra.pointwise order.filter.pointwise
import group_theory.quotient... |
68dfc35c2209fea90ac77c5645a98c1029f39b77 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/topology/continuous_function/compact.lean | 9cc93185708874c92cc1cecbd52efc78de3121b2 | [
"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 | 12,177 | 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 analysis.normed_space.linear_isometry
import topology.uniform_space.compact_separated
import tactic.equiv_rw
/-!
#... |
a3009a8cf4138163d13bad2d6af71065c85ee418 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_136.lean | 1fa23e1e5f4cc8741b24289d7eeb7f8913c1548d | [] | 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 | 128 | lean | import data.real.basic
-- BEGIN
example (a b c : ℝ) : a * b * c = b * c * a :=
begin
rw mul_assoc,
rw mul_comm
end
-- END |
1a4059397025f0913f9065f6bd74f1c1af152f58 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/analysis/calculus/deriv.lean | 9279aa0a428e69f60d6ee89a6b4d1f90d3df5b82 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 69,556 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sébastien Gouëzel
-/
import analysis.calculus.fderiv
import data.polynomial
/-!
# One-dimensional derivatives
This file defines the derivative of a function `f : 𝕜 → ... |
ab6a8896a23a3cef9c39e99bd2c708e842b19f1e | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/logic/axioms/funext.lean | f44bd852a191d7d6b89e344098e8b65e970b39bd | [
"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,151 | 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
-- logic.axioms.funext
-- ===================
import logic.cast algebra.function data.sigma
open function eq.ops
-- Function extensionality
axiom funex... |
5df5cd9613fc8dd317a0f5dcc40f9e3dc101919f | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/analysis/complex/isometry.lean | de95cedf1bda807c24eaef7ba4d8bd76c9f680c1 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,020 | lean | /-
Copyright (c) 2021 François Sunatori. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: François Sunatori
-/
import analysis.complex.circle
/-!
# Isometries of the Complex Plane
The lemma `linear_isometry_complex` states the classification of isometries in the comple... |
df867c68b057fa0615baac9679846b635e58e412 | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1P2/sheet_2.lean | c5ef529b36933c7216d0ae4320dcfa95dc60e7c3 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,035 | lean | import linear_algebra
-- 1.
-- (ii) Let V be the vector space of all 2×2 matrices over R. Which of the following functions T : V −→ V are linear transformations?
-- (a) T(A)=A2 ∀A∈V
-- (b) T(A)= −1 1 A ∀ A∈V
-- Find a linear transformation T : R2 −→ R3 which sends (1,0) to (1,1,0) and (1, 1) to (1, 0, −1).
-- (i) Whi... |
ad6688651e878d203d80f94a7a8af1ce2502b942 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/real/ennreal.lean | b01dfe825be35372625a5350734ca4f1ccb57c75 | [
"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 | 89,030 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov
-/
import data.real.nnreal
import algebra.order.sub.with_top
/-!
# Extended non-negative reals
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any change... |
4b5bb98d8ef2e31be4e183342bfb77a62462a709 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/sym.lean | 8e6801f113d101a6a0a3ddbab519b61a148aaa93 | [
"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 | 4,623 | lean | /-
Copyright (c) 2020 Kyle Miller All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.multiset.basic
import data.vector2
import tactic.tidy
/-!
# Symmetric powers
This file defines symmetric powers of a type. The nth symmetric power
consists o... |
204add7b2f16611c309e3ded7c14fa42f748160c | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Parser/Tactic.lean | d386c00df27b6d557efa303ee6805b4a78d18aee | [
"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 | 535 | 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
-/
import Lean.Parser.Term
namespace Lean
namespace Parser
namespace Tactic
builtin_initialize
registerParserAlias! "tacticSeq" tacti... |
34d8bf88d2a47a3a0fd3b644b35ddc479fdad5a0 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/auto_cases.lean | aad8335f68e249a1d40b74e60d4d17a8018278b6 | [
"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 | 2,284 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek, Scott Morrison
-/
import tactic.hint
namespace tactic
namespace auto_cases
/-- Structure representing a tactic which can be used by `tactic.auto_cases`. -/
meta structu... |
45f954515adbc8c406c2eed37decaf079b74b6a0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/fintype/card_embedding.lean | e4b885e127971554130ad16e5dd6c809d833546f | [
"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,020 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import data.fintype.big_operators
import logic.equiv.embedding
/-!
# Number of embeddings
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requ... |
ffcf1d5beb09e294b7d5591c76797c4d038fce06 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Syntax/Translate/Tactic/Mathlib/Padics.lean | 4fd3fb39616c3b394daa1ddf87159a2d5fd6bd54 | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 1,445 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Mathport.Syntax.Translate.Tactic.Basic
import Mathport.Syntax.Translate.Tactic.Lean3
import Mathlib.RingTheory.WittVector.InitTail
open Lean
namespace... |
5c17de3f7e2e8d3a5f4169419d28871a73d61839 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/group_theory/group_action/sub_mul_action.lean | 28bc2fe9ff54ffaeca8e5672d6b8302f954eef44 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,638 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.group_action_hom
import algebra.module.basic
import data.set_like.basic
import group_theory.group_action.basic
/-!
# Sets invariant to a `mul_action`
In th... |
d674b4d70eec59632cce27e6517c6ca5c6ee961b | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/data/padics/hensel.lean | 0e7ab67b4734c0d413b8fc2d2f2a02ee302dbaba | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 20,840 | 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
A proof of Hensel's lemma on ℤ_p, roughly following Keith Conrad's writeup:
http://www.math.uconn.edu/~kconrad/blurbs/gradnumthy/hensel.pdf
-/
import data.padics.pad... |
ea9cf943ec06173d74d7612da56424d366923777 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/as.lean | 9c204c9b408246750ae2213b7e00d909b34c99c5 | [
"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 | 439 | lean | namespace foo
definition id {A : Type} (a : A) := a
definition pr1 {A : Type} (a b : A) := a
end foo
open foo as bla (hiding pr1)
check bla.id
open foo as bla (renaming pr1→pr)
check bla.pr
print raw bla.id
open foo as boo (pr1)
check boo.pr1
open foo as boooo (renaming pr1→pr) (hiding id)
check boooo.pr
names... |
0a35d05224db8cdb44caf249552c4ae9d6fdd811 | eb586f8ae80b7045ba4ff08f1c7ba69403d61081 | /src/e_trans_helpers.lean | ca1252af29e92fa28fb65a7d18b35d6abfb3df18 | [] | no_license | bryangingechen/transcendental | 926584f58c47d766b304d39d1aa6814284535394 | 3692ac5ebe85e49c5f65bc7f2ea4f873a973bac2 | refs/heads/master | 1,668,733,660,442 | 1,594,269,161,000 | 1,594,269,161,000 | 278,266,099 | 0 | 0 | null | 1,594,270,314,000 | 1,594,270,313,000 | null | UTF-8 | Lean | false | false | 26,632 | lean | import ring_theory.algebraic
import algebra.big_operators
import measure_theory.set_integral
import analysis.special_functions.exp_log
import small_things
noncomputable theory
open_locale classical
open small_things
open_locale big_operators
/-- # Definition and some theorems about differentiating multiple times
-/
... |
aa98202eff0162ffb89ff02a5aa0bc3858cc1c51 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/function/simple_func_dense_lp.lean | e67f84473c68a60221db0aafe0781780c0a3e4eb | [
"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 | 46,102 | lean | /-
Copyright (c) 2022 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov, Heather Macbeth
-/
import measure_theory.function.l1_space
import measure_theory.function.simple_func_dense
/-!
# Density of simple functions
> THIS FI... |
de294e810055db61c0cc3b60825cd1618e45de6b | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/complex/basic.lean | ff74195ca6807550e571a40000058e51af568216 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 19,372 | lean | /-
Copyright (c) 2017 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Mario Carneiro
The complex numbers, modelled as R^2 in the obvious way.
-/
import data.real.basic tactic.ring algebra.field_power
import tactic.norm_cast
structure comp... |
2a7b28934349fde82b93d8a7b6d7b626be3002fd | eb9357a70318e50e095b58730bebfe0cffee457f | /lean/love02_backward_proofs_demo.lean | 7710759f3750c373e2192354c6cac3c917b4f06e | [] | no_license | Vierkantor/logical_verification_2021 | 7485dd916953131d501760f023d5b30fbb74d36a | 9500b9c194e22a9ab4067321cfed7a1f445afcfc | refs/heads/main | 1,692,560,845,086 | 1,624,721,275,000 | 1,624,721,275,000 | 416,354,079 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,961 | lean | import .love01_definitions_and_statements_demo
/-! # LoVe Demo 2: Backward Proofs
A __tactic__ operates on a proof goal and either proves it or creates new
subgoals. Tactics are a __backward__ proof mechanism: They start from the goal
and work towards the available hypotheses and lemmas. -/
set_option pp.beta true... |
d22f2c7e84d2a326987e4082d7197233f4a457b4 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Util/Path.lean | 72dad5e30acad91f5f89abcb2e1ea89033e60081 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,837 | 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
Management of the Lean search path (`LEAN_PATH`), which is a list of
paths containing package roots: an import `A.B.C` resolves to
`path/A/... |
8a1e1b596f3ab2b4d15c30e9f5cd7edc59e1ed17 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Elab/Tactic/Induction.lean | 5042dbe78e198cf00dd136d75aeffe1f077b08b2 | [
"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 | 24,366 | 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
-/
import Lean.Meta.RecursorInfo
import Lean.Meta.CollectMVars
import Lean.Meta.Tactic.ElimInfo
import Lean.Meta.Tactic.Induction
import Lea... |
541fc75e2cbb1ac57f3765e61d6781ad659fc94c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/free_non_unital_non_assoc_algebra.lean | 3b1a15738d151580f3ac66d39d30ab5d4dbeaa64 | [
"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 | 3,150 | 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 algebra.free
import algebra.monoid_algebra.basic
/-!
# Free algebras
Given a semiring `R` and a type `X`, we construct the free non-unital, non-associative algebra... |
a4105ff30404ce2abc406657b5ebf6c14176a090 | 510e96af568b060ed5858226ad954c258549f143 | /data/seq/computation.lean | 3b5d62e8a787f4f893ad6c710240813cf7ed1380 | [] | no_license | Shamrock-Frost/library_dev | cb6d1739237d81e17720118f72ba0a6db8a5906b | 0245c71e4931d3aceeacf0aea776454f6ee03c9c | refs/heads/master | 1,609,481,034,595 | 1,500,165,215,000 | 1,500,165,347,000 | 97,350,162 | 0 | 0 | null | 1,500,164,969,000 | 1,500,164,969,000 | null | UTF-8 | Lean | false | false | 34,521 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Coinductive formalization of unbounded computations.
-/
import data.stream pending
universes u v w
/-
coinductive computation (α : Type u) : Type u
| return : α ... |
cee3d02d979de1a2aff4085a448e56b9b0bd674a | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/char_zero/infinite.lean | e9cebe06e7997b0040832345795e241ac9aec617 | [
"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 | 476 | 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 algebra.char_zero.defs
import data.fintype.card
/-! # A characteristic-zero semiring is infinite -/
open set
variables (M : Type*) [add_monoid_with_one M] [c... |
d4bc871b2a891f3bb703f45f9d5f546901496dc3 | 83c8119e3298c0bfc53fc195c41a6afb63d01513 | /library/init/meta/expr.lean | 8bc87ebd44a8e0bd8e8a082ec1bee60862850acb | [
"Apache-2.0"
] | permissive | anfelor/lean | 584b91c4e87a6d95f7630c2a93fb082a87319ed0 | 31cfc2b6bf7d674f3d0f73848b842c9c9869c9f1 | refs/heads/master | 1,610,067,141,310 | 1,585,992,232,000 | 1,585,992,232,000 | 251,683,543 | 0 | 0 | Apache-2.0 | 1,585,676,570,000 | 1,585,676,569,000 | null | UTF-8 | Lean | false | false | 21,869 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.level init.category.monad init.meta.rb_map
universes u v
open native
/-- Column and line position in a Lean source file. -/
structu... |
eacf119783c629314f39754b341a2e97d9c87cb5 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/matrix/polynomial.lean | 008382638c9eafe05dcc6a8f26bbba09407bc63b | [
"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,103 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import algebra.polynomial.big_operators
import data.polynomial.degree.lemmas
import data.polynomial.eval
import data.polynomial.monic
import linear_algebra.matrix.d... |
b1089fa00953529e9061bcc3644a0d31d1a7395f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/sheaves/local_predicate_auto.lean | 0c1cee694c165369852b6305c82ad83b9e5e955d | [] | 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 | 16,181 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison, Adam Topaz
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.sheaves.sheaf_of_functions
import Mathlib.topology.she... |
ceb64e0b4248ccee420f2eb7c5951742a6d92125 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/category_theory/morphism_property.lean | e05ab6edd756bea1bf933af0f2530809b7da542b | [
"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 | 7,634 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.limits.shapes.pullbacks
import category_theory.arrow
/-!
# Properties of morphisms
We provide the basic framework for talking about properties of m... |
e76b01a9a5009791a5acf86796427bdddd7b41c8 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Meta.lean | b58d0ef13428669c9b2314afdf2a489907557613 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 1,189 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
import Lean.Meta.LevelDefEq
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.ExprDefEq
impo... |
b7a99f830814768e9c7e79975f1e4e3a3fcbc682 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/vector/mem.lean | 7db02e14c7bbe57ce110b9a785a3f70ae9510bac | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 2,886 | lean | /-
Copyright (c) 2022 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Devon Tuma
-/
import data.vector.basic
/-!
# Theorems about membership of elements in vectors
This file contains theorems for membership in a `v.to_list` for a vector `v`.
Having the leng... |
5fdc1d7eac4810c1a19da517bfc745c0a3b8e48d | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/set/lattice.lean | 09827023f18ed331a3e71f1a628f683d3c8d11cd | [
"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 | 19,868 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors Jeremy Avigad, Leonardo de Moura, Johannes Hölzl, Mario Carneiro
-- QUESTION: can make the first argument in ∀ x ∈ a, ... implicit?
-/
import logic.basic data.set.basic tactic
import or... |
4eff2f27fe6b39bfed91d661662199b95e356b60 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/dual.lean | ddd7a4282982c8c595c55c9e7555ec987610357a | [
"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 | 35,683 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Fabian Glöckle
-/
import linear_algebra.finite_dimensional
import linear_algebra.projection
import linear_algebra.sesquilinear_form
import ring_theory.finiteness
import... |
dddb0244116442c4023ef56ccf21031646059301 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/data/list/comb.lean | a2d1ee6ad9de6e78d2ba62ae55e42df99b7f3a5d | [
"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 | 3,243 | lean | /-
Copyright (c) 2015 Leonardo de Moura. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Haitao Zhang, Floris van Doorn
List combinators.
-/
import init.data.list.basic
universe variables u v w
namespace list
open nat
variables {α : Type u} {β : ... |
71f15db49c261250c0b4b1f83d93c4614a4b7758 | 618003631150032a5676f229d13a079ac875ff77 | /src/logic/function/conjugate.lean | 10e6cf3d376d5c49248cd093b67401860bd30aea | [
"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,474 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import logic.function.basic
/-!
# Semiconjugate and commuting maps
We define the following predicates:
* `function.semiconj`: `f : α → β` semiconjugates `ga : α →... |
f99e04bc53f60fc7b9378bf53abf0ccdd0be59e2 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/calc1.lean | ca10125e06e1feb0b0dce47b36f06422bc35e640 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 1,654 | lean | prelude constant A : Type.{1}
definition bool : Type.{1} := Type.{0}
constant eq : A → A → bool
infixl ` = `:50 := eq
axiom subst (P : A → bool) (a b : A) (H1 : a = b) (H2 : P a) : P b
axiom eq_trans (a b c : A) (H1 : a = b) (H2 : b = c) : a = c
axiom eq_refl (a : A) : a = a
constant le : A → A → bool
infixl ` ≤ `:50 :... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.