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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0a66f2cfb72c774fcb8bdc923641ac3c565e348e | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/analytic/basic.lean | d141ef6a929206aa989fe418e1b7e1dca4b20eea | [
"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 | 64,882 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.formal_multilinear_series
import analysis.specific_limits.normed
import logic.equiv.fin
/-!
# Analytic functions
A f... |
a327805ffe77222f004a3568d92f10d927979274 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/set_theory/ordinal.lean | c80d3eac1bc53498555f75001efd7293f10e5119 | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 138,162 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Ordinal arithmetic.
Ordinals are defined as equivalences of well-ordered sets by order isomorphism.
-/
import set_theory.cardinal
noncomputable theory
open function ca... |
0f7c793c861a1bb5a280baf37f4852c2486474b3 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/continuous_function/ideals.lean | 7341809a0f644b25e437dcb32b49729e1fc9aa27 | [
"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 | 21,760 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import topology.algebra.algebra
import topology.continuous_function.compact
import topology.urysohns_lemma
import data.is_R_or_C.basic
import analysis.normed_space.uni... |
b4942ad60829637d9514a0178c50b54674df22fe | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/algebra/subalgebra.lean | eb5027850d3692c4defb38beebb4de2d6b1d9fa0 | [
"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 | 25,547 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.algebra.operations
/-!
# Subalgebras over Commutative Semiring
In this file we define `subalgebra`s and the usual operations on them (`map`, `... |
8889b73e9dd8a1c9bac1406da32177e4c9ecf7bf | 97c8e5d8aca4afeebb5b335f26a492c53680efc8 | /ground_zero/HITs/truncation.lean | 55dae814a16dae28d0ecd45441587dafd6443a82 | [] | no_license | jfrancese/lean | cf32f0d8d5520b6f0e9d3987deb95841c553c53c | 06e7efaecce4093d97fb5ecc75479df2ef1dbbdb | refs/heads/master | 1,587,915,151,351 | 1,551,012,140,000 | 1,551,012,140,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,124 | lean | import ground_zero.HITs.colimit ground_zero.HITs.generalized
import ground_zero.structures
open ground_zero.support (renaming truncation -> hint)
open ground_zero.types.equiv (subst path_over_subst apd pathover_from_trans)
open ground_zero.types.eq (cong)
open ground_zero.structures (prop contr lem_contr)
namespace gr... |
4eec24ea5e08f6509bce0996934aaf5bdb15936d | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/real/basic.lean | 6bb5be44a68579222269b8ddb2c857ee242df522 | [
"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 | 22,870 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
-/
import order.conditionally_complete_lattice
import data.real.cau_seq_completion
import algebra.bounds
import algebra.order.archimedean
import algebr... |
1f3b88c936d0879cfcd462df0b6a50530d33ee47 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/multiset/basic.lean | 3c499bd8219a732a15466f11bf8fa53b67fd164b | [
"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 | 84,471 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.list.perm
import algebra.group_power
/-!
# Multisets
These are implemented as the quotient of a list by permutations.
-/
open list subtype nat
v... |
162b33a5c48d00306925aa095a598922263a9897 | 9a0b1b3a653ea926b03d1495fef64da1d14b3174 | /analysis/limits.lean | e44e6f060914ae2e96a91c0c08a7a0a41bc4f81f | [
"Apache-2.0"
] | permissive | khoek/mathlib-tidy | 8623b27b4e04e7d598164e7eaf248610d58f768b | 866afa6ab597c47f1b72e8fe2b82b97fff5b980f | refs/heads/master | 1,585,598,975,772 | 1,538,659,544,000 | 1,538,659,544,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,821 | 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
A collection of limit properties.
-/
import algebra.big_operators algebra.group_power tactic.norm_num
analysis.ennreal analysis.topology.infinite_sum tidy.tidy
noncom... |
46cfe002b3ece64ec47b6081564250b3e0d7d919 | c678b448c073e84fd00f1777ac278c36a7bb9a83 | /data/containers/rbtree/basic.lean | 825b2c1d70e8798d834a8f35f3932f5095c79ef2 | [] | no_license | GaloisInc/lean-containers | 9d714d9a355381d66f4bf9b686589a85ce7afcc4 | c3359c6e439a611926168e2c86496d0d90a67f9b | refs/heads/master | 1,587,884,399,036 | 1,548,187,422,000 | 1,548,187,422,000 | 173,382,186 | 0 | 0 | null | 1,551,483,637,000 | 1,551,483,637,000 | null | UTF-8 | Lean | false | false | 12,048 | lean | /- This defines a set of elements implemented using a bianry tree. -/
import ..utils.list
import ..utils.has_preordering
universe variable u
namespace data.containers
inductive color
| red : color
| black : color
namespace color
instance : decidable_eq color := by tactic.mk_dec_eq_instance
end color
open color
... |
308542b71d8d61c46f7bd3c63d938a247e13f8d5 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/ring/pi.lean | b8cee208657b25a224bdbe1405da52bf28d8a246 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 2,817 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import tactic.pi_instances
import algebra.group.pi
import algebra.ring.basic
/-!
# Pi instances for ring
This file defines instances for ring, semiring an... |
eb81cfaf6b3ca2bd89cb26ea3204e3e8bf2c3b67 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/ring_invo.lean | 01324030be5c7c78c9b80ea50b911971bc47f1d8 | [
"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 | 2,056 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andreas Swerdlow, Kenny Lau
-/
import algebra.ring.equiv
import algebra.ring.opposite
/-!
# Ring involutions
This file defines a ring involution as a structure extending `R ≃+* Rᵐᵒ... |
a7f4484d7fb14e949afd477e57cb78ec3bf21f01 | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world7/level10.lean | 029eb6f1040f7ac4596591cae22931b3dfdb4381 | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 1,900 | lean | import game.world6.level8 -- hide
import tactic.tauto
local attribute [instance, priority 10] classical.prop_decidable -- hide
/-
# Advanced proposition world.
## Level 10: `exfalso` and proof by contradiction.
It's certainly true that $P\land(\lnot P)\implies Q$ for any propositions $P$
and $Q$, because the left ... |
19a82268a43faef64aa1db681d2119a769741e08 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/colimit_limit.lean | f59ccf07cb30932d1e1ee1186d5695a036fbc2a0 | [
"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 | 3,375 | 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.limits.types
import category_theory.currying
/-!
# The morphism comparing a colimit of limits with the corresponding limit of colimits.
For `... |
66ab62511bd59ac03a4e781ebdfc8601769f7d96 | 43390109ab88557e6090f3245c47479c123ee500 | /src/Groups_example_sheet/Sheet1.lean | 9d6872e7531d43a8d3bc4abe1f5bf57783ecbc81 | [
"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,119 | lean | import init.algebra.group init.data.set analysis.topology.continuity
variables {G : Type*} [group G]
def integers : set ℤ :=
set.univ
def Is_group {H:Type} (g:set H) (op: H → H → H): Prop := (∀ (x y z ∈ g), op (op x y) z = op x (op y z)) ∧
(∃ i ∈ g , ((∀x ∈ g,op x i = x ∧ op i x = x) ∧ (∀ x ∈ g, ∃ xin ∈ g, op x xi... |
79670d6370efd3ddca471ebd67cd687c6dbaf141 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/using_bug.lean | 787511c43fb6ae431a6fa19e0e80e3af17e4a422 | [
"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 | 270 | lean | example (p q r : Prop) : p ∧ q ∧ r → q ∧ p :=
assume Hpqr : p ∧ q ∧ r,
have Hp : p, from and.elim_left Hpqr,
have Hqr : q ∧ r, from and.elim_right Hpqr,
have Hq : q, from and.elim_left Hqr,
show q ∧ p, from
proof
and.intro Hq Hp
qed
|
29c9b6d980ca650a747c22820224e85b9c7b696b | b29f946a2f0afd23ef86b9219116968babbb9f4f | /src/problem_sheets/sheet_7/sht07Q01.lean | 07f4c9326b4a1f748bf379461685be66e01fdea2 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/M1P1-lean | 58be7394fded719d95e45e6b10e1ecf2ed3c7c4c | 3723468cc50f8bebd00a9811caf25224a578de17 | refs/heads/master | 1,587,063,867,779 | 1,572,727,164,000 | 1,572,727,164,000 | 165,845,802 | 14 | 4 | Apache-2.0 | 1,549,730,698,000 | 1,547,554,675,000 | Lean | UTF-8 | Lean | false | false | 4,143 | lean | import data.real.basic
import tactic.linarith
import limits
open real
local attribute [instance, priority 1000] classical.prop_decidable
noncomputable definition a : ℕ → ℝ
| 0 := 0
| (n + 1) := sqrt (1 + a n)
@[simp] lemma a_succ (n : ℕ) : a (n + 1) = sqrt (1 + a n) := begin
unfold a,
end
@[simp] lemma a_one : a... |
17a8fd81508c636ef376adc0667f86912b0380d9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/schreier.lean | f55c3633a087bc41deca061746e1de43e22d75b3 | [
"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 | 6,901 | lean | /-
Copyright (c) 2022 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import data.finset.pointwise
import group_theory.complement
import group_theory.finiteness
import group_theory.index
import tactic.group
/-!
# Schreier's Lemma
I... |
278c1a68fff640ec48d16ec7dbb80563bf5776ac | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/category/Mon/basic.lean | 198b77989a8e77f3e5421cf120491b8bcb2c8cbf | [
"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,142 | 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.elementwise
import category_theory.concrete_category.bundled_hom
import algebra.punit_instances
import category_theory.functor.reflects_isomorphisms
/-... |
88079528017279522183736c1de94cbd1a92c6c4 | a9fe717b93ccfa4b2e64faeb24f96dfefb390240 | /nat/dnf.lean | 501a21fa2faa065c1fec68b112fdf544591537b1 | [] | no_license | skbaek/omega | ab1f4a6daadfc8c855f14c39d9459ab841527141 | 715e384ed14e8eb177a326700066e7c98269e078 | refs/heads/master | 1,588,000,876,352 | 1,552,645,917,000 | 1,552,645,917,000 | 174,442,914 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,312 | lean | import .sub_elim ..clause
namespace nat
@[omega] def dnf_core : form → list clause
| (p ∨* q) := (dnf_core p) ++ (dnf_core q)
| (p ∧* q) :=
(list.product (dnf_core p) (dnf_core q)).map
(λ pq, clause.append pq.fst pq.snd)
| (t =* s) :=
[([term.sub (canonize s) (canonize t)],[])]
| (t ≤* s) := [([],[term.sub... |
5acc575dcc9fd2170fcd16d673c474b5f17341c5 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/complex/is_R_or_C.lean | 94f3de3264e4aaa28ba73a73c41057ab750c5fc1 | [
"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 | 25,882 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import analysis.normed_space.basic
import analysis.complex.basic
/-!
# `is_R_or_C`: a typeclass for ℝ or ℂ
This file defines the typeclass `is_R_or_C` intended t... |
36073a8fa6f834937654f3e60a3463288a919540 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/adjunction/fully_faithful.lean | 3e9e23eedd66e1ff255b94551350d772c5b94040 | [
"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 | 2,230 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.adjunction.basic
import category_theory.yoneda
open category_theory
namespace category_theory
universes v₁ v₂ u₁ u₂
open category
open oppos... |
99254a614621ce11f3fd9690cde8a7819ddd8bc9 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/number_theory/legendre_symbol/zmod_char.lean | a268ce915e3295ab941896e3c1c97d4f1b280be2 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 7,038 | lean | /-
Copyright (c) 2022 Michael Stoll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Stoll
-/
import tactic.basic
import data.int.range
import data.zmod.basic
import number_theory.legendre_symbol.mul_character
/-!
# Quadratic characters on ℤ/nℤ
This file defin... |
7f28ad4e2c15258e90ee2398a9211f0a364cd1ba | 3863d2564418bccb1859e057bf5a4ef240e75fd7 | /hott/types/sigma.hlean | b13912ad58e00e250fe47fea421d4a49d5032e54 | [
"Apache-2.0"
] | permissive | JacobGross/lean | 118bbb067ff4d4af48a266face2c7eb9868fa91c | eb26087df940c54337cb807b4bc6d345d1fc1085 | refs/heads/master | 1,582,735,011,532 | 1,462,557,826,000 | 1,462,557,826,000 | 46,451,196 | 0 | 0 | null | 1,462,557,826,000 | 1,447,885,161,000 | C++ | UTF-8 | Lean | false | false | 20,166 | hlean | /-
Copyright (c) 2014-15 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about sigma-types (dependent sums)
-/
import types.prod
open eq sigma sigma.ops equiv is_equiv function is_trunc sum uni... |
faac11a7ce1d747ffe91242d334d449a583336ca | 130c49f47783503e462c16b2eff31933442be6ff | /src/Lean/Meta/Match/MatchEqs.lean | feb2bd931e31d538b8efb08caf6638cdb1061d32 | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,695 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Match.Match
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tactic.Delta
import Lean.Meta.Tactic.SplitIf
namespace Lean.Meta.Match
private... |
1352acd136ce0868b513f5b9243bacb26bc5c856 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Compiler/IR/ElimDeadVars.lean | 145ade379afe371bfe8e28f38f92b2cfbdac1d22 | [
"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 | 1,605 | 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.Compiler.IR.Basic
import Lean.Compiler.IR.FreeVars
namespace Lean.IR
partial def reshapeWithoutDead (bs : Array FnBody) (term : FnBody) : FnBo... |
d100aeac0639aa8f80041b1203af20fe60807386 | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/omega/find_scalars.lean | 91149b372c80caef86b67c170a7d7c90ed9ac057 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 3,047 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
/-
Tactic for performing Fourier–Motzkin elimination to find
a contradictory linear combination of input constraints.
-/
import tactic.omega.term
import data.list.min_max
ope... |
72576e5a1e0b68fe319a1f1f0d54173675d8ae4d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/1098.lean | 025806205ccd2db7d516264a54f446de40d2c0af | [
"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 | 717 | lean | structure FoldImpl (α β : Type u) where
γ : Type u
x₀ : γ
f : γ → α → γ
out : γ → β
inductive R : FoldImpl α β → FoldImpl α β → Prop where
| intro {γ γ' x₀ y₀ f g out out'} : R ⟨γ, x₀, f, out⟩ ⟨γ', y₀, g, out'⟩
#print R
#check R.intro
-- @R.intro : ∀ {α β γ γ' : Type u_1} {x₀ : γ} {y₀ : γ'} {f : γ → α... |
1000d73a958f7f92dc0f99c71100c0c41b0ee5e6 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/products/associator.lean | 70a8503f66f7f1354f08bdb57acde99ed089a338 | [
"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,913 | 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
/-#
The associator functor `((C × D) × E) ⥤ (C × (D × E))` and its inverse form an equivalence.
-/
universes v... |
18c84ec17a1c98d52f6722be45f00e6d0dea545b | 46125763b4dbf50619e8846a1371029346f4c3db | /src/data/equiv/algebra.lean | 689a7d1ec56f479cc84c6098d146ce5e67b609d3 | [
"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 | 23,329 | 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, Callum Sutton
-/
import data.equiv.basic algebra.field
/-!
# equivs in the algebraic hierarchy
In the first part there are theorems of the following
form: if `α` has... |
c351401f3ae7c0c0bbb9ff9655bc9d4353b9f4f2 | 5ee26964f602030578ef0159d46145dd2e357ba5 | /src/for_mathlib/nonarchimedean/open_subgroup.lean | a3a3cfae9e49beb279d54503b72b440305155627 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean-perfectoid-spaces | 569b4006fdfe491ca8b58dd817bb56138ada761f | 06cec51438b168837fc6e9268945735037fd1db6 | refs/heads/master | 1,590,154,571,918 | 1,557,685,392,000 | 1,557,685,392,000 | 186,363,547 | 0 | 0 | Apache-2.0 | 1,557,730,933,000 | 1,557,730,933,000 | null | UTF-8 | Lean | false | false | 9,970 | lean | import order.filter.lift
import for_mathlib.subgroup
import for_mathlib.topological_groups
import for_mathlib.pointwise
local attribute [instance] set.pointwise_mul_semiring
section
variables (G : Type*) [group G] [topological_space G] [topological_group G]
@[to_additive open_add_subgroup]
def open_subgroup := { U ... |
708648fb40f594c67909c2d08c9f7355216e2517 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/compiler/closure_bug8.lean | a8b38a04195490d2c7f89c83421013b94f648d87 | [
"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 | 504 | lean |
def f (x : Nat) : Nat × (Nat → String) :=
let x1 := x + 1;
let x2 := x + 2;
let x3 := x + 3;
let x4 := x + 4;
let x5 := x + 5;
let x6 := x + 6;
let x7 := x + 7;
let x8 := x + 8;
let x9 := x + 9;
let x10 := x + 10;
let x11 := x + 11;
let x12 := x + 12;
let x13 := x + 13;
let x14 := x + 14;
let x15 := x + 15;
let x16 :=... |
6ea9ca29b7acb34bd0bc8a5226322b92691850c6 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/nat/choose.lean | da3190916afd44da098a22d77b59a8a4fd7021c8 | [
"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 | 6,206 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Bhavik Mehta, Patrick Stevens
-/
import algebra.commute
import tactic.linarith
open nat
open_locale big_operators
lemma nat.prime.dvd_choose_add {p a b : ℕ} (hap : a < p... |
03a6918709ee2c3e98462da6ba59a6c9de084762 | 6772a11d96d69b3f90d6eeaf7f9accddf2a7691d | /examples/semigroups.lean | 21fe2ce8177d69e23701a860335aa84621201dba | [] | no_license | lbordowitz/lean-category-theory | 5397361f0f81037d65762da48de2c16ec85a5e4b | 8c59893e44af3804eba4dbc5f7fa5928ed2e0ae6 | refs/heads/master | 1,611,310,752,156 | 1,487,070,172,000 | 1,487,070,172,000 | 82,003,141 | 0 | 0 | null | 1,487,118,553,000 | 1,487,118,553,000 | null | UTF-8 | Lean | false | false | 4,827 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import ..category
import ..monoidal_category
namespace tqft.categories.examples.semigroups
universe variables u
open tqft.categories
set_optio... |
a1806f0cfe68292a32836aebe17bace917557ee8 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/coroutine.lean | ad47b73df712113de145a8ce8bae3b4d5a57534e | [
"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 | 7,616 | lean | universes u v w r s
inductive coroutineResultCore (coroutine : Type (max u v w)) (α : Type u) (δ : Type v) (β : Type w) : Type (max u v w)
| done {} : β → coroutineResultCore
| yielded {} : δ → coroutine → coroutineResultCore
/--
Asymmetric coroutines `coroutine α δ β` takes inputs of Type `α`, yields element... |
d4d57e4d0b73ac75aa9a71b5c27150bb58243faa | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/computability/partrec_code.lean | 63bc302a87dba4fc0c3fe25de0145f8dd2130f47 | [
"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 | 38,818 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Godel numbering for partial recursive functions.
-/
import computability.partrec
open encodable denumerable
namespace nat.partrec
open nat (mkpair)
theorem rfind' {f... |
8d9a8e75b28484c392684285ef01a5c0d5b9e4a2 | 54f4ad05b219d444b709f56c2f619dd87d14ec29 | /my_project/src/love08_operational_semantics_exercise_sheet.lean | 7d63aafa0b92db31f80eb85a45660a743f107255 | [] | no_license | yizhou7/learning-lean | 8efcf838c7276e235a81bd291f467fa43ce56e0a | 91fb366c624df6e56e19555b2e482ce767cd8224 | refs/heads/master | 1,675,649,087,737 | 1,609,022,281,000 | 1,609,022,281,000 | 272,072,779 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,668 | lean | import .love08_operational_semantics_demo
/-! # LoVe Exercise 8: Operational Semantics -/
set_option pp.beta true
namespace LoVe
/-! ## Question 1: Program Equivalence
For this question, we introduce the notion of program equivalence: `S₁ ≈ S₂`. -/
def big_step_equiv (S₁ S₂ : stmt) : Prop :=
∀s t, (S₁, s) ⟹ t ... |
dc95d15cdd11452c589026bbf725ac4c142a5b9a | 3a7eb58cccd9e625ebf79689f8f0f244a20b6158 | /old/Algebra.lean | 0fdd88dbf4da81bd6aa81009d80feec62d7dffb4 | [] | no_license | hermetique/lean4-raytracer | c1ea6336dbb44296af60ee8e416cc9c87d6827a9 | 092c9a6c4ee612786082b807491ccefaed961462 | refs/heads/master | 1,677,468,320,587 | 1,612,291,379,000 | 1,612,291,379,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 332 | lean | class Zero (α : Type _) where
zero : α
class One (α : Type _) where
one : α
instance [OfNat α 0] : Zero α where
zero := 0
instance [OfNat α 1] : One α where
one := 1
instance [Zero α] : OfNat α (natLit! 0) where
ofNat := Zero.zero
instance [One α] : OfNat α (natLit! 1) where
ofNat := One.one |
f9e437542758412715240a3d8f544c9971ca5bfa | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/polynomial/bernstein.lean | ab3e862098dcecc167ded26670ba4dd61c81438d | [
"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 | 15,871 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.polynomial.derivative
import data.polynomial.algebra_map
import data.mv_polynomial.pderiv
import data.nat.choose.sum
import linear_algebra.basis
import ri... |
2107a4dfb38567e8784fea8e64bad266443349eb | b815abf92ce063fe0d1fabf5b42da483552aa3e8 | /library/init/default.lean | 7fcb420a1e085043fe31f06b9cd78ab97683fb3a | [
"Apache-2.0"
] | permissive | yodalee/lean | a368d842df12c63e9f79414ed7bbee805b9001ef | 317989bf9ef6ae1dec7488c2363dbfcdc16e0756 | refs/heads/master | 1,610,551,176,860 | 1,481,430,138,000 | 1,481,646,441,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,043 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.core init.logic init.category init.data.basic
import init.propext init.funext init.category.combinators init.function init.classical
imp... |
7128a5c1d9ad95703cee4ef0beee179ded6eb781 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/linear_algebra/direct_sum/finsupp.lean | d5ca5717175e3230bab89b897aa381420fa85110 | [
"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 | 3,229 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import linear_algebra.finsupp
import linear_algebra.direct_sum.tensor_product
/-!
# Results on direct sums and finitely supported functions.
1. The linear equivalenc... |
1920eb2037c26e137d5be8a4fae94463b1fce42e | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/goals1.lean | da193bbf19a8557c301d4042cbf02ae068bacc08 | [
"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 | 185 | lean | import tools.tactic logic.eq
open tactic
set_option pp.notation false
theorem foo (A : Type) (a b c : A) (Hab : a = b) (Hbc : b = c) : a = c :=
begin
apply eq.trans,
apply Hab
end
|
60ad95f3fc564ae1b601116974035df481684cee | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/apply_auto.lean | c50546f8e2dbfedf8bfbd081d5270ddb83e63b6c | [] | 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 | 1,305 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.core
import Mathlib.PostPort
universes u_1
namespace Mathlib
/-!
This file provides ... |
2cb4f427e70a6de807ccc4ccedae4e4aff41be3e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/mv_polynomial/equiv.lean | 76e328ca13d5e2bf21f0e776b9d76ad2074679ec | [
"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 | 18,804 | 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, Johan Commelin, Mario Carneiro
-/
import data.mv_polynomial.rename
import data.polynomial.algebra_map
import data.polynomial.lifts
import data.mv_polynomial.variables
... |
d22aebcf48de1c6c5375a05d36aa11e0a81e20c6 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/tensor_algebra/grading.lean | 2a6427f13c6a7f4db0b37a4dc0affa4c1e583344 | [
"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 | 2,334 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.tensor_algebra.basic
import ring_theory.graded_algebra.basic
/-!
# Results about the grading structure of the tensor algebra
The main result is `ten... |
77b47308208ade8486c262928c8491f9dc597bab | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/library_search/filter.lean | 97f2cd00903b594227bec392c58d8168ef7c3ef4 | [
"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 | 501 | lean | import order.filter.basic
open filter
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace.silence_library_search true
example {α β γ : Type*} {A : filter α} {B : filter β} {C : filter γ} {f : α → β} {g : β → γ}
(hf : tendsto f A B) (hg : tendsto g B C) : tendsto (g ∘ f) A C :=
calc... |
5f4b397b9800bc294a7a97aa3bb5b91222087bb2 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/category_theory/sites/sheaf.lean | daab694292c1ab7e6da7dfa06ed2016121f2a5cc | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,737 | lean | /-
Copyright (c) 2020 Kevin Buzzard, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Bhavik Mehta
-/
import category_theory.sites.sheaf_of_types
import category_theory.limits.yoneda
import category_theory.limits.preserves.shapes.equalizers
... |
3a5ca31183e2e93ff8370fee15771279de3a85b6 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/tree_height.lean | 02f4b43fde0b55c5b8505c9a504581882143da84 | [
"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,084 | lean | import logic data.nat
open eq.ops nat
inductive tree (A : Type) :=
leaf : A → tree A,
node : tree A → tree A → tree A
namespace tree
definition height {A : Type} (t : tree A) : nat :=
rec_on t
(λ a, zero)
(λ t₁ t₂ h₁ h₂, succ (max h₁ h₂))
definition height_lt {A : Type} : tree A → tree A → Prop :=
inv_image lt ... |
23c5ab5caf8359708addd27f13a94925895d219f | 17d3c61bf162bf88be633867ed4cb201378a8769 | /tests/lean/interactive/my_tac_class.lean | 021544f6c11d4c4f3eccbe2df01cf4631824485b | [
"Apache-2.0"
] | permissive | u20024804/lean | 11def01468fb4796fb0da76015855adceac7e311 | d315e424ff17faf6fe096a0a1407b70193009726 | refs/heads/master | 1,611,388,567,561 | 1,485,836,506,000 | 1,485,836,625,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,660 | lean | meta def mytac :=
state_t nat tactic
meta instance : monad mytac :=
state_t.monad _ _
meta instance : monad.has_monad_lift tactic mytac :=
monad.monad_transformer_lift (state_t nat) tactic
meta instance (α : Type) : has_coe (tactic α) (mytac α) :=
⟨monad.monad_lift⟩
namespace mytac
meta def step {α : Type} (t : my... |
2b3fd1471dd5e3e25493abee34959c482301b386 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/array/lemmas.lean | 05fbc09f1b2892828b1bf00e9c368a709673ce61 | [
"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 | 9,278 | 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, Mario Carneiro
-/
import control.traversable.equiv
import data.vector2
universes u v w
namespace d_array
variables {n : ℕ} {α : fin n → Type u}
instance [∀... |
cc0aa593e6041cf6c09751e204ee4605877f4be0 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/slow_error.lean | 6f160ad4c17e67f9cf586e9acb4cd6fc348ee4b4 | [
"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 | 77 | lean | variable a : caching_user_attribute string
variable b : string
#check a = b
|
12e616c6cf6d19ca3888fd725c1446dd95635ce6 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Init/System/IOError.lean | 91229e0702c3001479a1b5807f40123e1605b8b1 | [
"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 | 8,946 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
prelude
import Init.Core
import Init.Data.UInt
import Init.Data.ToString.Basic
import Init.Data.String.Basic
/-
Imitate the structure of IOErrorType in Haskell:... |
fd62237eeab96bf8600dc2490b24cb2897c8fe71 | 205f0fc16279a69ea36e9fd158e3a97b06834ce2 | /src/03_Conjunction/quiz1-key.lean | 4011f05e25a338ce52c0ce47ae0e652e415f6a30 | [] | no_license | kevinsullivan/cs-dm-lean | b21d3ca1a9b2a0751ba13fcb4e7b258010a5d124 | a06a94e98be77170ca1df486c8189338b16cf6c6 | refs/heads/master | 1,585,948,743,595 | 1,544,339,346,000 | 1,544,339,346,000 | 155,570,767 | 1 | 3 | null | 1,541,540,372,000 | 1,540,995,993,000 | Lean | UTF-8 | Lean | false | false | 6,606 | lean | /-
Here are three stylistically different
answers for the in-class quiz, in which
you were asked to prove that you could
derive a proof of (P ∧ (Q ∧ R)) from any
proof of ((P ∧ Q) ∧ R).
The first answer is in the form of an
exact proof term. It was developed by
top-down, type-guided decomposition.
That's a technical ... |
2b72dbb68e869dd69df85c745a6cb6c9f50a23f4 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Util/HasConstCache.lean | bad4046f9bed17ce1a7cc854b260e6c54daaad93 | [
"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,508 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Expr
namespace Lean
structure HasConstCache (declName : Name) where
cache : Std.HashMapImp Expr Bool := Std.mkHashMapImp
unsafe def HasCons... |
a11ea1bcbc0d676608c622f0765c533d31a01ec4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/rbtree/default_auto.lean | 98e58402cd15fdc0a57ce10a6de3343ee06b019a | [] | 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 | 265 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.rbtree.basic
namespace Mathlib
end Mathlib |
013fb0a80f8b557b925a1298cb67ac8fa7f70597 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/algebra/field_power.lean | 693d21eb4095384a997750f695a3a70c514c482c | [
"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 | 9,054 | 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
Integer power operation on fields.
-/
import algebra.group_power algebra.ordered_field
import tactic.wlog tactic.linarith
universe u
section field_power
open int n... |
b6c5681f1fd481ad04d3899fccae80a74f8118f2 | 78630e908e9624a892e24ebdd21260720d29cf55 | /src/logic_propositional/prop_02.lean | 48f0dca03be292e61507de223ea475cfbfe1820d | [
"CC0-1.0"
] | permissive | tomasz-lisowski/lean-logic-examples | 84e612466776be0a16c23a0439ff8ef6114ddbe1 | 2b2ccd467b49c3989bf6c92ec0358a8d6ee68c5d | refs/heads/master | 1,683,334,199,431 | 1,621,938,305,000 | 1,621,938,305,000 | 365,041,573 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 205 | lean | namespace prop_02
variables A B : Prop
theorem prop_2 : A → ¬ (¬ A ∧ B) :=
assume h1: A,
assume h2: ¬ A ∧ B,
have h3: ¬ A, from and.left h2,
show false, from h3 h1
-- end namespace
end prop_02 |
cdb8aa0c0c5a4fed8c3c14cdf79f200bef0bf3db | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/linear/yoneda.lean | b14fca02db598ac4f49eac503f08572452ca4d76 | [
"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 | 4,790 | 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 algebra.category.Module.basic
import category_theory.linear
import category_theory.preadditive.additive_functor
import category_theory.preadditive.yoneda
/-!
... |
f455585df414f87611bf8bace235237861de7d7e | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/nat/enat.lean | a9530c166ae529f17525d096be5c449e950ee62a | [
"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 | 7,790 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
Natural numbers with infinity, represented as roption ℕ.
-/
import data.pfun algebra.ordered_group
open roption lattice
def enat : Type := roption ℕ
namespace enat
inst... |
197d288cc2276c1fa8ee45a48566203b1eb3ca2a | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch3/ex0203.lean | 1e87d3c55c1acfbda7436ffb67a36d4f1f1b2142 | [] | 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 | 91 | lean | constants p q : Prop
theorem t1 : p → q → p :=
assume hp : p,
assume hq : q,
hp
|
355ae5ba1777b95431d0abb82812c6075e577dcf | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /05_Interacting_with_Lean.org.19.lean | 31a37613cf06a8bf15da8d24f05317e2345430bf | [] | 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 | 291 | lean | /- page 74 -/
import standard
import data.bool data.nat
open bool nat
definition bool.to_nat [coercion] (b : bool) : nat :=
bool.cond b 1 0
eval 2 + ff
eval 2 + tt
eval tt + tt + tt + ff
print coercions -- show all coercions
print coercions bool -- show all coercions from bool
|
45441babfea937573d60600cf09596b75145e5ff | 8e31b9e0d8cec76b5aa1e60a240bbd557d01047c | /test.lean | 2001f4605cce44e18176f1612c8819445be88755 | [] | no_license | ChrisHughes24/LP | 7bdd62cb648461c67246457f3ddcb9518226dd49 | e3ed64c2d1f642696104584e74ae7226d8e916de | refs/heads/master | 1,685,642,642,858 | 1,578,070,602,000 | 1,578,070,602,000 | 195,268,102 | 4 | 3 | null | 1,569,229,518,000 | 1,562,255,287,000 | Lean | UTF-8 | Lean | false | false | 2,110 | lean | import simplex
open tableau finset
variables {m n : ℕ}
def list.to_matrix (m :ℕ) (n : ℕ) (l : list (list ℚ)) : matrix (fin m) (fin n) ℚ :=
λ i j, (l.nth_le i sorry).nth_le j sorry
def vector.to_matrix (m :ℕ) (n : ℕ) (l : vector (vector ℚ n) m) : matrix (fin m) (fin n) ℚ:=
λ i j, (l.nth i).nth j
instance has_repr_fi... |
d355d6643cf1608e6168c391b22e8d498c7afd4c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/calculus/fderiv_auto.lean | 0564bbfec88232839d4502a96bc36a34700cb648 | [] | 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 | 220,619 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.calculus.tangent_cone
import Mathlib.analysis.no... |
a6253ebda7a62de411dfc695ab41fa980268d9c7 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/lie/ideal_operations.lean | b9bc5442261d737db3913a795c784556f7e15d6b | [
"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 | 14,048 | 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.lie.submodule
/-!
# Ideal operations for Lie algebras
Given a Lie module `M` over a Lie algebra `L`, there is a natural action of the Lie ideals of `L`
on ... |
eeebb491794b810f377a9b8249c4c3d2c6d2f29e | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/data/set/intervals/basic.lean | 4c4d8ea8037c45c14171f1451ff429917a342460 | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,889 | 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, Yury Kudryashov
-/
import algebra.order_functions
import data.set.basic
/-!
# Intervals
In any preorder `α`, we define intervals (whic... |
fd476f931900e71835a63636eff1be3b8bc31f80 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Lean/Elab/InfoTree.lean | 573f91d26e6dbd7b505202843ba7d4eb34155781 | [
"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 | 8,412 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Leonardo de Moura
-/
import Lean.Data.Position
import Lean.Expr
import Lean.Message
import Lean.Data.Json
import Lean.Meta.Basic
import Lean.Meta.PPGoal
namespa... |
9fa52e989fa4ce44589611b0d145b2fd9d7cee4a | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Parser/Term.lean | c058c7162510a3800bb1bf9fcb0147ec56f35f1a | [
"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 | 15,699 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Basic
import Lean.Parser.Level
namespace Lean
namespace Parser
@[init] def regBuiltinTacticParserAttr : IO Unit :=
l... |
1534f7a696f833296974d7802498fb8bbdcd3154 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/group_theory/order_of_element.lean | 1e16adf8450c5c280df8ed9620925863d7ad7537 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31,713 | 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, Julian Kuelshammer
-/
import algebra.big_operators.order
import group_theory.coset
import data.nat.totient
import data.int.gcd
import data.set.finite
/-!
# Order of an... |
4f1b816747060e55952f9704de4f52e86daa8f14 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/inductive1.lean | c368c6d88cef956ea018312729a65257edaff549 | [
"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 | 1,933 | lean | new_frontend
-- Test1
inductive T1 : Nat -- Error, resultant type is not a sort
-- Test2
mutual
inductive T1 : Prop
inductive T2 : Type -- Error resulting universe mismatch
end
-- Test3
universes u v
mutual
inductive T1 (x : Nat) : Type u
inductive T2 (x : Nat) : Nat → Type v -- Error resulting universe mismat... |
6cc643657dde0d5865028f2a84e186cba9ab7b36 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/category_theory/eq_to_hom.lean | fbb8fc18f39d651f189d2051ba38f8f402130857 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 3,033 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison
-/
import category_theory.opposites
universes v v' u u' -- declare the `v`'s first; see `category_theory.category` for an explanation
namespace category_theo... |
1759073cd0e2530e9bc0b95fc75cb2ab17610861 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/ring_theory/power_series/basic.lean | aa0590ebbc09e222958e4f7ddd0ce31c01ae418b | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 62,598 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kenny Lau
-/
import data.mv_polynomial
import linear_algebra.std_basis
import ring_theory.ideal.operations
import ring_theory.multiplicity
import ring_theory.algebra_to... |
4c1642b6a554944046891b9d915f29a64a554e8f | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/linear_algebra/dimension.lean | 719cfbaa5bdf944a216bc7836ef83feefe0ee72b | [
"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 | 16,673 | 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
-/
import linear_algebra.basis
import set_theory.ordinal
/-!
# Dimension of modules and vector spaces
## Main definitions
* The dimension... |
acbc69e730eff4991b53abedbea9554f19ae0064 | d751a70f46ed26dc0111a87f5bbe83e5c6648904 | /Code/src/inst/exec/run.lean | b8a7f6bfb3069f78b39905b34ca58de419159ff5 | [] | no_license | marcusrossel/bachelors-thesis | 92cb12ae8436c10fbfab9bfe4929a0081e615b37 | d1ec2c2b5c3c6700a506f2e3cc93f1160e44b422 | refs/heads/main | 1,682,873,547,703 | 1,619,795,735,000 | 1,619,795,735,000 | 306,041,494 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,087 | lean | import topo
import inst.network.basic
import inst.exec.algorithms
import inst.exec.topo
-- Cf. inst/primitives.lean
variables {υ : Type*} [decidable_eq υ]
namespace inst
namespace network
-- A helper function for `run`, that reassembles the result of `run_topo` into an `inst.network`.
private noncomputable def r... |
73b8951f95b1eb5b6d43f2865ad2d10cb66f3b0e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/algebra/basic.lean | c3fca778f79a305596e332d9a7ed47f04f05c227 | [] | 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 | 73,063 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.nth_rewrite.default
import Mathlib.data.matrix.basic
import Mathlib.data.equi... |
1affd09aba5d8aff1ff866415e72af61f0fc4748 | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/IR/TypeID.lean | 975789c9c7ea944c70e4a747d9f95c3a2358dd75 | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 942 | lean | namespace Papyrus
/-- Identifiers for all of the base types of the LLVM (v12) type system. -/
inductive TypeID
-- Primitive types
| /-- 16-bit floating point type -/
half
| /-- 16-bit floating point type (7-bit significand) -/
bfloat
| /-- 32-bit floating point type -/
float
| /-- 64-bit floating point type -/
... |
ea1f0a83bc52600572f8c06c7a45e00ae2b3f750 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/affine_space/basic.lean | d3830bbce4e43fb56f01f1f56485b277d5f6f693 | [] | 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 | 1,756 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.add_torsor
import Mathlib.PostPort
namespace Mathlib
/-!
# Affine space
In this file ... |
dde230d0a4078323592211c41934d4cd5f7c0d78 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/group_theory/free_abelian_group.lean | 169adc3b8613675e32e290facc280b24d4d84ce8 | [
"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 | 11,407 | 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 abelian groups as abelianization of free groups.
-/
import algebra.pi_instances
import group_theory.free_group
import group_theory.abelianization
universes u v
variables (... |
5de01a2a88222531981ea983d1d3796db054aecb | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/prodtst.lean | 7f9f0b4d3b9cbecf5337945afc3fc264d8514e5d | [
"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 | 109 | lean | --
inductive prod2 (A B : Type₊) :=
mk : A → B → prod2 A B
set_option pp.universes true
check @prod2
|
4d83a843338601a9edfe7f3a4f5db32de3c272c1 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/metric_space/thickened_indicator.lean | a0c0693727abdd56969372fb10859faba82747f0 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 12,033 | lean | /-
Copyright (c) 2022 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
import data.real.ennreal
import topology.continuous_function.bounded
/-!
# Thickened indicators
This file is about thickened indicators of sets in (pseudo e)metric spac... |
b4abb8a1d1475d1271c9f307590530b1de7b92a7 | 302b541ac2e998a523ae04da7673fd0932ded126 | /tests/simple/proj.lean | f9a5c0465ebd10a794d273e65d0ce896942589fd | [] | no_license | mattweingarten/lambdapure | 4aeff69e8e3b8e78ea3c0a2b9b61770ef5a689b1 | f920a4ad78e6b1e3651f30bf8445c9105dfa03a8 | refs/heads/master | 1,680,665,168,790 | 1,618,420,180,000 | 1,618,420,180,000 | 310,816,264 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 185 | lean | set_option trace.compiler.ir.init true
inductive Tree
| Nil
| Node (l r : Tree) : Tree
open Tree
def check : Tree → UInt32
| Nil => 0
| Node l r => 1 + check l + check r
|
7ae78ebc627a74be6fa63d4c7d983977284012f7 | 367134ba5a65885e863bdc4507601606690974c1 | /src/number_theory/divisors.lean | 5d52110970b48217fdc5ab4b52f8e67065acbf25 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 12,837 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import algebra.big_operators.order
import tactic
import data.nat.prime
/-!
# Divisor finsets
This file defines sets of divisors of a natural number. This is particu... |
734a704d3b33aa5d6471572831d5a69ba06a8e46 | c5b07d17b3c9fb19e4b302465d237fd1d988c14f | /src/function.lean | 2bdc15a6b4de412c407f8ada52d0a759dadb2d34 | [
"MIT"
] | permissive | skaslev/papers | acaec61602b28c33d6115e53913b2002136aa29b | f15b379f3c43bbd0a37ac7bb75f4278f7e901389 | refs/heads/master | 1,665,505,770,318 | 1,660,378,602,000 | 1,660,378,602,000 | 14,101,547 | 0 | 1 | MIT | 1,595,414,522,000 | 1,383,542,702,000 | Lean | UTF-8 | Lean | false | false | 1,104 | lean | def iter {A} (g : A → A) : ℕ → A → A
| 0 := id
| (n+1) := iter n ∘ g
def diter {B : Type → Type 1} {C : Type → Type} (g : Π {A}, B (C A) → B A) : Π (n : ℕ) {A}, B (iter C n A) → B A
| 0 A := id
| (n+1) A := g ∘ diter n
def delta (k n : ℕ) := ite (n = k) 1 0
def partial_sum (f : ℕ → ℕ) : ℕ → ℕ
| 0 := f 0
| (n+1) := p... |
92218c4135c150c17f2bb5f5d4585bc466b30977 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category_theory/monad/basic.lean | 8867908d6464cd74abf36b4855c6ef22d744288e | [
"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 | 958 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.functor_category
namespace category_theory
open category
universes v₁ u₁ -- declare the `v`'s first; see `category_theory.category` for an ex... |
8d12bf58df20163c031fede97694155fab2e6a31 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/projective_space/subspace.lean | aadabc860d9d3ef4be75c0c7a09c40a468bf6033 | [
"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 | 8,409 | lean | /-
Copyright (c) 2022 Michael Blyth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Blyth
-/
import linear_algebra.projective_space.basic
/-!
# Subspaces of Projective Space
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corr... |
738153f724943f7c5d3e00dba2203c9958ccfb25 | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/meta/contradiction_tactic.lean | 626a93fce8bb3914e7a48aede74fd948a65a06f8 | [
"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 | 2,604 | 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.tactic init.function
namespace tactic
open expr tactic decidable environment
private meta def contra_p_not_p : list expr → list ... |
ae4d98d3acb7850cb07b8042bf2d1b7ce6c7573a | 9a0b1b3a653ea926b03d1495fef64da1d14b3174 | /tidy/rewrite_search/bundles/logic.lean | 86119b1ac4828bf06d23f02db86921f329861b36 | [
"Apache-2.0"
] | permissive | khoek/mathlib-tidy | 8623b27b4e04e7d598164e7eaf248610d58f768b | 866afa6ab597c47f1b72e8fe2b82b97fff5b980f | refs/heads/master | 1,585,598,975,772 | 1,538,659,544,000 | 1,538,659,544,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 328 | lean | import tidy.rewrite_search.discovery.bundle
namespace tidy.rewrite_search.discovery
@[bundle] meta def logic : bundle := {}
attribute [search logic] not_not not_or_distrib not_not
attribute [search logic] and_assoc and_comm and_not_self_iff and_false
attribute [search logic] imp_iff_not_or
end tidy.rewrite_search.d... |
428ffe6312d7e21a750673acc0ed164a9f58f80a | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/topology/order.lean | 9188abae4fe01b7ee90d3573d1ac87ff1c573673 | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 32,103 | 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
Order on topological structures. Lattice structure, Galois connection, and applications.
-/
import topology.basic
open set filter lattice classical
loc... |
62cb2bf46fed6b9e1968773031b939ad77873d6c | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Meta/ReduceEval.lean | 66c32bf12543093476bcf7c13aa338d9eeee68c0 | [
"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 | 1,873 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
/-! Evaluation by reduction -/
import Lean.Meta.Offset
namespace Lean.Meta
class ReduceEval (α : Type) where
reduceEval : Expr → MetaM α
def reduceEval [... |
b6991f53eb8757cfd51741836d57668ff16d850e | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/doc_strings.lean | c6f9e477e1043728bc26e60826f23023bb2a6f28 | [
"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 | 342 | lean | /-! This module has a doc.. -/
/-! ..or two. -/
inductive foo : Type
/-- Makes foo. -/
| a : foo
/-- Makes foo of foo. -/ | b : foo -> foo
/-- Doesn't make foo. -/
constant two : nat
open tactic
run_cmd doc_string `foo.a >>= trace
run_cmd doc_string `foo.b >>= trace
run_cmd doc_string `two >>= trace
run_cmd module_... |
b9b3210040b766619375772fa32b112b6cdd9b30 | 874a8d2247ab9a4516052498f80da2e32d0e3a48 | /pigeonhole_final.lean | 90ee46c4100178fe43c8e1b1bfde141dd372cd10 | [] | no_license | AlexKontorovich/Spring2020Math492 | 378b36c643ee029f5ab91c1677889baa591f5e85 | 659108c5d864ff5c75b9b3b13b847aa5cff4348a | refs/heads/master | 1,610,780,595,457 | 1,588,174,859,000 | 1,588,174,859,000 | 243,017,788 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 9,770 | lean | import tactic
/--
`injective` Basic definition of injectivity.
-/
def injective {X Y} (f : X → Y) := ∀ x₁ x₂, f x₁ = f x₂ → x₁ = x₂
/--
`comp_inj_is_inj` Demonstrates the composition of injective functions is injective.
-/
theorem comp_inj_is_inj
{X Y Z} (f : X → Y) (g : Y → Z)
(p1 : injective f)
(p2 : injective g)... |
42d3c26251df1fa630ea5feaf30f1c3d81f14cc2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/ifThenElseIssue2.lean | 23ecd3c663e1db92c8904dad3e2ba462d6bdb5d4 | [
"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,647 | lean | def rowStr1 : Array Bool → String := Array.foldr (fun b s => s ++ (if b then "#" else " ")) ""
def rowStr2 : List Bool → String := List.foldr (fun b s => s ++ (if b then "#" else " ")) ""
def rowStr3 (as : Array Bool) : String := as.foldr (fun b s => s ++ (if b then "#" else " ")) ""
def rowStr4 (as : List Bool) : Stri... |
6100c6f738698dfb6b7866994fd34c3b85b10b6a | abd85493667895c57a7507870867b28124b3998f | /src/measure_theory/integration.lean | 91203b10b791d0b1f2552a266bc8913eefe689d9 | [
"Apache-2.0"
] | permissive | pechersky/mathlib | d56eef16bddb0bfc8bc552b05b7270aff5944393 | f1df14c2214ee114c9738e733efd5de174deb95d | refs/heads/master | 1,666,714,392,571 | 1,591,747,567,000 | 1,591,747,567,000 | 270,557,274 | 0 | 0 | Apache-2.0 | 1,591,597,975,000 | 1,591,597,974,000 | null | UTF-8 | Lean | false | false | 57,062 | 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
Lebesgue integral on `ennreal`.
We define simple functions and show that each Borel measurable function on `ennreal` can be
approximated by a sequence ... |
5c35c1fc2662e579367b22b91af54dc6e8f66621 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/module/basic.lean | aed5873df2c0b900f62727b219dcb0cc5400fc36 | [
"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,142 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
-/
import algebra.big_operators.basic
import algebra.smul_with_zero
import group_theory.group_action.big_operators
imp... |
a1d9878c4ba45e9c6e6cfd9149bb5d6aa168f799 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Util/EvalTerm.lean | 603f2ea5461bb03525a107518daa38f2a649ba4a | [
"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 | 607 | lean | /-
Copyright (c) 2022 Mac Malone All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
import Lean.Elab.Eval
namespace Lake
open Lean Elab
unsafe def unsafeEvalTerm (α) [ToExpr α] (term : Syntax) : TermElabM α := do
Term.evalTerm α (toTypeExpr α) term .unsaf... |
23f927d19f62e243230ebb3dc1ccdaf25b388ae3 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/coe9.lean | 852060c426f7e205dd6e2091d2a416c7c22f8698 | [
"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 | 816 | lean | import data.nat
open nat
constant list.{l} : Type.{l} → Type.{l}
constant vector.{l} : Type.{l} → nat → Type.{l}
constant matrix.{l} : Type.{l} → nat → nat → Type.{l}
constant length : Pi {A : Type}, list A → nat
constant list_to_vec {A : Type} (l : list A) : vector A (length l)
constant to_row {A : Type} {n : nat} :... |
be130579c338d20b9b1baa529b731ef610dca360 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /src/Init/Lean/Data/NameGenerator.lean | 0189b8147fbe340bdd83d93a2e881059d9ff94fb | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 732 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Data.Name
namespace Lean
structure NameGenerator :=
(namePrefix : Name := `_uniq)
(idx : Nat := 1)
namespace NameGenerat... |
45f8d2f6329aaa2c304a18b94492976da7e9cdeb | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/measure_theory/measure/measure_space_def.lean | df96b445980647c809ddc5c680b92d0bb6858478 | [
"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 | 19,956 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import measure_theory.measure.outer_measure
import order.filter.countable_Inter
import data.set.accumulate
/-!
# Measure spaces
This file defines me... |
fd78ac87541251e6f132259cc0de96967183253c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/methodsRetInhabited.lean | f9d5dbe8ea70b9920342a3d26f48feb11afb611d | [
"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 | 343 | lean | open Lean
def exec (x : MacroM α) : Option α :=
match x {
mainModule := `Expander
currMacroScope := 0
ref := default
methods := default } { macroScope := 0 } with
| EStateM.Result.ok a s => a
| _ => none
def tst : MacroM String := do
let n ← Macro.getCurrNamespace
return toString... |
3d1e3cd4aa7c25584c30f61c512a1f294c0867b0 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /stage0/src/Lean/Elab/Match.lean | de5dfc938cbeb286d4e9ec459eb11dd34040676a | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,722 | 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.Meta.Match.MatchPatternAttr
import Lean.Meta.Match.Match
import Lean.Elab.SyntheticMVars
import Lean.Elab.App
namespace Lean
namespace Elab
nam... |
8f142e7505c429d7886baff0aa5100215dbf4104 | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1F/problem_bank/0202/Q0202.lean | b156f2d9927129bac98ff937e05689ecf81a1096 | [
"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 | 173 | lean | import data.real.basic
def open_zero_one := { x : ℝ | 0<x ∧ x<1}
theorem Q2 : forall x : ℝ, x ∈ open_zero_one → ∃ y : ℝ, y ∈ open_zero_one ∧ x<y := sorry |
0e9877d8c7a99325af1cbe452b27b997b6606120 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/option/n_ary.lean | 007541c0723ca4147de9f19e08ce69356fb23dfa | [
"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 | 8,048 | 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 data.option.basic
/-!
# Binary map of options
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
This... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.