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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
db765bb4a7737f42d1c40bd29c1d11e9dc3480ca | 77b579b9a1295d88352dc4296573364c800e7441 | /lean-tutorial/first.lean | 5bc93d7ca61a1d09dc995147a25186b25f6d105f | [] | no_license | joelmccracken/playground | 47a6286b9ab7227597841bec0a469fa5327ec8ba | 6401d9a8eb67491ee589b85e0a84a0ff414938bd | refs/heads/master | 1,685,073,507,705 | 1,684,476,111,000 | 1,684,476,111,000 | 7,369,222 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 80 | lean | -- $ nix-shell https://github.com/leanprover/lean4/archive/master.tar.gz -A nix
|
5f461947dca0302a7bc063ae17b56b9e5fbc744f | 7a51de2540dffbb2071672b4c6ace23ebf73b000 | /src/matroidexamples.lean | 7b7ae96ab42c7b91b5d07e0b4f73ada50fc4899e | [
"Apache-2.0"
] | permissive | bryangingechen/lean-matroids | 112b3839ca8d067d13d2b9bc6c392b680968d5e8 | 37c2964208f5a0532ef0a3e525ace06d4d7bc156 | refs/heads/master | 1,624,161,348,754 | 1,575,521,642,000 | 1,575,521,642,000 | 149,715,612 | 4 | 1 | Apache-2.0 | 1,608,525,997,000 | 1,537,508,725,000 | Lean | UTF-8 | Lean | false | false | 4,422 | lean | /-
Examples of matroids.
-/
import matroid data.equiv.list
open finset
variables {α : Type*} [decidable_eq α] {E : finset α}
namespace matroid
/-- the loopy matroid on `E : finset α` is the matroid where every
element of `E` is a loop; equivalently, every subset of `E` is
dependent -/
def loopy (E : finset α) : inde... |
8dfbdbeba81c34198f0ced9da0cd58302cd80e8c | 7c4610454cf55b49f0c3cdaeb6b856eb3249cb2d | /src/torsion.lean | ec518375da77e485fa5126a5ea65f3b8d8b2087a | [] | no_license | 101damnations/fg_over_pid | 097be43e11c3680a3fd4b6de2265de393cf4d4ef | a1a587c455a54a802f6ff61b07bb033701e451a7 | refs/heads/master | 1,669,708,904,636 | 1,597,259,770,000 | 1,597,259,770,000 | 287,097,363 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,903 | lean |
import ring_theory.principal_ideal_domain linear_algebra.basic
open unique_factorization_domain
variables (R : Type*) (M : Type*) [add_comm_group M]
open_locale classical
section
variables [integral_domain R] [add_comm_group M] [module R M] (a : M)
/-- Given `a` in an R-module M, the ideal of `R` consisting of `r : ... |
c2e8a2582fcc2c7b3db326419bebf65cd843dfe2 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/convex/cone.lean | 954fdf43def751f7a556c923b1ad544d075ee7e5 | [
"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 | 25,259 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Frédéric Dupuis
-/
import analysis.convex.hull
import analysis.inner_product_space.basic
/-!
# Convex cones
In a `𝕜`-module `E`, we define a convex cone as a set `s... |
0bf15c9a5f8a2fb1fc059d9585d17ef51b68e647 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/number_theory/padics/padic_val.lean | e297e0f631f3d2d98d854dda9e9b24b97305b956 | [
"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 | 21,493 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import algebra.order.absolute_value
import algebra.field_power
import ring_theory.int.basic
import tactic.basic
import tactic.ring_exp
import number_theory.divisors... |
72b5577eefb229568dff4d47126ee4eefe01cf52 | 217bb195841a8be2d1b4edd2084d6b69ccd62f50 | /library/init/lean/position.lean | da39fed8335cd3a9ac43cb6bf051e97508338bfa | [
"Apache-2.0"
] | permissive | frank-lesser/lean4 | 717f56c9bacd5bf3a67542d2f5cea721d4743a30 | 79e2abe33f73162f773ea731265e456dbfe822f9 | refs/heads/master | 1,589,741,267,933 | 1,556,424,200,000 | 1,556,424,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,834 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import init.data.nat init.data.rbmap init.lean.format init.lean.parser.parsec
namespace Lean
structure Position :=
(line : Na... |
153dd8d36b16e7126620e0c637d320cb6c67afe7 | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/meta/task.lean | d2cad9694fc23b80c2dc3f8d21146c4101bfe5ad | [
"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 | 197 | lean | prelude
meta constant {u} task : Type u → Type (max u 1)
namespace task
meta constant {u} get {α : Type u} (t : task α) : α
meta constant {u} pure {α : Type u} (t : α) : task α
end task
|
19e703a3577f600dbe5c78a9cdf262880ff4e9c6 | 8e50deafd5bb76463f835e09114910e9e33e0e63 | /Tr.lean | 1b6304aae842c9e5dce151ccd6c6cd531d2780e5 | [
"MIT"
] | permissive | teodorov/lean-transition-systems | b174a09a168d27cde684cd5be5b93eaa9e144070 | 252ceb254d95ab167273049717609e2c2089688c | refs/heads/main | 1,691,617,772,896 | 1,629,892,131,000 | 1,629,892,131,000 | 399,796,873 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,879 | lean |
notation:65 "ℕ" => Nat
open Nat
def fact : ℕ → ℕ
| zero => 1
| succ n' => fact n' * succ n'
inductive fact_state :=
| AnswerIs (answer : ℕ)
| WithAccumulator (input accumulator : ℕ)
inductive fact_init (original_input : ℕ) : fact_state → Prop :=
| FactInit : fact_init original_input (fact_state.WithAccumulator ori... |
7c8cdf3dc9535b9507db04cb158eb455308611ac | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/interactive/hoverException.lean | 6e56570b65f6255e87cfdd5f7861bce31a97d854 | [
"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 | 76 | lean | inductive Foo
| mk : (a b : Bar) → Foo
--^ textDocument/hover
|
6aaf7e2871fdbea80600e3c8a9d90f6a0d8c5c51 | df7bb3acd9623e489e95e85d0bc55590ab0bc393 | /lean/love12_basic_mathematical_structures_exercise_solution.lean | a2c65b9dae2505e689ed280e149fe31cea5dc52f | [] | no_license | MaschavanderMarel/logical_verification_2020 | a41c210b9237c56cb35f6cd399e3ac2fe42e775d | 7d562ef174cc6578ca6013f74db336480470b708 | refs/heads/master | 1,692,144,223,196 | 1,634,661,675,000 | 1,634,661,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,965 | lean | import .love12_basic_mathematical_structures_demo
/- # LoVe Exercise 12: Basic Mathematical Structures -/
set_option pp.beta true
set_option pp.generalized_field_notation false
namespace LoVe
/- ## Question 1: Type Classes
Recall the inductive type `btree` we introduced earlier: -/
#check btree
/- The followi... |
7db613e30285a6cecedee9981e4f999118b3651c | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/order/filter/basic.lean | ac40539e937e72de977773a4eb42b8d31a8f8aac | [
"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 | 100,015 | 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, Jeremy Avigad
-/
import order.zorn
import order.copy
import data.set.finite
import tactic.monotonicity
/-!
# Theory of filters on sets
## Main definitions
* `filter`... |
078ef76998919e6e7b14e3bb54823d3c8d6b209d | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /library/init/meta/interactive.lean | d61a4baada605882aa1f75af0aa7af7214d0c887 | [
"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 | 26,664 | 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.meta.rewrite_tactic init.meta.simp_tactic
import init.meta.smt.congruence_closure init.category.combinators
import init... |
53b0d319cc4ac6a72f9929d3c919bcd05117d623 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/filter/indicator_function.lean | 62c22c87cbecafa07661d5e764cd2837ce36c15b | [
"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,024 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import algebra.indicator_function
import order.filter.at_top_bot
/-!
# Indicator function and filters
Properties of indicator functions involving `=ᶠ... |
a58318eaa4bc328dac94b66802877bea38d0d282 | 6b2a480f27775cba4f3ae191b1c1387a29de586e | /group_rep1/group_representation.lean | 0110d6adf43f6f718faad2d26b894d1b281ea85b | [] | no_license | Or7ando/group_representation | a681de2e19d1930a1e1be573d6735a2f0b8356cb | 9b576984f17764ebf26c8caa2a542d248f1b50d2 | refs/heads/master | 1,662,413,107,324 | 1,590,302,389,000 | 1,590,302,389,000 | 258,130,829 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 770 | lean | /- Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: ...
-/
import linear_algebra.basic linear_algebra.finite_dimensional
import algebra.module
--infix ` * ` := linear_map.comp
universe variables u v w
open linear_map ... |
c1006efc4d33ca0960d9f8288e2236ccd4d2a493 | 05b503addd423dd68145d68b8cde5cd595d74365 | /test/solve_by_elim.lean | 36cd79eeaa00c9cbeeaedea1d62cfc43ae5a963e | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,800 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Scott Morrison
-/
import tactic.solve_by_elim
example {a b : Prop} (h₀ : a → b) (h₁ : a) : b :=
begin
apply_assumption,
apply_assumption,
end
example {X : Type} (x : X)... |
980224a2d9aac165aa08e638c653963e6f24ccaa | 6fb1523f14e3297f9ad9b10eb132e6170b011888 | /src/2021/logic/sheet1.lean | d6230228a6ebf9ede3c09bf103cf9b0808c21891 | [] | no_license | jfmc/M40001_lean | 392ef2ca3984f0d56b2f9bb22eafc45416e694ba | 4502e3eb1af550c345cfda3aef7ffa89474fac24 | refs/heads/master | 1,693,810,669,330 | 1,634,755,889,000 | 1,634,755,889,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,008 | lean | /-
Copyright (c) 2021 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Kevin Buzzard
-/
import tactic -- imports all the Lean tactics
/-!
# Logic in Lean, example sheet 1 : "implies" (`→`)
We learn about propositions, and implications `P → Q` between t... |
c647dad1e7c0656d4043507650fa111dc8611a99 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/run/id.lean | d4f49f8434c267385c70ed10052b8709738198b0 | [
"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 | 157 | lean | #check id id
set_option pp.universes true
#check id id
#check id Prop
#check id num
#check @id.{0}
#check @id.{1}
#check id num.zero
#check @eq
#check eq eq
|
2e3c0aa3b0c011b1c847f0476504e8c3dd1633da | 6f1049e897f569e5c47237de40321e62f0181948 | /src/solutions/06_sub_sequences.lean | 90bd70c69d8099c96b9fae35e1543bccc0a2b348 | [
"Apache-2.0"
] | permissive | anrddh/tutorials | f654a0807b9523608544836d9a81939f8e1dceb8 | 3ba43804e7b632201c494cdaa8da5406f1a255f9 | refs/heads/master | 1,655,542,921,827 | 1,588,846,595,000 | 1,588,846,595,000 | 262,330,134 | 0 | 0 | null | 1,588,944,346,000 | 1,588,944,345,000 | null | UTF-8 | Lean | false | false | 4,788 | lean | import tuto_lib
/-
This file continues the elementary study of limits of sequences.
It can be skipped if the previous file was too easy, it won't introduce
any new tactic or trick.
Remember useful lemmas:
abs_le (x y : ℝ) : |x| ≤ y ↔ -y ≤ x ∧ x ≤ y
abs_add (x y : ℝ) : |x + y| ≤ |x| + |y|
abs_sub (x y : ℝ) : |x - y... |
983aad0f49aa81d8f26a0177e8d785bbe56cc034 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/clifford_algebra_auto.lean | 54a4adb01221fa72efc0f7cfbfc5d01ff6c63200 | [] | 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 | 7,707 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Utensil Song.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.ring_quot
import Mathlib.linear_algebra.tensor_algebra
import Mathlib.line... |
6907ad8ce9dfedbef50b4e6720f1f4fa781a57d9 | 7282d49021d38dacd06c4ce45a48d09627687fe0 | /tests/lean/simp30.lean | dd71d6d4410da14917e2db8db0e22633a536f46b | [
"Apache-2.0"
] | permissive | steveluc/lean | 5a0b4431acefaf77f15b25bbb49294c2449923ad | 92ba4e8b2d040a799eda7deb8d2a7cdd3e69c496 | refs/heads/master | 1,611,332,256,930 | 1,391,013,244,000 | 1,391,013,244,000 | 16,361,079 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,064 | lean | import cast
variable vec : Nat → Type
variable concat {n m : Nat} (v : vec n) (w : vec m) : vec (n + m)
infixl 65 ; : concat
axiom concat_assoc {n1 n2 n3 : Nat} (v1 : vec n1) (v2 : vec n2) (v3 : vec n3) :
(v1 ; v2) ; v3 = cast (congr2 vec (symm (Nat::add_assoc n1 n2 n3)))
... |
86de29ff069bb99dab3f6fb389d6681e34dfb335 | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/category/CompHaus.lean | 3fb69a62ca1a6d868987fd6e5d65672c10c5fa69 | [
"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 | 4,058 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Bhavik Mehta
-/
import category_theory.adjunction.reflective
import topology.category.Top
import topology.stone_cech
/-!
# The category of Compact Hausdorff Spaces
We const... |
b8477c533f6c6d0d92a8516cc5dea8b8eee8b0f3 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/e11.lean | 57a8a4a94ae99066f07d2c88f7973e98e785860e | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 897 | lean | precedence `+`:65
namespace nat
variable nat : Type.{1}
variable add : nat → nat → nat
infixl + := add
end
namespace int
using nat (nat)
variable int : Type.{1}
variable add : int → int → int
infixl + := add
variable of_nat : nat → int
coercion of_nat
end
section
-- Using "only" the notation and ... |
9d944b3a8d256e0ee1a3b01b971222056588224d | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/category_theory/preadditive/default.lean | 7b24ecc674dca2b0d502bead30d88e5bcedec7ae | [
"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 | 9,362 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import algebra.group.hom
import category_theory.limits.shapes.kernels
import algebra.big_operators.basic
import algebra.module.basic
import category_theory.endomorphism... |
b9ced280a9cf05155c69ad7ad11f06dc7e06c03c | 367134ba5a65885e863bdc4507601606690974c1 | /src/field_theory/mv_polynomial.lean | 4e51eb4c8d229679e5c17c72f82156f23da2f7da | [
"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 | 1,530 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import ring_theory.mv_polynomial.basic
/-!
# Multivariate polynomials over fields
This file contains basic facts about multivariate polynomials over fields, for exa... |
4527cacdd2759fad5fd3790061718bdde89c7bf9 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/eq16.lean | 23e68b163490ed5506a4f08a9a15fc6a593ba47e | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 437 | lean | import data.list
open list
variable {A : Type}
set_option pp.implicit true
definition append : list A → list A → list A
| append nil l := l
| append (h :: t) l := h :: (append t l)
theorem append_nil (l : list A) : append nil l = l :=
rfl
theorem append_cons (h : A) (t l : list A) : append (h :: t) l = h :: (a... |
7c41ea290b97b1c3dbd89056e4e7bdac1872c746 | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/linear_algebra/matrix.lean | 00f4d91bd3acc79d8516a9b9db527db6487bb693 | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 9,515 | 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, Casper Putz
The equivalence between matrices and linear maps.
-/
import data.matrix.basic
import linear_algebra.dimension linear_algebra.tensor_product
/-!
# Linear ... |
a04c50659075c69fbf8a14050c18edc2ecb45fc4 | 359199d7253811b032ab92108191da7336eba86e | /src/homework/hw4.lean | 5e9b1ec3ce3ebff46bbc5fc33c41664ea59cfba0 | [] | no_license | arte-et-marte/my_cs2120f21 | 0bc6215cb5018a3b7c90d9d399a173233f587064 | 91609c3609ad81fda895bee8b97cc76813241e17 | refs/heads/main | 1,693,298,928,348 | 1,634,931,202,000 | 1,634,931,202,000 | 399,946,705 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,745 | lean | -- 1
example : 0 ≠ 1 :=
begin
-- 0 ≠ 1 => ¬(0 = 1),
-- ¬(0 = 1) => (0 = 1) → false
assume (h : 0 = 1),
-- can also use 'trivial'
contradiction, -- **COMMENT: You could have also used "cases" on your proof (of something that implies false) to obtain a proof of false.**
-- ¬ (0 = 1)
-- (0 = 1) → false
ass... |
5620d7567a8ea0d305396b9081df7314d98e6f11 | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/sheaves/presheaf.lean | 5319e18c889da91985b9c0a2f4fd4ea550d3f380 | [
"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,787 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Mario Carneiro, Reid Barton
-/
import topology.category.Top.opens
/-!
# Presheaves on a topological space
We define `presheaf C X` simply as `(opens X)ᵒᵖ ⥤ C`,
and in... |
210ef4a46d7f8987e5bc7edce67d730bb9232ec3 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/2002-USAMO-Problem_4.lean | a74f0ea626e406198cc63b6974791c2e864e1f46 | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 176 | lean | import data.real.basic
theorem USAMO_Problem_4_2002 (f : ℝ → ℝ) :
(∀ x y : ℝ, f(x^2 - y^2) = x*f(x) - y * f(y)) → ∃ l : ℝ, ∀ x : ℝ, f(x) = l*x := sorry
|
85b8bbe50f9c021c4c4a81ec6713dad92e0daa34 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/ring/idempotents.lean | 912b8de75f6de96a8cb49b19cca4b3deb4ad9cee | [
"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,883 | lean | /-
Copyright (c) 2022 Christopher Hoskin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christopher Hoskin
-/
import order.basic
import algebra.group_power.basic
import algebra.ring.defs
import tactic.nth_rewrite
/-!
# Idempotents
This file defines idempotents for a... |
cb3edbd39d7b3c9747d3e9ff1f6f67e158071ca6 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/nat/gcd.lean | 4b92ffd5474f19e35ecada477594dbc4c381e69c | [
"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 | 22,316 | 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
-/
import algebra.group_power.order
/-!
# Definitions and properties of `gcd`, `lcm`, and `coprime`
-/
namespace nat
/-! ### `gcd` -/
theorem gcd_d... |
b108be12d84a5335f4f795d79c370a9fd8dba989 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/571.lean | 2b646fd9c99dfc80e583dd1d8cd7ea8f6c853c7c | [
"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 | 102 | lean | open nat
variables (P : ℕ → Prop)
example (H : ∃n, P n) : ℕ :=
begin
cases H with n p,
end
|
8aad2723975a3e6135c817e976805b1c38a95061 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/sym2.lean | a8c2943bddd3ac3bca91fafff39035ffcf1b3b0d | [
"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 | 13,759 | lean | /-
Copyright (c) 2020 Kyle Miller All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kyle Miller.
-/
import tactic.linarith
import data.sym
open function
open sym
/-!
# The symmetric square
This file defines the symmetric square, which is `α × α` modulo
swapping. This i... |
c81f2c575ad670398a1a3a8fb118a15928750238 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/types.lean | e9e7959d7b6b9addbec9d1d68b7b802e320ef0ed | [
"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 | 18,069 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton
-/
import category_theory.limits.shapes.images
import category_theory.filtered
import tactic.equiv_rw
/-!
# Limits in the category of types.
> THIS FILE I... |
0af20221bd5de81b34b41b223bc55609c5a8cffe | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/monoidal/CommMon_.lean | c9d99f88c1228d6f68045070c1e0be303db775b3 | [
"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 | 5,390 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monoidal.braided
import category_theory.monoidal.Mon_
/-!
# The category of commutative monoids in a braided monoidal category.
-/
universes ... |
6c3ebce4b9a0d86ad579a6dc20746593f1d15753 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/group_theory/subgroup.lean | a37c9c790e711ceffc85193cf0fe25f660c9783d | [
"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 | 28,143 | 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.submonoid
open set function
variables {G : Type*} {H : Type*} {... |
c72156f40728d42be45108d8ef92f4b1f82c37d5 | 6afa22d5eee6e9a56b6a2f1210eca8f7a1067466 | /tests/lean/run/check_constants.lean | 2182c29933bf4e7474cfa68f22638975e10ef837 | [
"Apache-2.0"
] | permissive | giordano/lean | 72a1fabfeb2f1ccfd38673e2719a719cd6ffbb40 | 56f8877f1efa22215aca0b82f1c0ce2ff975b9c3 | refs/heads/master | 1,663,091,511,168 | 1,590,688,082,000 | 1,590,688,082,000 | 268,183,678 | 0 | 0 | Apache-2.0 | 1,590,885,425,000 | 1,590,885,424,000 | null | UTF-8 | Lean | false | false | 11,413 | lean | -- DO NOT EDIT, automatically generated file, generator scripts/gen_constants_cpp.py
import smt system.io
open tactic
meta def script_check_id (n : name) : tactic unit :=
do env ← get_env, (env^.get n >> return ()) <|> (guard $ env^.is_namespace n) <|> (attribute.get_instances n >> return ()) <|> fail ("identifier '" +... |
f3c6ec41094b1a10d47493d3b67081e03dc5aabe | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/adjoin/tower.lean | ee0cf59cea822d78dc061ab253eda9112090bea8 | [
"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 | 6,799 | 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.adjoin.fg
/-!
# Adjoining elements and being finitely generated in an algebra tower
## Main results
* `algebra.fg_trans'`: if `S` is finitely generated a... |
83c0844fe92fe90c8160d35ec9589215706b1632 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/analysis/quaternion.lean | 3ae29c43b58ef2c1d85819bf14dea109999ee7eb | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,360 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.quaternion
import analysis.inner_product_space.basic
/-!
# Quaternions as a normed algebra
In this file we define the following structures on the s... |
7aed4948b449c4f4cf9c1999a282b728d30bb6fd | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/data/polynomial/coeff.lean | 0724b809b2c7e5405926b87f2ffe04922125a5dd | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,552 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.basic
import data.finset.nat_antidiagonal
/-!
# Theory of univariate polynomials
The theorems inc... |
f672c9534add3951c226cb42c54d893951e505a7 | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/combinatorics/gappy.lean | 9585f069dc74a2531063ce7519d65674b9800586 | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,441 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
This is about "gappy sets", ie subsets s in fin n = {0,...,n-1}
such that s contains no adjacent pairs {i,i+1}. We define
`(gappy n)` to be the set of such subsets... |
bfe0aa27118f63c43be12c56e36754f40e8a504f | b1e80085f6d9158c0b431ffc4fa9d0d53cbac8e4 | /src/covering.lean | de6d338e3c8b0694fce698a0578d7659ea0b82a7 | [] | no_license | dwarn/nielsen-schreier-2 | d73c20e4d2a8ae537fe4f8063272d0b72c58276a | e51a8c6511d374dc584698c7fa236a5be47e7dbe | refs/heads/master | 1,679,911,740,113 | 1,615,656,058,000 | 1,615,656,058,000 | 344,111,212 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,794 | lean | import category_theory.action
group_theory.semidirect_product
free
open category_theory is_free_group semidirect_product
universe u
instance action_category_is_free_groupoid {G A : Type u} [group G] [mul_action G A] [is_free_group G] :
is_free_groupoid (action_category G A) :=
let ac := (action_catego... |
62911aeef42584d15075c05cd84ac157ad75dee7 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/analysis/convex/cone.lean | b6a23b5a758d26b7d77fed568d974c1b35d259fd | [
"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 | 22,938 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Frédéric Dupuis
-/
import linear_algebra.linear_pmap
import analysis.convex.basic
import order.zorn
/-!
# Convex cones
In a vector space `E` over `ℝ`, we define a co... |
183a9c165050293b7503d23ab46d37fef5c42e9d | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/sets_functions_and_relations/unnamed_1118.lean | 815cf57de911d47acfe0ad71d2b67840daa964cd | [] | 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 | 222 | lean | import data.set.function
open set
variables {α β : Type*}
variables (f : α → β) (s : set α)
-- BEGIN
example : inj_on f s ↔
∀ x₁ ∈ s, ∀ x₂ ∈ s, f x₁ = f x₂ → x₁ = x₂ :=
iff.refl _
-- END |
31ec1fe1ca64538b15e064b059ad1fea839aaefa | c9ba4946202cfd1e2586e71960dfed00503dcdf4 | /src/object_k/object_pattern.lean | f8e1e2ddbe7b16e21f5756efc51666ab635417d0 | [] | no_license | ammkrn/learning_semantics_of_k | f55f669b369e32ef8407c16521b21ac5c106dc4d | c1487b538e1decc0f1fd389cd36bc36d2da012ab | refs/heads/master | 1,588,081,593,954 | 1,552,449,093,000 | 1,552,449,093,000 | 175,315,800 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,852 | lean | import object_k.object_sort
import .object_sort
import .object_var
import .object_symbol
open nat
open has_sort
-- #########################################################
-- ##### object_pattern ##############################
inductive object_pattern : Type
| object_variable_as_pattern : ~Variable → object_p... |
5fdb8569fd6b98d5639b122cb305ae2b4610bc51 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/order/filter/extr.lean | 9a53058cc37ad1685cd78560d7a79055dbfbf925 | [
"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 | 18,660 | 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 order.filter.basic logic.relator tactic.alias
/-! # Minimum and maximum w.r.t. a filter and on a aet
## Main Definitions
This file defines six predicates... |
8c0493505aa243be6240936799bad0b49248b90f | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /library/algebra/ordered_group.lean | 2c9860bb20b227fdc890eeec1099aa7219bf8a4f | [
"Apache-2.0"
] | permissive | EgbertRijke/lean | 3426cfa0e5b3d35d12fc3fd7318b35574cb67dc3 | 4f2e0c6d7fc9274d953cfa1c37ab2f3e799ab183 | refs/heads/master | 1,610,834,871,476 | 1,422,159,801,000 | 1,422,159,801,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,371 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.ordered_group
Authors: Jeremy Avigad
Partially ordered additive groups, modeled on Isabelle's library. We could refine the structures,
but we would have to declare more inherit... |
c5b7f2a1a236dd5d0da9f89c9731ee1fbbebf64e | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Level.lean | 56b6d1c7df9aa8b1f49d7de4e46f50c14d4cd95c | [
"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 | 16,352 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Option.Basic
import Init.Data.HashMap
import Init.Data.PersistentHashMap
import Init.Data.HashSet
import Init.Data.PersistentHashSe... |
1f26a82cc671e4eafd52df5b1d226d0c89397b58 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Elab/Tactic/Match.lean | 58f19fd82bae7557ea08b43579c9ab10e335c065 | [
"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 | 2,771 | 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.Parser.Term
import Lean.Elab.Match
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.Induction
namespace Lean.Elab.Tactic
open Meta
/- Era... |
a6b2e112340211eb268cfe6089d2514c19446405 | 1437b3495ef9020d5413178aa33c0a625f15f15f | /data/real/cau_seq_filter.lean | 1d429f2a124b69733547164666e5be65fad438b2 | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,288 | 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, Sébastien Gouëzel
Characterize completeness of metric spaces in terms of Cauchy sequences.
In particular, reconcile the filter notion of Cauchy-ness with the cau_seq... |
69332ec0d90b896853a08880026b58a6cc8344b7 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/tactic31.lean | 4f50fe4c7f8ffc1adf4b4c5ba40446fefc235f2b | [
"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 | 485 | lean | import data.nat
open algebra
example (a b c : Prop) : a → b → c → a ∧ b ∧ c :=
begin
intro Ha, intro Hb, intro Hc,
apply and.intro Ha,
apply and.intro Hb Hc
end
example (a b c : Prop) : a → b → c → a ∧ b ∧ c :=
by intro Ha; intro Hb; intro Hc; apply and.intro Ha; apply and.intro Hb Hc
open nat
example (a b c ... |
34f83c54cc0f6047294dcb7a35da99b706139324 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/real/ennreal_auto.lean | 619baa9c2de22d09dd509d2d2b89fbd697324952 | [] | 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 | 48,832 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.real.nnreal
import Mathlib.data.set.intervals.default
import Mathlib.P... |
5a70dc6e6d6412cd89b843f048eed008ad9abf99 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch2/ex0603.lean | c438f35178a48fbfaf1b482dc72bc54acf244fd3 | [] | 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 | 229 | lean | variables (α β γ : Type)
variables (g : β → γ) (f : α → β) (h : α → α)
variable x : α
def compose := g (f x)
def do_twice := h (h x)
def do_thrice := h (h (h x))
#check compose
#check do_twice
#check do_thrice
|
b946c8c0f111c85dc49d363119413e18e56e5a99 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /03_Propositions_and_Proofs.org.25.lean | 424f7ad9dd43363f12ef3ba1af14ecfad0a524a3 | [] | 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 | 141 | lean | /- page 41 -/
import standard
variables p q : Prop
-- BEGIN
example (Hpq : p → q) (Hnq : ¬q) : ¬p :=
assume Hp : p, Hnq (Hpq Hp)
-- END
|
146ff73af3b3963902ef8b085e062b954febe191 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/equiv/nat.lean | c91fbffaec65fa916b7fbdfe4d35fcfc16671a31 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,981 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Additional facts about equiv and encodable using the
pairing function on nat.
-/
import data.nat.pairing
import data.pnat.basic
open nat
namespace equiv
/--
An equiv... |
b300c7d03132899ae10e5297ec7dda6249cc4bb5 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/set/intervals/basic.lean | d8d7307415c3a298725729c928cc34e4095ca272 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 59,245 | 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, Rémy Degenne
-/
import algebra.order.group
import order.rel_iso
/-!
# Intervals
In any preorder `α`, we define interv... |
0f9660b4ec78ce95a61df6b2bd1087ab6d1dd74b | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/topology/metric_space/hausdorff_distance.lean | 91d952148d530130fe4d8dd7d4460ac3713f71a4 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,616 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
-/
import topology.metric_space.isometry
import topology.instances.ennreal
/-!
# Hausdorff distance
The Hausdorff distance on subsets of a metric (or emetric) spa... |
4f651c080a492b70336bbee570fb8a0e818e720c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/InfoTree.lean | 2a976e5de43e20bd954d9d0c8fd9366ffdf20f3a | [
"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 | 262 | 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, Sebastian Ullrich
-/
import Lean.Elab.InfoTree.Types
import Lean.Elab.InfoTree.Main
|
123ff79aaa073a5e4734ff774e5afbc0a59a5a39 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /src/builtin/bin.lean | a2fbb8edb5cc6a47fc8b13197b4bdc71ab115837 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,568 | lean | import num tactic macros
namespace num
definition z := zero
definition d (x : num) := x + x
set_option simplifier::unfold true
theorem add_d_d (x y : num) : d x + d y = d (x + y)
:= by simp
theorem ssd (x : num) : succ (succ (d x)) = d (succ x)
:= by simp
theorem add_sd_d (x y : num) : succ (d x) + d y = succ (d (... |
88b601e4f643fcbafc26eef12e789b9b04228f0a | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Meta/UnificationHint.lean | 333b6d838ef36502df379f126aecfe4bbdec2e5d | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,410 | 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.ScopedEnvExtension
import Lean.Util.Recognizers
import Lean.Meta.DiscrTree
import Lean.Meta.LevelDefEq
import Lean.Meta.SynthInstance
namespace... |
650397fc10443b1f3c07c2278879843d10d68684 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/interactive/completionOption.lean | 027619ef2d98a086a149a92c098d0b4c7a59e0bd | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 67 | lean | set_option pp.proofs
--^ textDocument/completion
|
3b8fb125080d876e88287047ebd81aa3cbddae66 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/list/instances_auto.lean | 3df3f26f60c0ef04e7ad5475187812311f51d28d | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,183 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.list.lemmas
universes u_1 u
namespace Mathlib
protected instance list.monad : Monad List :=
{ ... |
dea4ddf173f46984af4ea7ddf59cd33fdf0a080d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/yoneda.lean | 277433e9b8f46f9261e915d10544fed8b9e42cf3 | [
"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 | 5,276 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.limits.functor_category
/-!
# Limit properties relating to the (co)yoneda embedding.
We calculate the colimit of `Y ↦ (X ⟶ Y)`,... |
4fc97bc305b105bd1d6985ed6092d893c3eac655 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/chain_of_divisors.lean | 60630db8efdb76feb5f0c0dc5682297518b7e4a8 | [
"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 | 11,707 | lean | /-
Copyright (c) 2021 Paul Lezeau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Paul Lezeau
-/
import algebra.is_prime_pow
import algebra.squarefree
/-!
# Chains of divisors
The results in this file show that in the monoid `associates M` of a `unique_... |
40005e1fd5c2fcdcb080063bc8c7af14e2a56d60 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/prod/tprod.lean | b89c8772ee701dd9103ea54fce749f601c9d0af1 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,894 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import data.list.nodup
/-!
# Finite products of types
This file defines the product of types over a list. For `l : list ι` and `α : ι → Type*` we define
`list.t... |
d6f47a0585a8bad71cb5ad232863ddcf4dd2b15c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/finsupp/basic.lean | 8e49f3d64eff32e4af7e2c441f405d56acfeec8f | [
"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 | 61,710 | 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, Scott Morrison
-/
import algebra.big_operators.finsupp
import algebra.hom.group_action
import algebra.regular.smul
import data.finset.preimage
import data.rat.big_opera... |
73e552bb10b6b5834142aef3356544222f9f4905 | aa2345b30d710f7e75f13157a35845ee6d48c017 | /analysis/topology/continuity.lean | 8046700144298ebd3dccc30d1b3889b1b61b6337 | [
"Apache-2.0"
] | permissive | CohenCyril/mathlib | 5241b20a3fd0ac0133e48e618a5fb7761ca7dcbe | a12d5a192f5923016752f638d19fc1a51610f163 | refs/heads/master | 1,586,031,957,957 | 1,541,432,824,000 | 1,541,432,824,000 | 156,246,337 | 0 | 0 | Apache-2.0 | 1,541,434,514,000 | 1,541,434,513,000 | null | UTF-8 | Lean | false | false | 70,732 | 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
Continuous functions.
Parts of the formalization is based on the books:
N. Bourbaki: General Topology
I. M. James: Topologies and U... |
7fb7d9b08cff3bd6493a201ea45c6172e4fb9f88 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/types/unit.hlean | d2e43cbdcff61c5db0cb9488a295242fbfd821e1 | [
"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 | 1,404 | 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
Theorems about the unit type
-/
open is_equiv equiv option eq pointed is_trunc function
namespace unit
protected definition eta : Π(u : unit), ⋆ = u
| eta ⋆ ... |
ff0d5c357b86288070d0f7560a6b21f4c9b898ea | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /doc/examples/ICERM2022/notation.lean | a8b9562d8b0c7de9f2fddba7d1d246cdf9e25552 | [
"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,001 | lean | import Lean
def f (x y : Nat) := x * y + 1
infixl:65 " *' " => f
#check 2 *' 3
notation "unitTest " x => Prod.mk x ()
#check unitTest 42
notation "parenthesisTest " x => Nat.sub (x)
#check parenthesisTest 12
def Set (α : Type u) := α → Prop
def setOf {α : Type} (p : α → Prop) : Set α := p
notation "{ " x " | " p... |
ad88ff2b93dd6e87d392569047131c220f65d3a5 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/geometry/manifold/instances/sphere.lean | 1bc71762cb9551fbf526f9a6be623d0e42287968 | [
"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 | 20,131 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import geometry.manifold.instances.real
import analysis.complex.circle
/-!
# Manifold structure on the sphere
This file defines stereographic projection from the ... |
364a4f066e01e445e0313ecc06de7f95741fc7a6 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Lean/Elab/Do.lean | a205d578074ea287fdcc4aa4ec86f70a058dae47 | [
"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 | 66,634 | 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.Elab.Term
import Lean.Elab.Binders
import Lean.Elab.Match
import Lean.Elab.Quotation.Util
import Lean.Parser.Do
namespace Lean.Elab.Term
open L... |
52cbc14282b4424a5c0185b22381eb0985ac1764 | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /tests/lean/def_inaccessible_issue.lean | 8d013155406f83f15e7241f7cccd0ebcc0142c94 | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 382 | lean | open nat
set_option pp.binder_types true
inductive bv : nat → Type
| nil : bv 0
| cons : ∀ (n) (hd : bool) (tl : bv n), bv (n+1)
open bv
variable (f : bool → bool → bool)
definition map2 : ∀ {n}, bv n → bv n → bv n
| 0 nil nil := nil
| (n+1) (cons .n b1 v1) (cons .n b2 v2) := cons n (f ... |
1f72b462e5babf59599b19b9874fbe1d6c9d4519 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Config/Env.lean | 09ad13c348cdcf2815dc9968aad1b55ee37d3fe8 | [
"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 | 4,605 | 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 Lake.Util.NativeLib
import Lake.Config.InstallPath
open System
/-! # Lake's Environment
Definitions related to a Lake environment.
A Lake environment is computed on ... |
b8351b8eab63a0dbf930b777e1ec9ed9193929a0 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/char_p.lean | 7d0c177110b4e9fe9370c7ada58a2195e8d4a765 | [
"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 | 14,171 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kenny Lau, Joey van Langen, Casper Putz
-/
import data.fintype.basic
import data.nat.choose
import data.int.modeq
import algebra.module.basic
import algebra.iterate_hom
import group_theory.... |
d00d4417b4907b250b8ce32d9df0fcb97a35bf0d | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/priority_test2.lean | 46a582ac462d4e96d8c519d06c370e314a1a9502 | [
"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 | 748 | lean | open nat
structure [class] foo :=
(a : nat) (b : nat)
attribute [instance, priority std.priority.default-2]
definition i1 : foo :=
foo.mk 1 1
example : foo.a = 1 :=
rfl
attribute [instance, priority std.priority.default-1]
definition i2 : foo :=
foo.mk 2 2
example : foo.a = 2 :=
rfl
attribute [instance]
definitio... |
e0fc8251db22c239ab0c72891d869db86ade09f7 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/equiv/ring_aut.lean | e779fbcd1268d5a688a7d1eb46f180be3a5ee827 | [
"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 | 1,992 | 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, Yury Kudryashov
-/
import data.equiv.ring
import data.equiv.mul_add_aut
/-!
# Ring automorphisms
This file defines the automorphism group structure on ... |
d8d20ba9fdb2c9198c987da6b78f8b0ebc76a35f | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Elab/BuiltinTerm.lean | 6157a9ecfc83054a124dc38642ed92c3dc7d7a6e | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,537 | 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.Elab.Term
namespace Lean.Elab.Term
open Meta
@[builtinTermElab «prop»] def elabProp : TermElab := fun _ _ =>
return mkSort levelZero
privat... |
a674a8be11ce8931442c11333b88c36ca54ddb00 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/simpcfg.lean | 7d21c2c7e3c5c4944bf9983596577297ba1240ba | [
"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 | 173 | lean | theorem ex6 (f : Nat → Nat) (x y z : Nat) (h : (x, z).1 = (fun x => x) y) : f x = f y := by
simp { beta := false } at h
traceState
simp at h
traceState
simp [h]
|
76e3e57db0675748bc31fcf7a7053893c8c8b050 | 8f67b34bba98f894155dedf263bc8d61c31e89cd | /2ltt/inverse.lean | a75071de359e3d84ccfe8b0520da4b659e02847b | [] | no_license | 5HT/two-level | 3b1523db242cba819681b862fbc8f490d9571a66 | 370f5a91311db3b463b10a31891370721e2476e2 | refs/heads/master | 1,648,254,367,420 | 1,576,269,550,000 | 1,576,269,550,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,285 | lean | -- inverse categories
import algebra.category data.nat
import algebra.category.constructions
import .fibrant .finite
import open nat
open nat.le functor
open category category.ops eq.ops
definition nat_cat_op [instance] : category ℕ :=
⦃ category,
hom := λ a b, a ≥ b,
comp := λ a b c, @nat.le_trans c b a... |
7590f309e182847dac042d0c5652dc4c47c29501 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/algebra/constructions.lean | f2d7c3657c7c9934173922c05d9bdb6f41948848 | [
"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,601 | lean | /-
Copyright (c) 2021 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import topology.homeomorph
/-!
# Topological space structure on the opposite monoid and on the units group
In this file we define `topological_space` structure ... |
5266232fac768aa8568ae60af5d5e513c92f3052 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/algebra/group_power/basic.lean | ebb42154f9ce2d0cbbd386f8e00d4a5e67932a30 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,356 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import algebra.ordered_ring
import tactic.monotonicity.basic
import group_theory.group_action.defs
/-!
# Power operations on monoids and groups
The p... |
a81e49f37332d75fd3b14c941b7d7f8acc3d3efd | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/special_functions/log/basic.lean | da7392ce78e955cc22343138f70d21bf77c7dda3 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 13,485 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne
-/
import analysis.special_functions.exp
import data.nat.factorization.basic
/-!
# Real logarithm
> THIS FILE IS SYNCHRONIZ... |
13ba1d89250eb90b9ba4f253e81a5fe3fc70c551 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/ring_theory/ideals.lean | 066995af39675d285e4bd105c357e17886192ee8 | [
"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 | 21,373 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro
-/
import algebra.associated
import linear_algebra.basic
import order.zorn
universes u v
variables {α : Type u} {β : Type v} {a b : α}
open set func... |
a84005e7d984d3383ba37a7c356ce9b52b5644c5 | a339bc2ac96174381fb610f4b2e1ba42df2be819 | /hott/homotopy/wedge.hlean | 633f8f3c6657dbaf71d8a49243332896ae2f3355 | [
"Apache-2.0"
] | permissive | kalfsvag/lean2 | 25b2dccc07a98e5aa20f9a11229831f9d3edf2e7 | 4d4a0c7c53a9922c5f630f6f8ebdccf7ddef2cc7 | refs/heads/master | 1,610,513,122,164 | 1,483,135,198,000 | 1,483,135,198,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,617 | hlean | /-
Copyright (c) 2016 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Ulrik Buchholtz
The Wedge Sum of Two Pointed Types
-/
import hit.pushout .connectedness types.unit
open eq pushout pointed unit trunc_index
definition wedge (A B... |
5693669ba4e4d6660a1ee8245872820904664571 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Oneshot/lean3-in/main.lean | 78b673949cf9c7b7d2cbaf0d6b2a2289e850b9a7 | [
"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 | 144 | lean | -- Insert lean 3 code here.
import other
namespace foo
/-- test -/
@[simp] def foo := other
theorem foo_eq_one : foo.foo = 1 := rfl
end foo
|
8d6e52dc5b3f47cc5f3a422c49a7d4b8587263e9 | 842b7df4a999c5c50bbd215b8617dd705e43c2e1 | /nat_num_game/src/Advanced_Proposition_World/adv_prop_wrld7.lean | 034e07d0c5379b82890b5bdc1eb2c34bb2fd9a34 | [] | no_license | Samyak-Surti/LeanCode | 1c245631f74b00057d20483c8ac75916e8643b14 | 944eac3e5f43e2614ed246083b97fbdf24181d83 | refs/heads/master | 1,669,023,730,828 | 1,595,534,784,000 | 1,595,534,784,000 | 282,037,186 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 147 | lean | lemma or_symm (P Q : Prop) : P ∨ Q → Q ∨ P :=
begin
intro fpq,
cases fpq with p q,
right,
exact p,
left,
exact q,
end |
64b8e1e2281f7abb524da425a43ba90f22ca4824 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_lean_summary/unnamed_484.lean | 989b8a7fa57bb370b0fb2eb753ea302fe3416e16 | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 112 | lean | variables p q : Prop
-- BEGIN
example (h₁ : p → q) (h₂ : q → p) : p ↔ q :=
iff.intro h₁ h₂
-- END |
191350db7ebb64765f25b55c08408798b2950feb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/traversable/instances.lean | 5df7144d64268c44a809249ac09fd212eb975a79 | [] | 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 | 5,819 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Instances of `traversable` for types from the core library
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.forall2
import Mathlib.data.... |
22cf03975a5dc989d08a744e9845e8fca0d04d9f | e6b8240a90527fd55d42d0ec6649253d5d0bd414 | /src/topology/instances/real.lean | d9ff22c75e3f2dcaa6341a2c457d093306f4a289 | [
"Apache-2.0"
] | permissive | mattearnshaw/mathlib | ac90f9fb8168aa642223bea3ffd0286b0cfde44f | d8dc1445cf8a8c74f8df60b9f7a1f5cf10946666 | refs/heads/master | 1,606,308,351,137 | 1,576,594,130,000 | 1,576,594,130,000 | 228,666,195 | 0 | 0 | Apache-2.0 | 1,576,603,094,000 | 1,576,603,093,000 | null | UTF-8 | Lean | false | false | 19,385 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
The real numbers ℝ.
They are constructed as the topological completion of ℚ. With the following steps:
(1) prove that ℚ forms a uniform space.
(2) subt... |
ca65bc392dc3bfbbaaf32a430f2ffe0758795f87 | 159fed64bfae88f3b6a6166836d6278f953bcbf9 | /Structure/Generic/Instances/Bundled.lean | 5dad80eb1f8917ddf73a1e47604826a5aeafd85b | [
"MIT"
] | permissive | SReichelt/lean4-experiments | 3e56830c8b2fbe3814eda071c48e3c8810d254a8 | ff55357a01a34a91bf670d712637480089085ee4 | refs/heads/main | 1,683,977,454,907 | 1,622,991,121,000 | 1,622,991,121,000 | 340,765,677 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,705 | lean | import Structure.Generic.Axioms.Universes
import Structure.Generic.Axioms.AbstractFunctors
import Structure.Generic.Instances.Basic
set_option autoBoundImplicitLocal false
--set_option pp.universes true
universes u v
def bundledUniverse {U : Universe.{u}} (C : GeneralizedTypeClass.{u, u} U) : Universe.{u} := ⟨Bu... |
ba7a5cc0f79d7f65a9fb64f5364102b27fed149f | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/tactic/split_ifs.lean | 645e0895ce0dafdd8bc2000682f21837ba7df454 | [
"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 | 3,306 | lean | /-
Copyright (c) 2018 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
Tactic to split if-then-else-expressions.
-/
import tactic.hint
open expr tactic
namespace tactic
open interactive
meta def find_if_cond : expr → option expr | e :=
e.... |
906d15e1c2819b14f61670e8e3cbb0ecd686b4b7 | f09e92753b1d3d2eb3ce2cfb5288a7f5d1d4bd89 | /src/Tate_ring.lean | c697696ec3a866d011afd43143af8cd8fd147a31 | [
"Apache-2.0"
] | permissive | PatrickMassot/lean-perfectoid-spaces | 7f63c581db26461b5a92d968e7563247e96a5597 | 5f70b2020b3c6d508431192b18457fa988afa50d | refs/heads/master | 1,625,797,721,782 | 1,547,308,357,000 | 1,547,309,364,000 | 136,658,414 | 0 | 1 | Apache-2.0 | 1,528,486,100,000 | 1,528,486,100,000 | null | UTF-8 | Lean | false | false | 2,659 | lean | import tactic.linarith
import analysis.topology.topological_structures
import ring_theory.subring
import power_bounded
-- Scholze : "Recall that a topological ring R is Tate if it contains an
-- open and bounded subring R₀ ⊂ R and a topologically nilpotent unit ϖ ∈ R; such elements are
-- called pseudo-uniformizers."
... |
c631f1d46b100f8ca472912dfeed1f098317f776 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/filtered.lean | 72cadd5325b45526f6c3cf7560a523cb02948476 | [
"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 | 28,024 | 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.fin_category
import category_theory.limits.cones
import category_theory.adjunction.basic
import category_theory.category.preorder
imp... |
7f2a3491b69ae8d2d2428951c8aa8d1a98c39aa4 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /archive/imo/imo2001_q6.lean | c2fa9f829a85588b13dcc78b86e05b5ceeb5b460 | [
"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 | 1,607 | lean | /-
Copyright (c) 2021 Sara Díaz Real. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sara Díaz Real
-/
import algebra.associated
import tactic.linarith
import tactic.linear_combination
/-!
# IMO 2001 Q6
Let $a$, $b$, $c$, $d$ be integers with $a > b > c > d > 0$. Supp... |
f8027b2563d0cd53c9bb632e5f35bc71a5b57a71 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/group_theory/group_action/conj_act.lean | f37624b777e3e6656890c7fde2ad846904b38fb4 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,860 | lean | /-
Copyright (c) 2021 . All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.group_action.basic
import group_theory.subgroup.basic
/-!
# Conjugation action of a group on itself
This file defines the conjugation action of a group on itself... |
f013354c43b7fbe41c0630d84a81125faf37c73f | c062f1c97fdef9ac746f08754e7d766fd6789aa9 | /data/set/basic.lean | c3bd54bd3c54484ce2ae4497fdaebccefb68b971 | [] | no_license | emberian/library_dev | 00c7a985b21bdebe912f4127a363f2874e1e7555 | f3abd7db0238edc18a397540e361a1da2f51503c | refs/heads/master | 1,624,153,474,804 | 1,490,147,180,000 | 1,490,147,180,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 29,091 | 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
-- TODO: in emacs mode, change "\sub" to regular subset, use "\ssub" for strict,
similarly for "\sup"
-- QUESTION: can make the first argument... |
f1d2ec3d4238a06f0d3f5f45710062ed5abe9854 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/task.lean | eaf200fa3bbc4f09e25683376b0cde3d5d030b46 | [
"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 | 253 | lean | run_cmd tactic.run_async (tactic.trace
"trace message from a different task")
def {u} foo {α : Type u} {n : ℕ} : array α (0+n) → array α n :=
if n = 0 then
λ v, cast (by async { simp }) v
else
λ v, cast (by async { simp }) v
#print foo
|
e4462906d182309d505acb9d2d3c23582a0bdb73 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/metric_space/isometry.lean | 897b67f6effd741201ecdf80a6d846c7a7cc4669 | [
"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 | 16,538 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Isometries of emetric and metric spaces
Authors: Sébastien Gouëzel
-/
import topology.bounded_continuous_function
import topology.compacts
/-!
# Isometries
We define isometries, i.e., maps... |
84ce8ebe0bf6a13a606f89b3f497605eadb5a3eb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/real/nnreal.lean | cca419cf48609e1dbb9e70c3851b5f6843ceecc2 | [
"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 | 35,112 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.algebra.basic
import algebra.order.field.canonical.basic
import algebra.order.nonneg.field
import algebra.order.nonneg.floor
import data.real.pointwise... |
cb807a466e1d61a84752b437f9945b4018a349af | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Lean/Meta/FunInfo.lean | 4dfb02e78dcf3cb67672e2d0a6db99a2ce883d71 | [
"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 | 3,213 | 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.Meta.Basic
import Init.Lean.Meta.InferType
namespace Lean
namespace Meta
@[inline] private def checkFunInfoCache (fn : Expr) (max... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.